From 6b73cce2fc4b29290b51878ba07aa4b9bca4e573 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:25:34 -0800 Subject: [PATCH 01/19] feat: Add Grounding feature to PredictionService.GenerateContent (#5036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix!: remove field `max_wait_duration` from message Scheduling feat: add psc_automated_endpoints to IndexPrivateEndpoints feat: add request_response_logging_schema_version to ModelDeploymentMonitoringBigQueryTable feat: add resource_title, resource_use_case, resource_description to RegionalResourceReferences feat: add deploy_gke, open_tine_tuning_pipelines, open_notebooks to CallToAction docs: deprecate use_case and description in ResourceReference docs: minor changes to comments PiperOrigin-RevId: 605667976 Source-Link: https://github.com/googleapis/googleapis/commit/3b25a48cfd09b9fc8a9d4a539a0328594e0c2668 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b8402de22611a3b7bffa59b075891e5b29a0d554 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImI4NDAyZGUyMjYxMWEzYjdiZmZhNTliMDc1ODkxZTViMjlhMGQ1NTQifQ== * fix!: remove field `max_wait_duration` from message Scheduling fix!: remove method `CountTokens` from service LlmUtilityService feat: add psc_automated_endpoints to IndexPrivateEndpoints feat: add update_mask to UpsertDatapointsRequest feat: add more RecordErrorType enum values feat: add request_response_logging_schema_version to ModelDeploymentMonitoringBigQueryTable feat: add resource_title, resource_use_case, resource_description to RegionalResourceReferences docs: deprecate use_case and description in ResourceReference feat: add deploy_gke, open_tine_tuning_pipelines, open_notebooks to CallToAction docs: minor changes to comments PiperOrigin-RevId: 605668103 Source-Link: https://github.com/googleapis/googleapis/commit/f5833986f07c975c67bf6f635a5bb930b3354f85 Source-Link: https://github.com/googleapis/googleapis-gen/commit/74cf4058417bd2a6411395d286c34fb27088a76d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6Ijc0Y2Y0MDU4NDE3YmQyYTY0MTEzOTVkMjg2YzM0ZmIyNzA4OGE3NmQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add Grounding feature to PredictionService.GenerateContent feat: Add Retrieval feat: Add GoogleSearchRetrieval feat: Add VertexAiSearch feat: Add Tool.retrieval feat: Add Tool.google_search_retrieval feat: Add Candidate.grounding_metadata docs: A comment for message `Tool` is changed docs: A comment for field `tools` in message `.google.cloud.aiplatform.v1beta1.GenerateContentRequest` is changed docs: A comment for field `tools` in message `.google.cloud.aiplatform.v1beta1.GenerateContentRequest` is changed PiperOrigin-RevId: 605743031 Source-Link: https://github.com/googleapis/googleapis/commit/e183baf16610b925fc99e628fc539e118bc3348a Source-Link: https://github.com/googleapis/googleapis-gen/commit/1f35985a865bce189bc3de39e0200681025ee213 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjFmMzU5ODVhODY1YmNlMTg5YmMzZGUzOWUwMjAwNjgxMDI1ZWUyMTMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- packages/google-cloud-aiplatform/README.md | 1 + .../cloud/aiplatform/v1/custom_job.proto | 5 - .../cloud/aiplatform/v1/explanation.proto | 8 + .../feature_online_store_admin_service.proto | 2 + .../cloud/aiplatform/v1/index_endpoint.proto | 5 + .../cloud/aiplatform/v1/index_service.proto | 29 + .../google/cloud/aiplatform/v1/model.proto | 14 +- .../v1/model_deployment_monitoring_job.proto | 5 + .../aiplatform/v1/prediction_service.proto | 3 +- .../cloud/aiplatform/v1/publisher_model.proto | 50 +- .../aiplatform/v1/service_networking.proto | 13 + .../cloud/aiplatform/v1beta1/content.proto | 56 + .../cloud/aiplatform/v1beta1/custom_job.proto | 5 - .../aiplatform/v1beta1/endpoint_service.proto | 1 + .../aiplatform/v1beta1/explanation.proto | 8 + .../feature_online_store_admin_service.proto | 2 + .../feature_online_store_service.proto | 13 +- .../aiplatform/v1beta1/index_endpoint.proto | 5 + .../aiplatform/v1beta1/index_service.proto | 29 + .../v1beta1/llm_utility_service.proto | 14 - .../cloud/aiplatform/v1beta1/model.proto | 14 +- .../model_deployment_monitoring_job.proto | 5 + .../aiplatform/v1beta1/pipeline_service.proto | 62 + .../v1beta1/prediction_service.proto | 3 +- .../aiplatform/v1beta1/publisher_model.proto | 50 +- .../v1beta1/service_networking.proto | 13 + .../cloud/aiplatform/v1beta1/tool.proto | 41 +- .../protos/protos.d.ts | 28924 +++--- .../google-cloud-aiplatform/protos/protos.js | 75308 +++++++++------- .../protos/protos.json | 5407 +- .../google-cloud-aiplatform/samples/README.md | 18 + ...min_service.update_feature_online_store.js | 1 + ...store_admin_service.update_feature_view.js | 1 + .../v1/index_service.upsert_datapoints.js | 8 + .../v1/prediction_service.generate_content.js | 3 +- ...diction_service.stream_generate_content.js | 3 +- ...t_metadata_google.cloud.aiplatform.v1.json | 14 +- ...min_service.update_feature_online_store.js | 1 + ...store_admin_service.update_feature_view.js | 1 + .../index_service.upsert_datapoints.js | 8 + ...line_service.batch_cancel_pipeline_jobs.js | 71 + .../pipeline_service.create_pipeline_job.js | 5 + .../prediction_service.generate_content.js | 3 +- ...diction_service.stream_generate_content.js | 3 +- ...adata_google.cloud.aiplatform.v1beta1.json | 116 +- .../src/v1/dataset_service_client.ts | 10 + ...deployment_resource_pool_service_client.ts | 10 + .../src/v1/endpoint_service_client.ts | 10 + ...ature_online_store_admin_service_client.ts | 12 + .../src/v1/feature_registry_service_client.ts | 10 + .../src/v1/featurestore_service_client.ts | 10 + .../src/v1/index_endpoint_service_client.ts | 10 + .../src/v1/index_service_client.ts | 18 + .../src/v1/job_service_client.ts | 10 + .../src/v1/metadata_service_client.ts | 10 + .../src/v1/migration_service_client.ts | 10 + .../src/v1/model_service_client.ts | 10 + .../src/v1/pipeline_service_client.ts | 10 + .../src/v1/prediction_service_client.ts | 6 +- .../src/v1/schedule_service_client.ts | 10 + .../src/v1/specialist_pool_service_client.ts | 10 + .../src/v1/tensorboard_service_client.ts | 10 + .../src/v1/vizier_service_client.ts | 10 + .../src/v1beta1/dataset_service_client.ts | 13 + ...deployment_resource_pool_service_client.ts | 13 + .../src/v1beta1/endpoint_service_client.ts | 16 + ...ature_online_store_admin_service_client.ts | 15 + .../feature_registry_service_client.ts | 13 + .../v1beta1/featurestore_service_client.ts | 13 + .../src/v1beta1/gapic_metadata.json | 20 +- .../v1beta1/index_endpoint_service_client.ts | 13 + .../src/v1beta1/index_service_client.ts | 21 + .../src/v1beta1/job_service_client.ts | 13 + .../src/v1beta1/llm_utility_service_client.ts | 103 +- .../llm_utility_service_client_config.json | 4 - .../src/v1beta1/metadata_service_client.ts | 13 + .../src/v1beta1/migration_service_client.ts | 13 + .../src/v1beta1/model_service_client.ts | 13 + .../persistent_resource_service_client.ts | 13 + .../src/v1beta1/pipeline_service_client.ts | 184 + .../pipeline_service_client_config.json | 4 + .../src/v1beta1/prediction_service_client.ts | 6 +- .../src/v1beta1/schedule_service_client.ts | 13 + .../v1beta1/specialist_pool_service_client.ts | 13 + .../src/v1beta1/tensorboard_service_client.ts | 13 + .../src/v1beta1/vizier_service_client.ts | 13 + .../test/gapic_llm_utility_service_v1beta1.ts | 134 - .../test/gapic_pipeline_service_v1beta1.ts | 198 + 88 files changed, 60000 insertions(+), 51424 deletions(-) create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 7ed85572f9f6..4b947433b1b2 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -562,6 +562,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Persistent_resource_service.get_persistent_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.get_persistent_resource.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.get_persistent_resource.js,packages/google-cloud-aiplatform/samples/README.md) | | Persistent_resource_service.list_persistent_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.list_persistent_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.list_persistent_resources.js,packages/google-cloud-aiplatform/samples/README.md) | | Persistent_resource_service.update_persistent_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.update_persistent_resource.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.update_persistent_resource.js,packages/google-cloud-aiplatform/samples/README.md) | +| Pipeline_service.batch_cancel_pipeline_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js,packages/google-cloud-aiplatform/samples/README.md) | | Pipeline_service.batch_delete_pipeline_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js,packages/google-cloud-aiplatform/samples/README.md) | | Pipeline_service.cancel_pipeline_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js,packages/google-cloud-aiplatform/samples/README.md) | | Pipeline_service.cancel_training_pipeline | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js,packages/google-cloud-aiplatform/samples/README.md) | diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto index a08fdf351cba..f9fdbb17eab9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto @@ -349,9 +349,4 @@ message Scheduling { // job starts running. If true, overrides // `Scheduling.restart_job_on_worker_restart` to false. bool disable_retries = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. This is the maximum time a user will wait in the QRM queue for - // resources. Default is 1 day - google.protobuf.Duration max_wait_duration = 6 - [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto index 4b7b5c727258..10cf3d484a53 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto @@ -44,6 +44,14 @@ message Explanation { // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] // can be used to identify which output this attribution is explaining. // + // By default, we provide Shapley values for the predicted class. However, + // you can configure the explanation request to generate Shapley values for + // any other classes too. For example, if a model predicts a probability of + // `0.4` for approving a loan application, the model's decision is to reject + // the application since `p(reject) = 0.6 > p(approve) = 0.4`, and the default + // Shapley values would be computed for rejection decision and not approval, + // even though the latter might be the positive class. + // // If users set // [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], // the attributions are sorted by diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto index a5955570f070..13ce4a114bbc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto @@ -319,6 +319,7 @@ message UpdateFeatureOnlineStoreRequest { // Updatable fields: // // * `big_query_source` + // * `bigtable` // * `labels` // * `sync_config` google.protobuf.FieldMask update_mask = 2; @@ -480,6 +481,7 @@ message UpdateFeatureViewRequest { // Updatable fields: // // * `labels` + // * `serviceAgentType` google.protobuf.FieldMask update_mask = 2; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index d8daf55aff5e..013c95bc975b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -291,4 +291,9 @@ message IndexPrivateEndpoints { // Output only. The name of the service attachment resource. Populated if // private service connect is enabled. string service_attachment = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. PscAutomatedEndpoints is populated if private service connect + // is enabled if PscAutomatedConfig is set. + repeated PscAutomatedEndpoints psc_automated_endpoints = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto index 29f10f47878b..aef257993565 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto @@ -252,6 +252,16 @@ message UpsertDatapointsRequest { // A list of datapoints to be created/updated. repeated IndexDatapoint datapoints = 2; + + // Optional. Update mask is used to specify the fields to be overwritten in + // the datapoints by the update. The fields specified in the update_mask are + // relative to each IndexDatapoint inside datapoints, not the full request. + // + // Updatable fields: + // + // * Use `all_restricts` to update both restricts and numeric_restricts. + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -307,6 +317,25 @@ message NearestNeighborSearchOperationMetadata { // The `namespace` field is missing. NAMESPACE_MISSING = 7; + + // Generic catch-all error. Only used for validation failure where the + // root cause cannot be easily retrieved programmatically. + PARSING_ERROR = 8; + + // There are multiple restricts with the same `namespace` value. + DUPLICATE_NAMESPACE = 9; + + // Numeric restrict has operator specified in datapoint. + OP_IN_DATAPOINT = 10; + + // Numeric restrict has multiple values specified. + MULTIPLE_VALUES = 11; + + // Numeric restrict has invalid numeric value specified. + INVALID_NUMERIC_VALUE = 12; + + // File is not in UTF_8 format. + INVALID_ENCODING = 13; } // The error type of this record. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto index fe923b8fbb01..fa1a9eb8bf9e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto @@ -249,12 +249,12 @@ message Model { // deploying this Model. The specification is ingested upon // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], // and all binaries it contains are copied and stored internally by Vertex AI. - // Not present for AutoML Models or Large Models. + // Not required for AutoML Models. ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; // Immutable. The path to the directory containing the Model artifact and any - // of its supporting files. Not present for AutoML Models or Large Models. + // of its supporting files. Not required for AutoML Models. string artifact_uri = 26 [(google.api.field_behavior) = IMMUTABLE]; // Output only. When this Model is deployed, its prediction resources are @@ -437,7 +437,8 @@ message Model { EncryptionSpec encryption_spec = 24; // Output only. Source of a model. It can either be automl training pipeline, - // custom training pipeline, BigQuery ML, or existing Vertex AI Model. + // custom training pipeline, BigQuery ML, or saved and tuned from Genie or + // Model Garden. ModelSourceInfo model_source_info = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -766,6 +767,10 @@ message Port { // Detail description of the source information of the model. message ModelSourceInfo { // Source of the model. + // Different from `objective` field, this `ModelSourceType` enum + // indicates the source from which the model was accessed or obtained, + // whereas the `objective` indicates the overall aim or function of this + // model. enum ModelSourceType { // Should not be used. MODEL_SOURCE_TYPE_UNSPECIFIED = 0; @@ -787,6 +792,9 @@ message ModelSourceInfo { // The Model is uploaded by text embedding finetuning pipeline. CUSTOM_TEXT_EMBEDDING = 6; + + // The Model is saved or tuned from Marketplace. + MARKETPLACE = 7; } // Type of the model source. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index bfd4768385b5..02b7eae531c8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -263,6 +263,11 @@ message ModelDeploymentMonitoringBigQueryTable { // & analysis. Format: // `bq://.model_deployment_monitoring_._` string bigquery_table_path = 3; + + // Output only. The schema version of the request/response logging BigQuery + // table. Default to v1 if unset. + string request_response_logging_schema_version = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // ModelDeploymentMonitoringObjectiveConfig contains the pair of diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto index 725f6d29c212..e37bdb8fc655 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto @@ -653,8 +653,7 @@ message GenerateContentRequest { // // A `Tool` is a piece of code that enables the system to interact with // external systems to perform an action, or set of actions, outside of - // knowledge and scope of the model. The only supported tool is currently - // `Function` + // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. Per request settings for blocking unsafe content. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto index 0b0d8dd02995..4bfe02119b39 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto @@ -46,10 +46,10 @@ message PublisherModel { string resource_name = 2; // Use case (CUJ) of the resource. - string use_case = 3; + string use_case = 3 [deprecated = true]; // Description of the resource. - string description = 4; + string description = 4 [deprecated = true]; } } @@ -72,8 +72,20 @@ message PublisherModel { map references = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The title of the regional resource reference. + // Required. string title = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Title of the resource. + optional string resource_title = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use case (CUJ) of the resource. + optional string resource_use_case = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the resource. + optional string resource_description = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Rest API docs. @@ -86,6 +98,20 @@ message PublisherModel { string title = 2 [(google.api.field_behavior) = REQUIRED]; } + // Open notebooks. + message OpenNotebooks { + // Required. Regional resource references to notebooks. + repeated RegionalResourceReferences notebooks = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Open fine tuning pipelines. + message OpenFineTuningPipelines { + // Required. Regional resource references to fine tuning pipelines. + repeated RegionalResourceReferences fine_tuning_pipelines = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Model metadata that is needed for UploadModel or // DeployModel/CreateEndpoint requests. message Deploy { @@ -131,6 +157,13 @@ message PublisherModel { string public_artifact_uri = 9 [(google.api.field_behavior) = OPTIONAL]; } + // Configurations for PublisherModel GKE deployment + message DeployGke { + // Optional. GKE deployment configuration in yaml format. + repeated string gke_yaml_configs = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. To view Rest API docs. ViewRestApi view_rest_api = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -138,6 +171,10 @@ message PublisherModel { RegionalResourceReferences open_notebook = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open notebooks of the PublisherModel. + optional OpenNotebooks open_notebooks = 12 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Create application using the PublisherModel. RegionalResourceReferences create_application = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -146,6 +183,10 @@ message PublisherModel { RegionalResourceReferences open_fine_tuning_pipeline = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open fine-tuning pipelines of the PublisherModel. + optional OpenFineTuningPipelines open_fine_tuning_pipelines = 13 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open prompt-tuning pipeline of the PublisherModel. RegionalResourceReferences open_prompt_tuning_pipeline = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -157,6 +198,9 @@ message PublisherModel { // Optional. Deploy the PublisherModel to Vertex Endpoint. Deploy deploy = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deploy PublisherModel to Google Kubernetes Engine. + DeployGke deploy_gke = 14 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open in Generation AI Studio. RegionalResourceReferences open_generation_ai_studio = 8 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto index 148a00f1b4e7..1e7cfffb6476 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto @@ -37,3 +37,16 @@ message PrivateServiceConnectConfig { // attachment. repeated string project_allowlist = 2; } + +// PscAutomatedEndpoints defines the output of the forwarding rule +// automatically created by each PscAutomationConfig. +message PscAutomatedEndpoints { + // Corresponding project_id in pscAutomationConfigs + string project_id = 1; + + // Corresponding network in pscAutomationConfigs. + string network = 2; + + // Ip Address created by the automated forwarding rule. + string match_address = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto index ca1179983d64..b5df1dbaa361 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto @@ -291,4 +291,60 @@ message Candidate { // Output only. Source attribution of the generated content. CitationMetadata citation_metadata = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata specifies sources used to ground generated content. + GroundingMetadata grounding_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Segment of the content. +message Segment { + // Output only. The index of a Part object within its parent Content object. + int32 part_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Start index in the given Part, measured in bytes. Offset from + // the start of the Part, inclusive, starting at zero. + int32 start_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End index in the given Part, measured in bytes. Offset from + // the start of the Part, exclusive, starting at zero. + int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Grounding attribution. +message GroundingAttribution { + // Attribution from the web. + message Web { + // Output only. URI reference of the attribution. + string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Title of the attribution. + string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + oneof reference { + // Optional. Attribution from the web. + Web web = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. Segment of the content this attribution belongs to. + Segment segment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. Confidence score of the attribution. Ranges from 0 + // to 1. 1 is the most confident. + optional float confidence_score = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Metadata returned to client when grounding is enabled. +message GroundingMetadata { + // Optional. Web search queries for the following-up web search. + repeated string web_search_queries = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of grounding attributions. + repeated GroundingAttribution grounding_attributions = 2 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index c9d2b58f2138..5689a62ef6b3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -363,9 +363,4 @@ message Scheduling { // job starts running. If true, overrides // `Scheduling.restart_job_on_worker_restart` to false. bool disable_retries = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. This is the maximum time a user will wait in the QRM queue for - // resources. Default is 1 day - google.protobuf.Duration max_wait_duration = 6 - [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto index f0ed6f979407..ed53e165258f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto @@ -220,6 +220,7 @@ message ListEndpointsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `endpoint=1` // * `displayName="myDisplayName"` // * `labels.myKey="myValue"` diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto index 1801a502142a..72cee5a1418b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto @@ -44,6 +44,14 @@ message Explanation { // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] // can be used to identify which output this attribution is explaining. // + // By default, we provide Shapley values for the predicted class. However, + // you can configure the explanation request to generate Shapley values for + // any other classes too. For example, if a model predicts a probability of + // `0.4` for approving a loan application, the model's decision is to reject + // the application since `p(reject) = 0.6 > p(approve) = 0.4`, and the default + // Shapley values would be computed for rejection decision and not approval, + // even though the latter might be the positive class. + // // If users set // [ExplanationParameters.top_k][google.cloud.aiplatform.v1beta1.ExplanationParameters.top_k], // the attributions are sorted by diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto index 52d69615ca04..aefb99807b0d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto @@ -319,6 +319,7 @@ message UpdateFeatureOnlineStoreRequest { // Updatable fields: // // * `big_query_source` + // * `bigtable` // * `labels` // * `sync_config` google.protobuf.FieldMask update_mask = 2; @@ -480,6 +481,7 @@ message UpdateFeatureViewRequest { // Updatable fields: // // * `labels` + // * `serviceAgentType` google.protobuf.FieldMask update_mask = 2; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto index cea6172dec9e..ba927583778a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto @@ -169,12 +169,13 @@ message NearestNeighborQuery { } // String filter is used to search a subset of the entities by using boolean - // rules. For example: if a query specifies string filter with 'name - // = color, allow_tokens = {red, blue}, deny_tokens = {purple}',' then that - // query will match entities that are red or blue, but if those points are - // also purple, then they will be excluded even if they are red/blue. Only - // string filter is supported for now, numeric filter will be supported in the - // near future. + // rules on string columns. + // For example: if a query specifies string filter + // with 'name = color, allow_tokens = {red, blue}, deny_tokens = {purple}',' + // then that query will match entities that are red or blue, but if those + // points are also purple, then they will be excluded even if they are + // red/blue. Only string filter is supported for now, numeric filter will be + // supported in the near future. message StringFilter { // Required. Column names in BigQuery that used as filters. string name = 1 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 46dfba3bfc12..33f196baaddb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -292,4 +292,9 @@ message IndexPrivateEndpoints { // Output only. The name of the service attachment resource. Populated if // private service connect is enabled. string service_attachment = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. PscAutomatedEndpoints is populated if private service connect + // is enabled if PscAutomatedConfig is set. + repeated PscAutomatedEndpoints psc_automated_endpoints = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto index 6bbb3dda0bcf..007e6d1c55ab 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto @@ -252,6 +252,16 @@ message UpsertDatapointsRequest { // A list of datapoints to be created/updated. repeated IndexDatapoint datapoints = 2; + + // Optional. Update mask is used to specify the fields to be overwritten in + // the datapoints by the update. The fields specified in the update_mask are + // relative to each IndexDatapoint inside datapoints, not the full request. + // + // Updatable fields: + // + // * Use `all_restricts` to update both restricts and numeric_restricts. + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -307,6 +317,25 @@ message NearestNeighborSearchOperationMetadata { // The `namespace` field is missing. NAMESPACE_MISSING = 7; + + // Generic catch-all error. Only used for validation failure where the + // root cause cannot be easily retrieved programmatically. + PARSING_ERROR = 8; + + // There are multiple restricts with the same `namespace` value. + DUPLICATE_NAMESPACE = 9; + + // Numeric restrict has operator specified in datapoint. + OP_IN_DATAPOINT = 10; + + // Numeric restrict has multiple values specified. + MULTIPLE_VALUES = 11; + + // Numeric restrict has invalid numeric value specified. + INVALID_NUMERIC_VALUE = 12; + + // File is not in UTF_8 format. + INVALID_ENCODING = 13; } // The error type of this record. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto index 164d991b669a..3fddf3acc845 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/prediction_service.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -37,19 +36,6 @@ service LlmUtilityService { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Perform a token counting. - rpc CountTokens(CountTokensRequest) returns (CountTokensResponse) { - option (google.api.http) = { - post: "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens" - body: "*" - additional_bindings { - post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens" - body: "*" - } - }; - option (google.api.method_signature) = "endpoint,instances"; - } - // Return a list of tokens based on the input text. rpc ComputeTokens(ComputeTokensRequest) returns (ComputeTokensResponse) { option (google.api.http) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto index 972536347b2e..900cd8c0d2a6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto @@ -211,12 +211,12 @@ message Model { // deploying this Model. The specification is ingested upon // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], // and all binaries it contains are copied and stored internally by Vertex AI. - // Not present for AutoML Models or Large Models. + // Not required for AutoML Models. ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; // Immutable. The path to the directory containing the Model artifact and any - // of its supporting files. Not present for AutoML Models or Large Models. + // of its supporting files. Not required for AutoML Models. string artifact_uri = 26 [(google.api.field_behavior) = IMMUTABLE]; // Output only. When this Model is deployed, its prediction resources are @@ -396,7 +396,8 @@ message Model { EncryptionSpec encryption_spec = 24; // Output only. Source of a model. It can either be automl training pipeline, - // custom training pipeline, BigQuery ML, or existing Vertex AI Model. + // custom training pipeline, BigQuery ML, or saved and tuned from Genie or + // Model Garden. ModelSourceInfo model_source_info = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -732,6 +733,10 @@ message Port { // Detail description of the source information of the model. message ModelSourceInfo { // Source of the model. + // Different from `objective` field, this `ModelSourceType` enum + // indicates the source from which the model was accessed or obtained, + // whereas the `objective` indicates the overall aim or function of this + // model. enum ModelSourceType { // Should not be used. MODEL_SOURCE_TYPE_UNSPECIFIED = 0; @@ -753,6 +758,9 @@ message ModelSourceInfo { // The Model is uploaded by text embedding finetuning pipeline. CUSTOM_TEXT_EMBEDDING = 6; + + // The Model is saved or tuned from Marketplace. + MARKETPLACE = 7; } // Type of the model source. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index b28a4e6ac714..80b0ba28fc3d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -263,6 +263,11 @@ message ModelDeploymentMonitoringBigQueryTable { // & analysis. Format: // `bq://.model_deployment_monitoring_._` string bigquery_table_path = 3; + + // Output only. The schema version of the request/response logging BigQuery + // table. Default to v1 if unset. + string request_response_logging_schema_version = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // ModelDeploymentMonitoringObjectiveConfig contains the pair of diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 4d8695ba0c70..116acce396c2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -185,6 +185,33 @@ service PipelineService { }; option (google.api.method_signature) = "name"; } + + // Batch cancel PipelineJobs. + // Firstly the server will check if all the jobs are in non-terminal states, + // and skip the jobs that are already terminated. + // If the operation failed, none of the pipeline jobs are cancelled. + // The server will poll the states of all the pipeline jobs periodically + // to check the cancellation status. + // This operation will return an LRO. + rpc BatchCancelPipelineJobs(BatchCancelPipelineJobsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchCancel" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + option (google.longrunning.operation_info) = { + response_type: "BatchCancelPipelineJobsResponse" + metadata_type: "BatchCancelPipelineJobsOperationMetadata" + }; + } +} + +// Runtime operation information for +// [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs]. +message BatchCancelPipelineJobsOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; } // Request message for @@ -330,6 +357,10 @@ message CreatePipelineJobRequest { // This value should be less than 128 characters, and valid characters // are `/[a-z][0-9]-/`. string pipeline_job_id = 3; + + // Optional. Whether to do component level validations before job creation. + // Currently we only support Google First Party Component/Pipelines. + bool preflight_validations = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -495,3 +526,34 @@ message CancelPipelineJobRequest { } ]; } + +// Request message for +// [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs]. +message BatchCancelPipelineJobsRequest { + // Required. The name of the PipelineJobs' parent resource. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/PipelineJob" + } + ]; + + // Required. The names of the PipelineJobs to cancel. + // A maximum of 32 PipelineJobs can be cancelled in a batch. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Response message for +// [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs]. +message BatchCancelPipelineJobsResponse { + // PipelineJobs cancelled. + repeated PipelineJob pipeline_jobs = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto index 60c132457e67..5eafeabf3bbe 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -666,8 +666,7 @@ message GenerateContentRequest { // // A `Tool` is a piece of code that enables the system to interact with // external systems to perform an action, or set of actions, outside of - // knowledge and scope of the model. The only supported tool is currently - // `Function` + // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. Per request settings for blocking unsafe content. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto index afb6e8415310..98e556fba3c0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto @@ -46,10 +46,10 @@ message PublisherModel { string resource_name = 2; // Use case (CUJ) of the resource. - string use_case = 3; + string use_case = 3 [deprecated = true]; // Description of the resource. - string description = 4; + string description = 4 [deprecated = true]; } } @@ -82,8 +82,20 @@ message PublisherModel { map references = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The title of the regional resource reference. + // Required. string title = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Title of the resource. + optional string resource_title = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use case (CUJ) of the resource. + optional string resource_use_case = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the resource. + optional string resource_description = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Rest API docs. @@ -96,6 +108,20 @@ message PublisherModel { string title = 2 [(google.api.field_behavior) = REQUIRED]; } + // Open notebooks. + message OpenNotebooks { + // Required. Regional resource references to notebooks. + repeated RegionalResourceReferences notebooks = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Open fine tuning pipelines. + message OpenFineTuningPipelines { + // Required. Regional resource references to fine tuning pipelines. + repeated RegionalResourceReferences fine_tuning_pipelines = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Model metadata that is needed for UploadModel or // DeployModel/CreateEndpoint requests. message Deploy { @@ -141,6 +167,13 @@ message PublisherModel { string public_artifact_uri = 9 [(google.api.field_behavior) = OPTIONAL]; } + // Configurations for PublisherModel GKE deployment + message DeployGke { + // Optional. GKE deployment configuration in yaml format. + repeated string gke_yaml_configs = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. To view Rest API docs. ViewRestApi view_rest_api = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -148,6 +181,10 @@ message PublisherModel { RegionalResourceReferences open_notebook = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open notebooks of the PublisherModel. + optional OpenNotebooks open_notebooks = 12 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Create application using the PublisherModel. RegionalResourceReferences create_application = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -156,6 +193,10 @@ message PublisherModel { RegionalResourceReferences open_fine_tuning_pipeline = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open fine-tuning pipelines of the PublisherModel. + optional OpenFineTuningPipelines open_fine_tuning_pipelines = 13 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open prompt-tuning pipeline of the PublisherModel. RegionalResourceReferences open_prompt_tuning_pipeline = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -167,6 +208,9 @@ message PublisherModel { // Optional. Deploy the PublisherModel to Vertex Endpoint. Deploy deploy = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deploy PublisherModel to Google Kubernetes Engine. + DeployGke deploy_gke = 14 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Open in Generation AI Studio. RegionalResourceReferences open_generation_ai_studio = 8 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto index f96a13f103b0..9d94191e62b4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto @@ -37,3 +37,16 @@ message PrivateServiceConnectConfig { // attachment. repeated string project_allowlist = 2; } + +// PscAutomatedEndpoints defines the output of the forwarding rule +// automatically created by each PscAutomationConfig. +message PscAutomatedEndpoints { + // Corresponding project_id in pscAutomationConfigs + string project_id = 1; + + // Corresponding network in pscAutomationConfigs. + string network = 2; + + // Ip Address created by the automated forwarding rule. + string match_address = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto index ae09ea2f4039..98f105eb4da0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto @@ -32,7 +32,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // // A `Tool` is a piece of code that enables the system to interact with // external systems to perform an action, or set of actions, outside of -// knowledge and scope of the model. +// knowledge and scope of the model. A Tool object should contain exactly +// one type of Tool. message Tool { // Optional. One or more function declarations to be passed to the model along // with the current user query. Model may decide to call a subset of these @@ -44,6 +45,15 @@ message Tool { // provided. repeated FunctionDeclaration function_declarations = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. System will always execute the provided retrieval tool(s) to get + // external knowledge to answer the prompt. Retrieval results are presented to + // the model for generation. + Retrieval retrieval = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specialized retrieval tool that is powered by Google search. + GoogleSearchRetrieval google_search_retrieval = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Structured representation of a function declaration as defined by the @@ -102,3 +112,32 @@ message FunctionResponse { // Required. The function response in JSON object format. google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; } + +// Defines a retrieval tool that model can call to access external knowledge. +message Retrieval { + oneof source { + // Set to use data source powered by Vertex AI Search. + VertexAISearch vertex_ai_search = 2; + } + + // Optional. Disable using the result from this tool in detecting grounding + // attribution. This does not affect how the result is given to the model for + // generation. + bool disable_attribution = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Retrieve from Vertex AI Search datastore for grounding. +// See https://cloud.google.com/vertex-ai-search-and-conversation +message VertexAISearch { + // Required. Fully-qualified Vertex AI Search's datastore resource ID. + // projects/<>/locations/<>/collections/<>/dataStores/<> + string datastore = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Tool to retrieve public web data for grounding, powered by Google. +message GoogleSearchRetrieval { + // Optional. Disable using the result from this tool in detecting grounding + // attribution. This does not affect how the result is given to the model for + // generation. + bool disable_attribution = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index ba715f13a095..603d444c9ef4 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -7744,7 +7744,8 @@ export namespace google { BQML = 3, MODEL_GARDEN = 4, GENIE = 5, - CUSTOM_TEXT_EMBEDDING = 6 + CUSTOM_TEXT_EMBEDDING = 6, + MARKETPLACE = 7 } } @@ -10899,9 +10900,6 @@ export namespace google { /** Scheduling disableRetries */ disableRetries?: (boolean|null); - - /** Scheduling maxWaitDuration */ - maxWaitDuration?: (google.protobuf.IDuration|null); } /** Represents a Scheduling. */ @@ -10922,9 +10920,6 @@ export namespace google { /** Scheduling disableRetries. */ public disableRetries: boolean; - /** Scheduling maxWaitDuration. */ - public maxWaitDuration?: (google.protobuf.IDuration|null); - /** * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set @@ -41377,6 +41372,9 @@ export namespace google { /** IndexPrivateEndpoints serviceAttachment */ serviceAttachment?: (string|null); + + /** IndexPrivateEndpoints pscAutomatedEndpoints */ + pscAutomatedEndpoints?: (google.cloud.aiplatform.v1.IPscAutomatedEndpoints[]|null); } /** Represents an IndexPrivateEndpoints. */ @@ -41394,6 +41392,9 @@ export namespace google { /** IndexPrivateEndpoints serviceAttachment. */ public serviceAttachment: string; + /** IndexPrivateEndpoints pscAutomatedEndpoints. */ + public pscAutomatedEndpoints: google.cloud.aiplatform.v1.IPscAutomatedEndpoints[]; + /** * Creates a new IndexPrivateEndpoints instance using the specified properties. * @param [properties] Properties to set @@ -41575,6 +41576,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PscAutomatedEndpoints. */ + interface IPscAutomatedEndpoints { + + /** PscAutomatedEndpoints projectId */ + projectId?: (string|null); + + /** PscAutomatedEndpoints network */ + network?: (string|null); + + /** PscAutomatedEndpoints matchAddress */ + matchAddress?: (string|null); + } + + /** Represents a PscAutomatedEndpoints. */ + class PscAutomatedEndpoints implements IPscAutomatedEndpoints { + + /** + * Constructs a new PscAutomatedEndpoints. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPscAutomatedEndpoints); + + /** PscAutomatedEndpoints projectId. */ + public projectId: string; + + /** PscAutomatedEndpoints network. */ + public network: string; + + /** PscAutomatedEndpoints matchAddress. */ + public matchAddress: string; + + /** + * Creates a new PscAutomatedEndpoints instance using the specified properties. + * @param [properties] Properties to set + * @returns PscAutomatedEndpoints instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPscAutomatedEndpoints): google.cloud.aiplatform.v1.PscAutomatedEndpoints; + + /** + * Encodes the specified PscAutomatedEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1.PscAutomatedEndpoints.verify|verify} messages. + * @param message PscAutomatedEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPscAutomatedEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PscAutomatedEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PscAutomatedEndpoints.verify|verify} messages. + * @param message PscAutomatedEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPscAutomatedEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader 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.PscAutomatedEndpoints; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PscAutomatedEndpoints + * @throws {Error} If the payload is not 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.PscAutomatedEndpoints; + + /** + * Verifies a PscAutomatedEndpoints message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PscAutomatedEndpoints message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PscAutomatedEndpoints + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PscAutomatedEndpoints; + + /** + * Creates a plain object from a PscAutomatedEndpoints message. Also converts values to other types if specified. + * @param message PscAutomatedEndpoints + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PscAutomatedEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PscAutomatedEndpoints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PscAutomatedEndpoints + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents an IndexEndpointService */ class IndexEndpointService extends $protobuf.rpc.Service { @@ -44394,6 +44504,9 @@ export namespace google { /** UpsertDatapointsRequest datapoints */ datapoints?: (google.cloud.aiplatform.v1.IIndexDatapoint[]|null); + + /** UpsertDatapointsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } /** Represents an UpsertDatapointsRequest. */ @@ -44411,6 +44524,9 @@ export namespace google { /** UpsertDatapointsRequest datapoints. */ public datapoints: google.cloud.aiplatform.v1.IIndexDatapoint[]; + /** UpsertDatapointsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + /** * Creates a new UpsertDatapointsRequest instance using the specified properties. * @param [properties] Properties to set @@ -45011,7 +45127,13 @@ export namespace google { INVALID_AVRO_SYNTAX = 4, INVALID_EMBEDDING_ID = 5, EMBEDDING_SIZE_MISMATCH = 6, - NAMESPACE_MISSING = 7 + NAMESPACE_MISSING = 7, + PARSING_ERROR = 8, + DUPLICATE_NAMESPACE = 9, + OP_IN_DATAPOINT = 10, + MULTIPLE_VALUES = 11, + INVALID_NUMERIC_VALUE = 12, + INVALID_ENCODING = 13 } } @@ -50921,6 +51043,9 @@ export namespace google { /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ bigqueryTablePath?: (string|null); + + /** ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion */ + requestResponseLoggingSchemaVersion?: (string|null); } /** Represents a ModelDeploymentMonitoringBigQueryTable. */ @@ -50941,6 +51066,9 @@ export namespace google { /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ public bigqueryTablePath: string; + /** ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion. */ + public requestResponseLoggingSchemaVersion: string; + /** * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set @@ -67807,12 +67935,18 @@ export namespace google { /** CallToAction openNotebook */ openNotebook?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** CallToAction openNotebooks */ + openNotebooks?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks|null); + /** CallToAction createApplication */ createApplication?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); /** CallToAction openFineTuningPipeline */ openFineTuningPipeline?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** CallToAction openFineTuningPipelines */ + openFineTuningPipelines?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null); + /** CallToAction openPromptTuningPipeline */ openPromptTuningPipeline?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); @@ -67822,6 +67956,9 @@ export namespace google { /** CallToAction deploy */ deploy?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeploy|null); + /** CallToAction deployGke */ + deployGke?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke|null); + /** CallToAction openGenerationAiStudio */ openGenerationAiStudio?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); @@ -67847,12 +67984,18 @@ export namespace google { /** CallToAction openNotebook. */ public openNotebook?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** CallToAction openNotebooks. */ + public openNotebooks?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks|null); + /** CallToAction createApplication. */ public createApplication?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); /** CallToAction openFineTuningPipeline. */ public openFineTuningPipeline?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** CallToAction openFineTuningPipelines. */ + public openFineTuningPipelines?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null); + /** CallToAction openPromptTuningPipeline. */ public openPromptTuningPipeline?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); @@ -67862,6 +68005,9 @@ export namespace google { /** CallToAction deploy. */ public deploy?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeploy|null); + /** CallToAction deployGke. */ + public deployGke?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke|null); + /** CallToAction openGenerationAiStudio. */ public openGenerationAiStudio?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); @@ -67871,6 +68017,12 @@ export namespace google { /** CallToAction openEvaluationPipeline. */ public openEvaluationPipeline?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** CallToAction _openNotebooks. */ + public _openNotebooks?: "openNotebooks"; + + /** CallToAction _openFineTuningPipelines. */ + public _openFineTuningPipelines?: "openFineTuningPipelines"; + /** * Creates a new CallToAction instance using the specified properties. * @param [properties] Properties to set @@ -67959,6 +68111,15 @@ export namespace google { /** RegionalResourceReferences title */ title?: (string|null); + + /** RegionalResourceReferences resourceTitle */ + resourceTitle?: (string|null); + + /** RegionalResourceReferences resourceUseCase */ + resourceUseCase?: (string|null); + + /** RegionalResourceReferences resourceDescription */ + resourceDescription?: (string|null); } /** Represents a RegionalResourceReferences. */ @@ -67976,6 +68137,24 @@ export namespace google { /** RegionalResourceReferences title. */ public title: string; + /** RegionalResourceReferences resourceTitle. */ + public resourceTitle?: (string|null); + + /** RegionalResourceReferences resourceUseCase. */ + public resourceUseCase?: (string|null); + + /** RegionalResourceReferences resourceDescription. */ + public resourceDescription?: (string|null); + + /** RegionalResourceReferences _resourceTitle. */ + public _resourceTitle?: "resourceTitle"; + + /** RegionalResourceReferences _resourceUseCase. */ + public _resourceUseCase?: "resourceUseCase"; + + /** RegionalResourceReferences _resourceDescription. */ + public _resourceDescription?: "resourceDescription"; + /** * Creates a new RegionalResourceReferences instance using the specified properties. * @param [properties] Properties to set @@ -68157,6 +68336,200 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an OpenNotebooks. */ + interface IOpenNotebooks { + + /** OpenNotebooks notebooks */ + notebooks?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences[]|null); + } + + /** Represents an OpenNotebooks. */ + class OpenNotebooks implements IOpenNotebooks { + + /** + * Constructs a new OpenNotebooks. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks); + + /** OpenNotebooks notebooks. */ + public notebooks: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences[]; + + /** + * Creates a new OpenNotebooks instance using the specified properties. + * @param [properties] Properties to set + * @returns OpenNotebooks instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks): google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Encodes the specified OpenNotebooks message. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @param message OpenNotebooks message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OpenNotebooks message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @param message OpenNotebooks message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OpenNotebooks message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpenNotebooks + * @throws {Error} If the payload is not a reader 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.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Decodes an OpenNotebooks message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpenNotebooks + * @throws {Error} If the payload is not 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.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Verifies an OpenNotebooks message. + * @param message Plain 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 OpenNotebooks message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpenNotebooks + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Creates a plain object from an OpenNotebooks message. Also converts values to other types if specified. + * @param message OpenNotebooks + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OpenNotebooks to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OpenNotebooks + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OpenFineTuningPipelines. */ + interface IOpenFineTuningPipelines { + + /** OpenFineTuningPipelines fineTuningPipelines */ + fineTuningPipelines?: (google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences[]|null); + } + + /** Represents an OpenFineTuningPipelines. */ + class OpenFineTuningPipelines implements IOpenFineTuningPipelines { + + /** + * Constructs a new OpenFineTuningPipelines. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines); + + /** OpenFineTuningPipelines fineTuningPipelines. */ + public fineTuningPipelines: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences[]; + + /** + * Creates a new OpenFineTuningPipelines instance using the specified properties. + * @param [properties] Properties to set + * @returns OpenFineTuningPipelines instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines): google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Encodes the specified OpenFineTuningPipelines message. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @param message OpenFineTuningPipelines message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OpenFineTuningPipelines message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @param message OpenFineTuningPipelines message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader 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.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpenFineTuningPipelines + * @throws {Error} If the payload is not 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.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Verifies an OpenFineTuningPipelines message. + * @param message Plain 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 OpenFineTuningPipelines message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpenFineTuningPipelines + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Creates a plain object from an OpenFineTuningPipelines message. Also converts values to other types if specified. + * @param message OpenFineTuningPipelines + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OpenFineTuningPipelines to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OpenFineTuningPipelines + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Deploy. */ interface IDeploy { @@ -68304,6 +68677,103 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a DeployGke. */ + interface IDeployGke { + + /** DeployGke gkeYamlConfigs */ + gkeYamlConfigs?: (string[]|null); + } + + /** Represents a DeployGke. */ + class DeployGke implements IDeployGke { + + /** + * Constructs a new DeployGke. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke); + + /** DeployGke gkeYamlConfigs. */ + public gkeYamlConfigs: string[]; + + /** + * Creates a new DeployGke instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployGke instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke): google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke; + + /** + * Encodes the specified DeployGke message. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @param message DeployGke message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeployGke message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @param message DeployGke message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeployGke message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeployGke + * @throws {Error} If the payload is not a reader 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.PublisherModel.CallToAction.DeployGke; + + /** + * Decodes a DeployGke message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeployGke + * @throws {Error} If the payload is not 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.PublisherModel.CallToAction.DeployGke; + + /** + * Verifies a DeployGke message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeployGke message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployGke + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke; + + /** + * Creates a plain object from a DeployGke message. Also converts values to other types if specified. + * @param message DeployGke + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeployGke to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeployGke + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** OpenSourceCategory enum. */ @@ -101415,6 +101885,9 @@ export namespace google { /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ bigqueryTablePath?: (string|null); + + /** ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion */ + requestResponseLoggingSchemaVersion?: (string|null); } /** Represents a ModelDeploymentMonitoringBigQueryTable. */ @@ -101435,6 +101908,9 @@ export namespace google { /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ public bigqueryTablePath: string; + /** ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion. */ + public requestResponseLoggingSchemaVersion: string; + /** * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set @@ -104588,7 +105064,8 @@ export namespace google { BQML = 3, MODEL_GARDEN = 4, GENIE = 5, - CUSTOM_TEXT_EMBEDDING = 6 + CUSTOM_TEXT_EMBEDDING = 6, + MARKETPLACE = 7 } } @@ -106186,6 +106663,9 @@ export namespace google { /** Candidate citationMetadata */ citationMetadata?: (google.cloud.aiplatform.v1beta1.ICitationMetadata|null); + + /** Candidate groundingMetadata */ + groundingMetadata?: (google.cloud.aiplatform.v1beta1.IGroundingMetadata|null); } /** Represents a Candidate. */ @@ -106215,6 +106695,9 @@ export namespace google { /** Candidate citationMetadata. */ public citationMetadata?: (google.cloud.aiplatform.v1beta1.ICitationMetadata|null); + /** Candidate groundingMetadata. */ + public groundingMetadata?: (google.cloud.aiplatform.v1beta1.IGroundingMetadata|null); + /** Candidate _finishMessage. */ public _finishMessage?: "finishMessage"; @@ -106309,11 +106792,450 @@ export namespace google { } } + /** Properties of a Segment. */ + interface ISegment { + + /** Segment partIndex */ + partIndex?: (number|null); + + /** Segment startIndex */ + startIndex?: (number|null); + + /** Segment endIndex */ + endIndex?: (number|null); + } + + /** Represents a Segment. */ + class Segment implements ISegment { + + /** + * Constructs a new Segment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISegment); + + /** Segment partIndex. */ + public partIndex: number; + + /** Segment startIndex. */ + public startIndex: number; + + /** Segment endIndex. */ + public endIndex: number; + + /** + * Creates a new Segment instance using the specified properties. + * @param [properties] Properties to set + * @returns Segment instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISegment): google.cloud.aiplatform.v1beta1.Segment; + + /** + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Segment.verify|verify} messages. + * @param message Segment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Segment.verify|verify} messages. + * @param message Segment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Segment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Segment; + + /** + * Decodes a Segment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Segment; + + /** + * Verifies a Segment message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Segment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Segment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Segment; + + /** + * Creates a plain object from a Segment message. Also converts values to other types if specified. + * @param message Segment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Segment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Segment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Segment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GroundingAttribution. */ + interface IGroundingAttribution { + + /** GroundingAttribution web */ + web?: (google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null); + + /** GroundingAttribution segment */ + segment?: (google.cloud.aiplatform.v1beta1.ISegment|null); + + /** GroundingAttribution confidenceScore */ + confidenceScore?: (number|null); + } + + /** Represents a GroundingAttribution. */ + class GroundingAttribution implements IGroundingAttribution { + + /** + * Constructs a new GroundingAttribution. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGroundingAttribution); + + /** GroundingAttribution web. */ + public web?: (google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null); + + /** GroundingAttribution segment. */ + public segment?: (google.cloud.aiplatform.v1beta1.ISegment|null); + + /** GroundingAttribution confidenceScore. */ + public confidenceScore?: (number|null); + + /** GroundingAttribution reference. */ + public reference?: "web"; + + /** GroundingAttribution _confidenceScore. */ + public _confidenceScore?: "confidenceScore"; + + /** + * Creates a new GroundingAttribution instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundingAttribution instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGroundingAttribution): google.cloud.aiplatform.v1beta1.GroundingAttribution; + + /** + * Encodes the specified GroundingAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * @param message GroundingAttribution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGroundingAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundingAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * @param message GroundingAttribution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGroundingAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundingAttribution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundingAttribution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GroundingAttribution; + + /** + * Decodes a GroundingAttribution message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundingAttribution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GroundingAttribution; + + /** + * Verifies a GroundingAttribution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GroundingAttribution message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundingAttribution + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingAttribution; + + /** + * Creates a plain object from a GroundingAttribution message. Also converts values to other types if specified. + * @param message GroundingAttribution + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundingAttribution to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundingAttribution + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GroundingAttribution { + + /** Properties of a Web. */ + interface IWeb { + + /** Web uri */ + uri?: (string|null); + + /** Web title */ + title?: (string|null); + } + + /** Represents a Web. */ + class Web implements IWeb { + + /** + * Constructs a new Web. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb); + + /** Web uri. */ + public uri: string; + + /** Web title. */ + public title: string; + + /** + * Creates a new Web instance using the specified properties. + * @param [properties] Properties to set + * @returns Web instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; + + /** + * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * @param message Web message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * @param message Web message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Web message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Web + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; + + /** + * Decodes a Web message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Web + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; + + /** + * Verifies a Web message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Web message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Web + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; + + /** + * Creates a plain object from a Web message. Also converts values to other types if specified. + * @param message Web + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.Web, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Web to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Web + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GroundingMetadata. */ + interface IGroundingMetadata { + + /** GroundingMetadata webSearchQueries */ + webSearchQueries?: (string[]|null); + + /** GroundingMetadata groundingAttributions */ + groundingAttributions?: (google.cloud.aiplatform.v1beta1.IGroundingAttribution[]|null); + } + + /** Represents a GroundingMetadata. */ + class GroundingMetadata implements IGroundingMetadata { + + /** + * Constructs a new GroundingMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGroundingMetadata); + + /** GroundingMetadata webSearchQueries. */ + public webSearchQueries: string[]; + + /** GroundingMetadata groundingAttributions. */ + public groundingAttributions: google.cloud.aiplatform.v1beta1.IGroundingAttribution[]; + + /** + * Creates a new GroundingMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundingMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGroundingMetadata): google.cloud.aiplatform.v1beta1.GroundingMetadata; + + /** + * Encodes the specified GroundingMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingMetadata.verify|verify} messages. + * @param message GroundingMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGroundingMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundingMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingMetadata.verify|verify} messages. + * @param message GroundingMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGroundingMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundingMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GroundingMetadata; + + /** + * Decodes a GroundingMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GroundingMetadata; + + /** + * Verifies a GroundingMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GroundingMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundingMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingMetadata; + + /** + * Creates a plain object from a GroundingMetadata message. Also converts values to other types if specified. + * @param message GroundingMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundingMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundingMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Tool. */ interface ITool { /** Tool functionDeclarations */ functionDeclarations?: (google.cloud.aiplatform.v1beta1.IFunctionDeclaration[]|null); + + /** Tool retrieval */ + retrieval?: (google.cloud.aiplatform.v1beta1.IRetrieval|null); + + /** Tool googleSearchRetrieval */ + googleSearchRetrieval?: (google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval|null); } /** Represents a Tool. */ @@ -106328,6 +107250,12 @@ export namespace google { /** Tool functionDeclarations. */ public functionDeclarations: google.cloud.aiplatform.v1beta1.IFunctionDeclaration[]; + /** Tool retrieval. */ + public retrieval?: (google.cloud.aiplatform.v1beta1.IRetrieval|null); + + /** Tool googleSearchRetrieval. */ + public googleSearchRetrieval?: (google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval|null); + /** * Creates a new Tool instance using the specified properties. * @param [properties] Properties to set @@ -106721,6 +107649,306 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a Retrieval. */ + interface IRetrieval { + + /** Retrieval vertexAiSearch */ + vertexAiSearch?: (google.cloud.aiplatform.v1beta1.IVertexAISearch|null); + + /** Retrieval disableAttribution */ + disableAttribution?: (boolean|null); + } + + /** Represents a Retrieval. */ + class Retrieval implements IRetrieval { + + /** + * Constructs a new Retrieval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRetrieval); + + /** Retrieval vertexAiSearch. */ + public vertexAiSearch?: (google.cloud.aiplatform.v1beta1.IVertexAISearch|null); + + /** Retrieval disableAttribution. */ + public disableAttribution: boolean; + + /** Retrieval source. */ + public source?: "vertexAiSearch"; + + /** + * Creates a new Retrieval instance using the specified properties. + * @param [properties] Properties to set + * @returns Retrieval instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IRetrieval): google.cloud.aiplatform.v1beta1.Retrieval; + + /** + * Encodes the specified Retrieval message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Retrieval.verify|verify} messages. + * @param message Retrieval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IRetrieval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Retrieval message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Retrieval.verify|verify} messages. + * @param message Retrieval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRetrieval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Retrieval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Retrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Retrieval; + + /** + * Decodes a Retrieval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Retrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Retrieval; + + /** + * Verifies a Retrieval message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Retrieval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Retrieval + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Retrieval; + + /** + * Creates a plain object from a Retrieval message. Also converts values to other types if specified. + * @param message Retrieval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Retrieval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Retrieval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Retrieval + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VertexAISearch. */ + interface IVertexAISearch { + + /** VertexAISearch datastore */ + datastore?: (string|null); + } + + /** Represents a VertexAISearch. */ + class VertexAISearch implements IVertexAISearch { + + /** + * Constructs a new VertexAISearch. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IVertexAISearch); + + /** VertexAISearch datastore. */ + public datastore: string; + + /** + * Creates a new VertexAISearch instance using the specified properties. + * @param [properties] Properties to set + * @returns VertexAISearch instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IVertexAISearch): google.cloud.aiplatform.v1beta1.VertexAISearch; + + /** + * Encodes the specified VertexAISearch message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexAISearch.verify|verify} messages. + * @param message VertexAISearch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IVertexAISearch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VertexAISearch message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexAISearch.verify|verify} messages. + * @param message VertexAISearch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IVertexAISearch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VertexAISearch message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VertexAISearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.VertexAISearch; + + /** + * Decodes a VertexAISearch message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VertexAISearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.VertexAISearch; + + /** + * Verifies a VertexAISearch message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VertexAISearch message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VertexAISearch + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.VertexAISearch; + + /** + * Creates a plain object from a VertexAISearch message. Also converts values to other types if specified. + * @param message VertexAISearch + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.VertexAISearch, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VertexAISearch to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VertexAISearch + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GoogleSearchRetrieval. */ + interface IGoogleSearchRetrieval { + + /** GoogleSearchRetrieval disableAttribution */ + disableAttribution?: (boolean|null); + } + + /** Represents a GoogleSearchRetrieval. */ + class GoogleSearchRetrieval implements IGoogleSearchRetrieval { + + /** + * Constructs a new GoogleSearchRetrieval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval); + + /** GoogleSearchRetrieval disableAttribution. */ + public disableAttribution: boolean; + + /** + * Creates a new GoogleSearchRetrieval instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleSearchRetrieval instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval): google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval; + + /** + * Encodes the specified GoogleSearchRetrieval message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.verify|verify} messages. + * @param message GoogleSearchRetrieval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GoogleSearchRetrieval message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.verify|verify} messages. + * @param message GoogleSearchRetrieval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GoogleSearchRetrieval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GoogleSearchRetrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval; + + /** + * Decodes a GoogleSearchRetrieval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GoogleSearchRetrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval; + + /** + * Verifies a GoogleSearchRetrieval message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GoogleSearchRetrieval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GoogleSearchRetrieval + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval; + + /** + * Creates a plain object from a GoogleSearchRetrieval message. Also converts values to other types if specified. + * @param message GoogleSearchRetrieval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GoogleSearchRetrieval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GoogleSearchRetrieval + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Type enum. */ enum Type { TYPE_UNSPECIFIED = 0, @@ -107749,9 +108977,6 @@ export namespace google { /** Scheduling disableRetries */ disableRetries?: (boolean|null); - - /** Scheduling maxWaitDuration */ - maxWaitDuration?: (google.protobuf.IDuration|null); } /** Represents a Scheduling. */ @@ -107772,9 +108997,6 @@ export namespace google { /** Scheduling disableRetries. */ public disableRetries: boolean; - /** Scheduling maxWaitDuration. */ - public maxWaitDuration?: (google.protobuf.IDuration|null); - /** * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set @@ -119805,6 +121027,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PscAutomatedEndpoints. */ + interface IPscAutomatedEndpoints { + + /** PscAutomatedEndpoints projectId */ + projectId?: (string|null); + + /** PscAutomatedEndpoints network */ + network?: (string|null); + + /** PscAutomatedEndpoints matchAddress */ + matchAddress?: (string|null); + } + + /** Represents a PscAutomatedEndpoints. */ + class PscAutomatedEndpoints implements IPscAutomatedEndpoints { + + /** + * Constructs a new PscAutomatedEndpoints. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints); + + /** PscAutomatedEndpoints projectId. */ + public projectId: string; + + /** PscAutomatedEndpoints network. */ + public network: string; + + /** PscAutomatedEndpoints matchAddress. */ + public matchAddress: string; + + /** + * Creates a new PscAutomatedEndpoints instance using the specified properties. + * @param [properties] Properties to set + * @returns PscAutomatedEndpoints instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints): google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints; + + /** + * Encodes the specified PscAutomatedEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.verify|verify} messages. + * @param message PscAutomatedEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PscAutomatedEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.verify|verify} messages. + * @param message PscAutomatedEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints; + + /** + * Verifies a PscAutomatedEndpoints message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PscAutomatedEndpoints message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PscAutomatedEndpoints + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints; + + /** + * Creates a plain object from a PscAutomatedEndpoints message. Also converts values to other types if specified. + * @param message PscAutomatedEndpoints + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PscAutomatedEndpoints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PscAutomatedEndpoints + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents a FeatureOnlineStoreAdminService */ class FeatureOnlineStoreAdminService extends $protobuf.rpc.Service { @@ -138990,6 +140321,9 @@ export namespace google { /** IndexPrivateEndpoints serviceAttachment */ serviceAttachment?: (string|null); + + /** IndexPrivateEndpoints pscAutomatedEndpoints */ + pscAutomatedEndpoints?: (google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints[]|null); } /** Represents an IndexPrivateEndpoints. */ @@ -139007,6 +140341,9 @@ export namespace google { /** IndexPrivateEndpoints serviceAttachment. */ public serviceAttachment: string; + /** IndexPrivateEndpoints pscAutomatedEndpoints. */ + public pscAutomatedEndpoints: google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints[]; + /** * Creates a new IndexPrivateEndpoints instance using the specified properties. * @param [properties] Properties to set @@ -141904,6 +143241,9 @@ export namespace google { /** UpsertDatapointsRequest datapoints */ datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); + + /** UpsertDatapointsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } /** Represents an UpsertDatapointsRequest. */ @@ -141921,6 +143261,9 @@ export namespace google { /** UpsertDatapointsRequest datapoints. */ public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; + /** UpsertDatapointsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + /** * Creates a new UpsertDatapointsRequest instance using the specified properties. * @param [properties] Properties to set @@ -142521,7 +143864,13 @@ export namespace google { INVALID_AVRO_SYNTAX = 4, INVALID_EMBEDDING_ID = 5, EMBEDDING_SIZE_MISMATCH = 6, - NAMESPACE_MISSING = 7 + NAMESPACE_MISSING = 7, + PARSING_ERROR = 8, + DUPLICATE_NAMESPACE = 9, + OP_IN_DATAPOINT = 10, + MULTIPLE_VALUES = 11, + INVALID_NUMERIC_VALUE = 12, + INVALID_ENCODING = 13 } } @@ -149398,20 +150747,6 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LlmUtilityService; - /** - * Calls CountTokens. - * @param request CountTokensRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CountTokensResponse - */ - public countTokens(request: google.cloud.aiplatform.v1beta1.ICountTokensRequest, callback: google.cloud.aiplatform.v1beta1.LlmUtilityService.CountTokensCallback): void; - - /** - * Calls CountTokens. - * @param request CountTokensRequest message or plain object - * @returns Promise - */ - public countTokens(request: google.cloud.aiplatform.v1beta1.ICountTokensRequest): Promise; - /** * Calls ComputeTokens. * @param request ComputeTokensRequest message or plain object @@ -149429,13 +150764,6 @@ export namespace google { namespace LlmUtilityService { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.LlmUtilityService|countTokens}. - * @param error Error, if any - * @param [response] CountTokensResponse - */ - type CountTokensCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CountTokensResponse) => void; - /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.LlmUtilityService|computeTokens}. * @param error Error, if any @@ -149747,11 +151075,11 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PredictionService */ - class PredictionService extends $protobuf.rpc.Service { + /** Represents a MatchService */ + class MatchService extends $protobuf.rpc.Service { /** - * Constructs a new PredictionService service. + * Constructs a new MatchService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -149759,10528 +151087,10105 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new PredictionService service using the specified rpc implementation. + * Creates new MatchService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MatchService; /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PredictResponse + * Calls FindNeighbors. + * @param request FindNeighborsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FindNeighborsResponse */ - public predict(request: google.cloud.aiplatform.v1beta1.IPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.PredictCallback): void; + public findNeighbors(request: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest, callback: google.cloud.aiplatform.v1beta1.MatchService.FindNeighborsCallback): void; /** - * Calls Predict. - * @param request PredictRequest message or plain object + * Calls FindNeighbors. + * @param request FindNeighborsRequest message or plain object * @returns Promise */ - public predict(request: google.cloud.aiplatform.v1beta1.IPredictRequest): Promise; + public findNeighbors(request: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest): Promise; /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HttpBody + * Calls ReadIndexDatapoints. + * @param request ReadIndexDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadIndexDatapointsResponse */ - public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.RawPredictCallback): void; + public readIndexDatapoints(request: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.MatchService.ReadIndexDatapointsCallback): void; /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object + * Calls ReadIndexDatapoints. + * @param request ReadIndexDatapointsRequest message or plain object * @returns Promise */ - public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest): Promise; + public readIndexDatapoints(request: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest): Promise; + } - /** - * Calls DirectPredict. - * @param request DirectPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DirectPredictResponse - */ - public directPredict(request: google.cloud.aiplatform.v1beta1.IDirectPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.DirectPredictCallback): void; + namespace MatchService { /** - * Calls DirectPredict. - * @param request DirectPredictRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|findNeighbors}. + * @param error Error, if any + * @param [response] FindNeighborsResponse */ - public directPredict(request: google.cloud.aiplatform.v1beta1.IDirectPredictRequest): Promise; + type FindNeighborsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse) => void; /** - * Calls DirectRawPredict. - * @param request DirectRawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DirectRawPredictResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|readIndexDatapoints}. + * @param error Error, if any + * @param [response] ReadIndexDatapointsResponse */ - public directRawPredict(request: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.DirectRawPredictCallback): void; + type ReadIndexDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse) => void; + } - /** - * Calls DirectRawPredict. - * @param request DirectRawPredictRequest message or plain object - * @returns Promise - */ - public directRawPredict(request: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest): Promise; + /** Properties of a FindNeighborsRequest. */ + interface IFindNeighborsRequest { - /** - * Calls StreamDirectPredict. - * @param request StreamDirectPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamDirectPredictResponse - */ - public streamDirectPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectPredictCallback): void; + /** FindNeighborsRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** - * Calls StreamDirectPredict. - * @param request StreamDirectPredictRequest message or plain object - * @returns Promise - */ - public streamDirectPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest): Promise; + /** FindNeighborsRequest deployedIndexId */ + deployedIndexId?: (string|null); - /** - * Calls StreamDirectRawPredict. - * @param request StreamDirectRawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamDirectRawPredictResponse - */ - public streamDirectRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectRawPredictCallback): void; + /** FindNeighborsRequest queries */ + queries?: (google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery[]|null); - /** - * Calls StreamDirectRawPredict. - * @param request StreamDirectRawPredictRequest message or plain object - * @returns Promise - */ - public streamDirectRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest): Promise; + /** FindNeighborsRequest returnFullDatapoint */ + returnFullDatapoint?: (boolean|null); + } - /** - * Calls StreamingPredict. - * @param request StreamingPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingPredictResponse - */ - public streamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamingPredictCallback): void; + /** Represents a FindNeighborsRequest. */ + class FindNeighborsRequest implements IFindNeighborsRequest { /** - * Calls StreamingPredict. - * @param request StreamingPredictRequest message or plain object - * @returns Promise + * Constructs a new FindNeighborsRequest. + * @param [properties] Properties to set */ - public streamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest); - /** - * Calls ServerStreamingPredict. - * @param request StreamingPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingPredictResponse - */ - public serverStreamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.ServerStreamingPredictCallback): void; + /** FindNeighborsRequest indexEndpoint. */ + public indexEndpoint: string; - /** - * Calls ServerStreamingPredict. - * @param request StreamingPredictRequest message or plain object - * @returns Promise - */ - public serverStreamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest): Promise; + /** FindNeighborsRequest deployedIndexId. */ + public deployedIndexId: string; + + /** FindNeighborsRequest queries. */ + public queries: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery[]; + + /** FindNeighborsRequest returnFullDatapoint. */ + public returnFullDatapoint: boolean; /** - * Calls StreamingRawPredict. - * @param request StreamingRawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingRawPredictResponse + * Creates a new FindNeighborsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns FindNeighborsRequest instance */ - public streamingRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamingRawPredictCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; /** - * Calls StreamingRawPredict. - * @param request StreamingRawPredictRequest message or plain object - * @returns Promise + * Encodes the specified FindNeighborsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. + * @param message FindNeighborsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public streamingRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExplainResponse + * Encodes the specified FindNeighborsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. + * @param message FindNeighborsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public explain(request: google.cloud.aiplatform.v1beta1.IExplainRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.ExplainCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @returns Promise + * Decodes a FindNeighborsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindNeighborsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public explain(request: google.cloud.aiplatform.v1beta1.IExplainRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; /** - * Calls CountTokens. - * @param request CountTokensRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CountTokensResponse + * Decodes a FindNeighborsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindNeighborsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public countTokens(request: google.cloud.aiplatform.v1beta1.ICountTokensRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.CountTokensCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; /** - * Calls CountTokens. - * @param request CountTokensRequest message or plain object - * @returns Promise + * Verifies a FindNeighborsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public countTokens(request: google.cloud.aiplatform.v1beta1.ICountTokensRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GenerateContent. - * @param request GenerateContentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GenerateContentResponse + * Creates a FindNeighborsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindNeighborsRequest */ - public generateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.GenerateContentCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; /** - * Calls GenerateContent. - * @param request GenerateContentRequest message or plain object - * @returns Promise + * Creates a plain object from a FindNeighborsRequest message. Also converts values to other types if specified. + * @param message FindNeighborsRequest + * @param [options] Conversion options + * @returns Plain object */ - public generateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls StreamGenerateContent. - * @param request GenerateContentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GenerateContentResponse + * Converts this FindNeighborsRequest to JSON. + * @returns JSON object */ - public streamGenerateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamGenerateContentCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls StreamGenerateContent. - * @param request GenerateContentRequest message or plain object - * @returns Promise + * Gets the default type url for FindNeighborsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public streamGenerateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PredictionService { + namespace FindNeighborsRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|predict}. - * @param error Error, if any - * @param [response] PredictResponse - */ - type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PredictResponse) => void; + /** Properties of a Query. */ + interface IQuery { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|rawPredict}. - * @param error Error, if any - * @param [response] HttpBody - */ - type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; + /** Query datapoint */ + datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directPredict}. - * @param error Error, if any - * @param [response] DirectPredictResponse - */ - type DirectPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DirectPredictResponse) => void; + /** Query neighborCount */ + neighborCount?: (number|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directRawPredict}. - * @param error Error, if any - * @param [response] DirectRawPredictResponse - */ - type DirectRawPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DirectRawPredictResponse) => void; + /** Query perCrowdingAttributeNeighborCount */ + perCrowdingAttributeNeighborCount?: (number|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectPredict}. - * @param error Error, if any - * @param [response] StreamDirectPredictResponse - */ - type StreamDirectPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse) => void; + /** Query approximateNeighborCount */ + approximateNeighborCount?: (number|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectRawPredict}. - * @param error Error, if any - * @param [response] StreamDirectRawPredictResponse - */ - type StreamDirectRawPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse) => void; + /** Query fractionLeafNodesToSearchOverride */ + fractionLeafNodesToSearchOverride?: (number|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingPredict}. - * @param error Error, if any - * @param [response] StreamingPredictResponse - */ - type StreamingPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamingPredictResponse) => void; + /** Represents a Query. */ + class Query implements IQuery { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|serverStreamingPredict}. - * @param error Error, if any - * @param [response] StreamingPredictResponse - */ - type ServerStreamingPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamingPredictResponse) => void; + /** + * Constructs a new Query. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingRawPredict}. - * @param error Error, if any - * @param [response] StreamingRawPredictResponse - */ - type StreamingRawPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse) => void; + /** Query datapoint. */ + public datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|explain}. - * @param error Error, if any - * @param [response] ExplainResponse - */ - type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ExplainResponse) => void; + /** Query neighborCount. */ + public neighborCount: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|countTokens}. - * @param error Error, if any - * @param [response] CountTokensResponse - */ - type CountTokensCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CountTokensResponse) => void; + /** Query perCrowdingAttributeNeighborCount. */ + public perCrowdingAttributeNeighborCount: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|generateContent}. - * @param error Error, if any - * @param [response] GenerateContentResponse - */ - type GenerateContentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.GenerateContentResponse) => void; + /** Query approximateNeighborCount. */ + public approximateNeighborCount: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamGenerateContent}. - * @param error Error, if any - * @param [response] GenerateContentResponse - */ - type StreamGenerateContentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.GenerateContentResponse) => void; - } + /** Query fractionLeafNodesToSearchOverride. */ + public fractionLeafNodesToSearchOverride: number; - /** Properties of a PredictRequest. */ - interface IPredictRequest { + /** + * Creates a new Query instance using the specified properties. + * @param [properties] Properties to set + * @returns Query instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; - /** PredictRequest endpoint */ - endpoint?: (string|null); + /** + * Encodes the specified Query message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. + * @param message Query message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictRequest instances */ - instances?: (google.protobuf.IValue[]|null); + /** + * Encodes the specified Query message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. + * @param message Query message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictRequest parameters */ - parameters?: (google.protobuf.IValue|null); + /** + * Decodes a Query message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Query + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; + + /** + * Decodes a Query message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Query + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; + + /** + * Verifies a Query message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Query message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Query + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; + + /** + * Creates a plain object from a Query message. Also converts values to other types if specified. + * @param message Query + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Query to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Query + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a PredictRequest. */ - class PredictRequest implements IPredictRequest { + /** Properties of a FindNeighborsResponse. */ + interface IFindNeighborsResponse { + + /** FindNeighborsResponse nearestNeighbors */ + nearestNeighbors?: (google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors[]|null); + } + + /** Represents a FindNeighborsResponse. */ + class FindNeighborsResponse implements IFindNeighborsResponse { /** - * Constructs a new PredictRequest. + * Constructs a new FindNeighborsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequest); - - /** PredictRequest endpoint. */ - public endpoint: string; - - /** PredictRequest instances. */ - public instances: google.protobuf.IValue[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse); - /** PredictRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); + /** FindNeighborsResponse nearestNeighbors. */ + public nearestNeighbors: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors[]; /** - * Creates a new PredictRequest instance using the specified properties. + * Creates a new FindNeighborsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PredictRequest instance + * @returns FindNeighborsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequest): google.cloud.aiplatform.v1beta1.PredictRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode + * Encodes the specified FindNeighborsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. + * @param message FindNeighborsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode + * Encodes the specified FindNeighborsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. + * @param message FindNeighborsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictRequest message from the specified reader or buffer. + * Decodes a FindNeighborsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictRequest + * @returns FindNeighborsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FindNeighborsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictRequest + * @returns FindNeighborsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; /** - * Verifies a PredictRequest message. + * Verifies a FindNeighborsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FindNeighborsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictRequest + * @returns FindNeighborsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. - * @param message PredictRequest + * Creates a plain object from a FindNeighborsResponse message. Also converts values to other types if specified. + * @param message FindNeighborsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictRequest to JSON. + * Converts this FindNeighborsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictRequest + * Gets the default type url for FindNeighborsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PredictResponse. */ - interface IPredictResponse { + namespace FindNeighborsResponse { - /** PredictResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); + /** Properties of a Neighbor. */ + interface INeighbor { - /** PredictResponse deployedModelId */ - deployedModelId?: (string|null); + /** Neighbor datapoint */ + datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - /** PredictResponse model */ - model?: (string|null); + /** Neighbor distance */ + distance?: (number|null); + } - /** PredictResponse modelVersionId */ - modelVersionId?: (string|null); + /** Represents a Neighbor. */ + class Neighbor implements INeighbor { - /** PredictResponse modelDisplayName */ - modelDisplayName?: (string|null); + /** + * Constructs a new Neighbor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor); - /** PredictResponse metadata */ - metadata?: (google.protobuf.IValue|null); + /** Neighbor datapoint. */ + public datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); + + /** Neighbor distance. */ + public distance: number; + + /** + * Creates a new Neighbor instance using the specified properties. + * @param [properties] Properties to set + * @returns Neighbor instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; + + /** + * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Neighbor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; + + /** + * Decodes a Neighbor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; + + /** + * Verifies a Neighbor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Neighbor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; + + /** + * Creates a plain object from a Neighbor message. Also converts values to other types if specified. + * @param message Neighbor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Neighbor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Neighbor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NearestNeighbors. */ + interface INearestNeighbors { + + /** NearestNeighbors id */ + id?: (string|null); + + /** NearestNeighbors neighbors */ + neighbors?: (google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor[]|null); + } + + /** Represents a NearestNeighbors. */ + class NearestNeighbors implements INearestNeighbors { + + /** + * Constructs a new NearestNeighbors. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors); + + /** NearestNeighbors id. */ + public id: string; + + /** NearestNeighbors neighbors. */ + public neighbors: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor[]; + + /** + * Creates a new NearestNeighbors instance using the specified properties. + * @param [properties] Properties to set + * @returns NearestNeighbors instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; + + /** + * Encodes the specified NearestNeighbors message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. + * @param message NearestNeighbors message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NearestNeighbors message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. + * @param message NearestNeighbors message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NearestNeighbors message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NearestNeighbors + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; + + /** + * Decodes a NearestNeighbors message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NearestNeighbors + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; + + /** + * Verifies a NearestNeighbors message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NearestNeighbors message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NearestNeighbors + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; + + /** + * Creates a plain object from a NearestNeighbors message. Also converts values to other types if specified. + * @param message NearestNeighbors + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NearestNeighbors to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NearestNeighbors + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a PredictResponse. */ - class PredictResponse implements IPredictResponse { + /** Properties of a ReadIndexDatapointsRequest. */ + interface IReadIndexDatapointsRequest { - /** - * Constructs a new PredictResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictResponse); + /** ReadIndexDatapointsRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** PredictResponse predictions. */ - public predictions: google.protobuf.IValue[]; + /** ReadIndexDatapointsRequest deployedIndexId */ + deployedIndexId?: (string|null); - /** PredictResponse deployedModelId. */ - public deployedModelId: string; + /** ReadIndexDatapointsRequest ids */ + ids?: (string[]|null); + } - /** PredictResponse model. */ - public model: string; + /** Represents a ReadIndexDatapointsRequest. */ + class ReadIndexDatapointsRequest implements IReadIndexDatapointsRequest { - /** PredictResponse modelVersionId. */ - public modelVersionId: string; + /** + * Constructs a new ReadIndexDatapointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest); - /** PredictResponse modelDisplayName. */ - public modelDisplayName: string; + /** ReadIndexDatapointsRequest indexEndpoint. */ + public indexEndpoint: string; - /** PredictResponse metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** ReadIndexDatapointsRequest deployedIndexId. */ + public deployedIndexId: string; + + /** ReadIndexDatapointsRequest ids. */ + public ids: string[]; /** - * Creates a new PredictResponse instance using the specified properties. + * Creates a new ReadIndexDatapointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PredictResponse instance + * @returns ReadIndexDatapointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictResponse): google.cloud.aiplatform.v1beta1.PredictResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode + * Encodes the specified ReadIndexDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. + * @param message ReadIndexDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode + * Encodes the specified ReadIndexDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. + * @param message ReadIndexDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictResponse message from the specified reader or buffer. + * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictResponse + * @returns ReadIndexDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictResponse + * @returns ReadIndexDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; /** - * Verifies a PredictResponse message. + * Verifies a ReadIndexDatapointsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadIndexDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictResponse + * @returns ReadIndexDatapointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. - * @param message PredictResponse + * Creates a plain object from a ReadIndexDatapointsRequest message. Also converts values to other types if specified. + * @param message ReadIndexDatapointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictResponse to JSON. + * Converts this ReadIndexDatapointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictResponse + * Gets the default type url for ReadIndexDatapointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RawPredictRequest. */ - interface IRawPredictRequest { - - /** RawPredictRequest endpoint */ - endpoint?: (string|null); + /** Properties of a ReadIndexDatapointsResponse. */ + interface IReadIndexDatapointsResponse { - /** RawPredictRequest httpBody */ - httpBody?: (google.api.IHttpBody|null); + /** ReadIndexDatapointsResponse datapoints */ + datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); } - /** Represents a RawPredictRequest. */ - class RawPredictRequest implements IRawPredictRequest { + /** Represents a ReadIndexDatapointsResponse. */ + class ReadIndexDatapointsResponse implements IReadIndexDatapointsResponse { /** - * Constructs a new RawPredictRequest. + * Constructs a new ReadIndexDatapointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRawPredictRequest); - - /** RawPredictRequest endpoint. */ - public endpoint: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse); - /** RawPredictRequest httpBody. */ - public httpBody?: (google.api.IHttpBody|null); + /** ReadIndexDatapointsResponse datapoints. */ + public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; /** - * Creates a new RawPredictRequest instance using the specified properties. + * Creates a new ReadIndexDatapointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RawPredictRequest instance + * @returns ReadIndexDatapointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRawPredictRequest): google.cloud.aiplatform.v1beta1.RawPredictRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode + * Encodes the specified ReadIndexDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. + * @param message ReadIndexDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode + * Encodes the specified ReadIndexDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. + * @param message ReadIndexDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. + * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RawPredictRequest + * @returns ReadIndexDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RawPredictRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RawPredictRequest + * @returns ReadIndexDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RawPredictRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; /** - * Verifies a RawPredictRequest message. + * Verifies a ReadIndexDatapointsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadIndexDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RawPredictRequest + * @returns ReadIndexDatapointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RawPredictRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. - * @param message RawPredictRequest + * Creates a plain object from a ReadIndexDatapointsResponse message. Also converts values to other types if specified. + * @param message ReadIndexDatapointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RawPredictRequest to JSON. + * Converts this ReadIndexDatapointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RawPredictRequest + * Gets the default type url for ReadIndexDatapointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DirectPredictRequest. */ - interface IDirectPredictRequest { + /** Properties of a MetadataSchema. */ + interface IMetadataSchema { - /** DirectPredictRequest endpoint */ - endpoint?: (string|null); + /** MetadataSchema name */ + name?: (string|null); - /** DirectPredictRequest inputs */ - inputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + /** MetadataSchema schemaVersion */ + schemaVersion?: (string|null); - /** DirectPredictRequest parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** MetadataSchema schema */ + schema?: (string|null); + + /** MetadataSchema schemaType */ + schemaType?: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null); + + /** MetadataSchema createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description */ + description?: (string|null); } - /** Represents a DirectPredictRequest. */ - class DirectPredictRequest implements IDirectPredictRequest { + /** Represents a MetadataSchema. */ + class MetadataSchema implements IMetadataSchema { /** - * Constructs a new DirectPredictRequest. + * Constructs a new MetadataSchema. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema); - /** DirectPredictRequest endpoint. */ - public endpoint: string; + /** MetadataSchema name. */ + public name: string; - /** DirectPredictRequest inputs. */ - public inputs: google.cloud.aiplatform.v1beta1.ITensor[]; + /** MetadataSchema schemaVersion. */ + public schemaVersion: string; - /** DirectPredictRequest parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** MetadataSchema schema. */ + public schema: string; + + /** MetadataSchema schemaType. */ + public schemaType: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType); + + /** MetadataSchema createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description. */ + public description: string; /** - * Creates a new DirectPredictRequest instance using the specified properties. + * Creates a new MetadataSchema instance using the specified properties. * @param [properties] Properties to set - * @returns DirectPredictRequest instance + * @returns MetadataSchema instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictRequest): google.cloud.aiplatform.v1beta1.DirectPredictRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema): google.cloud.aiplatform.v1beta1.MetadataSchema; /** - * Encodes the specified DirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. - * @param message DirectPredictRequest message or plain object to encode + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. - * @param message DirectPredictRequest message or plain object to encode + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DirectPredictRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DirectPredictRequest + * @returns MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectPredictRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataSchema; /** - * Decodes a DirectPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DirectPredictRequest + * @returns MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectPredictRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataSchema; /** - * Verifies a DirectPredictRequest message. + * Verifies a MetadataSchema message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DirectPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DirectPredictRequest + * @returns MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectPredictRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataSchema; /** - * Creates a plain object from a DirectPredictRequest message. Also converts values to other types if specified. - * @param message DirectPredictRequest + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * @param message MetadataSchema * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DirectPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DirectPredictRequest to JSON. + * Converts this MetadataSchema to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DirectPredictRequest + * Gets the default type url for MetadataSchema * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DirectPredictResponse. */ - interface IDirectPredictResponse { - - /** DirectPredictResponse outputs */ - outputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + namespace MetadataSchema { - /** DirectPredictResponse parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** MetadataSchemaType enum. */ + enum MetadataSchemaType { + METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, + ARTIFACT_TYPE = 1, + EXECUTION_TYPE = 2, + CONTEXT_TYPE = 3 + } } - /** Represents a DirectPredictResponse. */ - class DirectPredictResponse implements IDirectPredictResponse { + /** Represents a MetadataService */ + class MetadataService extends $protobuf.rpc.Service { /** - * Constructs a new DirectPredictResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictResponse); - - /** DirectPredictResponse outputs. */ - public outputs: google.cloud.aiplatform.v1beta1.ITensor[]; - - /** DirectPredictResponse parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + * Constructs a new MetadataService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new DirectPredictResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DirectPredictResponse instance + * Creates new MetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictResponse): google.cloud.aiplatform.v1beta1.DirectPredictResponse; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; /** - * Encodes the specified DirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. - * @param message DirectPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback): void; /** - * Encodes the specified DirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. - * @param message DirectPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): Promise; /** - * Decodes a DirectPredictResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DirectPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataStore */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectPredictResponse; + public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback): void; /** - * Decodes a DirectPredictResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DirectPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectPredictResponse; + public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): Promise; /** - * Verifies a DirectPredictResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback): void; /** - * Creates a DirectPredictResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DirectPredictResponse + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectPredictResponse; + public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): Promise; /** - * Creates a plain object from a DirectPredictResponse message. Also converts values to other types if specified. - * @param message DirectPredictResponse - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DirectPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback): void; /** - * Converts this DirectPredictResponse to JSON. - * @returns JSON object + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): Promise; /** - * Gets the default type url for DirectPredictResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DirectRawPredictRequest. */ - interface IDirectRawPredictRequest { + public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback): void; - /** DirectRawPredictRequest endpoint */ - endpoint?: (string|null); + /** + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @returns Promise + */ + public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): Promise; - /** DirectRawPredictRequest methodName */ - methodName?: (string|null); + /** + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact + */ + public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback): void; - /** DirectRawPredictRequest input */ - input?: (Uint8Array|string|null); - } + /** + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @returns Promise + */ + public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): Promise; - /** Represents a DirectRawPredictRequest. */ - class DirectRawPredictRequest implements IDirectRawPredictRequest { + /** + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse + */ + public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback): void; /** - * Constructs a new DirectRawPredictRequest. - * @param [properties] Properties to set + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest); + public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): Promise; - /** DirectRawPredictRequest endpoint. */ - public endpoint: string; + /** + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact + */ + public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback): void; - /** DirectRawPredictRequest methodName. */ - public methodName: string; + /** + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @returns Promise + */ + public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): Promise; - /** DirectRawPredictRequest input. */ - public input: (Uint8Array|string); + /** + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback): void; /** - * Creates a new DirectRawPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DirectRawPredictRequest instance + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; + public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): Promise; /** - * Encodes the specified DirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. - * @param message DirectRawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback): void; /** - * Encodes the specified DirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. - * @param message DirectRawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): Promise; /** - * Decodes a DirectRawPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DirectRawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; + public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback): void; /** - * Decodes a DirectRawPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DirectRawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; + public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest): Promise; /** - * Verifies a DirectRawPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static verify(message: { [k: string]: any }): (string|null); + public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback): void; /** - * Creates a DirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DirectRawPredictRequest + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; + public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest): Promise; /** - * Creates a plain object from a DirectRawPredictRequest message. Also converts values to other types if specified. - * @param message DirectRawPredictRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContextsResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DirectRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback): void; /** - * Converts this DirectRawPredictRequest to JSON. - * @returns JSON object + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest): Promise; /** - * Gets the default type url for DirectRawPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback): void; - /** Properties of a DirectRawPredictResponse. */ - interface IDirectRawPredictResponse { + /** + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @returns Promise + */ + public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): Promise; - /** DirectRawPredictResponse output */ - output?: (Uint8Array|string|null); - } + /** + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback): void; - /** Represents a DirectRawPredictResponse. */ - class DirectRawPredictResponse implements IDirectRawPredictResponse { + /** + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @returns Promise + */ + public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): Promise; /** - * Constructs a new DirectRawPredictResponse. - * @param [properties] Properties to set + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse); + public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback): void; - /** DirectRawPredictResponse output. */ - public output: (Uint8Array|string); + /** + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @returns Promise + */ + public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): Promise; /** - * Creates a new DirectRawPredictResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DirectRawPredictResponse instance + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; /** - * Encodes the specified DirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. - * @param message DirectRawPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): Promise; /** - * Encodes the specified DirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. - * @param message DirectRawPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback): void; /** - * Decodes a DirectRawPredictResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DirectRawPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; + public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): Promise; /** - * Decodes a DirectRawPredictResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DirectRawPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; + public removeContextChildren(request: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildrenCallback): void; /** - * Verifies a DirectRawPredictResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public removeContextChildren(request: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest): Promise; /** - * Creates a DirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DirectRawPredictResponse + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback): void; /** - * Creates a plain object from a DirectRawPredictResponse message. Also converts values to other types if specified. - * @param message DirectRawPredictResponse - * @param [options] Conversion options - * @returns Plain object + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DirectRawPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): Promise; /** - * Converts this DirectRawPredictResponse to JSON. - * @returns JSON object + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public toJSON(): { [k: string]: any }; + public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback): void; /** - * Gets the default type url for DirectRawPredictResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): Promise; - /** Properties of a StreamDirectPredictRequest. */ - interface IStreamDirectPredictRequest { + /** + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution + */ + public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback): void; - /** StreamDirectPredictRequest endpoint */ - endpoint?: (string|null); + /** + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @returns Promise + */ + public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): Promise; - /** StreamDirectPredictRequest inputs */ - inputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + /** + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse + */ + public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback): void; - /** StreamDirectPredictRequest parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); - } + /** + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @returns Promise + */ + public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): Promise; - /** Represents a StreamDirectPredictRequest. */ - class StreamDirectPredictRequest implements IStreamDirectPredictRequest { + /** + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution + */ + public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback): void; /** - * Constructs a new StreamDirectPredictRequest. - * @param [properties] Properties to set + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest); + public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): Promise; - /** StreamDirectPredictRequest endpoint. */ - public endpoint: string; + /** + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback): void; - /** StreamDirectPredictRequest inputs. */ - public inputs: google.cloud.aiplatform.v1beta1.ITensor[]; + /** + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @returns Promise + */ + public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): Promise; - /** StreamDirectPredictRequest parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback): void; /** - * Creates a new StreamDirectPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamDirectPredictRequest instance + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; + public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): Promise; /** - * Encodes the specified StreamDirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. - * @param message StreamDirectPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback): void; /** - * Encodes the specified StreamDirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. - * @param message StreamDirectPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): Promise; /** - * Decodes a StreamDirectPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamDirectPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; /** - * Decodes a StreamDirectPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamDirectPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): Promise; /** - * Verifies a StreamDirectPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public static verify(message: { [k: string]: any }): (string|null); + public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback): void; /** - * Creates a StreamDirectPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamDirectPredictRequest + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; + public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): Promise; /** - * Creates a plain object from a StreamDirectPredictRequest message. Also converts values to other types if specified. - * @param message StreamDirectPredictRequest - * @param [options] Conversion options - * @returns Plain object + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback): void; /** - * Converts this StreamDirectPredictRequest to JSON. - * @returns JSON object + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): Promise; /** - * Gets the default type url for StreamDirectPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback): void; - /** Properties of a StreamDirectPredictResponse. */ - interface IStreamDirectPredictResponse { + /** + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @returns Promise + */ + public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): Promise; - /** StreamDirectPredictResponse outputs */ - outputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + /** + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph + */ + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback): void; - /** StreamDirectPredictResponse parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @returns Promise + */ + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): Promise; } - /** Represents a StreamDirectPredictResponse. */ - class StreamDirectPredictResponse implements IStreamDirectPredictResponse { + namespace MetadataService { /** - * Constructs a new StreamDirectPredictResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse); + type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** StreamDirectPredictResponse outputs. */ - public outputs: google.cloud.aiplatform.v1beta1.ITensor[]; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataStore}. + * @param error Error, if any + * @param [response] MetadataStore + */ + type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataStore) => void; - /** StreamDirectPredictResponse parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataStores}. + * @param error Error, if any + * @param [response] ListMetadataStoresResponse + */ + type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) => void; /** - * Creates a new StreamDirectPredictResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamDirectPredictResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; + type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified StreamDirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. - * @param message StreamDirectPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; /** - * Encodes the specified StreamDirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. - * @param message StreamDirectPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; /** - * Decodes a StreamDirectPredictResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamDirectPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listArtifacts}. + * @param error Error, if any + * @param [response] ListArtifactsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; + type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListArtifactsResponse) => void; /** - * Decodes a StreamDirectPredictResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamDirectPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; + type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; /** - * Verifies a StreamDirectPredictResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteArtifact}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a StreamDirectPredictResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamDirectPredictResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeArtifacts}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; + type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a StreamDirectPredictResponse message. Also converts values to other types if specified. - * @param message StreamDirectPredictResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createContext}. + * @param error Error, if any + * @param [response] Context */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; /** - * Converts this StreamDirectPredictResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getContext}. + * @param error Error, if any + * @param [response] Context */ - public toJSON(): { [k: string]: any }; + type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; /** - * Gets the default type url for StreamDirectPredictResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listContexts}. + * @param error Error, if any + * @param [response] ListContextsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListContextsResponse) => void; - /** Properties of a StreamDirectRawPredictRequest. */ - interface IStreamDirectRawPredictRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateContext}. + * @param error Error, if any + * @param [response] Context + */ + type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; - /** StreamDirectRawPredictRequest endpoint */ - endpoint?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteContext}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** StreamDirectRawPredictRequest methodName */ - methodName?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeContexts}. + * @param error Error, if any + * @param [response] Operation + */ + type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** StreamDirectRawPredictRequest input */ - input?: (Uint8Array|string|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextArtifactsAndExecutions}. + * @param error Error, if any + * @param [response] AddContextArtifactsAndExecutionsResponse + */ + type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) => void; - /** Represents a StreamDirectRawPredictRequest. */ - class StreamDirectRawPredictRequest implements IStreamDirectRawPredictRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextChildren}. + * @param error Error, if any + * @param [response] AddContextChildrenResponse + */ + type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) => void; /** - * Constructs a new StreamDirectRawPredictRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|removeContextChildren}. + * @param error Error, if any + * @param [response] RemoveContextChildrenResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest); + type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse) => void; - /** StreamDirectRawPredictRequest endpoint. */ - public endpoint: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryContextLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph + */ + type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; - /** StreamDirectRawPredictRequest methodName. */ - public methodName: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createExecution}. + * @param error Error, if any + * @param [response] Execution + */ + type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; - /** StreamDirectRawPredictRequest input. */ - public input: (Uint8Array|string); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getExecution}. + * @param error Error, if any + * @param [response] Execution + */ + type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; /** - * Creates a new StreamDirectRawPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamDirectRawPredictRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listExecutions}. + * @param error Error, if any + * @param [response] ListExecutionsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; + type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListExecutionsResponse) => void; /** - * Encodes the specified StreamDirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. - * @param message StreamDirectRawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateExecution}. + * @param error Error, if any + * @param [response] Execution */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; /** - * Encodes the specified StreamDirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. - * @param message StreamDirectRawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteExecution}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamDirectRawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeExecutions}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; + type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamDirectRawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addExecutionEvents}. + * @param error Error, if any + * @param [response] AddExecutionEventsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; + type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) => void; /** - * Verifies a StreamDirectRawPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryExecutionInputsAndOutputs}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static verify(message: { [k: string]: any }): (string|null); + type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; /** - * Creates a StreamDirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamDirectRawPredictRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; + type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; /** - * Creates a plain object from a StreamDirectRawPredictRequest message. Also converts values to other types if specified. - * @param message StreamDirectRawPredictRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; /** - * Converts this StreamDirectRawPredictRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataSchemas}. + * @param error Error, if any + * @param [response] ListMetadataSchemasResponse */ - public toJSON(): { [k: string]: any }; + type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) => void; /** - * Gets the default type url for StreamDirectRawPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryArtifactLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; } - /** Properties of a StreamDirectRawPredictResponse. */ - interface IStreamDirectRawPredictResponse { + /** Properties of a CreateMetadataStoreRequest. */ + interface ICreateMetadataStoreRequest { - /** StreamDirectRawPredictResponse output */ - output?: (Uint8Array|string|null); + /** CreateMetadataStoreRequest parent */ + parent?: (string|null); + + /** CreateMetadataStoreRequest metadataStore */ + metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + + /** CreateMetadataStoreRequest metadataStoreId */ + metadataStoreId?: (string|null); } - /** Represents a StreamDirectRawPredictResponse. */ - class StreamDirectRawPredictResponse implements IStreamDirectRawPredictResponse { + /** Represents a CreateMetadataStoreRequest. */ + class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { /** - * Constructs a new StreamDirectRawPredictResponse. + * Constructs a new CreateMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest); - /** StreamDirectRawPredictResponse output. */ - public output: (Uint8Array|string); + /** CreateMetadataStoreRequest parent. */ + public parent: string; + + /** CreateMetadataStoreRequest metadataStore. */ + public metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + + /** CreateMetadataStoreRequest metadataStoreId. */ + public metadataStoreId: string; /** - * Creates a new StreamDirectRawPredictResponse instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamDirectRawPredictResponse instance + * @returns CreateMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Encodes the specified StreamDirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. - * @param message StreamDirectRawPredictResponse message or plain object to encode + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamDirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. - * @param message StreamDirectRawPredictResponse message or plain object to encode + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamDirectRawPredictResponse + * @returns CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamDirectRawPredictResponse + * @returns CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Verifies a StreamDirectRawPredictResponse message. + * Verifies a CreateMetadataStoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamDirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamDirectRawPredictResponse + * @returns CreateMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Creates a plain object from a StreamDirectRawPredictResponse message. Also converts values to other types if specified. - * @param message StreamDirectRawPredictResponse + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * @param message CreateMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamDirectRawPredictResponse to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamDirectRawPredictResponse + * Gets the default type url for CreateMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamingPredictRequest. */ - interface IStreamingPredictRequest { - - /** StreamingPredictRequest endpoint */ - endpoint?: (string|null); - - /** StreamingPredictRequest inputs */ - inputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + /** Properties of a CreateMetadataStoreOperationMetadata. */ + interface ICreateMetadataStoreOperationMetadata { - /** StreamingPredictRequest parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** CreateMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a StreamingPredictRequest. */ - class StreamingPredictRequest implements IStreamingPredictRequest { + /** Represents a CreateMetadataStoreOperationMetadata. */ + class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { /** - * Constructs a new StreamingPredictRequest. + * Constructs a new CreateMetadataStoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest); - - /** StreamingPredictRequest endpoint. */ - public endpoint: string; - - /** StreamingPredictRequest inputs. */ - public inputs: google.cloud.aiplatform.v1beta1.ITensor[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata); - /** StreamingPredictRequest parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** CreateMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new StreamingPredictRequest instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingPredictRequest instance + * @returns CreateMetadataStoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. - * @param message StreamingPredictRequest message or plain object to encode + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. - * @param message StreamingPredictRequest message or plain object to encode + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingPredictRequest + * @returns CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingPredictRequest + * @returns CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Verifies a StreamingPredictRequest message. + * Verifies a CreateMetadataStoreOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingPredictRequest + * @returns CreateMetadataStoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. - * @param message StreamingPredictRequest + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateMetadataStoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingPredictRequest to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingPredictRequest + * Gets the default type url for CreateMetadataStoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamingPredictResponse. */ - interface IStreamingPredictResponse { - - /** StreamingPredictResponse outputs */ - outputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + /** Properties of a GetMetadataStoreRequest. */ + interface IGetMetadataStoreRequest { - /** StreamingPredictResponse parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** GetMetadataStoreRequest name */ + name?: (string|null); } - /** Represents a StreamingPredictResponse. */ - class StreamingPredictResponse implements IStreamingPredictResponse { + /** Represents a GetMetadataStoreRequest. */ + class GetMetadataStoreRequest implements IGetMetadataStoreRequest { /** - * Constructs a new StreamingPredictResponse. + * Constructs a new GetMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest); - /** StreamingPredictResponse outputs. */ - public outputs: google.cloud.aiplatform.v1beta1.ITensor[]; - - /** StreamingPredictResponse parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); + /** GetMetadataStoreRequest name. */ + public name: string; /** - * Creates a new StreamingPredictResponse instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingPredictResponse instance + * @returns GetMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. - * @param message StreamingPredictResponse message or plain object to encode + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. - * @param message StreamingPredictResponse message or plain object to encode + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingPredictResponse + * @returns GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingPredictResponse + * @returns GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Verifies a StreamingPredictResponse message. + * Verifies a GetMetadataStoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingPredictResponse + * @returns GetMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. - * @param message StreamingPredictResponse + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * @param message GetMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingPredictResponse to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingPredictResponse + * Gets the default type url for GetMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamingRawPredictRequest. */ - interface IStreamingRawPredictRequest { + /** Properties of a ListMetadataStoresRequest. */ + interface IListMetadataStoresRequest { - /** StreamingRawPredictRequest endpoint */ - endpoint?: (string|null); + /** ListMetadataStoresRequest parent */ + parent?: (string|null); - /** StreamingRawPredictRequest methodName */ - methodName?: (string|null); + /** ListMetadataStoresRequest pageSize */ + pageSize?: (number|null); - /** StreamingRawPredictRequest input */ - input?: (Uint8Array|string|null); + /** ListMetadataStoresRequest pageToken */ + pageToken?: (string|null); } - /** Represents a StreamingRawPredictRequest. */ - class StreamingRawPredictRequest implements IStreamingRawPredictRequest { + /** Represents a ListMetadataStoresRequest. */ + class ListMetadataStoresRequest implements IListMetadataStoresRequest { /** - * Constructs a new StreamingRawPredictRequest. + * Constructs a new ListMetadataStoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest); - /** StreamingRawPredictRequest endpoint. */ - public endpoint: string; + /** ListMetadataStoresRequest parent. */ + public parent: string; - /** StreamingRawPredictRequest methodName. */ - public methodName: string; + /** ListMetadataStoresRequest pageSize. */ + public pageSize: number; - /** StreamingRawPredictRequest input. */ - public input: (Uint8Array|string); + /** ListMetadataStoresRequest pageToken. */ + public pageToken: string; /** - * Creates a new StreamingRawPredictRequest instance using the specified properties. + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRawPredictRequest instance + * @returns ListMetadataStoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Encodes the specified StreamingRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. - * @param message StreamingRawPredictRequest message or plain object to encode + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. - * @param message StreamingRawPredictRequest message or plain object to encode + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRawPredictRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingRawPredictRequest + * @returns ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Decodes a StreamingRawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRawPredictRequest + * @returns ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Verifies a StreamingRawPredictRequest message. + * Verifies a ListMetadataStoresRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingRawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRawPredictRequest + * @returns ListMetadataStoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Creates a plain object from a StreamingRawPredictRequest message. Also converts values to other types if specified. - * @param message StreamingRawPredictRequest + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * @param message ListMetadataStoresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRawPredictRequest to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingRawPredictRequest + * Gets the default type url for ListMetadataStoresRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamingRawPredictResponse. */ - interface IStreamingRawPredictResponse { + /** Properties of a ListMetadataStoresResponse. */ + interface IListMetadataStoresResponse { - /** StreamingRawPredictResponse output */ - output?: (Uint8Array|string|null); + /** ListMetadataStoresResponse metadataStores */ + metadataStores?: (google.cloud.aiplatform.v1beta1.IMetadataStore[]|null); + + /** ListMetadataStoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a StreamingRawPredictResponse. */ - class StreamingRawPredictResponse implements IStreamingRawPredictResponse { + /** Represents a ListMetadataStoresResponse. */ + class ListMetadataStoresResponse implements IListMetadataStoresResponse { /** - * Constructs a new StreamingRawPredictResponse. + * Constructs a new ListMetadataStoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse); - /** StreamingRawPredictResponse output. */ - public output: (Uint8Array|string); + /** ListMetadataStoresResponse metadataStores. */ + public metadataStores: google.cloud.aiplatform.v1beta1.IMetadataStore[]; + + /** ListMetadataStoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new StreamingRawPredictResponse instance using the specified properties. + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRawPredictResponse instance + * @returns ListMetadataStoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Encodes the specified StreamingRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. - * @param message StreamingRawPredictResponse message or plain object to encode + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. - * @param message StreamingRawPredictResponse message or plain object to encode + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRawPredictResponse message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingRawPredictResponse + * @returns ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Decodes a StreamingRawPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRawPredictResponse + * @returns ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Verifies a StreamingRawPredictResponse message. + * Verifies a ListMetadataStoresResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingRawPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRawPredictResponse + * @returns ListMetadataStoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Creates a plain object from a StreamingRawPredictResponse message. Also converts values to other types if specified. - * @param message StreamingRawPredictResponse + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. + * @param message ListMetadataStoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRawPredictResponse to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingRawPredictResponse + * Gets the default type url for ListMetadataStoresResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplainRequest. */ - interface IExplainRequest { - - /** ExplainRequest endpoint */ - endpoint?: (string|null); + /** Properties of a DeleteMetadataStoreRequest. */ + interface IDeleteMetadataStoreRequest { - /** ExplainRequest instances */ - instances?: (google.protobuf.IValue[]|null); + /** DeleteMetadataStoreRequest name */ + name?: (string|null); - /** ExplainRequest parameters */ - parameters?: (google.protobuf.IValue|null); + /** DeleteMetadataStoreRequest force */ + force?: (boolean|null); + } - /** ExplainRequest explanationSpecOverride */ - explanationSpecOverride?: (google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null); + /** Represents a DeleteMetadataStoreRequest. */ + class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { - /** ExplainRequest concurrentExplanationSpecOverride */ - concurrentExplanationSpecOverride?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride }|null); + /** + * Constructs a new DeleteMetadataStoreRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest); - /** ExplainRequest deployedModelId */ - deployedModelId?: (string|null); - } + /** DeleteMetadataStoreRequest name. */ + public name: string; - /** Represents an ExplainRequest. */ - class ExplainRequest implements IExplainRequest { + /** DeleteMetadataStoreRequest force. */ + public force: boolean; /** - * Constructs a new ExplainRequest. + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set + * @returns DeleteMetadataStoreRequest instance */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplainRequest); + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; - /** ExplainRequest endpoint. */ - public endpoint: string; + /** + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExplainRequest instances. */ - public instances: google.protobuf.IValue[]; + /** + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExplainRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); + /** + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; - /** ExplainRequest explanationSpecOverride. */ - public explanationSpecOverride?: (google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null); + /** + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; - /** ExplainRequest concurrentExplanationSpecOverride. */ - public concurrentExplanationSpecOverride: { [k: string]: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride }; + /** + * Verifies a DeleteMetadataStoreRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ExplainRequest deployedModelId. */ - public deployedModelId: string; + /** + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteMetadataStoreRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; /** - * Creates a new ExplainRequest instance using the specified properties. + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteMetadataStoreRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteMetadataStoreRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteMetadataStoreOperationMetadata. */ + interface IDeleteMetadataStoreOperationMetadata { + + /** DeleteMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a DeleteMetadataStoreOperationMetadata. */ + class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { + + /** + * Constructs a new DeleteMetadataStoreOperationMetadata. * @param [properties] Properties to set - * @returns ExplainRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplainRequest): google.cloud.aiplatform.v1beta1.ExplainRequest; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata); + + /** DeleteMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteMetadataStoreOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + + /** + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplainRequest message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplainRequest + * @returns DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplainRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplainRequest + * @returns DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplainRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Verifies an ExplainRequest message. + * Verifies a DeleteMetadataStoreOperationMetadata message. * @param message Plain 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 ExplainRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplainRequest + * @returns DeleteMetadataStoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplainRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. - * @param message ExplainRequest + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplainRequest to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplainRequest + * Gets the default type url for DeleteMetadataStoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplainResponse. */ - interface IExplainResponse { - - /** ExplainResponse explanations */ - explanations?: (google.cloud.aiplatform.v1beta1.IExplanation[]|null); + /** Properties of a CreateArtifactRequest. */ + interface ICreateArtifactRequest { - /** ExplainResponse concurrentExplanations */ - concurrentExplanations?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation }|null); + /** CreateArtifactRequest parent */ + parent?: (string|null); - /** ExplainResponse deployedModelId */ - deployedModelId?: (string|null); + /** CreateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** ExplainResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); + /** CreateArtifactRequest artifactId */ + artifactId?: (string|null); } - /** Represents an ExplainResponse. */ - class ExplainResponse implements IExplainResponse { + /** Represents a CreateArtifactRequest. */ + class CreateArtifactRequest implements ICreateArtifactRequest { /** - * Constructs a new ExplainResponse. + * Constructs a new CreateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplainResponse); - - /** ExplainResponse explanations. */ - public explanations: google.cloud.aiplatform.v1beta1.IExplanation[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest); - /** ExplainResponse concurrentExplanations. */ - public concurrentExplanations: { [k: string]: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation }; + /** CreateArtifactRequest parent. */ + public parent: string; - /** ExplainResponse deployedModelId. */ - public deployedModelId: string; + /** CreateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** ExplainResponse predictions. */ - public predictions: google.protobuf.IValue[]; + /** CreateArtifactRequest artifactId. */ + public artifactId: string; /** - * Creates a new ExplainResponse instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExplainResponse instance + * @returns CreateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplainResponse): google.cloud.aiplatform.v1beta1.ExplainResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplainResponse + * @returns CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplainResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplainResponse + * @returns CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplainResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Verifies an ExplainResponse message. + * Verifies a CreateArtifactRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplainResponse + * @returns CreateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplainResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. - * @param message ExplainResponse + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. + * @param message CreateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplainResponse to JSON. + * Converts this CreateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplainResponse + * Gets the default type url for CreateArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExplainResponse { - - /** Properties of a ConcurrentExplanation. */ - interface IConcurrentExplanation { + /** Properties of a GetArtifactRequest. */ + interface IGetArtifactRequest { - /** ConcurrentExplanation explanations */ - explanations?: (google.cloud.aiplatform.v1beta1.IExplanation[]|null); - } + /** GetArtifactRequest name */ + name?: (string|null); + } - /** Represents a ConcurrentExplanation. */ - class ConcurrentExplanation implements IConcurrentExplanation { + /** Represents a GetArtifactRequest. */ + class GetArtifactRequest implements IGetArtifactRequest { - /** - * Constructs a new ConcurrentExplanation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation); + /** + * Constructs a new GetArtifactRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest); - /** ConcurrentExplanation explanations. */ - public explanations: google.cloud.aiplatform.v1beta1.IExplanation[]; + /** GetArtifactRequest name. */ + public name: string; - /** - * Creates a new ConcurrentExplanation instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcurrentExplanation instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + /** + * Creates a new GetArtifactRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetArtifactRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): google.cloud.aiplatform.v1beta1.GetArtifactRequest; - /** - * Encodes the specified ConcurrentExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. - * @param message ConcurrentExplanation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConcurrentExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. - * @param message ConcurrentExplanation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ConcurrentExplanation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcurrentExplanation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + /** + * Decodes a GetArtifactRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetArtifactRequest; - /** - * Decodes a ConcurrentExplanation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcurrentExplanation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + /** + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetArtifactRequest; - /** - * Verifies a ConcurrentExplanation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a GetArtifactRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a ConcurrentExplanation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcurrentExplanation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + /** + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetArtifactRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetArtifactRequest; - /** - * Creates a plain object from a ConcurrentExplanation message. Also converts values to other types if specified. - * @param message ConcurrentExplanation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. + * @param message GetArtifactRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ConcurrentExplanation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this GetArtifactRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ConcurrentExplanation - * @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 GetArtifactRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CountTokensRequest. */ - interface ICountTokensRequest { + /** Properties of a ListArtifactsRequest. */ + interface IListArtifactsRequest { - /** CountTokensRequest endpoint */ - endpoint?: (string|null); + /** ListArtifactsRequest parent */ + parent?: (string|null); - /** CountTokensRequest model */ - model?: (string|null); + /** ListArtifactsRequest pageSize */ + pageSize?: (number|null); - /** CountTokensRequest instances */ - instances?: (google.protobuf.IValue[]|null); + /** ListArtifactsRequest pageToken */ + pageToken?: (string|null); - /** CountTokensRequest contents */ - contents?: (google.cloud.aiplatform.v1beta1.IContent[]|null); + /** ListArtifactsRequest filter */ + filter?: (string|null); + + /** ListArtifactsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CountTokensRequest. */ - class CountTokensRequest implements ICountTokensRequest { + /** Represents a ListArtifactsRequest. */ + class ListArtifactsRequest implements IListArtifactsRequest { /** - * Constructs a new CountTokensRequest. + * Constructs a new ListArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICountTokensRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest); - /** CountTokensRequest endpoint. */ - public endpoint: string; + /** ListArtifactsRequest parent. */ + public parent: string; - /** CountTokensRequest model. */ - public model: string; + /** ListArtifactsRequest pageSize. */ + public pageSize: number; - /** CountTokensRequest instances. */ - public instances: google.protobuf.IValue[]; + /** ListArtifactsRequest pageToken. */ + public pageToken: string; - /** CountTokensRequest contents. */ - public contents: google.cloud.aiplatform.v1beta1.IContent[]; + /** ListArtifactsRequest filter. */ + public filter: string; + + /** ListArtifactsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CountTokensRequest instance using the specified properties. + * Creates a new ListArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CountTokensRequest instance + * @returns ListArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICountTokensRequest): google.cloud.aiplatform.v1beta1.CountTokensRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Encodes the specified CountTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. - * @param message CountTokensRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICountTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CountTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. - * @param message CountTokensRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICountTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CountTokensRequest message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CountTokensRequest + * @returns ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CountTokensRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Decodes a CountTokensRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CountTokensRequest + * @returns ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CountTokensRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Verifies a CountTokensRequest message. + * Verifies a ListArtifactsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CountTokensRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CountTokensRequest + * @returns ListArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CountTokensRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Creates a plain object from a CountTokensRequest message. Also converts values to other types if specified. - * @param message CountTokensRequest + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * @param message ListArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CountTokensRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CountTokensRequest to JSON. + * Converts this ListArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CountTokensRequest + * Gets the default type url for ListArtifactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CountTokensResponse. */ - interface ICountTokensResponse { + /** Properties of a ListArtifactsResponse. */ + interface IListArtifactsResponse { - /** CountTokensResponse totalTokens */ - totalTokens?: (number|null); + /** ListArtifactsResponse artifacts */ + artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); - /** CountTokensResponse totalBillableCharacters */ - totalBillableCharacters?: (number|null); + /** ListArtifactsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CountTokensResponse. */ - class CountTokensResponse implements ICountTokensResponse { + /** Represents a ListArtifactsResponse. */ + class ListArtifactsResponse implements IListArtifactsResponse { /** - * Constructs a new CountTokensResponse. + * Constructs a new ListArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICountTokensResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse); - /** CountTokensResponse totalTokens. */ - public totalTokens: number; + /** ListArtifactsResponse artifacts. */ + public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; - /** CountTokensResponse totalBillableCharacters. */ - public totalBillableCharacters: number; + /** ListArtifactsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CountTokensResponse instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CountTokensResponse instance + * @returns ListArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICountTokensResponse): google.cloud.aiplatform.v1beta1.CountTokensResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Encodes the specified CountTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. - * @param message CountTokensResponse message or plain object to encode + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICountTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CountTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. - * @param message CountTokensResponse message or plain object to encode + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICountTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CountTokensResponse message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CountTokensResponse + * @returns ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CountTokensResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Decodes a CountTokensResponse message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CountTokensResponse + * @returns ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CountTokensResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Verifies a CountTokensResponse message. + * Verifies a ListArtifactsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CountTokensResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CountTokensResponse + * @returns ListArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CountTokensResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Creates a plain object from a CountTokensResponse message. Also converts values to other types if specified. - * @param message CountTokensResponse + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * @param message ListArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CountTokensResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CountTokensResponse to JSON. + * Converts this ListArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CountTokensResponse + * Gets the default type url for ListArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GenerateContentRequest. */ - interface IGenerateContentRequest { - - /** GenerateContentRequest model */ - model?: (string|null); - - /** GenerateContentRequest contents */ - contents?: (google.cloud.aiplatform.v1beta1.IContent[]|null); + /** Properties of an UpdateArtifactRequest. */ + interface IUpdateArtifactRequest { - /** GenerateContentRequest tools */ - tools?: (google.cloud.aiplatform.v1beta1.ITool[]|null); + /** UpdateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** GenerateContentRequest safetySettings */ - safetySettings?: (google.cloud.aiplatform.v1beta1.ISafetySetting[]|null); + /** UpdateArtifactRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** GenerateContentRequest generationConfig */ - generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); + /** UpdateArtifactRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a GenerateContentRequest. */ - class GenerateContentRequest implements IGenerateContentRequest { + /** Represents an UpdateArtifactRequest. */ + class UpdateArtifactRequest implements IUpdateArtifactRequest { /** - * Constructs a new GenerateContentRequest. + * Constructs a new UpdateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentRequest); - - /** GenerateContentRequest model. */ - public model: string; - - /** GenerateContentRequest contents. */ - public contents: google.cloud.aiplatform.v1beta1.IContent[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest); - /** GenerateContentRequest tools. */ - public tools: google.cloud.aiplatform.v1beta1.ITool[]; + /** UpdateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** GenerateContentRequest safetySettings. */ - public safetySettings: google.cloud.aiplatform.v1beta1.ISafetySetting[]; + /** UpdateArtifactRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** GenerateContentRequest generationConfig. */ - public generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); + /** UpdateArtifactRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new GenerateContentRequest instance using the specified properties. + * Creates a new UpdateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GenerateContentRequest instance + * @returns UpdateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentRequest): google.cloud.aiplatform.v1beta1.GenerateContentRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Encodes the specified GenerateContentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. - * @param message GenerateContentRequest message or plain object to encode + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenerateContentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. - * @param message GenerateContentRequest message or plain object to encode + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenerateContentRequest message from the specified reader or buffer. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenerateContentRequest + * @returns UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Decodes a GenerateContentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenerateContentRequest + * @returns UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Verifies a GenerateContentRequest message. + * Verifies an UpdateArtifactRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenerateContentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenerateContentRequest + * @returns UpdateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Creates a plain object from a GenerateContentRequest message. Also converts values to other types if specified. - * @param message GenerateContentRequest + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * @param message UpdateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenerateContentRequest to JSON. + * Converts this UpdateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenerateContentRequest + * Gets the default type url for UpdateArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GenerateContentResponse. */ - interface IGenerateContentResponse { - - /** GenerateContentResponse candidates */ - candidates?: (google.cloud.aiplatform.v1beta1.ICandidate[]|null); + /** Properties of a DeleteArtifactRequest. */ + interface IDeleteArtifactRequest { - /** GenerateContentResponse promptFeedback */ - promptFeedback?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null); + /** DeleteArtifactRequest name */ + name?: (string|null); - /** GenerateContentResponse usageMetadata */ - usageMetadata?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null); + /** DeleteArtifactRequest etag */ + etag?: (string|null); } - /** Represents a GenerateContentResponse. */ - class GenerateContentResponse implements IGenerateContentResponse { + /** Represents a DeleteArtifactRequest. */ + class DeleteArtifactRequest implements IDeleteArtifactRequest { /** - * Constructs a new GenerateContentResponse. + * Constructs a new DeleteArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentResponse); - - /** GenerateContentResponse candidates. */ - public candidates: google.cloud.aiplatform.v1beta1.ICandidate[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest); - /** GenerateContentResponse promptFeedback. */ - public promptFeedback?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null); + /** DeleteArtifactRequest name. */ + public name: string; - /** GenerateContentResponse usageMetadata. */ - public usageMetadata?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null); + /** DeleteArtifactRequest etag. */ + public etag: string; /** - * Creates a new GenerateContentResponse instance using the specified properties. + * Creates a new DeleteArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GenerateContentResponse instance + * @returns DeleteArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentResponse): google.cloud.aiplatform.v1beta1.GenerateContentResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Encodes the specified GenerateContentResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. - * @param message GenerateContentResponse message or plain object to encode + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGenerateContentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenerateContentResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. - * @param message GenerateContentResponse message or plain object to encode + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenerateContentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenerateContentResponse message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenerateContentResponse + * @returns DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Decodes a GenerateContentResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenerateContentResponse + * @returns DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Verifies a GenerateContentResponse message. + * Verifies a DeleteArtifactRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenerateContentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenerateContentResponse + * @returns DeleteArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Creates a plain object from a GenerateContentResponse message. Also converts values to other types if specified. - * @param message GenerateContentResponse + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * @param message DeleteArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenerateContentResponse to JSON. + * Converts this DeleteArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenerateContentResponse + * Gets the default type url for DeleteArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace GenerateContentResponse { + /** Properties of a PurgeArtifactsRequest. */ + interface IPurgeArtifactsRequest { - /** Properties of a PromptFeedback. */ - interface IPromptFeedback { + /** PurgeArtifactsRequest parent */ + parent?: (string|null); - /** PromptFeedback blockReason */ - blockReason?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|keyof typeof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|null); + /** PurgeArtifactsRequest filter */ + filter?: (string|null); - /** PromptFeedback safetyRatings */ - safetyRatings?: (google.cloud.aiplatform.v1beta1.ISafetyRating[]|null); + /** PurgeArtifactsRequest force */ + force?: (boolean|null); + } - /** PromptFeedback blockReasonMessage */ - blockReasonMessage?: (string|null); - } + /** Represents a PurgeArtifactsRequest. */ + class PurgeArtifactsRequest implements IPurgeArtifactsRequest { - /** Represents a PromptFeedback. */ - class PromptFeedback implements IPromptFeedback { - - /** - * Constructs a new PromptFeedback. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback); - - /** PromptFeedback blockReason. */ - public blockReason: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|keyof typeof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason); - - /** PromptFeedback safetyRatings. */ - public safetyRatings: google.cloud.aiplatform.v1beta1.ISafetyRating[]; - - /** PromptFeedback blockReasonMessage. */ - public blockReasonMessage: string; - - /** - * Creates a new PromptFeedback instance using the specified properties. - * @param [properties] Properties to set - * @returns PromptFeedback instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; - - /** - * Encodes the specified PromptFeedback message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. - * @param message PromptFeedback message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PromptFeedback message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. - * @param message PromptFeedback message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PromptFeedback message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PromptFeedback - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; - - /** - * Decodes a PromptFeedback message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PromptFeedback - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; - - /** - * Verifies a PromptFeedback message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PromptFeedback message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PromptFeedback - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; - - /** - * Creates a plain object from a PromptFeedback message. Also converts values to other types if specified. - * @param message PromptFeedback - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PromptFeedback to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PromptFeedback - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace PromptFeedback { - - /** BlockedReason enum. */ - enum BlockedReason { - BLOCKED_REASON_UNSPECIFIED = 0, - SAFETY = 1, - OTHER = 2 - } - } - - /** Properties of a UsageMetadata. */ - interface IUsageMetadata { - - /** UsageMetadata promptTokenCount */ - promptTokenCount?: (number|null); - - /** UsageMetadata candidatesTokenCount */ - candidatesTokenCount?: (number|null); - - /** UsageMetadata totalTokenCount */ - totalTokenCount?: (number|null); - } - - /** Represents a UsageMetadata. */ - class UsageMetadata implements IUsageMetadata { - - /** - * Constructs a new UsageMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata); - - /** UsageMetadata promptTokenCount. */ - public promptTokenCount: number; - - /** UsageMetadata candidatesTokenCount. */ - public candidatesTokenCount: number; - - /** UsageMetadata totalTokenCount. */ - public totalTokenCount: number; - - /** - * Creates a new UsageMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UsageMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; - - /** - * Encodes the specified UsageMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. - * @param message UsageMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UsageMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. - * @param message UsageMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UsageMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UsageMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; - - /** - * Decodes a UsageMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UsageMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; - - /** - * Verifies a UsageMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a UsageMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UsageMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; + /** + * Constructs a new PurgeArtifactsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest); - /** - * Creates a plain object from a UsageMetadata message. Also converts values to other types if specified. - * @param message UsageMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PurgeArtifactsRequest parent. */ + public parent: string; - /** - * Converts this UsageMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PurgeArtifactsRequest filter. */ + public filter: string; - /** - * Gets the default type url for UsageMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** PurgeArtifactsRequest force. */ + public force: boolean; - /** Represents a MatchService */ - class MatchService extends $protobuf.rpc.Service { + /** + * Creates a new PurgeArtifactsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PurgeArtifactsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Constructs a new MatchService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Creates new MatchService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MatchService; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls FindNeighbors. - * @param request FindNeighborsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FindNeighborsResponse + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PurgeArtifactsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public findNeighbors(request: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest, callback: google.cloud.aiplatform.v1beta1.MatchService.FindNeighborsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Calls FindNeighbors. - * @param request FindNeighborsRequest message or plain object - * @returns Promise + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PurgeArtifactsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public findNeighbors(request: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Calls ReadIndexDatapoints. - * @param request ReadIndexDatapointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadIndexDatapointsResponse + * Verifies a PurgeArtifactsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public readIndexDatapoints(request: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.MatchService.ReadIndexDatapointsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ReadIndexDatapoints. - * @param request ReadIndexDatapointsRequest message or plain object - * @returns Promise + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PurgeArtifactsRequest */ - public readIndexDatapoints(request: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest): Promise; - } + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; - namespace MatchService { + /** + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * @param message PurgeArtifactsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|findNeighbors}. - * @param error Error, if any - * @param [response] FindNeighborsResponse + * Converts this PurgeArtifactsRequest to JSON. + * @returns JSON object */ - type FindNeighborsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|readIndexDatapoints}. - * @param error Error, if any - * @param [response] ReadIndexDatapointsResponse + * Gets the default type url for PurgeArtifactsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ReadIndexDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FindNeighborsRequest. */ - interface IFindNeighborsRequest { - - /** FindNeighborsRequest indexEndpoint */ - indexEndpoint?: (string|null); - - /** FindNeighborsRequest deployedIndexId */ - deployedIndexId?: (string|null); + /** Properties of a PurgeArtifactsResponse. */ + interface IPurgeArtifactsResponse { - /** FindNeighborsRequest queries */ - queries?: (google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery[]|null); + /** PurgeArtifactsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** FindNeighborsRequest returnFullDatapoint */ - returnFullDatapoint?: (boolean|null); + /** PurgeArtifactsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a FindNeighborsRequest. */ - class FindNeighborsRequest implements IFindNeighborsRequest { + /** Represents a PurgeArtifactsResponse. */ + class PurgeArtifactsResponse implements IPurgeArtifactsResponse { /** - * Constructs a new FindNeighborsRequest. + * Constructs a new PurgeArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest); - - /** FindNeighborsRequest indexEndpoint. */ - public indexEndpoint: string; - - /** FindNeighborsRequest deployedIndexId. */ - public deployedIndexId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse); - /** FindNeighborsRequest queries. */ - public queries: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery[]; + /** PurgeArtifactsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** FindNeighborsRequest returnFullDatapoint. */ - public returnFullDatapoint: boolean; + /** PurgeArtifactsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new FindNeighborsRequest instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FindNeighborsRequest instance + * @returns PurgeArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Encodes the specified FindNeighborsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. - * @param message FindNeighborsRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FindNeighborsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. - * @param message FindNeighborsRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFindNeighborsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindNeighborsRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FindNeighborsRequest + * @returns PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Decodes a FindNeighborsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FindNeighborsRequest + * @returns PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Verifies a FindNeighborsRequest message. + * Verifies a PurgeArtifactsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FindNeighborsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FindNeighborsRequest + * @returns PurgeArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Creates a plain object from a FindNeighborsRequest message. Also converts values to other types if specified. - * @param message FindNeighborsRequest + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * @param message PurgeArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindNeighborsRequest to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FindNeighborsRequest + * Gets the default type url for PurgeArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FindNeighborsRequest { - - /** Properties of a Query. */ - interface IQuery { - - /** Query datapoint */ - datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - - /** Query neighborCount */ - neighborCount?: (number|null); - - /** Query perCrowdingAttributeNeighborCount */ - perCrowdingAttributeNeighborCount?: (number|null); - - /** Query approximateNeighborCount */ - approximateNeighborCount?: (number|null); - - /** Query fractionLeafNodesToSearchOverride */ - fractionLeafNodesToSearchOverride?: (number|null); - } - - /** Represents a Query. */ - class Query implements IQuery { - - /** - * Constructs a new Query. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery); - - /** Query datapoint. */ - public datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - - /** Query neighborCount. */ - public neighborCount: number; - - /** Query perCrowdingAttributeNeighborCount. */ - public perCrowdingAttributeNeighborCount: number; - - /** Query approximateNeighborCount. */ - public approximateNeighborCount: number; - - /** Query fractionLeafNodesToSearchOverride. */ - public fractionLeafNodesToSearchOverride: number; - - /** - * Creates a new Query instance using the specified properties. - * @param [properties] Properties to set - * @returns Query instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; - - /** - * Encodes the specified Query message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. - * @param message Query message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Query message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. - * @param message Query message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Query message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Query - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; - - /** - * Decodes a Query message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Query - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; - - /** - * Verifies a Query message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Query message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Query - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query; - - /** - * Creates a plain object from a Query message. Also converts values to other types if specified. - * @param message Query - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Query to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Query - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a FindNeighborsResponse. */ - interface IFindNeighborsResponse { + /** Properties of a PurgeArtifactsMetadata. */ + interface IPurgeArtifactsMetadata { - /** FindNeighborsResponse nearestNeighbors */ - nearestNeighbors?: (google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors[]|null); + /** PurgeArtifactsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a FindNeighborsResponse. */ - class FindNeighborsResponse implements IFindNeighborsResponse { + /** Represents a PurgeArtifactsMetadata. */ + class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { /** - * Constructs a new FindNeighborsResponse. + * Constructs a new PurgeArtifactsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata); - /** FindNeighborsResponse nearestNeighbors. */ - public nearestNeighbors: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors[]; + /** PurgeArtifactsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new FindNeighborsResponse instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns FindNeighborsResponse instance + * @returns PurgeArtifactsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Encodes the specified FindNeighborsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. - * @param message FindNeighborsResponse message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FindNeighborsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. - * @param message FindNeighborsResponse message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFindNeighborsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindNeighborsResponse message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FindNeighborsResponse + * @returns PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Decodes a FindNeighborsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FindNeighborsResponse + * @returns PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Verifies a FindNeighborsResponse message. + * Verifies a PurgeArtifactsMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FindNeighborsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FindNeighborsResponse + * @returns PurgeArtifactsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Creates a plain object from a FindNeighborsResponse message. Also converts values to other types if specified. - * @param message FindNeighborsResponse + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * @param message PurgeArtifactsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindNeighborsResponse to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FindNeighborsResponse + * Gets the default type url for PurgeArtifactsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FindNeighborsResponse { - - /** Properties of a Neighbor. */ - interface INeighbor { - - /** Neighbor datapoint */ - datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - - /** Neighbor distance */ - distance?: (number|null); - } - - /** Represents a Neighbor. */ - class Neighbor implements INeighbor { - - /** - * Constructs a new Neighbor. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor); - - /** Neighbor datapoint. */ - public datapoint?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint|null); - - /** Neighbor distance. */ - public distance: number; - - /** - * Creates a new Neighbor instance using the specified properties. - * @param [properties] Properties to set - * @returns Neighbor instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; - - /** - * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. - * @param message Neighbor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. - * @param message Neighbor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Neighbor message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Neighbor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; - - /** - * Decodes a Neighbor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Neighbor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; - - /** - * Verifies a Neighbor message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Neighbor - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor; - - /** - * Creates a plain object from a Neighbor message. Also converts values to other types if specified. - * @param message Neighbor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Neighbor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Neighbor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a NearestNeighbors. */ - interface INearestNeighbors { - - /** NearestNeighbors id */ - id?: (string|null); - - /** NearestNeighbors neighbors */ - neighbors?: (google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor[]|null); - } - - /** Represents a NearestNeighbors. */ - class NearestNeighbors implements INearestNeighbors { - - /** - * Constructs a new NearestNeighbors. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors); - - /** NearestNeighbors id. */ - public id: string; - - /** NearestNeighbors neighbors. */ - public neighbors: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor[]; - - /** - * Creates a new NearestNeighbors instance using the specified properties. - * @param [properties] Properties to set - * @returns NearestNeighbors instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; - - /** - * Encodes the specified NearestNeighbors message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. - * @param message NearestNeighbors message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NearestNeighbors message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. - * @param message NearestNeighbors message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NearestNeighbors message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NearestNeighbors - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; - - /** - * Decodes a NearestNeighbors message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NearestNeighbors - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; - - /** - * Verifies a NearestNeighbors message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NearestNeighbors message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NearestNeighbors - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors; - - /** - * Creates a plain object from a NearestNeighbors message. Also converts values to other types if specified. - * @param message NearestNeighbors - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NearestNeighbors to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NearestNeighbors - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ReadIndexDatapointsRequest. */ - interface IReadIndexDatapointsRequest { + /** Properties of a CreateContextRequest. */ + interface ICreateContextRequest { - /** ReadIndexDatapointsRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** CreateContextRequest parent */ + parent?: (string|null); - /** ReadIndexDatapointsRequest deployedIndexId */ - deployedIndexId?: (string|null); + /** CreateContextRequest context */ + context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** ReadIndexDatapointsRequest ids */ - ids?: (string[]|null); + /** CreateContextRequest contextId */ + contextId?: (string|null); } - /** Represents a ReadIndexDatapointsRequest. */ - class ReadIndexDatapointsRequest implements IReadIndexDatapointsRequest { + /** Represents a CreateContextRequest. */ + class CreateContextRequest implements ICreateContextRequest { /** - * Constructs a new ReadIndexDatapointsRequest. + * Constructs a new CreateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest); - /** ReadIndexDatapointsRequest indexEndpoint. */ - public indexEndpoint: string; + /** CreateContextRequest parent. */ + public parent: string; - /** ReadIndexDatapointsRequest deployedIndexId. */ - public deployedIndexId: string; + /** CreateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** ReadIndexDatapointsRequest ids. */ - public ids: string[]; + /** CreateContextRequest contextId. */ + public contextId: string; /** - * Creates a new ReadIndexDatapointsRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadIndexDatapointsRequest instance + * @returns CreateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Encodes the specified ReadIndexDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. - * @param message ReadIndexDatapointsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadIndexDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. - * @param message ReadIndexDatapointsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadIndexDatapointsRequest + * @returns CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadIndexDatapointsRequest + * @returns CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Verifies a ReadIndexDatapointsRequest message. + * Verifies a CreateContextRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadIndexDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadIndexDatapointsRequest + * @returns CreateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Creates a plain object from a ReadIndexDatapointsRequest message. Also converts values to other types if specified. - * @param message ReadIndexDatapointsRequest + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * @param message CreateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadIndexDatapointsRequest to JSON. + * Converts this CreateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadIndexDatapointsRequest + * Gets the default type url for CreateContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadIndexDatapointsResponse. */ - interface IReadIndexDatapointsResponse { + /** Properties of a GetContextRequest. */ + interface IGetContextRequest { - /** ReadIndexDatapointsResponse datapoints */ - datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); + /** GetContextRequest name */ + name?: (string|null); } - /** Represents a ReadIndexDatapointsResponse. */ - class ReadIndexDatapointsResponse implements IReadIndexDatapointsResponse { + /** Represents a GetContextRequest. */ + class GetContextRequest implements IGetContextRequest { /** - * Constructs a new ReadIndexDatapointsResponse. + * Constructs a new GetContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest); - /** ReadIndexDatapointsResponse datapoints. */ - public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; + /** GetContextRequest name. */ + public name: string; /** - * Creates a new ReadIndexDatapointsResponse instance using the specified properties. + * Creates a new GetContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadIndexDatapointsResponse instance + * @returns GetContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Encodes the specified ReadIndexDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. - * @param message ReadIndexDatapointsResponse message or plain object to encode + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadIndexDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. - * @param message ReadIndexDatapointsResponse message or plain object to encode + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer. + * Decodes a GetContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadIndexDatapointsResponse + * @returns GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadIndexDatapointsResponse + * @returns GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Verifies a ReadIndexDatapointsResponse message. + * Verifies a GetContextRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadIndexDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadIndexDatapointsResponse + * @returns GetContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Creates a plain object from a ReadIndexDatapointsResponse message. Also converts values to other types if specified. - * @param message ReadIndexDatapointsResponse + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * @param message GetContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadIndexDatapointsResponse to JSON. + * Converts this GetContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadIndexDatapointsResponse + * Gets the default type url for GetContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MetadataSchema. */ - interface IMetadataSchema { - - /** MetadataSchema name */ - name?: (string|null); + /** Properties of a ListContextsRequest. */ + interface IListContextsRequest { - /** MetadataSchema schemaVersion */ - schemaVersion?: (string|null); + /** ListContextsRequest parent */ + parent?: (string|null); - /** MetadataSchema schema */ - schema?: (string|null); + /** ListContextsRequest pageSize */ + pageSize?: (number|null); - /** MetadataSchema schemaType */ - schemaType?: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null); + /** ListContextsRequest pageToken */ + pageToken?: (string|null); - /** MetadataSchema createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListContextsRequest filter */ + filter?: (string|null); - /** MetadataSchema description */ - description?: (string|null); + /** ListContextsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a MetadataSchema. */ - class MetadataSchema implements IMetadataSchema { + /** Represents a ListContextsRequest. */ + class ListContextsRequest implements IListContextsRequest { /** - * Constructs a new MetadataSchema. + * Constructs a new ListContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema); - - /** MetadataSchema name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest); - /** MetadataSchema schemaVersion. */ - public schemaVersion: string; + /** ListContextsRequest parent. */ + public parent: string; - /** MetadataSchema schema. */ - public schema: string; + /** ListContextsRequest pageSize. */ + public pageSize: number; - /** MetadataSchema schemaType. */ - public schemaType: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType); + /** ListContextsRequest pageToken. */ + public pageToken: string; - /** MetadataSchema createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListContextsRequest filter. */ + public filter: string; - /** MetadataSchema description. */ - public description: string; + /** ListContextsRequest orderBy. */ + public orderBy: string; /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new ListContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MetadataSchema instance + * @returns ListContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema): google.cloud.aiplatform.v1beta1.MetadataSchema; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetadataSchema + * @returns ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataSchema; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetadataSchema + * @returns ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataSchema; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Verifies a MetadataSchema message. + * Verifies a ListContextsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetadataSchema + * @returns ListContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataSchema; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. - * @param message MetadataSchema + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * @param message ListContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetadataSchema to JSON. + * Converts this ListContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MetadataSchema + * Gets the default type url for ListContextsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MetadataSchema { + /** Properties of a ListContextsResponse. */ + interface IListContextsResponse { - /** MetadataSchemaType enum. */ - enum MetadataSchemaType { - METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, - ARTIFACT_TYPE = 1, - EXECUTION_TYPE = 2, - CONTEXT_TYPE = 3 - } + /** ListContextsResponse contexts */ + contexts?: (google.cloud.aiplatform.v1beta1.IContext[]|null); + + /** ListContextsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a MetadataService */ - class MetadataService extends $protobuf.rpc.Service { + /** Represents a ListContextsResponse. */ + class ListContextsResponse implements IListContextsResponse { /** - * Constructs a new MetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new ListContextsResponse. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse); - /** - * Creates new MetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; + /** ListContextsResponse contexts. */ + public contexts: google.cloud.aiplatform.v1beta1.IContext[]; - /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback): void; + /** ListContextsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @returns Promise + * Creates a new ListContextsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListContextsResponse instance */ - public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataStore + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @returns Promise + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + * Decodes a ListContextsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListContextsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @returns Promise + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListContextsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a ListContextsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @returns Promise + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListContextsResponse */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * @param message ListContextsResponse + * @param [options] Conversion options + * @returns Plain object */ - public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @returns Promise + * Converts this ListContextsResponse to JSON. + * @returns JSON object */ - public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact + * Gets the default type url for ListContextsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @returns Promise - */ - public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): Promise; + /** Properties of an UpdateContextRequest. */ + interface IUpdateContextRequest { - /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse - */ - public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback): void; + /** UpdateContextRequest context */ + context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @returns Promise - */ - public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): Promise; + /** UpdateContextRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback): void; + /** UpdateContextRequest allowMissing */ + allowMissing?: (boolean|null); + } - /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @returns Promise - */ - public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): Promise; + /** Represents an UpdateContextRequest. */ + class UpdateContextRequest implements IUpdateContextRequest { /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new UpdateContextRequest. + * @param [properties] Properties to set */ - public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest); - /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @returns Promise - */ - public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): Promise; + /** UpdateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback): void; + /** UpdateContextRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @returns Promise - */ - public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): Promise; + /** UpdateContextRequest allowMissing. */ + public allowMissing: boolean; /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context + * Creates a new UpdateContextRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateContextRequest instance */ - public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @returns Promise + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @returns Promise + * Decodes an UpdateContextRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContextsResponse + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @returns Promise + * Verifies an UpdateContextRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateContextRequest */ - public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @returns Promise + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * @param message UpdateContextRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this UpdateContextRequest to JSON. + * @returns JSON object */ - public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @returns Promise + * Gets the default type url for UpdateContextRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback): void; + /** Properties of a DeleteContextRequest. */ + interface IDeleteContextRequest { - /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @returns Promise - */ - public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): Promise; + /** DeleteContextRequest name */ + name?: (string|null); - /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse - */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; + /** DeleteContextRequest force */ + force?: (boolean|null); - /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns Promise - */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): Promise; + /** DeleteContextRequest etag */ + etag?: (string|null); + } - /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse - */ - public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback): void; + /** Represents a DeleteContextRequest. */ + class DeleteContextRequest implements IDeleteContextRequest { /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @returns Promise + * Constructs a new DeleteContextRequest. + * @param [properties] Properties to set */ - public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest); - /** - * Calls RemoveContextChildren. - * @param request RemoveContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse - */ - public removeContextChildren(request: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildrenCallback): void; + /** DeleteContextRequest name. */ + public name: string; - /** - * Calls RemoveContextChildren. - * @param request RemoveContextChildrenRequest message or plain object - * @returns Promise - */ - public removeContextChildren(request: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest): Promise; + /** DeleteContextRequest force. */ + public force: boolean; - /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph - */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback): void; + /** DeleteContextRequest etag. */ + public etag: string; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @returns Promise + * Creates a new DeleteContextRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteContextRequest instance */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @returns Promise + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution + * Decodes a DeleteContextRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @returns Promise + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse + * Verifies a DeleteContextRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @returns Promise + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteContextRequest */ - public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * @param message DeleteContextRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @returns Promise + * Converts this DeleteContextRequest to JSON. + * @returns JSON object */ - public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for DeleteContextRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @returns Promise - */ - public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): Promise; + /** Properties of a PurgeContextsRequest. */ + interface IPurgeContextsRequest { - /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback): void; + /** PurgeContextsRequest parent */ + parent?: (string|null); - /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @returns Promise - */ - public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): Promise; + /** PurgeContextsRequest filter */ + filter?: (string|null); - /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - */ - public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback): void; + /** PurgeContextsRequest force */ + force?: (boolean|null); + } + + /** Represents a PurgeContextsRequest. */ + class PurgeContextsRequest implements IPurgeContextsRequest { /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @returns Promise + * Constructs a new PurgeContextsRequest. + * @param [properties] Properties to set */ - public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest); + + /** PurgeContextsRequest parent. */ + public parent: string; + + /** PurgeContextsRequest filter. */ + public filter: string; + + /** PurgeContextsRequest force. */ + public force: boolean; /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Creates a new PurgeContextsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PurgeContextsRequest instance */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns Promise + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @returns Promise + * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PurgeContextsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PurgeContextsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @returns Promise + * Verifies a PurgeContextsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PurgeContextsRequest */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @returns Promise + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * @param message PurgeContextsRequest + * @param [options] Conversion options + * @returns Plain object */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Converts this PurgeContextsRequest to JSON. + * @returns JSON object */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @returns Promise + * Gets the default type url for PurgeContextsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MetadataService { - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Properties of a PurgeContextsResponse. */ + interface IPurgeContextsResponse { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataStore}. - * @param error Error, if any - * @param [response] MetadataStore - */ - type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataStore) => void; + /** PurgeContextsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataStores}. - * @param error Error, if any - * @param [response] ListMetadataStoresResponse - */ - type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) => void; + /** PurgeContextsResponse purgeSample */ + purgeSample?: (string[]|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a PurgeContextsResponse. */ + class PurgeContextsResponse implements IPurgeContextsResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createArtifact}. - * @param error Error, if any - * @param [response] Artifact + * Constructs a new PurgeContextsResponse. + * @param [properties] Properties to set */ - type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; + /** PurgeContextsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listArtifacts}. - * @param error Error, if any - * @param [response] ListArtifactsResponse - */ - type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListArtifactsResponse) => void; + /** PurgeContextsResponse purgeSample. */ + public purgeSample: string[]; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateArtifact}. - * @param error Error, if any - * @param [response] Artifact + * Creates a new PurgeContextsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PurgeContextsResponse instance */ - type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteArtifact}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeArtifacts}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createContext}. - * @param error Error, if any - * @param [response] Context + * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PurgeContextsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getContext}. - * @param error Error, if any - * @param [response] Context + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PurgeContextsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listContexts}. - * @param error Error, if any - * @param [response] ListContextsResponse + * Verifies a PurgeContextsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListContextsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateContext}. - * @param error Error, if any - * @param [response] Context + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PurgeContextsResponse */ - type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteContext}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * @param message PurgeContextsResponse + * @param [options] Conversion options + * @returns Plain object */ - type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeContexts}. - * @param error Error, if any - * @param [response] Operation + * Converts this PurgeContextsResponse to JSON. + * @returns JSON object */ - type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextArtifactsAndExecutions}. - * @param error Error, if any - * @param [response] AddContextArtifactsAndExecutionsResponse + * Gets the default type url for PurgeContextsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextChildren}. - * @param error Error, if any - * @param [response] AddContextChildrenResponse - */ - type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) => void; + /** Properties of a PurgeContextsMetadata. */ + interface IPurgeContextsMetadata { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|removeContextChildren}. - * @param error Error, if any - * @param [response] RemoveContextChildrenResponse - */ - type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse) => void; + /** PurgeContextsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryContextLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + /** Represents a PurgeContextsMetadata. */ + class PurgeContextsMetadata implements IPurgeContextsMetadata { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createExecution}. - * @param error Error, if any - * @param [response] Execution + * Constructs a new PurgeContextsMetadata. + * @param [properties] Properties to set */ - type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; + /** PurgeContextsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listExecutions}. - * @param error Error, if any - * @param [response] ListExecutionsResponse + * Creates a new PurgeContextsMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns PurgeContextsMetadata instance */ - type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListExecutionsResponse) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateExecution}. - * @param error Error, if any - * @param [response] Execution + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteExecution}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeExecutions}. - * @param error Error, if any - * @param [response] Operation + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PurgeContextsMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addExecutionEvents}. - * @param error Error, if any - * @param [response] AddExecutionEventsResponse + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PurgeContextsMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryExecutionInputsAndOutputs}. - * @param error Error, if any - * @param [response] LineageSubgraph + * Verifies a PurgeContextsMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PurgeContextsMetadata */ - type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * @param message PurgeContextsMetadata + * @param [options] Conversion options + * @returns Plain object */ - type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataSchemas}. - * @param error Error, if any - * @param [response] ListMetadataSchemasResponse + * Converts this PurgeContextsMetadata to JSON. + * @returns JSON object */ - type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryArtifactLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph + * Gets the default type url for PurgeContextsMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateMetadataStoreRequest. */ - interface ICreateMetadataStoreRequest { + /** Properties of an AddContextArtifactsAndExecutionsRequest. */ + interface IAddContextArtifactsAndExecutionsRequest { - /** CreateMetadataStoreRequest parent */ - parent?: (string|null); + /** AddContextArtifactsAndExecutionsRequest context */ + context?: (string|null); - /** CreateMetadataStoreRequest metadataStore */ - metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + /** AddContextArtifactsAndExecutionsRequest artifacts */ + artifacts?: (string[]|null); - /** CreateMetadataStoreRequest metadataStoreId */ - metadataStoreId?: (string|null); + /** AddContextArtifactsAndExecutionsRequest executions */ + executions?: (string[]|null); } - /** Represents a CreateMetadataStoreRequest. */ - class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { + /** Represents an AddContextArtifactsAndExecutionsRequest. */ + class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { /** - * Constructs a new CreateMetadataStoreRequest. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest); - /** CreateMetadataStoreRequest parent. */ - public parent: string; + /** AddContextArtifactsAndExecutionsRequest context. */ + public context: string; - /** CreateMetadataStoreRequest metadataStore. */ - public metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + /** AddContextArtifactsAndExecutionsRequest artifacts. */ + public artifacts: string[]; - /** CreateMetadataStoreRequest metadataStoreId. */ - public metadataStoreId: string; + /** AddContextArtifactsAndExecutionsRequest executions. */ + public executions: string[]; /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataStoreRequest instance + * @returns AddContextArtifactsAndExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreRequest + * @returns AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreRequest + * @returns AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Verifies a CreateMetadataStoreRequest message. + * Verifies an AddContextArtifactsAndExecutionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataStoreRequest + * @returns AddContextArtifactsAndExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. - * @param message CreateMetadataStoreRequest + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataStoreRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMetadataStoreRequest + * Gets the default type url for AddContextArtifactsAndExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateMetadataStoreOperationMetadata. */ - interface ICreateMetadataStoreOperationMetadata { - - /** CreateMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of an AddContextArtifactsAndExecutionsResponse. */ + interface IAddContextArtifactsAndExecutionsResponse { } - /** Represents a CreateMetadataStoreOperationMetadata. */ - class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { + /** Represents an AddContextArtifactsAndExecutionsResponse. */ + class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata); - - /** CreateMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse); /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataStoreOperationMetadata instance + * @returns AddContextArtifactsAndExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreOperationMetadata + * @returns AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreOperationMetadata + * @returns AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies an AddContextArtifactsAndExecutionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataStoreOperationMetadata + * @returns AddContextArtifactsAndExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateMetadataStoreOperationMetadata + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMetadataStoreOperationMetadata + * Gets the default type url for AddContextArtifactsAndExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetMetadataStoreRequest. */ - interface IGetMetadataStoreRequest { + /** Properties of an AddContextChildrenRequest. */ + interface IAddContextChildrenRequest { - /** GetMetadataStoreRequest name */ - name?: (string|null); + /** AddContextChildrenRequest context */ + context?: (string|null); + + /** AddContextChildrenRequest childContexts */ + childContexts?: (string[]|null); } - /** Represents a GetMetadataStoreRequest. */ - class GetMetadataStoreRequest implements IGetMetadataStoreRequest { + /** Represents an AddContextChildrenRequest. */ + class AddContextChildrenRequest implements IAddContextChildrenRequest { /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new AddContextChildrenRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest); - /** GetMetadataStoreRequest name. */ - public name: string; + /** AddContextChildrenRequest context. */ + public context: string; + + /** AddContextChildrenRequest childContexts. */ + public childContexts: string[]; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetMetadataStoreRequest instance + * @returns AddContextChildrenRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMetadataStoreRequest + * @returns AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMetadataStoreRequest + * @returns AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies an AddContextChildrenRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMetadataStoreRequest + * @returns AddContextChildrenRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. - * @param message GetMetadataStoreRequest + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * @param message AddContextChildrenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this AddContextChildrenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetMetadataStoreRequest + * Gets the default type url for AddContextChildrenRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataStoresRequest. */ - interface IListMetadataStoresRequest { - - /** ListMetadataStoresRequest parent */ - parent?: (string|null); - - /** ListMetadataStoresRequest pageSize */ - pageSize?: (number|null); - - /** ListMetadataStoresRequest pageToken */ - pageToken?: (string|null); + /** Properties of an AddContextChildrenResponse. */ + interface IAddContextChildrenResponse { } - /** Represents a ListMetadataStoresRequest. */ - class ListMetadataStoresRequest implements IListMetadataStoresRequest { + /** Represents an AddContextChildrenResponse. */ + class AddContextChildrenResponse implements IAddContextChildrenResponse { /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new AddContextChildrenResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest); - - /** ListMetadataStoresRequest parent. */ - public parent: string; - - /** ListMetadataStoresRequest pageSize. */ - public pageSize: number; - - /** ListMetadataStoresRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse); /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataStoresRequest instance + * @returns AddContextChildrenResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataStoresRequest + * @returns AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresRequest + * @returns AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies an AddContextChildrenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataStoresRequest + * @returns AddContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. - * @param message ListMetadataStoresRequest + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * @param message AddContextChildrenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this AddContextChildrenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataStoresRequest + * Gets the default type url for AddContextChildrenResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataStoresResponse. */ - interface IListMetadataStoresResponse { + /** Properties of a RemoveContextChildrenRequest. */ + interface IRemoveContextChildrenRequest { - /** ListMetadataStoresResponse metadataStores */ - metadataStores?: (google.cloud.aiplatform.v1beta1.IMetadataStore[]|null); + /** RemoveContextChildrenRequest context */ + context?: (string|null); - /** ListMetadataStoresResponse nextPageToken */ - nextPageToken?: (string|null); + /** RemoveContextChildrenRequest childContexts */ + childContexts?: (string[]|null); } - /** Represents a ListMetadataStoresResponse. */ - class ListMetadataStoresResponse implements IListMetadataStoresResponse { + /** Represents a RemoveContextChildrenRequest. */ + class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { /** - * Constructs a new ListMetadataStoresResponse. + * Constructs a new RemoveContextChildrenRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest); - /** ListMetadataStoresResponse metadataStores. */ - public metadataStores: google.cloud.aiplatform.v1beta1.IMetadataStore[]; + /** RemoveContextChildrenRequest context. */ + public context: string; - /** ListMetadataStoresResponse nextPageToken. */ - public nextPageToken: string; + /** RemoveContextChildrenRequest childContexts. */ + public childContexts: string[]; /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. + * Creates a new RemoveContextChildrenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataStoresResponse instance + * @returns RemoveContextChildrenRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataStoresResponse + * @returns RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresResponse + * @returns RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; /** - * Verifies a ListMetadataStoresResponse message. + * Verifies a RemoveContextChildrenRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataStoresResponse + * @returns RemoveContextChildrenRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. - * @param message ListMetadataStoresResponse + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @param message RemoveContextChildrenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataStoresResponse to JSON. + * Converts this RemoveContextChildrenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataStoresResponse + * Gets the default type url for RemoveContextChildrenRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteMetadataStoreRequest. */ - interface IDeleteMetadataStoreRequest { - - /** DeleteMetadataStoreRequest name */ - name?: (string|null); - - /** DeleteMetadataStoreRequest force */ - force?: (boolean|null); + /** Properties of a RemoveContextChildrenResponse. */ + interface IRemoveContextChildrenResponse { } - /** Represents a DeleteMetadataStoreRequest. */ - class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { + /** Represents a RemoveContextChildrenResponse. */ + class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { /** - * Constructs a new DeleteMetadataStoreRequest. + * Constructs a new RemoveContextChildrenResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest); - - /** DeleteMetadataStoreRequest name. */ - public name: string; - - /** DeleteMetadataStoreRequest force. */ - public force: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse); /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. + * Creates a new RemoveContextChildrenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMetadataStoreRequest instance + * @returns RemoveContextChildrenResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreRequest + * @returns RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreRequest + * @returns RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; /** - * Verifies a DeleteMetadataStoreRequest message. + * Verifies a RemoveContextChildrenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMetadataStoreRequest + * @returns RemoveContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreRequest + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @param message RemoveContextChildrenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMetadataStoreRequest to JSON. + * Converts this RemoveContextChildrenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteMetadataStoreRequest + * Gets the default type url for RemoveContextChildrenResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteMetadataStoreOperationMetadata. */ - interface IDeleteMetadataStoreOperationMetadata { + /** Properties of a QueryContextLineageSubgraphRequest. */ + interface IQueryContextLineageSubgraphRequest { - /** DeleteMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** QueryContextLineageSubgraphRequest context */ + context?: (string|null); } - /** Represents a DeleteMetadataStoreOperationMetadata. */ - class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { + /** Represents a QueryContextLineageSubgraphRequest. */ + class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { /** - * Constructs a new DeleteMetadataStoreOperationMetadata. + * Constructs a new QueryContextLineageSubgraphRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest); - /** DeleteMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** QueryContextLineageSubgraphRequest context. */ + public context: string; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMetadataStoreOperationMetadata instance + * @returns QueryContextLineageSubgraphRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreOperationMetadata + * @returns QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreOperationMetadata + * @returns QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Verifies a DeleteMetadataStoreOperationMetadata message. + * Verifies a QueryContextLineageSubgraphRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMetadataStoreOperationMetadata + * @returns QueryContextLineageSubgraphRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreOperationMetadata + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryContextLineageSubgraphRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * Converts this QueryContextLineageSubgraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteMetadataStoreOperationMetadata + * Gets the default type url for QueryContextLineageSubgraphRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateArtifactRequest. */ - interface ICreateArtifactRequest { + /** Properties of a CreateExecutionRequest. */ + interface ICreateExecutionRequest { - /** CreateArtifactRequest parent */ + /** CreateExecutionRequest parent */ parent?: (string|null); - /** CreateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** CreateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - /** CreateArtifactRequest artifactId */ - artifactId?: (string|null); + /** CreateExecutionRequest executionId */ + executionId?: (string|null); } - /** Represents a CreateArtifactRequest. */ - class CreateArtifactRequest implements ICreateArtifactRequest { + /** Represents a CreateExecutionRequest. */ + class CreateExecutionRequest implements ICreateExecutionRequest { /** - * Constructs a new CreateArtifactRequest. + * Constructs a new CreateExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest); - /** CreateArtifactRequest parent. */ + /** CreateExecutionRequest parent. */ public parent: string; - /** CreateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** CreateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - /** CreateArtifactRequest artifactId. */ - public artifactId: string; + /** CreateExecutionRequest executionId. */ + public executionId: string; /** - * Creates a new CreateArtifactRequest instance using the specified properties. + * Creates a new CreateExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateArtifactRequest instance + * @returns CreateExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. + * Decodes a CreateExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateArtifactRequest + * @returns CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateArtifactRequest + * @returns CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Verifies a CreateArtifactRequest message. + * Verifies a CreateExecutionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateArtifactRequest + * @returns CreateExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. - * @param message CreateArtifactRequest + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * @param message CreateExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateArtifactRequest to JSON. + * Converts this CreateExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateArtifactRequest + * Gets the default type url for CreateExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetArtifactRequest. */ - interface IGetArtifactRequest { + /** Properties of a GetExecutionRequest. */ + interface IGetExecutionRequest { - /** GetArtifactRequest name */ + /** GetExecutionRequest name */ name?: (string|null); } - /** Represents a GetArtifactRequest. */ - class GetArtifactRequest implements IGetArtifactRequest { + /** Represents a GetExecutionRequest. */ + class GetExecutionRequest implements IGetExecutionRequest { /** - * Constructs a new GetArtifactRequest. + * Constructs a new GetExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest); - /** GetArtifactRequest name. */ + /** GetExecutionRequest name. */ public name: string; /** - * Creates a new GetArtifactRequest instance using the specified properties. + * Creates a new GetExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetArtifactRequest instance + * @returns GetExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetArtifactRequest + * @returns GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetArtifactRequest + * @returns GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Verifies a GetArtifactRequest message. + * Verifies a GetExecutionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetArtifactRequest + * @returns GetExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. - * @param message GetArtifactRequest + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * @param message GetExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetArtifactRequest to JSON. + * Converts this GetExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetArtifactRequest + * Gets the default type url for GetExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListArtifactsRequest. */ - interface IListArtifactsRequest { + /** Properties of a ListExecutionsRequest. */ + interface IListExecutionsRequest { - /** ListArtifactsRequest parent */ + /** ListExecutionsRequest parent */ parent?: (string|null); - /** ListArtifactsRequest pageSize */ + /** ListExecutionsRequest pageSize */ pageSize?: (number|null); - /** ListArtifactsRequest pageToken */ + /** ListExecutionsRequest pageToken */ pageToken?: (string|null); - /** ListArtifactsRequest filter */ + /** ListExecutionsRequest filter */ filter?: (string|null); - /** ListArtifactsRequest orderBy */ + /** ListExecutionsRequest orderBy */ orderBy?: (string|null); } - /** Represents a ListArtifactsRequest. */ - class ListArtifactsRequest implements IListArtifactsRequest { + /** Represents a ListExecutionsRequest. */ + class ListExecutionsRequest implements IListExecutionsRequest { /** - * Constructs a new ListArtifactsRequest. + * Constructs a new ListExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest); - /** ListArtifactsRequest parent. */ + /** ListExecutionsRequest parent. */ public parent: string; - /** ListArtifactsRequest pageSize. */ + /** ListExecutionsRequest pageSize. */ public pageSize: number; - /** ListArtifactsRequest pageToken. */ + /** ListExecutionsRequest pageToken. */ public pageToken: string; - /** ListArtifactsRequest filter. */ + /** ListExecutionsRequest filter. */ public filter: string; - /** ListArtifactsRequest orderBy. */ + /** ListExecutionsRequest orderBy. */ public orderBy: string; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new ListExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsRequest instance + * @returns ListExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsRequest + * @returns ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsRequest + * @returns ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Verifies a ListArtifactsRequest message. + * Verifies a ListExecutionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsRequest + * @returns ListExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. - * @param message ListArtifactsRequest + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * @param message ListExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this ListExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListArtifactsRequest + * Gets the default type url for ListExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListArtifactsResponse. */ - interface IListArtifactsResponse { + /** Properties of a ListExecutionsResponse. */ + interface IListExecutionsResponse { - /** ListArtifactsResponse artifacts */ - artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); + /** ListExecutionsResponse executions */ + executions?: (google.cloud.aiplatform.v1beta1.IExecution[]|null); - /** ListArtifactsResponse nextPageToken */ + /** ListExecutionsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListArtifactsResponse. */ - class ListArtifactsResponse implements IListArtifactsResponse { + /** Represents a ListExecutionsResponse. */ + class ListExecutionsResponse implements IListExecutionsResponse { /** - * Constructs a new ListArtifactsResponse. + * Constructs a new ListExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse); - /** ListArtifactsResponse artifacts. */ - public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; + /** ListExecutionsResponse executions. */ + public executions: google.cloud.aiplatform.v1beta1.IExecution[]; - /** ListArtifactsResponse nextPageToken. */ + /** ListExecutionsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsResponse instance + * @returns ListExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsResponse + * @returns ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsResponse + * @returns ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Verifies a ListArtifactsResponse message. + * Verifies a ListExecutionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsResponse + * @returns ListExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. - * @param message ListArtifactsResponse + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * @param message ListExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsResponse to JSON. + * Converts this ListExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListArtifactsResponse + * Gets the default type url for ListExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateArtifactRequest. */ - interface IUpdateArtifactRequest { + /** Properties of an UpdateExecutionRequest. */ + interface IUpdateExecutionRequest { - /** UpdateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** UpdateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - /** UpdateArtifactRequest updateMask */ + /** UpdateExecutionRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateArtifactRequest allowMissing */ + /** UpdateExecutionRequest allowMissing */ allowMissing?: (boolean|null); } - /** Represents an UpdateArtifactRequest. */ - class UpdateArtifactRequest implements IUpdateArtifactRequest { + /** Represents an UpdateExecutionRequest. */ + class UpdateExecutionRequest implements IUpdateExecutionRequest { /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new UpdateExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest); - /** UpdateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** UpdateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - /** UpdateArtifactRequest updateMask. */ + /** UpdateExecutionRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateArtifactRequest allowMissing. */ + /** UpdateExecutionRequest allowMissing. */ public allowMissing: boolean; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new UpdateExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateArtifactRequest instance + * @returns UpdateExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateArtifactRequest + * @returns UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateArtifactRequest + * @returns UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Verifies an UpdateArtifactRequest message. + * Verifies an UpdateExecutionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateArtifactRequest + * @returns UpdateExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. - * @param message UpdateArtifactRequest + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * @param message UpdateExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateArtifactRequest + * Gets the default type url for UpdateExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteArtifactRequest. */ - interface IDeleteArtifactRequest { + /** Properties of a DeleteExecutionRequest. */ + interface IDeleteExecutionRequest { - /** DeleteArtifactRequest name */ + /** DeleteExecutionRequest name */ name?: (string|null); - /** DeleteArtifactRequest etag */ + /** DeleteExecutionRequest etag */ etag?: (string|null); } - /** Represents a DeleteArtifactRequest. */ - class DeleteArtifactRequest implements IDeleteArtifactRequest { + /** Represents a DeleteExecutionRequest. */ + class DeleteExecutionRequest implements IDeleteExecutionRequest { /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new DeleteExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest); - /** DeleteArtifactRequest name. */ + /** DeleteExecutionRequest name. */ public name: string; - /** DeleteArtifactRequest etag. */ + /** DeleteExecutionRequest etag. */ public etag: string; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * Creates a new DeleteExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteArtifactRequest instance + * @returns DeleteExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteArtifactRequest + * @returns DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteArtifactRequest + * @returns DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a DeleteExecutionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteArtifactRequest + * @returns DeleteExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. - * @param message DeleteArtifactRequest + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. + * @param message DeleteExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this DeleteExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteArtifactRequest + * Gets the default type url for DeleteExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeArtifactsRequest. */ - interface IPurgeArtifactsRequest { + /** Properties of a PurgeExecutionsRequest. */ + interface IPurgeExecutionsRequest { - /** PurgeArtifactsRequest parent */ + /** PurgeExecutionsRequest parent */ parent?: (string|null); - /** PurgeArtifactsRequest filter */ + /** PurgeExecutionsRequest filter */ filter?: (string|null); - /** PurgeArtifactsRequest force */ + /** PurgeExecutionsRequest force */ force?: (boolean|null); } - /** Represents a PurgeArtifactsRequest. */ - class PurgeArtifactsRequest implements IPurgeArtifactsRequest { + /** Represents a PurgeExecutionsRequest. */ + class PurgeExecutionsRequest implements IPurgeExecutionsRequest { /** - * Constructs a new PurgeArtifactsRequest. + * Constructs a new PurgeExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest); - /** PurgeArtifactsRequest parent. */ + /** PurgeExecutionsRequest parent. */ public parent: string; - /** PurgeArtifactsRequest filter. */ + /** PurgeExecutionsRequest filter. */ public filter: string; - /** PurgeArtifactsRequest force. */ + /** PurgeExecutionsRequest force. */ public force: boolean; /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. + * Creates a new PurgeExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeArtifactsRequest instance + * @returns PurgeExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeArtifactsRequest + * @returns PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsRequest + * @returns PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Verifies a PurgeArtifactsRequest message. + * Verifies a PurgeExecutionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeArtifactsRequest + * @returns PurgeExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. - * @param message PurgeArtifactsRequest + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * @param message PurgeExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeArtifactsRequest to JSON. + * Converts this PurgeExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeArtifactsRequest + * Gets the default type url for PurgeExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeArtifactsResponse. */ - interface IPurgeArtifactsResponse { + /** Properties of a PurgeExecutionsResponse. */ + interface IPurgeExecutionsResponse { - /** PurgeArtifactsResponse purgeCount */ + /** PurgeExecutionsResponse purgeCount */ purgeCount?: (number|Long|string|null); - /** PurgeArtifactsResponse purgeSample */ + /** PurgeExecutionsResponse purgeSample */ purgeSample?: (string[]|null); } - /** Represents a PurgeArtifactsResponse. */ - class PurgeArtifactsResponse implements IPurgeArtifactsResponse { + /** Represents a PurgeExecutionsResponse. */ + class PurgeExecutionsResponse implements IPurgeExecutionsResponse { /** - * Constructs a new PurgeArtifactsResponse. + * Constructs a new PurgeExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse); - /** PurgeArtifactsResponse purgeCount. */ + /** PurgeExecutionsResponse purgeCount. */ public purgeCount: (number|Long|string); - /** PurgeArtifactsResponse purgeSample. */ + /** PurgeExecutionsResponse purgeSample. */ public purgeSample: string[]; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeArtifactsResponse instance + * @returns PurgeExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeArtifactsResponse + * @returns PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsResponse + * @returns PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Verifies a PurgeArtifactsResponse message. + * Verifies a PurgeExecutionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeArtifactsResponse + * @returns PurgeExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. - * @param message PurgeArtifactsResponse + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. + * @param message PurgeExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeArtifactsResponse to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeArtifactsResponse + * Gets the default type url for PurgeExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeArtifactsMetadata. */ - interface IPurgeArtifactsMetadata { + /** Properties of a PurgeExecutionsMetadata. */ + interface IPurgeExecutionsMetadata { - /** PurgeArtifactsMetadata genericMetadata */ + /** PurgeExecutionsMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a PurgeArtifactsMetadata. */ - class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { + /** Represents a PurgeExecutionsMetadata. */ + class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { /** - * Constructs a new PurgeArtifactsMetadata. + * Constructs a new PurgeExecutionsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata); - /** PurgeArtifactsMetadata genericMetadata. */ + /** PurgeExecutionsMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeArtifactsMetadata instance + * @returns PurgeExecutionsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeArtifactsMetadata + * @returns PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsMetadata + * @returns PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Verifies a PurgeArtifactsMetadata message. + * Verifies a PurgeExecutionsMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeArtifactsMetadata + * @returns PurgeExecutionsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. - * @param message PurgeArtifactsMetadata + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. + * @param message PurgeExecutionsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeArtifactsMetadata to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeArtifactsMetadata + * Gets the default type url for PurgeExecutionsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateContextRequest. */ - interface ICreateContextRequest { - - /** CreateContextRequest parent */ - parent?: (string|null); + /** Properties of an AddExecutionEventsRequest. */ + interface IAddExecutionEventsRequest { - /** CreateContextRequest context */ - context?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** AddExecutionEventsRequest execution */ + execution?: (string|null); - /** CreateContextRequest contextId */ - contextId?: (string|null); + /** AddExecutionEventsRequest events */ + events?: (google.cloud.aiplatform.v1beta1.IEvent[]|null); } - /** Represents a CreateContextRequest. */ - class CreateContextRequest implements ICreateContextRequest { + /** Represents an AddExecutionEventsRequest. */ + class AddExecutionEventsRequest implements IAddExecutionEventsRequest { /** - * Constructs a new CreateContextRequest. + * Constructs a new AddExecutionEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest); - - /** CreateContextRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest); - /** CreateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** AddExecutionEventsRequest execution. */ + public execution: string; - /** CreateContextRequest contextId. */ - public contextId: string; + /** AddExecutionEventsRequest events. */ + public events: google.cloud.aiplatform.v1beta1.IEvent[]; /** - * Creates a new CreateContextRequest instance using the specified properties. + * Creates a new AddExecutionEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateContextRequest instance + * @returns AddExecutionEventsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateContextRequest + * @returns AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateContextRequest + * @returns AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Verifies a CreateContextRequest message. + * Verifies an AddExecutionEventsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateContextRequest + * @returns AddExecutionEventsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. - * @param message CreateContextRequest + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * @param message AddExecutionEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateContextRequest to JSON. + * Converts this AddExecutionEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateContextRequest + * Gets the default type url for AddExecutionEventsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetContextRequest. */ - interface IGetContextRequest { - - /** GetContextRequest name */ - name?: (string|null); + /** Properties of an AddExecutionEventsResponse. */ + interface IAddExecutionEventsResponse { } - /** Represents a GetContextRequest. */ - class GetContextRequest implements IGetContextRequest { + /** Represents an AddExecutionEventsResponse. */ + class AddExecutionEventsResponse implements IAddExecutionEventsResponse { /** - * Constructs a new GetContextRequest. + * Constructs a new AddExecutionEventsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest); - - /** GetContextRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse); /** - * Creates a new GetContextRequest instance using the specified properties. + * Creates a new AddExecutionEventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetContextRequest instance + * @returns AddExecutionEventsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetContextRequest message from the specified reader or buffer. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetContextRequest + * @returns AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetContextRequest + * @returns AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Verifies a GetContextRequest message. + * Verifies an AddExecutionEventsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetContextRequest + * @returns AddExecutionEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. - * @param message GetContextRequest + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * @param message AddExecutionEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetContextRequest to JSON. + * Converts this AddExecutionEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetContextRequest + * Gets the default type url for AddExecutionEventsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListContextsRequest. */ - interface IListContextsRequest { - - /** ListContextsRequest parent */ - parent?: (string|null); - - /** ListContextsRequest pageSize */ - pageSize?: (number|null); - - /** ListContextsRequest pageToken */ - pageToken?: (string|null); - - /** ListContextsRequest filter */ - filter?: (string|null); + /** Properties of a QueryExecutionInputsAndOutputsRequest. */ + interface IQueryExecutionInputsAndOutputsRequest { - /** ListContextsRequest orderBy */ - orderBy?: (string|null); + /** QueryExecutionInputsAndOutputsRequest execution */ + execution?: (string|null); } - /** Represents a ListContextsRequest. */ - class ListContextsRequest implements IListContextsRequest { + /** Represents a QueryExecutionInputsAndOutputsRequest. */ + class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { /** - * Constructs a new ListContextsRequest. + * Constructs a new QueryExecutionInputsAndOutputsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest); - - /** ListContextsRequest parent. */ - public parent: string; - - /** ListContextsRequest pageSize. */ - public pageSize: number; - - /** ListContextsRequest pageToken. */ - public pageToken: string; - - /** ListContextsRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest); - /** ListContextsRequest orderBy. */ - public orderBy: string; + /** QueryExecutionInputsAndOutputsRequest execution. */ + public execution: string; /** - * Creates a new ListContextsRequest instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListContextsRequest instance + * @returns QueryExecutionInputsAndOutputsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContextsRequest + * @returns QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContextsRequest + * @returns QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Verifies a ListContextsRequest message. + * Verifies a QueryExecutionInputsAndOutputsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContextsRequest + * @returns QueryExecutionInputsAndOutputsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. - * @param message ListContextsRequest + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * @param message QueryExecutionInputsAndOutputsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContextsRequest to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListContextsRequest + * Gets the default type url for QueryExecutionInputsAndOutputsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListContextsResponse. */ - interface IListContextsResponse { + /** Properties of a CreateMetadataSchemaRequest. */ + interface ICreateMetadataSchemaRequest { - /** ListContextsResponse contexts */ - contexts?: (google.cloud.aiplatform.v1beta1.IContext[]|null); + /** CreateMetadataSchemaRequest parent */ + parent?: (string|null); - /** ListContextsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateMetadataSchemaRequest metadataSchema */ + metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); + + /** CreateMetadataSchemaRequest metadataSchemaId */ + metadataSchemaId?: (string|null); } - /** Represents a ListContextsResponse. */ - class ListContextsResponse implements IListContextsResponse { + /** Represents a CreateMetadataSchemaRequest. */ + class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { /** - * Constructs a new ListContextsResponse. + * Constructs a new CreateMetadataSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest); - /** ListContextsResponse contexts. */ - public contexts: google.cloud.aiplatform.v1beta1.IContext[]; + /** CreateMetadataSchemaRequest parent. */ + public parent: string; - /** ListContextsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateMetadataSchemaRequest metadataSchema. */ + public metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); + + /** CreateMetadataSchemaRequest metadataSchemaId. */ + public metadataSchemaId: string; /** - * Creates a new ListContextsResponse instance using the specified properties. + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListContextsResponse instance + * @returns CreateMetadataSchemaRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContextsResponse + * @returns CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContextsResponse + * @returns CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Verifies a ListContextsResponse message. + * Verifies a CreateMetadataSchemaRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContextsResponse + * @returns CreateMetadataSchemaRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. - * @param message ListContextsResponse + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message CreateMetadataSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContextsResponse to JSON. + * Converts this CreateMetadataSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListContextsResponse + * Gets the default type url for CreateMetadataSchemaRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateContextRequest. */ - interface IUpdateContextRequest { - - /** UpdateContextRequest context */ - context?: (google.cloud.aiplatform.v1beta1.IContext|null); - - /** UpdateContextRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a GetMetadataSchemaRequest. */ + interface IGetMetadataSchemaRequest { - /** UpdateContextRequest allowMissing */ - allowMissing?: (boolean|null); + /** GetMetadataSchemaRequest name */ + name?: (string|null); } - /** Represents an UpdateContextRequest. */ - class UpdateContextRequest implements IUpdateContextRequest { + /** Represents a GetMetadataSchemaRequest. */ + class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { /** - * Constructs a new UpdateContextRequest. + * Constructs a new GetMetadataSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest); - - /** UpdateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1beta1.IContext|null); - - /** UpdateContextRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest); - /** UpdateContextRequest allowMissing. */ - public allowMissing: boolean; + /** GetMetadataSchemaRequest name. */ + public name: string; /** - * Creates a new UpdateContextRequest instance using the specified properties. + * Creates a new GetMetadataSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateContextRequest instance + * @returns GetMetadataSchemaRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateContextRequest + * @returns GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateContextRequest + * @returns GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Verifies an UpdateContextRequest message. + * Verifies a GetMetadataSchemaRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateContextRequest + * @returns GetMetadataSchemaRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. - * @param message UpdateContextRequest + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message GetMetadataSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateContextRequest to JSON. + * Converts this GetMetadataSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateContextRequest + * Gets the default type url for GetMetadataSchemaRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteContextRequest. */ - interface IDeleteContextRequest { + /** Properties of a ListMetadataSchemasRequest. */ + interface IListMetadataSchemasRequest { - /** DeleteContextRequest name */ - name?: (string|null); + /** ListMetadataSchemasRequest parent */ + parent?: (string|null); - /** DeleteContextRequest force */ - force?: (boolean|null); + /** ListMetadataSchemasRequest pageSize */ + pageSize?: (number|null); - /** DeleteContextRequest etag */ - etag?: (string|null); + /** ListMetadataSchemasRequest pageToken */ + pageToken?: (string|null); + + /** ListMetadataSchemasRequest filter */ + filter?: (string|null); } - /** Represents a DeleteContextRequest. */ - class DeleteContextRequest implements IDeleteContextRequest { + /** Represents a ListMetadataSchemasRequest. */ + class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { /** - * Constructs a new DeleteContextRequest. + * Constructs a new ListMetadataSchemasRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest); - /** DeleteContextRequest name. */ - public name: string; + /** ListMetadataSchemasRequest parent. */ + public parent: string; - /** DeleteContextRequest force. */ - public force: boolean; + /** ListMetadataSchemasRequest pageSize. */ + public pageSize: number; - /** DeleteContextRequest etag. */ - public etag: string; + /** ListMetadataSchemasRequest pageToken. */ + public pageToken: string; + + /** ListMetadataSchemasRequest filter. */ + public filter: string; /** - * Creates a new DeleteContextRequest instance using the specified properties. + * Creates a new ListMetadataSchemasRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteContextRequest instance + * @returns ListMetadataSchemasRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteContextRequest + * @returns ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteContextRequest + * @returns ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Verifies a DeleteContextRequest message. + * Verifies a ListMetadataSchemasRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteContextRequest + * @returns ListMetadataSchemasRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. - * @param message DeleteContextRequest + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * @param message ListMetadataSchemasRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteContextRequest to JSON. + * Converts this ListMetadataSchemasRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteContextRequest + * Gets the default type url for ListMetadataSchemasRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsRequest. */ - interface IPurgeContextsRequest { - - /** PurgeContextsRequest parent */ - parent?: (string|null); + /** Properties of a ListMetadataSchemasResponse. */ + interface IListMetadataSchemasResponse { - /** PurgeContextsRequest filter */ - filter?: (string|null); + /** ListMetadataSchemasResponse metadataSchemas */ + metadataSchemas?: (google.cloud.aiplatform.v1beta1.IMetadataSchema[]|null); - /** PurgeContextsRequest force */ - force?: (boolean|null); + /** ListMetadataSchemasResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a PurgeContextsRequest. */ - class PurgeContextsRequest implements IPurgeContextsRequest { + /** Represents a ListMetadataSchemasResponse. */ + class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { /** - * Constructs a new PurgeContextsRequest. + * Constructs a new ListMetadataSchemasResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest); - - /** PurgeContextsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse); - /** PurgeContextsRequest filter. */ - public filter: string; + /** ListMetadataSchemasResponse metadataSchemas. */ + public metadataSchemas: google.cloud.aiplatform.v1beta1.IMetadataSchema[]; - /** PurgeContextsRequest force. */ - public force: boolean; + /** ListMetadataSchemasResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new ListMetadataSchemasResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsRequest instance + * @returns ListMetadataSchemasResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsRequest + * @returns ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsRequest + * @returns ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Verifies a PurgeContextsRequest message. + * Verifies a ListMetadataSchemasResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsRequest + * @returns ListMetadataSchemasResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. - * @param message PurgeContextsRequest + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. + * @param message ListMetadataSchemasResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this ListMetadataSchemasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsRequest + * Gets the default type url for ListMetadataSchemasResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsResponse. */ - interface IPurgeContextsResponse { + /** Properties of a QueryArtifactLineageSubgraphRequest. */ + interface IQueryArtifactLineageSubgraphRequest { - /** PurgeContextsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** QueryArtifactLineageSubgraphRequest artifact */ + artifact?: (string|null); - /** PurgeContextsResponse purgeSample */ - purgeSample?: (string[]|null); + /** QueryArtifactLineageSubgraphRequest maxHops */ + maxHops?: (number|null); + + /** QueryArtifactLineageSubgraphRequest filter */ + filter?: (string|null); } - /** Represents a PurgeContextsResponse. */ - class PurgeContextsResponse implements IPurgeContextsResponse { + /** Represents a QueryArtifactLineageSubgraphRequest. */ + class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { /** - * Constructs a new PurgeContextsResponse. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest); - /** PurgeContextsResponse purgeCount. */ - public purgeCount: (number|Long|string); + /** QueryArtifactLineageSubgraphRequest artifact. */ + public artifact: string; - /** PurgeContextsResponse purgeSample. */ - public purgeSample: string[]; + /** QueryArtifactLineageSubgraphRequest maxHops. */ + public maxHops: number; + + /** QueryArtifactLineageSubgraphRequest filter. */ + public filter: string; /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsResponse instance + * @returns QueryArtifactLineageSubgraphRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsResponse + * @returns QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsResponse + * @returns QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Verifies a PurgeContextsResponse message. + * Verifies a QueryArtifactLineageSubgraphRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsResponse + * @returns QueryArtifactLineageSubgraphRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. - * @param message PurgeContextsResponse + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryArtifactLineageSubgraphRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsResponse + * Gets the default type url for QueryArtifactLineageSubgraphRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsMetadata. */ - interface IPurgeContextsMetadata { + /** Properties of a MetadataStore. */ + interface IMetadataStore { - /** PurgeContextsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** MetadataStore name */ + name?: (string|null); + + /** MetadataStore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** MetadataStore description */ + description?: (string|null); + + /** MetadataStore state */ + state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); } - /** Represents a PurgeContextsMetadata. */ - class PurgeContextsMetadata implements IPurgeContextsMetadata { + /** Represents a MetadataStore. */ + class MetadataStore implements IMetadataStore { /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new MetadataStore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore); - /** PurgeContextsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** MetadataStore name. */ + public name: string; + + /** MetadataStore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** MetadataStore description. */ + public description: string; + + /** MetadataStore state. */ + public state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new MetadataStore instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsMetadata instance + * @returns MetadataStore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsMetadata + * @returns MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsMetadata + * @returns MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a MetadataStore message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsMetadata + * @returns MetadataStore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. - * @param message PurgeContextsMetadata + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * @param message MetadataStore * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this MetadataStore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsMetadata + * Gets the default type url for MetadataStore * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextArtifactsAndExecutionsRequest. */ - interface IAddContextArtifactsAndExecutionsRequest { + namespace MetadataStore { - /** AddContextArtifactsAndExecutionsRequest context */ - context?: (string|null); + /** Properties of a MetadataStoreState. */ + interface IMetadataStoreState { - /** AddContextArtifactsAndExecutionsRequest artifacts */ - artifacts?: (string[]|null); + /** MetadataStoreState diskUtilizationBytes */ + diskUtilizationBytes?: (number|Long|string|null); + } - /** AddContextArtifactsAndExecutionsRequest executions */ - executions?: (string[]|null); + /** Represents a MetadataStoreState. */ + class MetadataStoreState implements IMetadataStoreState { + + /** + * Constructs a new MetadataStoreState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState); + + /** MetadataStoreState diskUtilizationBytes. */ + public diskUtilizationBytes: (number|Long|string); + + /** + * Creates a new MetadataStoreState instance using the specified properties. + * @param [properties] Properties to set + * @returns MetadataStoreState instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Verifies a MetadataStoreState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetadataStoreState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * @param message MetadataStoreState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetadataStoreState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetadataStoreState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an AddContextArtifactsAndExecutionsRequest. */ - class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { + /** Properties of a MigratableResource. */ + interface IMigratableResource { + + /** MigratableResource mlEngineModelVersion */ + mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel */ + automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset */ + automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset */ + dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime */ + lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a MigratableResource. */ + class MigratableResource implements IMigratableResource { /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new MigratableResource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource); - /** AddContextArtifactsAndExecutionsRequest context. */ - public context: string; + /** MigratableResource mlEngineModelVersion. */ + public mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); - /** AddContextArtifactsAndExecutionsRequest artifacts. */ - public artifacts: string[]; + /** MigratableResource automlModel. */ + public automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); - /** AddContextArtifactsAndExecutionsRequest executions. */ - public executions: string[]; + /** MigratableResource automlDataset. */ + public automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset. */ + public dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime. */ + public lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource resource. */ + public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new MigratableResource instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsRequest instance + * @returns MigratableResource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a MigratableResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsRequest + * @returns MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsRequest + * @returns MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a MigratableResource message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsRequest + * @returns MigratableResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsRequest + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * @param message MigratableResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this MigratableResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsRequest + * Gets the default type url for MigratableResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextArtifactsAndExecutionsResponse. */ - interface IAddContextArtifactsAndExecutionsResponse { - } + namespace MigratableResource { - /** Represents an AddContextArtifactsAndExecutionsResponse. */ - class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { + /** Properties of a MlEngineModelVersion. */ + interface IMlEngineModelVersion { - /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse); + /** MlEngineModelVersion endpoint */ + endpoint?: (string|null); - /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + /** MlEngineModelVersion version */ + version?: (string|null); + } - /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a MlEngineModelVersion. */ + class MlEngineModelVersion implements IMlEngineModelVersion { - /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new MlEngineModelVersion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion); - /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + /** MlEngineModelVersion endpoint. */ + public endpoint: string; - /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + /** MlEngineModelVersion version. */ + public version: string; - /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @param [properties] Properties to set + * @returns MlEngineModelVersion instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - /** - * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddContextArtifactsAndExecutionsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - /** - * Gets the default type url for AddContextArtifactsAndExecutionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - /** Properties of an AddContextChildrenRequest. */ - interface IAddContextChildrenRequest { + /** + * Verifies a MlEngineModelVersion message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** AddContextChildrenRequest context */ - context?: (string|null); + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MlEngineModelVersion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - /** AddContextChildrenRequest childContexts */ - childContexts?: (string[]|null); - } + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @param message MlEngineModelVersion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an AddContextChildrenRequest. */ - class AddContextChildrenRequest implements IAddContextChildrenRequest { + /** + * Converts this MlEngineModelVersion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new AddContextChildrenRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest); + /** + * Gets the default type url for MlEngineModelVersion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AddContextChildrenRequest context. */ - public context: string; + /** Properties of an AutomlModel. */ + interface IAutomlModel { - /** AddContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** AutomlModel model */ + model?: (string|null); - /** - * Creates a new AddContextChildrenRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns AddContextChildrenRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + /** AutomlModel modelDisplayName */ + modelDisplayName?: (string|null); + } - /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an AutomlModel. */ + class AutomlModel implements IAutomlModel { + + /** + * Constructs a new AutomlModel. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel); + + /** AutomlModel model. */ + public model: string; + + /** AutomlModel modelDisplayName. */ + public modelDisplayName: string; + + /** + * Creates a new AutomlModel instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlModel instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Verifies an AutomlModel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlModel + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @param message AutomlModel + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutomlModel to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutomlModel + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutomlDataset. */ + interface IAutomlDataset { + + /** AutomlDataset dataset */ + dataset?: (string|null); + + /** AutomlDataset datasetDisplayName */ + datasetDisplayName?: (string|null); + } + + /** Represents an AutomlDataset. */ + class AutomlDataset implements IAutomlDataset { + + /** + * Constructs a new AutomlDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset); + + /** AutomlDataset dataset. */ + public dataset: string; + + /** AutomlDataset datasetDisplayName. */ + public datasetDisplayName: string; + + /** + * Creates a new AutomlDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + + /** + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutomlDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + + /** + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + + /** + * Verifies an AutomlDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + + /** + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * @param message AutomlDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutomlDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutomlDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DataLabelingDataset. */ + interface IDataLabelingDataset { + + /** DataLabelingDataset dataset */ + dataset?: (string|null); + + /** DataLabelingDataset datasetDisplayName */ + datasetDisplayName?: (string|null); + + /** DataLabelingDataset dataLabelingAnnotatedDatasets */ + dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); + } + + /** Represents a DataLabelingDataset. */ + class DataLabelingDataset implements IDataLabelingDataset { + + /** + * Constructs a new DataLabelingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset); + + /** DataLabelingDataset dataset. */ + public dataset: string; + + /** DataLabelingDataset datasetDisplayName. */ + public datasetDisplayName: string; + + /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ + public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; + + /** + * Creates a new DataLabelingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + + /** + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + + /** + * Verifies a DataLabelingDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + + /** + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * @param message DataLabelingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataLabelingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataLabelingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DataLabelingDataset { + + /** Properties of a DataLabelingAnnotatedDataset. */ + interface IDataLabelingAnnotatedDataset { + + /** DataLabelingAnnotatedDataset annotatedDataset */ + annotatedDataset?: (string|null); + + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ + annotatedDatasetDisplayName?: (string|null); + } + + /** Represents a DataLabelingAnnotatedDataset. */ + class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { + + /** + * Constructs a new DataLabelingAnnotatedDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); + + /** DataLabelingAnnotatedDataset annotatedDataset. */ + public annotatedDataset: string; + + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ + public annotatedDatasetDisplayName: string; + + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingAnnotatedDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Verifies a DataLabelingAnnotatedDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingAnnotatedDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. + * @param message DataLabelingAnnotatedDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataLabelingAnnotatedDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataLabelingAnnotatedDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Represents a MigrationService */ + class MigrationService extends $protobuf.rpc.Service { /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Constructs a new MigrationService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddContextChildrenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Creates new MigrationService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddContextChildrenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback): void; /** - * Verifies an AddContextChildrenRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): Promise; /** - * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddContextChildrenRequest + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback): void; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. - * @param message AddContextChildrenRequest - * @param [options] Conversion options - * @returns Plain object + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): Promise; + } + + namespace MigrationService { /** - * Converts this AddContextChildrenRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|searchMigratableResources}. + * @param error Error, if any + * @param [response] SearchMigratableResourcesResponse */ - public toJSON(): { [k: string]: any }; + type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) => void; /** - * Gets the default type url for AddContextChildrenRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|batchMigrateResources}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of an AddContextChildrenResponse. */ - interface IAddContextChildrenResponse { + /** Properties of a SearchMigratableResourcesRequest. */ + interface ISearchMigratableResourcesRequest { + + /** SearchMigratableResourcesRequest parent */ + parent?: (string|null); + + /** SearchMigratableResourcesRequest pageSize */ + pageSize?: (number|null); + + /** SearchMigratableResourcesRequest pageToken */ + pageToken?: (string|null); + + /** SearchMigratableResourcesRequest filter */ + filter?: (string|null); } - /** Represents an AddContextChildrenResponse. */ - class AddContextChildrenResponse implements IAddContextChildrenResponse { + /** Represents a SearchMigratableResourcesRequest. */ + class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new SearchMigratableResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest); + + /** SearchMigratableResourcesRequest parent. */ + public parent: string; + + /** SearchMigratableResourcesRequest pageSize. */ + public pageSize: number; + + /** SearchMigratableResourcesRequest pageToken. */ + public pageToken: string; + + /** SearchMigratableResourcesRequest filter. */ + public filter: string; /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenResponse instance + * @returns SearchMigratableResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenResponse + * @returns SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenResponse + * @returns SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a SearchMigratableResourcesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenResponse + * @returns SearchMigratableResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. - * @param message AddContextChildrenResponse + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextChildrenResponse + * Gets the default type url for SearchMigratableResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveContextChildrenRequest. */ - interface IRemoveContextChildrenRequest { + /** Properties of a SearchMigratableResourcesResponse. */ + interface ISearchMigratableResourcesResponse { - /** RemoveContextChildrenRequest context */ - context?: (string|null); + /** SearchMigratableResourcesResponse migratableResources */ + migratableResources?: (google.cloud.aiplatform.v1beta1.IMigratableResource[]|null); - /** RemoveContextChildrenRequest childContexts */ - childContexts?: (string[]|null); + /** SearchMigratableResourcesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a RemoveContextChildrenRequest. */ - class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { + /** Represents a SearchMigratableResourcesResponse. */ + class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { /** - * Constructs a new RemoveContextChildrenRequest. + * Constructs a new SearchMigratableResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse); - /** RemoveContextChildrenRequest context. */ - public context: string; + /** SearchMigratableResourcesResponse migratableResources. */ + public migratableResources: google.cloud.aiplatform.v1beta1.IMigratableResource[]; - /** RemoveContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** SearchMigratableResourcesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveContextChildrenRequest instance + * @returns SearchMigratableResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. - * @param message RemoveContextChildrenRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. - * @param message RemoveContextChildrenRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveContextChildrenRequest + * @returns SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveContextChildrenRequest + * @returns SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Verifies a RemoveContextChildrenRequest message. + * Verifies a SearchMigratableResourcesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveContextChildrenRequest + * @returns SearchMigratableResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. - * @param message RemoveContextChildrenRequest + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveContextChildrenRequest to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveContextChildrenRequest + * Gets the default type url for SearchMigratableResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveContextChildrenResponse. */ - interface IRemoveContextChildrenResponse { + /** Properties of a BatchMigrateResourcesRequest. */ + interface IBatchMigrateResourcesRequest { + + /** BatchMigrateResourcesRequest parent */ + parent?: (string|null); + + /** BatchMigrateResourcesRequest migrateResourceRequests */ + migrateResourceRequests?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]|null); } - /** Represents a RemoveContextChildrenResponse. */ - class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { + /** Represents a BatchMigrateResourcesRequest. */ + class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { /** - * Constructs a new RemoveContextChildrenResponse. + * Constructs a new BatchMigrateResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest); + + /** BatchMigrateResourcesRequest parent. */ + public parent: string; + + /** BatchMigrateResourcesRequest migrateResourceRequests. */ + public migrateResourceRequests: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]; /** - * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveContextChildrenResponse instance + * @returns BatchMigrateResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. - * @param message RemoveContextChildrenResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. - * @param message RemoveContextChildrenResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveContextChildrenResponse + * @returns BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveContextChildrenResponse + * @returns BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Verifies a RemoveContextChildrenResponse message. + * Verifies a BatchMigrateResourcesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveContextChildrenResponse + * @returns BatchMigrateResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. - * @param message RemoveContextChildrenResponse + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveContextChildrenResponse to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveContextChildrenResponse + * Gets the default type url for BatchMigrateResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryContextLineageSubgraphRequest. */ - interface IQueryContextLineageSubgraphRequest { + /** Properties of a MigrateResourceRequest. */ + interface IMigrateResourceRequest { - /** QueryContextLineageSubgraphRequest context */ - context?: (string|null); + /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ + migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); + + /** MigrateResourceRequest migrateAutomlModelConfig */ + migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + + /** MigrateResourceRequest migrateAutomlDatasetConfig */ + migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + + /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ + migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); } - /** Represents a QueryContextLineageSubgraphRequest. */ - class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { + /** Represents a MigrateResourceRequest. */ + class MigrateResourceRequest implements IMigrateResourceRequest { /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new MigrateResourceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest); - /** QueryContextLineageSubgraphRequest context. */ - public context: string; + /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ + public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); + + /** MigrateResourceRequest migrateAutomlModelConfig. */ + public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + + /** MigrateResourceRequest migrateAutomlDatasetConfig. */ + public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + + /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ + public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + + /** MigrateResourceRequest request. */ + public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryContextLineageSubgraphRequest instance + * @returns MigrateResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryContextLineageSubgraphRequest + * @returns MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryContextLineageSubgraphRequest + * @returns MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a MigrateResourceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryContextLineageSubgraphRequest + * @returns MigrateResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryContextLineageSubgraphRequest + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * @param message MigrateResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this MigrateResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryContextLineageSubgraphRequest + * Gets the default type url for MigrateResourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateExecutionRequest. */ - interface ICreateExecutionRequest { - - /** CreateExecutionRequest parent */ - parent?: (string|null); + namespace MigrateResourceRequest { - /** CreateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** Properties of a MigrateMlEngineModelVersionConfig. */ + interface IMigrateMlEngineModelVersionConfig { - /** CreateExecutionRequest executionId */ - executionId?: (string|null); - } + /** MigrateMlEngineModelVersionConfig endpoint */ + endpoint?: (string|null); - /** Represents a CreateExecutionRequest. */ - class CreateExecutionRequest implements ICreateExecutionRequest { + /** MigrateMlEngineModelVersionConfig modelVersion */ + modelVersion?: (string|null); - /** - * Constructs a new CreateExecutionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest); + /** MigrateMlEngineModelVersionConfig modelDisplayName */ + modelDisplayName?: (string|null); + } - /** CreateExecutionRequest parent. */ - public parent: string; + /** Represents a MigrateMlEngineModelVersionConfig. */ + class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { - /** CreateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** + * Constructs a new MigrateMlEngineModelVersionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); - /** CreateExecutionRequest executionId. */ - public executionId: string; + /** MigrateMlEngineModelVersionConfig endpoint. */ + public endpoint: string; - /** - * Creates a new CreateExecutionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateExecutionRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + /** MigrateMlEngineModelVersionConfig modelVersion. */ + public modelVersion: string; - /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MigrateMlEngineModelVersionConfig modelDisplayName. */ + public modelDisplayName: string; - /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateMlEngineModelVersionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a CreateExecutionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateMlEngineModelVersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateExecutionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateMlEngineModelVersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. - * @param message CreateExecutionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a MigrateMlEngineModelVersionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this CreateExecutionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateMlEngineModelVersionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Gets the default type url for CreateExecutionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * @param message MigrateMlEngineModelVersionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateMlEngineModelVersionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateMlEngineModelVersionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateAutomlModelConfig. */ + interface IMigrateAutomlModelConfig { + + /** MigrateAutomlModelConfig model */ + model?: (string|null); + + /** MigrateAutomlModelConfig modelDisplayName */ + modelDisplayName?: (string|null); + } + + /** Represents a MigrateAutomlModelConfig. */ + class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { + + /** + * Constructs a new MigrateAutomlModelConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig); + + /** MigrateAutomlModelConfig model. */ + public model: string; + + /** MigrateAutomlModelConfig modelDisplayName. */ + public modelDisplayName: string; + + /** + * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateAutomlModelConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + + /** + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + + /** + * Verifies a MigrateAutomlModelConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateAutomlModelConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + + /** + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlModelConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateAutomlModelConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateAutomlModelConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateAutomlDatasetConfig. */ + interface IMigrateAutomlDatasetConfig { + + /** MigrateAutomlDatasetConfig dataset */ + dataset?: (string|null); + + /** MigrateAutomlDatasetConfig datasetDisplayName */ + datasetDisplayName?: (string|null); + } + + /** Represents a MigrateAutomlDatasetConfig. */ + class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { + + /** + * Constructs a new MigrateAutomlDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); + + /** MigrateAutomlDatasetConfig dataset. */ + public dataset: string; + + /** MigrateAutomlDatasetConfig datasetDisplayName. */ + public datasetDisplayName: string; + + /** + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateAutomlDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + + /** + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateAutomlDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateAutomlDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + + /** + * Verifies a MigrateAutomlDatasetConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateAutomlDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + + /** + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateAutomlDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateAutomlDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateDataLabelingDatasetConfig. */ + interface IMigrateDataLabelingDatasetConfig { + + /** MigrateDataLabelingDatasetConfig dataset */ + dataset?: (string|null); + + /** MigrateDataLabelingDatasetConfig datasetDisplayName */ + datasetDisplayName?: (string|null); + + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ + migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); + } + + /** Represents a MigrateDataLabelingDatasetConfig. */ + class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { + + /** + * Constructs a new MigrateDataLabelingDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); + + /** MigrateDataLabelingDatasetConfig dataset. */ + public dataset: string; + + /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ + public datasetDisplayName: string; + + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ + public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; + + /** + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateDataLabelingDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + + /** + * Verifies a MigrateDataLabelingDatasetConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateDataLabelingDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + + /** + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateDataLabelingDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateDataLabelingDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MigrateDataLabelingDatasetConfig { + + /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ + interface IMigrateDataLabelingAnnotatedDatasetConfig { + + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ + annotatedDataset?: (string|null); + } + + /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ + class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { + + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); + + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ + public annotatedDataset: string; + + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateDataLabelingAnnotatedDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateDataLabelingAnnotatedDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingAnnotatedDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of a GetExecutionRequest. */ - interface IGetExecutionRequest { + /** Properties of a BatchMigrateResourcesResponse. */ + interface IBatchMigrateResourcesResponse { - /** GetExecutionRequest name */ - name?: (string|null); + /** BatchMigrateResourcesResponse migrateResourceResponses */ + migrateResourceResponses?: (google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]|null); } - /** Represents a GetExecutionRequest. */ - class GetExecutionRequest implements IGetExecutionRequest { + /** Represents a BatchMigrateResourcesResponse. */ + class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { /** - * Constructs a new GetExecutionRequest. + * Constructs a new BatchMigrateResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse); - /** GetExecutionRequest name. */ - public name: string; + /** BatchMigrateResourcesResponse migrateResourceResponses. */ + public migrateResourceResponses: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]; /** - * Creates a new GetExecutionRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetExecutionRequest instance + * @returns BatchMigrateResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExecutionRequest + * @returns BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExecutionRequest + * @returns BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Verifies a GetExecutionRequest message. + * Verifies a BatchMigrateResourcesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExecutionRequest + * @returns BatchMigrateResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. - * @param message GetExecutionRequest + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExecutionRequest to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetExecutionRequest + * Gets the default type url for BatchMigrateResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExecutionsRequest. */ - interface IListExecutionsRequest { - - /** ListExecutionsRequest parent */ - parent?: (string|null); - - /** ListExecutionsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a MigrateResourceResponse. */ + interface IMigrateResourceResponse { - /** ListExecutionsRequest pageToken */ - pageToken?: (string|null); + /** MigrateResourceResponse dataset */ + dataset?: (string|null); - /** ListExecutionsRequest filter */ - filter?: (string|null); + /** MigrateResourceResponse model */ + model?: (string|null); - /** ListExecutionsRequest orderBy */ - orderBy?: (string|null); + /** MigrateResourceResponse migratableResource */ + migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); } - /** Represents a ListExecutionsRequest. */ - class ListExecutionsRequest implements IListExecutionsRequest { + /** Represents a MigrateResourceResponse. */ + class MigrateResourceResponse implements IMigrateResourceResponse { /** - * Constructs a new ListExecutionsRequest. + * Constructs a new MigrateResourceResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest); - - /** ListExecutionsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse); - /** ListExecutionsRequest pageSize. */ - public pageSize: number; + /** MigrateResourceResponse dataset. */ + public dataset?: (string|null); - /** ListExecutionsRequest pageToken. */ - public pageToken: string; + /** MigrateResourceResponse model. */ + public model?: (string|null); - /** ListExecutionsRequest filter. */ - public filter: string; + /** MigrateResourceResponse migratableResource. */ + public migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); - /** ListExecutionsRequest orderBy. */ - public orderBy: string; + /** MigrateResourceResponse migratedResource. */ + public migratedResource?: ("dataset"|"model"); /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new MigrateResourceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsRequest instance + * @returns MigrateResourceResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsRequest + * @returns MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsRequest + * @returns MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Verifies a ListExecutionsRequest message. + * Verifies a MigrateResourceResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsRequest + * @returns MigrateResourceResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. - * @param message ListExecutionsRequest + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * @param message MigrateResourceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this MigrateResourceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListExecutionsRequest + * Gets the default type url for MigrateResourceResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExecutionsResponse. */ - interface IListExecutionsResponse { + /** Properties of a BatchMigrateResourcesOperationMetadata. */ + interface IBatchMigrateResourcesOperationMetadata { - /** ListExecutionsResponse executions */ - executions?: (google.cloud.aiplatform.v1beta1.IExecution[]|null); + /** BatchMigrateResourcesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListExecutionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchMigrateResourcesOperationMetadata partialResults */ + partialResults?: (google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); } - /** Represents a ListExecutionsResponse. */ - class ListExecutionsResponse implements IListExecutionsResponse { + /** Represents a BatchMigrateResourcesOperationMetadata. */ + class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { /** - * Constructs a new ListExecutionsResponse. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata); - /** ListExecutionsResponse executions. */ - public executions: google.cloud.aiplatform.v1beta1.IExecution[]; + /** BatchMigrateResourcesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListExecutionsResponse nextPageToken. */ - public nextPageToken: string; + /** BatchMigrateResourcesOperationMetadata partialResults. */ + public partialResults: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsResponse instance + * @returns BatchMigrateResourcesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsResponse + * @returns BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsResponse + * @returns BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Verifies a ListExecutionsResponse message. + * Verifies a BatchMigrateResourcesOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsResponse + * @returns BatchMigrateResourcesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. - * @param message ListExecutionsResponse + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListExecutionsResponse + * Gets the default type url for BatchMigrateResourcesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateExecutionRequest. */ - interface IUpdateExecutionRequest { + namespace BatchMigrateResourcesOperationMetadata { - /** UpdateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** Properties of a PartialResult. */ + interface IPartialResult { - /** UpdateExecutionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** PartialResult error */ + error?: (google.rpc.IStatus|null); - /** UpdateExecutionRequest allowMissing */ - allowMissing?: (boolean|null); + /** PartialResult model */ + model?: (string|null); + + /** PartialResult dataset */ + dataset?: (string|null); + + /** PartialResult request */ + request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); + } + + /** Represents a PartialResult. */ + class PartialResult implements IPartialResult { + + /** + * Constructs a new PartialResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult); + + /** PartialResult error. */ + public error?: (google.rpc.IStatus|null); + + /** PartialResult model. */ + public model?: (string|null); + + /** PartialResult dataset. */ + public dataset?: (string|null); + + /** PartialResult request. */ + public request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); + + /** PartialResult result. */ + public result?: ("error"|"model"|"dataset"); + + /** + * Creates a new PartialResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PartialResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PartialResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Decodes a PartialResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Verifies a PartialResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PartialResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @param message PartialResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PartialResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PartialResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an UpdateExecutionRequest. */ - class UpdateExecutionRequest implements IUpdateExecutionRequest { + /** Properties of a ModelEvaluation. */ + interface IModelEvaluation { + + /** ModelEvaluation name */ + name?: (string|null); + + /** ModelEvaluation displayName */ + displayName?: (string|null); + + /** ModelEvaluation metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluation metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluation createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluation sliceDimensions */ + sliceDimensions?: (string[]|null); + + /** ModelEvaluation modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + + /** ModelEvaluation explanationSpecs */ + explanationSpecs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); + + /** ModelEvaluation metadata */ + metadata?: (google.protobuf.IValue|null); + + /** ModelEvaluation biasConfigs */ + biasConfigs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null); + } + + /** Represents a ModelEvaluation. */ + class ModelEvaluation implements IModelEvaluation { /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new ModelEvaluation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation); - /** UpdateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** ModelEvaluation name. */ + public name: string; - /** UpdateExecutionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ModelEvaluation displayName. */ + public displayName: string; - /** UpdateExecutionRequest allowMissing. */ - public allowMissing: boolean; + /** ModelEvaluation metricsSchemaUri. */ + public metricsSchemaUri: string; + + /** ModelEvaluation metrics. */ + public metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluation createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluation sliceDimensions. */ + public sliceDimensions: string[]; + + /** ModelEvaluation modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + + /** ModelEvaluation explanationSpecs. */ + public explanationSpecs: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]; + + /** ModelEvaluation metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** ModelEvaluation biasConfigs. */ + public biasConfigs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null); /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new ModelEvaluation instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExecutionRequest instance + * @returns ModelEvaluation instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation): google.cloud.aiplatform.v1beta1.ModelEvaluation; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes a ModelEvaluation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExecutionRequest + * @returns ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExecutionRequest + * @returns ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation; /** - * Verifies an UpdateExecutionRequest message. + * Verifies a ModelEvaluation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExecutionRequest + * @returns ModelEvaluation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. - * @param message UpdateExecutionRequest + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * @param message ModelEvaluation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this ModelEvaluation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExecutionRequest + * Gets the default type url for ModelEvaluation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteExecutionRequest. */ - interface IDeleteExecutionRequest { - - /** DeleteExecutionRequest name */ - name?: (string|null); - - /** DeleteExecutionRequest etag */ - etag?: (string|null); - } - - /** Represents a DeleteExecutionRequest. */ - class DeleteExecutionRequest implements IDeleteExecutionRequest { - - /** - * Constructs a new DeleteExecutionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest); - - /** DeleteExecutionRequest name. */ - public name: string; - - /** DeleteExecutionRequest etag. */ - public etag: string; - - /** - * Creates a new DeleteExecutionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteExecutionRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; - - /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; - - /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; - - /** - * Verifies a DeleteExecutionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteExecutionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; - - /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. - * @param message DeleteExecutionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteExecutionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteExecutionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeExecutionsRequest. */ - interface IPurgeExecutionsRequest { - - /** PurgeExecutionsRequest parent */ - parent?: (string|null); - - /** PurgeExecutionsRequest filter */ - filter?: (string|null); - - /** PurgeExecutionsRequest force */ - force?: (boolean|null); - } - - /** Represents a PurgeExecutionsRequest. */ - class PurgeExecutionsRequest implements IPurgeExecutionsRequest { - - /** - * Constructs a new PurgeExecutionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest); - - /** PurgeExecutionsRequest parent. */ - public parent: string; - - /** PurgeExecutionsRequest filter. */ - public filter: string; - - /** PurgeExecutionsRequest force. */ - public force: boolean; - - /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeExecutionsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; - - /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeExecutionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; - - /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; - - /** - * Verifies a PurgeExecutionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeExecutionsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; - - /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. - * @param message PurgeExecutionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PurgeExecutionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PurgeExecutionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeExecutionsResponse. */ - interface IPurgeExecutionsResponse { - - /** PurgeExecutionsResponse purgeCount */ - purgeCount?: (number|Long|string|null); - - /** PurgeExecutionsResponse purgeSample */ - purgeSample?: (string[]|null); - } - - /** Represents a PurgeExecutionsResponse. */ - class PurgeExecutionsResponse implements IPurgeExecutionsResponse { - - /** - * Constructs a new PurgeExecutionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse); - - /** PurgeExecutionsResponse purgeCount. */ - public purgeCount: (number|Long|string); - - /** PurgeExecutionsResponse purgeSample. */ - public purgeSample: string[]; - - /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeExecutionsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; - - /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; - - /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; - - /** - * Verifies a PurgeExecutionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeExecutionsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; - - /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. - * @param message PurgeExecutionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PurgeExecutionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PurgeExecutionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeExecutionsMetadata. */ - interface IPurgeExecutionsMetadata { - - /** PurgeExecutionsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } - - /** Represents a PurgeExecutionsMetadata. */ - class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { - - /** - * Constructs a new PurgeExecutionsMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata); - - /** PurgeExecutionsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeExecutionsMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; - - /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeExecutionsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; - - /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; - - /** - * Verifies a PurgeExecutionsMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeExecutionsMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; - - /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. - * @param message PurgeExecutionsMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PurgeExecutionsMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PurgeExecutionsMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddExecutionEventsRequest. */ - interface IAddExecutionEventsRequest { - - /** AddExecutionEventsRequest execution */ - execution?: (string|null); - - /** AddExecutionEventsRequest events */ - events?: (google.cloud.aiplatform.v1beta1.IEvent[]|null); - } - - /** Represents an AddExecutionEventsRequest. */ - class AddExecutionEventsRequest implements IAddExecutionEventsRequest { - - /** - * Constructs a new AddExecutionEventsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest); - - /** AddExecutionEventsRequest execution. */ - public execution: string; - - /** AddExecutionEventsRequest events. */ - public events: google.cloud.aiplatform.v1beta1.IEvent[]; - - /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns AddExecutionEventsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; - - /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddExecutionEventsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; - - /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; - - /** - * Verifies an AddExecutionEventsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddExecutionEventsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; - - /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. - * @param message AddExecutionEventsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddExecutionEventsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddExecutionEventsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddExecutionEventsResponse. */ - interface IAddExecutionEventsResponse { - } - - /** Represents an AddExecutionEventsResponse. */ - class AddExecutionEventsResponse implements IAddExecutionEventsResponse { - - /** - * Constructs a new AddExecutionEventsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse); - - /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns AddExecutionEventsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; - - /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddExecutionEventsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; - - /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; - - /** - * Verifies an AddExecutionEventsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddExecutionEventsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; - - /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. - * @param message AddExecutionEventsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddExecutionEventsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddExecutionEventsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a QueryExecutionInputsAndOutputsRequest. */ - interface IQueryExecutionInputsAndOutputsRequest { - - /** QueryExecutionInputsAndOutputsRequest execution */ - execution?: (string|null); - } - - /** Represents a QueryExecutionInputsAndOutputsRequest. */ - class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { - - /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest); - - /** QueryExecutionInputsAndOutputsRequest execution. */ - public execution: string; - - /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryExecutionInputsAndOutputsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; - - /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryExecutionInputsAndOutputsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; - - /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryExecutionInputsAndOutputsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; - - /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryExecutionInputsAndOutputsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; - - /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. - * @param message QueryExecutionInputsAndOutputsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for QueryExecutionInputsAndOutputsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateMetadataSchemaRequest. */ - interface ICreateMetadataSchemaRequest { - - /** CreateMetadataSchemaRequest parent */ - parent?: (string|null); - - /** CreateMetadataSchemaRequest metadataSchema */ - metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); - - /** CreateMetadataSchemaRequest metadataSchemaId */ - metadataSchemaId?: (string|null); - } - - /** Represents a CreateMetadataSchemaRequest. */ - class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { - - /** - * Constructs a new CreateMetadataSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest); - - /** CreateMetadataSchemaRequest parent. */ - public parent: string; - - /** CreateMetadataSchemaRequest metadataSchema. */ - public metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); - - /** CreateMetadataSchemaRequest metadataSchemaId. */ - public metadataSchemaId: string; - - /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateMetadataSchemaRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; - - /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; - - /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; - - /** - * Verifies a CreateMetadataSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateMetadataSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; - - /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message CreateMetadataSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateMetadataSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateMetadataSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetMetadataSchemaRequest. */ - interface IGetMetadataSchemaRequest { - - /** GetMetadataSchemaRequest name */ - name?: (string|null); - } - - /** Represents a GetMetadataSchemaRequest. */ - class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { - - /** - * Constructs a new GetMetadataSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest); - - /** GetMetadataSchemaRequest name. */ - public name: string; - - /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetMetadataSchemaRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; - - /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; - - /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; - - /** - * Verifies a GetMetadataSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetMetadataSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; - - /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message GetMetadataSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetMetadataSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetMetadataSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListMetadataSchemasRequest. */ - interface IListMetadataSchemasRequest { - - /** ListMetadataSchemasRequest parent */ - parent?: (string|null); - - /** ListMetadataSchemasRequest pageSize */ - pageSize?: (number|null); - - /** ListMetadataSchemasRequest pageToken */ - pageToken?: (string|null); - - /** ListMetadataSchemasRequest filter */ - filter?: (string|null); - } - - /** Represents a ListMetadataSchemasRequest. */ - class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { - - /** - * Constructs a new ListMetadataSchemasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest); - - /** ListMetadataSchemasRequest parent. */ - public parent: string; - - /** ListMetadataSchemasRequest pageSize. */ - public pageSize: number; - - /** ListMetadataSchemasRequest pageToken. */ - public pageToken: string; - - /** ListMetadataSchemasRequest filter. */ - public filter: string; - - /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMetadataSchemasRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; - - /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; - - /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; - - /** - * Verifies a ListMetadataSchemasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListMetadataSchemasRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; - - /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. - * @param message ListMetadataSchemasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListMetadataSchemasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ListMetadataSchemasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListMetadataSchemasResponse. */ - interface IListMetadataSchemasResponse { - - /** ListMetadataSchemasResponse metadataSchemas */ - metadataSchemas?: (google.cloud.aiplatform.v1beta1.IMetadataSchema[]|null); - - /** ListMetadataSchemasResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListMetadataSchemasResponse. */ - class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { - - /** - * Constructs a new ListMetadataSchemasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse); - - /** ListMetadataSchemasResponse metadataSchemas. */ - public metadataSchemas: google.cloud.aiplatform.v1beta1.IMetadataSchema[]; - - /** ListMetadataSchemasResponse nextPageToken. */ - public nextPageToken: string; - - /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMetadataSchemasResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; - - /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; - - /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; - - /** - * Verifies a ListMetadataSchemasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListMetadataSchemasResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; - - /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. - * @param message ListMetadataSchemasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListMetadataSchemasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ListMetadataSchemasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a QueryArtifactLineageSubgraphRequest. */ - interface IQueryArtifactLineageSubgraphRequest { - - /** QueryArtifactLineageSubgraphRequest artifact */ - artifact?: (string|null); - - /** QueryArtifactLineageSubgraphRequest maxHops */ - maxHops?: (number|null); - - /** QueryArtifactLineageSubgraphRequest filter */ - filter?: (string|null); - } - - /** Represents a QueryArtifactLineageSubgraphRequest. */ - class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { - - /** - * Constructs a new QueryArtifactLineageSubgraphRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest); - - /** QueryArtifactLineageSubgraphRequest artifact. */ - public artifact: string; - - /** QueryArtifactLineageSubgraphRequest maxHops. */ - public maxHops: number; - - /** QueryArtifactLineageSubgraphRequest filter. */ - public filter: string; - - /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryArtifactLineageSubgraphRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; - - /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryArtifactLineageSubgraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; - - /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryArtifactLineageSubgraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; - - /** - * Verifies a QueryArtifactLineageSubgraphRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryArtifactLineageSubgraphRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; - - /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryArtifactLineageSubgraphRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for QueryArtifactLineageSubgraphRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MetadataStore. */ - interface IMetadataStore { - - /** MetadataStore name */ - name?: (string|null); - - /** MetadataStore createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** MetadataStore description */ - description?: (string|null); - - /** MetadataStore state */ - state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); - } - - /** Represents a MetadataStore. */ - class MetadataStore implements IMetadataStore { - - /** - * Constructs a new MetadataStore. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore); - - /** MetadataStore name. */ - public name: string; - - /** MetadataStore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** MetadataStore description. */ - public description: string; - - /** MetadataStore state. */ - public state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); - - /** - * Creates a new MetadataStore instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataStore instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore): google.cloud.aiplatform.v1beta1.MetadataStore; - - /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataStore message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataStore - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore; - - /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataStore - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore; - - /** - * Verifies a MetadataStore message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataStore - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore; - - /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. - * @param message MetadataStore - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataStore to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetadataStore - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MetadataStore { - - /** Properties of a MetadataStoreState. */ - interface IMetadataStoreState { - - /** MetadataStoreState diskUtilizationBytes */ - diskUtilizationBytes?: (number|Long|string|null); - } - - /** Represents a MetadataStoreState. */ - class MetadataStoreState implements IMetadataStoreState { - - /** - * Constructs a new MetadataStoreState. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState); - - /** MetadataStoreState diskUtilizationBytes. */ - public diskUtilizationBytes: (number|Long|string); - - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataStoreState instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Verifies a MetadataStoreState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataStoreState - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @param message MetadataStoreState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataStoreState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetadataStoreState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a MigratableResource. */ - interface IMigratableResource { - - /** MigratableResource mlEngineModelVersion */ - mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel */ - automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); - - /** MigratableResource automlDataset */ - automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); - - /** MigratableResource dataLabelingDataset */ - dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); - - /** MigratableResource lastMigrateTime */ - lastMigrateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a MigratableResource. */ - class MigratableResource implements IMigratableResource { - - /** - * Constructs a new MigratableResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource); - - /** MigratableResource mlEngineModelVersion. */ - public mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel. */ - public automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); - - /** MigratableResource automlDataset. */ - public automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); - - /** MigratableResource dataLabelingDataset. */ - public dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); - - /** MigratableResource lastMigrateTime. */ - public lastMigrateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource resource. */ - public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); - - /** - * Creates a new MigratableResource instance using the specified properties. - * @param [properties] Properties to set - * @returns MigratableResource instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource): google.cloud.aiplatform.v1beta1.MigratableResource; - - /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigratableResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigratableResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource; - - /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigratableResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource; - - /** - * Verifies a MigratableResource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigratableResource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource; - - /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. - * @param message MigratableResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigratableResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigratableResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MigratableResource { - - /** Properties of a MlEngineModelVersion. */ - interface IMlEngineModelVersion { - - /** MlEngineModelVersion endpoint */ - endpoint?: (string|null); - - /** MlEngineModelVersion version */ - version?: (string|null); - } - - /** Represents a MlEngineModelVersion. */ - class MlEngineModelVersion implements IMlEngineModelVersion { - - /** - * Constructs a new MlEngineModelVersion. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion); - - /** MlEngineModelVersion endpoint. */ - public endpoint: string; - - /** MlEngineModelVersion version. */ - public version: string; - - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @param [properties] Properties to set - * @returns MlEngineModelVersion instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - - /** - * Verifies a MlEngineModelVersion message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MlEngineModelVersion - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; - - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @param message MlEngineModelVersion - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MlEngineModelVersion to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MlEngineModelVersion - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + namespace ModelEvaluation { - /** Properties of an AutomlModel. */ - interface IAutomlModel { + /** Properties of a ModelEvaluationExplanationSpec. */ + interface IModelEvaluationExplanationSpec { - /** AutomlModel model */ - model?: (string|null); + /** ModelEvaluationExplanationSpec explanationType */ + explanationType?: (string|null); - /** AutomlModel modelDisplayName */ - modelDisplayName?: (string|null); + /** ModelEvaluationExplanationSpec explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); } - /** Represents an AutomlModel. */ - class AutomlModel implements IAutomlModel { + /** Represents a ModelEvaluationExplanationSpec. */ + class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { /** - * Constructs a new AutomlModel. + * Constructs a new ModelEvaluationExplanationSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec); - /** AutomlModel model. */ - public model: string; + /** ModelEvaluationExplanationSpec explanationType. */ + public explanationType: string; - /** AutomlModel modelDisplayName. */ - public modelDisplayName: string; + /** ModelEvaluationExplanationSpec explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); /** - * Creates a new AutomlModel instance using the specified properties. + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. * @param [properties] Properties to set - * @returns AutomlModel instance + * @returns ModelEvaluationExplanationSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutomlModel message from the specified reader or buffer. + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutomlModel + * @returns ModelEvaluationExplanationSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutomlModel + * @returns ModelEvaluationExplanationSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Verifies an AutomlModel message. + * Verifies a ModelEvaluationExplanationSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutomlModel + * @returns ModelEvaluationExplanationSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @param message AutomlModel + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @param message ModelEvaluationExplanationSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutomlModel to JSON. + * Converts this ModelEvaluationExplanationSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutomlModel + * Gets the default type url for ModelEvaluationExplanationSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutomlDataset. */ - interface IAutomlDataset { + /** Properties of a BiasConfig. */ + interface IBiasConfig { - /** AutomlDataset dataset */ - dataset?: (string|null); + /** BiasConfig biasSlices */ + biasSlices?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); - /** AutomlDataset datasetDisplayName */ - datasetDisplayName?: (string|null); + /** BiasConfig labels */ + labels?: (string[]|null); } - /** Represents an AutomlDataset. */ - class AutomlDataset implements IAutomlDataset { + /** Represents a BiasConfig. */ + class BiasConfig implements IBiasConfig { /** - * Constructs a new AutomlDataset. + * Constructs a new BiasConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig); - /** AutomlDataset dataset. */ - public dataset: string; + /** BiasConfig biasSlices. */ + public biasSlices?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); - /** AutomlDataset datasetDisplayName. */ - public datasetDisplayName: string; + /** BiasConfig labels. */ + public labels: string[]; /** - * Creates a new AutomlDataset instance using the specified properties. + * Creates a new BiasConfig instance using the specified properties. * @param [properties] Properties to set - * @returns AutomlDataset instance + * @returns BiasConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode + * Encodes the specified BiasConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. + * @param message BiasConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode + * Encodes the specified BiasConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. + * @param message BiasConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutomlDataset message from the specified reader or buffer. + * Decodes a BiasConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutomlDataset + * @returns BiasConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * Decodes a BiasConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutomlDataset + * @returns BiasConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; /** - * Verifies an AutomlDataset message. + * Verifies a BiasConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * Creates a BiasConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutomlDataset + * @returns BiasConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @param message AutomlDataset + * Creates a plain object from a BiasConfig message. Also converts values to other types if specified. + * @param message BiasConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutomlDataset to JSON. + * Converts this BiasConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutomlDataset + * Gets the default type url for BiasConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a DataLabelingDataset. */ - interface IDataLabelingDataset { + /** Properties of a ModelEvaluationSlice. */ + interface IModelEvaluationSlice { - /** DataLabelingDataset dataset */ - dataset?: (string|null); + /** ModelEvaluationSlice name */ + name?: (string|null); - /** DataLabelingDataset datasetDisplayName */ - datasetDisplayName?: (string|null); + /** ModelEvaluationSlice slice */ + slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); - /** DataLabelingDataset dataLabelingAnnotatedDatasets */ - dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); + /** ModelEvaluationSlice metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluationSlice metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluationSlice createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluationSlice modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + } + + /** Represents a ModelEvaluationSlice. */ + class ModelEvaluationSlice implements IModelEvaluationSlice { + + /** + * Constructs a new ModelEvaluationSlice. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice); + + /** ModelEvaluationSlice name. */ + public name: string; + + /** ModelEvaluationSlice slice. */ + public slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); + + /** ModelEvaluationSlice metricsSchemaUri. */ + public metricsSchemaUri: string; + + /** ModelEvaluationSlice metrics. */ + public metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluationSlice createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluationSlice modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + + /** + * Creates a new ModelEvaluationSlice instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelEvaluationSlice instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelEvaluationSlice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelEvaluationSlice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Verifies a ModelEvaluationSlice message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelEvaluationSlice + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * @param message ModelEvaluationSlice + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelEvaluationSlice to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelEvaluationSlice + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelEvaluationSlice { + + /** Properties of a Slice. */ + interface ISlice { + + /** Slice dimension */ + dimension?: (string|null); + + /** Slice value */ + value?: (string|null); + + /** Slice sliceSpec */ + sliceSpec?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); } - /** Represents a DataLabelingDataset. */ - class DataLabelingDataset implements IDataLabelingDataset { + /** Represents a Slice. */ + class Slice implements ISlice { /** - * Constructs a new DataLabelingDataset. + * Constructs a new Slice. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice); - /** DataLabelingDataset dataset. */ - public dataset: string; + /** Slice dimension. */ + public dimension: string; - /** DataLabelingDataset datasetDisplayName. */ - public datasetDisplayName: string; + /** Slice value. */ + public value: string; - /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ - public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; + /** Slice sliceSpec. */ + public sliceSpec?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); /** - * Creates a new DataLabelingDataset instance using the specified properties. + * Creates a new Slice instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingDataset instance + * @returns Slice instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. + * Decodes a Slice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingDataset + * @returns Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * Decodes a Slice message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingDataset + * @returns Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Verifies a DataLabelingDataset message. + * Verifies a Slice message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a Slice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingDataset + * @returns Slice */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @param message DataLabelingDataset + * Creates a plain object from a Slice message. Also converts values to other types if specified. + * @param message Slice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingDataset to JSON. + * Converts this Slice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataLabelingDataset + * Gets the default type url for Slice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DataLabelingDataset { - - /** Properties of a DataLabelingAnnotatedDataset. */ - interface IDataLabelingAnnotatedDataset { + namespace Slice { - /** DataLabelingAnnotatedDataset annotatedDataset */ - annotatedDataset?: (string|null); + /** Properties of a SliceSpec. */ + interface ISliceSpec { - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ - annotatedDatasetDisplayName?: (string|null); + /** SliceSpec configs */ + configs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }|null); } - /** Represents a DataLabelingAnnotatedDataset. */ - class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { + /** Represents a SliceSpec. */ + class SliceSpec implements ISliceSpec { /** - * Constructs a new DataLabelingAnnotatedDataset. + * Constructs a new SliceSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); - - /** DataLabelingAnnotatedDataset annotatedDataset. */ - public annotatedDataset: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec); - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ - public annotatedDatasetDisplayName: string; + /** SliceSpec configs. */ + public configs: { [k: string]: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }; /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * Creates a new SliceSpec instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingAnnotatedDataset instance + * @returns SliceSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode + * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @param message SliceSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode + * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @param message SliceSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * Decodes a SliceSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingAnnotatedDataset + * @returns SliceSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * Decodes a SliceSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingAnnotatedDataset + * @returns SliceSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; /** - * Verifies a DataLabelingAnnotatedDataset message. + * Verifies a SliceSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * Creates a SliceSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingAnnotatedDataset + * @returns SliceSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @param message DataLabelingAnnotatedDataset + * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. + * @param message SliceSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingAnnotatedDataset to JSON. + * Converts this SliceSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataLabelingAnnotatedDataset + * Gets the default type url for SliceSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace SliceSpec { + + /** Properties of a SliceConfig. */ + interface ISliceConfig { + + /** SliceConfig value */ + value?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); + + /** SliceConfig range */ + range?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); + + /** SliceConfig allValues */ + allValues?: (google.protobuf.IBoolValue|null); + } + + /** Represents a SliceConfig. */ + class SliceConfig implements ISliceConfig { + + /** + * Constructs a new SliceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig); + + /** SliceConfig value. */ + public value?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); + + /** SliceConfig range. */ + public range?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); + + /** SliceConfig allValues. */ + public allValues?: (google.protobuf.IBoolValue|null); + + /** SliceConfig kind. */ + public kind?: ("value"|"range"|"allValues"); + + /** + * Creates a new SliceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SliceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @param message SliceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @param message SliceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SliceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Decodes a SliceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Verifies a SliceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SliceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SliceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; + + /** + * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. + * @param message SliceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SliceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SliceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Range. */ + interface IRange { + + /** Range low */ + low?: (number|null); + + /** Range high */ + high?: (number|null); + } + + /** Represents a Range. */ + class Range implements IRange { + + /** + * Constructs a new Range. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange); + + /** Range low. */ + public low: number; + + /** Range high. */ + public high: number; + + /** + * Creates a new Range instance using the specified properties. + * @param [properties] Properties to set + * @returns Range instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @param message Range message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @param message Range message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Range message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Decodes a Range message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Verifies a Range message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Range message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Range + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; + + /** + * Creates a plain object from a Range message. Also converts values to other types if specified. + * @param message Range + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Range to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Range + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Value. */ + interface IValue { + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value floatValue */ + floatValue?: (number|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value floatValue. */ + public floatValue?: (number|null); + + /** Value kind. */ + public kind?: ("stringValue"|"floatValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Verifies a Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } } - /** Represents a MigrationService */ - class MigrationService extends $protobuf.rpc.Service { + /** Represents a ModelGardenService */ + class ModelGardenService extends $protobuf.rpc.Service { /** - * Constructs a new MigrationService service. + * Constructs a new ModelGardenService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -160288,11138 +161193,11926 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new MigrationService service using the specified rpc implementation. + * Creates new ModelGardenService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelGardenService; /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * Calls GetPublisherModel. + * @param request GetPublisherModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PublisherModel */ - public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback): void; + public getPublisherModel(request: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelGardenService.GetPublisherModelCallback): void; /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object + * Calls GetPublisherModel. + * @param request GetPublisherModelRequest message or plain object * @returns Promise */ - public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): Promise; + public getPublisherModel(request: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest): Promise; /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls ListPublisherModels. + * @param request ListPublisherModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPublisherModelsResponse */ - public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback): void; + public listPublisherModels(request: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest, callback: google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModelsCallback): void; /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object + * Calls ListPublisherModels. + * @param request ListPublisherModelsRequest message or plain object * @returns Promise */ - public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): Promise; + public listPublisherModels(request: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest): Promise; } - namespace MigrationService { + namespace ModelGardenService { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|searchMigratableResources}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|getPublisherModel}. * @param error Error, if any - * @param [response] SearchMigratableResourcesResponse + * @param [response] PublisherModel */ - type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) => void; + type GetPublisherModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PublisherModel) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|batchMigrateResources}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|listPublisherModels}. * @param error Error, if any - * @param [response] Operation + * @param [response] ListPublisherModelsResponse */ - type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type ListPublisherModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) => void; } - /** Properties of a SearchMigratableResourcesRequest. */ - interface ISearchMigratableResourcesRequest { + /** PublisherModelView enum. */ + enum PublisherModelView { + PUBLISHER_MODEL_VIEW_UNSPECIFIED = 0, + PUBLISHER_MODEL_VIEW_BASIC = 1, + PUBLISHER_MODEL_VIEW_FULL = 2, + PUBLISHER_MODEL_VERSION_VIEW_BASIC = 3 + } - /** SearchMigratableResourcesRequest parent */ - parent?: (string|null); + /** Properties of a GetPublisherModelRequest. */ + interface IGetPublisherModelRequest { - /** SearchMigratableResourcesRequest pageSize */ - pageSize?: (number|null); + /** GetPublisherModelRequest name */ + name?: (string|null); - /** SearchMigratableResourcesRequest pageToken */ - pageToken?: (string|null); + /** GetPublisherModelRequest languageCode */ + languageCode?: (string|null); - /** SearchMigratableResourcesRequest filter */ - filter?: (string|null); + /** GetPublisherModelRequest view */ + view?: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView|null); } - /** Represents a SearchMigratableResourcesRequest. */ - class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { + /** Represents a GetPublisherModelRequest. */ + class GetPublisherModelRequest implements IGetPublisherModelRequest { /** - * Constructs a new SearchMigratableResourcesRequest. + * Constructs a new GetPublisherModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest); - - /** SearchMigratableResourcesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest); - /** SearchMigratableResourcesRequest pageSize. */ - public pageSize: number; + /** GetPublisherModelRequest name. */ + public name: string; - /** SearchMigratableResourcesRequest pageToken. */ - public pageToken: string; + /** GetPublisherModelRequest languageCode. */ + public languageCode: string; - /** SearchMigratableResourcesRequest filter. */ - public filter: string; + /** GetPublisherModelRequest view. */ + public view: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView); /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. + * Creates a new GetPublisherModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesRequest instance + * @returns GetPublisherModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode + * Encodes the specified GetPublisherModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. + * @param message GetPublisherModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode + * Encodes the specified GetPublisherModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. + * @param message GetPublisherModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. + * Decodes a GetPublisherModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesRequest + * @returns GetPublisherModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPublisherModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesRequest + * @returns GetPublisherModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; /** - * Verifies a SearchMigratableResourcesRequest message. + * Verifies a GetPublisherModelRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPublisherModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesRequest + * @returns GetPublisherModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesRequest + * Creates a plain object from a GetPublisherModelRequest message. Also converts values to other types if specified. + * @param message GetPublisherModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetPublisherModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesRequest to JSON. + * Converts this GetPublisherModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchMigratableResourcesRequest + * Gets the default type url for GetPublisherModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchMigratableResourcesResponse. */ - interface ISearchMigratableResourcesResponse { + /** Properties of a ListPublisherModelsRequest. */ + interface IListPublisherModelsRequest { - /** SearchMigratableResourcesResponse migratableResources */ - migratableResources?: (google.cloud.aiplatform.v1beta1.IMigratableResource[]|null); + /** ListPublisherModelsRequest parent */ + parent?: (string|null); - /** SearchMigratableResourcesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListPublisherModelsRequest filter */ + filter?: (string|null); + + /** ListPublisherModelsRequest pageSize */ + pageSize?: (number|null); + + /** ListPublisherModelsRequest pageToken */ + pageToken?: (string|null); + + /** ListPublisherModelsRequest view */ + view?: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView|null); + + /** ListPublisherModelsRequest orderBy */ + orderBy?: (string|null); + + /** ListPublisherModelsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a SearchMigratableResourcesResponse. */ - class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { + /** Represents a ListPublisherModelsRequest. */ + class ListPublisherModelsRequest implements IListPublisherModelsRequest { /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new ListPublisherModelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest); - /** SearchMigratableResourcesResponse migratableResources. */ - public migratableResources: google.cloud.aiplatform.v1beta1.IMigratableResource[]; + /** ListPublisherModelsRequest parent. */ + public parent: string; - /** SearchMigratableResourcesResponse nextPageToken. */ - public nextPageToken: string; + /** ListPublisherModelsRequest filter. */ + public filter: string; + + /** ListPublisherModelsRequest pageSize. */ + public pageSize: number; + + /** ListPublisherModelsRequest pageToken. */ + public pageToken: string; + + /** ListPublisherModelsRequest view. */ + public view: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView); + + /** ListPublisherModelsRequest orderBy. */ + public orderBy: string; + + /** ListPublisherModelsRequest languageCode. */ + public languageCode: string; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * Creates a new ListPublisherModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesResponse instance + * @returns ListPublisherModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified ListPublisherModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. + * @param message ListPublisherModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified ListPublisherModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. + * @param message ListPublisherModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a ListPublisherModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesResponse + * @returns ListPublisherModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPublisherModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesResponse + * @returns ListPublisherModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a ListPublisherModelsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPublisherModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesResponse + * @returns ListPublisherModelsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesResponse + * Creates a plain object from a ListPublisherModelsRequest message. Also converts values to other types if specified. + * @param message ListPublisherModelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this ListPublisherModelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchMigratableResourcesResponse + * Gets the default type url for ListPublisherModelsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchMigrateResourcesRequest. */ - interface IBatchMigrateResourcesRequest { - - /** BatchMigrateResourcesRequest parent */ - parent?: (string|null); + /** Properties of a ListPublisherModelsResponse. */ + interface IListPublisherModelsResponse { - /** BatchMigrateResourcesRequest migrateResourceRequests */ - migrateResourceRequests?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]|null); + /** ListPublisherModelsResponse publisherModels */ + publisherModels?: (google.cloud.aiplatform.v1beta1.IPublisherModel[]|null); + + /** ListPublisherModelsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchMigrateResourcesRequest. */ - class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { + /** Represents a ListPublisherModelsResponse. */ + class ListPublisherModelsResponse implements IListPublisherModelsResponse { /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new ListPublisherModelsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse); - /** BatchMigrateResourcesRequest parent. */ - public parent: string; + /** ListPublisherModelsResponse publisherModels. */ + public publisherModels: google.cloud.aiplatform.v1beta1.IPublisherModel[]; - /** BatchMigrateResourcesRequest migrateResourceRequests. */ - public migrateResourceRequests: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]; + /** ListPublisherModelsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. + * Creates a new ListPublisherModelsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesRequest instance + * @returns ListPublisherModelsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified ListPublisherModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. + * @param message ListPublisherModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified ListPublisherModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. + * @param message ListPublisherModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a ListPublisherModelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesRequest + * @returns ListPublisherModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPublisherModelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesRequest + * @returns ListPublisherModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a ListPublisherModelsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPublisherModelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesRequest + * @returns ListPublisherModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesRequest + * Creates a plain object from a ListPublisherModelsResponse message. Also converts values to other types if specified. + * @param message ListPublisherModelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this ListPublisherModelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesRequest + * Gets the default type url for ListPublisherModelsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateResourceRequest. */ - interface IMigrateResourceRequest { + /** Properties of a PublisherModel. */ + interface IPublisherModel { - /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ - migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); + /** PublisherModel name */ + name?: (string|null); - /** MigrateResourceRequest migrateAutomlModelConfig */ - migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + /** PublisherModel versionId */ + versionId?: (string|null); - /** MigrateResourceRequest migrateAutomlDatasetConfig */ - migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** PublisherModel openSourceCategory */ + openSourceCategory?: (google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|null); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ - migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** PublisherModel parent */ + parent?: (google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null); + + /** PublisherModel supportedActions */ + supportedActions?: (google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null); + + /** PublisherModel frameworks */ + frameworks?: (string[]|null); + + /** PublisherModel launchStage */ + launchStage?: (google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|null); + + /** PublisherModel versionState */ + versionState?: (google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|null); + + /** PublisherModel publisherModelTemplate */ + publisherModelTemplate?: (string|null); + + /** PublisherModel predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); } - /** Represents a MigrateResourceRequest. */ - class MigrateResourceRequest implements IMigrateResourceRequest { + /** Represents a PublisherModel. */ + class PublisherModel implements IPublisherModel { /** - * Constructs a new MigrateResourceRequest. + * Constructs a new PublisherModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPublisherModel); - /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ - public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); + /** PublisherModel name. */ + public name: string; - /** MigrateResourceRequest migrateAutomlModelConfig. */ - public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + /** PublisherModel versionId. */ + public versionId: string; - /** MigrateResourceRequest migrateAutomlDatasetConfig. */ - public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** PublisherModel openSourceCategory. */ + public openSourceCategory: (google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ - public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** PublisherModel parent. */ + public parent?: (google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null); - /** MigrateResourceRequest request. */ - public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); + /** PublisherModel supportedActions. */ + public supportedActions?: (google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null); + + /** PublisherModel frameworks. */ + public frameworks: string[]; + + /** PublisherModel launchStage. */ + public launchStage: (google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage); + + /** PublisherModel versionState. */ + public versionState: (google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.VersionState); + + /** PublisherModel publisherModelTemplate. */ + public publisherModelTemplate: string; + + /** PublisherModel predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new PublisherModel instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceRequest instance + * @returns PublisherModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPublisherModel): google.cloud.aiplatform.v1beta1.PublisherModel; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified PublisherModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. + * @param message PublisherModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPublisherModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified PublisherModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. + * @param message PublisherModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPublisherModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes a PublisherModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceRequest + * @returns PublisherModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a PublisherModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceRequest + * @returns PublisherModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel; /** - * Verifies a MigrateResourceRequest message. + * Verifies a PublisherModel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PublisherModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceRequest + * @returns PublisherModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. - * @param message MigrateResourceRequest + * Creates a plain object from a PublisherModel message. Also converts values to other types if specified. + * @param message PublisherModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this PublisherModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateResourceRequest + * Gets the default type url for PublisherModel * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MigrateResourceRequest { + namespace PublisherModel { - /** Properties of a MigrateMlEngineModelVersionConfig. */ - interface IMigrateMlEngineModelVersionConfig { + /** Properties of a ResourceReference. */ + interface IResourceReference { - /** MigrateMlEngineModelVersionConfig endpoint */ - endpoint?: (string|null); + /** ResourceReference uri */ + uri?: (string|null); - /** MigrateMlEngineModelVersionConfig modelVersion */ - modelVersion?: (string|null); + /** ResourceReference resourceName */ + resourceName?: (string|null); - /** MigrateMlEngineModelVersionConfig modelDisplayName */ - modelDisplayName?: (string|null); + /** ResourceReference useCase */ + useCase?: (string|null); + + /** ResourceReference description */ + description?: (string|null); } - /** Represents a MigrateMlEngineModelVersionConfig. */ - class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { /** - * Constructs a new MigrateMlEngineModelVersionConfig. + * Constructs a new ResourceReference. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference); - /** MigrateMlEngineModelVersionConfig endpoint. */ - public endpoint: string; + /** ResourceReference uri. */ + public uri?: (string|null); - /** MigrateMlEngineModelVersionConfig modelVersion. */ - public modelVersion: string; + /** ResourceReference resourceName. */ + public resourceName?: (string|null); - /** MigrateMlEngineModelVersionConfig modelDisplayName. */ - public modelDisplayName: string; + /** ResourceReference useCase. */ + public useCase?: (string|null); + + /** ResourceReference description. */ + public description?: (string|null); + + /** ResourceReference reference. */ + public reference?: ("uri"|"resourceName"|"useCase"|"description"); /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * Creates a new ResourceReference instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateMlEngineModelVersionConfig instance + * @returns ResourceReference instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * Encodes the specified ResourceReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * Decodes a ResourceReference message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateMlEngineModelVersionConfig + * @returns ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateMlEngineModelVersionConfig + * @returns ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; /** - * Verifies a MigrateMlEngineModelVersionConfig message. + * Verifies a ResourceReference message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateMlEngineModelVersionConfig + * @returns ResourceReference */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. - * @param message MigrateMlEngineModelVersionConfig + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. + * Converts this ResourceReference to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateMlEngineModelVersionConfig + * Gets the default type url for ResourceReference * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateAutomlModelConfig. */ - interface IMigrateAutomlModelConfig { + /** Properties of a Parent. */ + interface IParent { - /** MigrateAutomlModelConfig model */ - model?: (string|null); + /** Parent displayName */ + displayName?: (string|null); - /** MigrateAutomlModelConfig modelDisplayName */ - modelDisplayName?: (string|null); + /** Parent reference */ + reference?: (google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null); } - /** Represents a MigrateAutomlModelConfig. */ - class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { + /** Represents a Parent. */ + class Parent implements IParent { /** - * Constructs a new MigrateAutomlModelConfig. + * Constructs a new Parent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IParent); - /** MigrateAutomlModelConfig model. */ - public model: string; + /** Parent displayName. */ + public displayName: string; - /** MigrateAutomlModelConfig modelDisplayName. */ - public modelDisplayName: string; + /** Parent reference. */ + public reference?: (google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null); /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * Creates a new Parent instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateAutomlModelConfig instance + * @returns Parent instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IParent): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode + * Encodes the specified Parent message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. + * @param message Parent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IParent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode + * Encodes the specified Parent message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. + * @param message Parent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.IParent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * Decodes a Parent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateAutomlModelConfig + * @returns Parent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * Decodes a Parent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateAutomlModelConfig + * @returns Parent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; /** - * Verifies a MigrateAutomlModelConfig message. + * Verifies a Parent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Parent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateAutomlModelConfig + * @returns Parent */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlModelConfig + * Creates a plain object from a Parent message. Also converts values to other types if specified. + * @param message Parent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.Parent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateAutomlModelConfig to JSON. + * Converts this Parent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateAutomlModelConfig + * Gets the default type url for Parent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateAutomlDatasetConfig. */ - interface IMigrateAutomlDatasetConfig { + /** Properties of a Documentation. */ + interface IDocumentation { - /** MigrateAutomlDatasetConfig dataset */ - dataset?: (string|null); + /** Documentation title */ + title?: (string|null); - /** MigrateAutomlDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); + /** Documentation content */ + content?: (string|null); } - /** Represents a MigrateAutomlDatasetConfig. */ - class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { + /** Represents a Documentation. */ + class Documentation implements IDocumentation { /** - * Constructs a new MigrateAutomlDatasetConfig. + * Constructs a new Documentation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation); - /** MigrateAutomlDatasetConfig dataset. */ - public dataset: string; + /** Documentation title. */ + public title: string; - /** MigrateAutomlDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; + /** Documentation content. */ + public content: string; /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * Creates a new Documentation instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateAutomlDatasetConfig instance + * @returns Documentation instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode + * Encodes the specified Documentation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. + * @param message Documentation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode + * Encodes the specified Documentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. + * @param message Documentation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * Decodes a Documentation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateAutomlDatasetConfig + * @returns Documentation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a Documentation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateAutomlDatasetConfig + * @returns Documentation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; /** - * Verifies a MigrateAutomlDatasetConfig message. + * Verifies a Documentation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Documentation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateAutomlDatasetConfig + * @returns Documentation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlDatasetConfig + * Creates a plain object from a Documentation message. Also converts values to other types if specified. + * @param message Documentation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.Documentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateAutomlDatasetConfig to JSON. + * Converts this Documentation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateAutomlDatasetConfig + * Gets the default type url for Documentation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateDataLabelingDatasetConfig. */ - interface IMigrateDataLabelingDatasetConfig { + /** Properties of a CallToAction. */ + interface ICallToAction { - /** MigrateDataLabelingDatasetConfig dataset */ - dataset?: (string|null); + /** CallToAction viewRestApi */ + viewRestApi?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null); - /** MigrateDataLabelingDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); + /** CallToAction openNotebook */ + openNotebook?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ - migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); + /** CallToAction openNotebooks */ + openNotebooks?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks|null); + + /** CallToAction createApplication */ + createApplication?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openFineTuningPipeline */ + openFineTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openFineTuningPipelines */ + openFineTuningPipelines?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null); + + /** CallToAction openPromptTuningPipeline */ + openPromptTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openGenie */ + openGenie?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction deploy */ + deploy?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null); + + /** CallToAction deployGke */ + deployGke?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke|null); + + /** CallToAction openGenerationAiStudio */ + openGenerationAiStudio?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction requestAccess */ + requestAccess?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openEvaluationPipeline */ + openEvaluationPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); } - /** Represents a MigrateDataLabelingDatasetConfig. */ - class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { + /** Represents a CallToAction. */ + class CallToAction implements ICallToAction { /** - * Constructs a new MigrateDataLabelingDatasetConfig. + * Constructs a new CallToAction. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction); - /** MigrateDataLabelingDatasetConfig dataset. */ - public dataset: string; + /** CallToAction viewRestApi. */ + public viewRestApi?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null); - /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; + /** CallToAction openNotebook. */ + public openNotebook?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ - public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; + /** CallToAction openNotebooks. */ + public openNotebooks?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks|null); + + /** CallToAction createApplication. */ + public createApplication?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openFineTuningPipeline. */ + public openFineTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openFineTuningPipelines. */ + public openFineTuningPipelines?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null); + + /** CallToAction openPromptTuningPipeline. */ + public openPromptTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openGenie. */ + public openGenie?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction deploy. */ + public deploy?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null); + + /** CallToAction deployGke. */ + public deployGke?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke|null); + + /** CallToAction openGenerationAiStudio. */ + public openGenerationAiStudio?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction requestAccess. */ + public requestAccess?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction openEvaluationPipeline. */ + public openEvaluationPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + + /** CallToAction _openNotebooks. */ + public _openNotebooks?: "openNotebooks"; + + /** CallToAction _openFineTuningPipelines. */ + public _openFineTuningPipelines?: "openFineTuningPipelines"; /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * Creates a new CallToAction instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateDataLabelingDatasetConfig instance + * @returns CallToAction instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode + * Encodes the specified CallToAction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. + * @param message CallToAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode + * Encodes the specified CallToAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. + * @param message CallToAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * Decodes a CallToAction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingDatasetConfig + * @returns CallToAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + + /** + * Decodes a CallToAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CallToAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + + /** + * Verifies a CallToAction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CallToAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CallToAction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + + /** + * Creates a plain object from a CallToAction message. Also converts values to other types if specified. + * @param message CallToAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CallToAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CallToAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CallToAction { + + /** Properties of a RegionalResourceReferences. */ + interface IRegionalResourceReferences { + + /** RegionalResourceReferences references */ + references?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference }|null); + + /** RegionalResourceReferences title */ + title?: (string|null); + + /** RegionalResourceReferences resourceTitle */ + resourceTitle?: (string|null); + + /** RegionalResourceReferences resourceUseCase */ + resourceUseCase?: (string|null); + + /** RegionalResourceReferences resourceDescription */ + resourceDescription?: (string|null); + } + + /** Represents a RegionalResourceReferences. */ + class RegionalResourceReferences implements IRegionalResourceReferences { + + /** + * Constructs a new RegionalResourceReferences. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences); + + /** RegionalResourceReferences references. */ + public references: { [k: string]: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference }; + + /** RegionalResourceReferences title. */ + public title: string; + + /** RegionalResourceReferences resourceTitle. */ + public resourceTitle?: (string|null); + + /** RegionalResourceReferences resourceUseCase. */ + public resourceUseCase?: (string|null); + + /** RegionalResourceReferences resourceDescription. */ + public resourceDescription?: (string|null); + + /** RegionalResourceReferences _resourceTitle. */ + public _resourceTitle?: "resourceTitle"; + + /** RegionalResourceReferences _resourceUseCase. */ + public _resourceUseCase?: "resourceUseCase"; + + /** RegionalResourceReferences _resourceDescription. */ + public _resourceDescription?: "resourceDescription"; + + /** + * Creates a new RegionalResourceReferences instance using the specified properties. + * @param [properties] Properties to set + * @returns RegionalResourceReferences instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + + /** + * Encodes the specified RegionalResourceReferences message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. + * @param message RegionalResourceReferences message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RegionalResourceReferences message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. + * @param message RegionalResourceReferences message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RegionalResourceReferences message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegionalResourceReferences + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + + /** + * Decodes a RegionalResourceReferences message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegionalResourceReferences + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + + /** + * Verifies a RegionalResourceReferences message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RegionalResourceReferences message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegionalResourceReferences + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + + /** + * Creates a plain object from a RegionalResourceReferences message. Also converts values to other types if specified. + * @param message RegionalResourceReferences + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RegionalResourceReferences to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RegionalResourceReferences + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ViewRestApi. */ + interface IViewRestApi { + + /** ViewRestApi documentations */ + documentations?: (google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation[]|null); + + /** ViewRestApi title */ + title?: (string|null); + } + + /** Represents a ViewRestApi. */ + class ViewRestApi implements IViewRestApi { + + /** + * Constructs a new ViewRestApi. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi); + + /** ViewRestApi documentations. */ + public documentations: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation[]; + + /** ViewRestApi title. */ + public title: string; + + /** + * Creates a new ViewRestApi instance using the specified properties. + * @param [properties] Properties to set + * @returns ViewRestApi instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + + /** + * Encodes the specified ViewRestApi message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. + * @param message ViewRestApi message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ViewRestApi message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. + * @param message ViewRestApi message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ViewRestApi message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ViewRestApi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + + /** + * Decodes a ViewRestApi message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ViewRestApi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + + /** + * Verifies a ViewRestApi message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ViewRestApi message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ViewRestApi + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + + /** + * Creates a plain object from a ViewRestApi message. Also converts values to other types if specified. + * @param message ViewRestApi + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ViewRestApi to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ViewRestApi + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OpenNotebooks. */ + interface IOpenNotebooks { + + /** OpenNotebooks notebooks */ + notebooks?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences[]|null); + } + + /** Represents an OpenNotebooks. */ + class OpenNotebooks implements IOpenNotebooks { + + /** + * Constructs a new OpenNotebooks. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks); + + /** OpenNotebooks notebooks. */ + public notebooks: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences[]; + + /** + * Creates a new OpenNotebooks instance using the specified properties. + * @param [properties] Properties to set + * @returns OpenNotebooks instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Encodes the specified OpenNotebooks message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @param message OpenNotebooks message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OpenNotebooks message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @param message OpenNotebooks message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OpenNotebooks message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpenNotebooks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Decodes an OpenNotebooks message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpenNotebooks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Verifies an OpenNotebooks message. + * @param message Plain 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 OpenNotebooks message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpenNotebooks + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks; + + /** + * Creates a plain object from an OpenNotebooks message. Also converts values to other types if specified. + * @param message OpenNotebooks + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OpenNotebooks to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OpenNotebooks + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OpenFineTuningPipelines. */ + interface IOpenFineTuningPipelines { + + /** OpenFineTuningPipelines fineTuningPipelines */ + fineTuningPipelines?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences[]|null); + } + + /** Represents an OpenFineTuningPipelines. */ + class OpenFineTuningPipelines implements IOpenFineTuningPipelines { + + /** + * Constructs a new OpenFineTuningPipelines. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines); + + /** OpenFineTuningPipelines fineTuningPipelines. */ + public fineTuningPipelines: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences[]; + + /** + * Creates a new OpenFineTuningPipelines instance using the specified properties. + * @param [properties] Properties to set + * @returns OpenFineTuningPipelines instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Encodes the specified OpenFineTuningPipelines message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @param message OpenFineTuningPipelines message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OpenFineTuningPipelines message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @param message OpenFineTuningPipelines message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Verifies an OpenFineTuningPipelines message. + * @param message Plain 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 OpenFineTuningPipelines message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpenFineTuningPipelines + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines; + + /** + * Creates a plain object from an OpenFineTuningPipelines message. Also converts values to other types if specified. + * @param message OpenFineTuningPipelines + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OpenFineTuningPipelines to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OpenFineTuningPipelines + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Deploy. */ + interface IDeploy { + + /** Deploy dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** Deploy automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + + /** Deploy sharedResources */ + sharedResources?: (string|null); + + /** Deploy modelDisplayName */ + modelDisplayName?: (string|null); + + /** Deploy largeModelReference */ + largeModelReference?: (google.cloud.aiplatform.v1beta1.ILargeModelReference|null); + + /** Deploy containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Deploy artifactUri */ + artifactUri?: (string|null); + + /** Deploy title */ + title?: (string|null); + + /** Deploy publicArtifactUri */ + publicArtifactUri?: (string|null); + } + + /** Represents a Deploy. */ + class Deploy implements IDeploy { + + /** + * Constructs a new Deploy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy); + + /** Deploy dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** Deploy automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + + /** Deploy sharedResources. */ + public sharedResources?: (string|null); + + /** Deploy modelDisplayName. */ + public modelDisplayName: string; + + /** Deploy largeModelReference. */ + public largeModelReference?: (google.cloud.aiplatform.v1beta1.ILargeModelReference|null); + + /** Deploy containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Deploy artifactUri. */ + public artifactUri: string; + + /** Deploy title. */ + public title: string; + + /** Deploy publicArtifactUri. */ + public publicArtifactUri: string; + + /** Deploy predictionResources. */ + public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); + + /** + * Creates a new Deploy instance using the specified properties. + * @param [properties] Properties to set + * @returns Deploy instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; + + /** + * Encodes the specified Deploy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. + * @param message Deploy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + /** + * Encodes the specified Deploy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. + * @param message Deploy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a MigrateDataLabelingDatasetConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Deploy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Deploy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; - /** - * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateDataLabelingDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + /** + * Decodes a Deploy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Deploy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; - /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a Deploy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a Deploy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Deploy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; - /** - * Gets the default type url for MigrateDataLabelingDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a Deploy message. Also converts values to other types if specified. + * @param message Deploy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace MigrateDataLabelingDatasetConfig { + /** + * Converts this Deploy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ - interface IMigrateDataLabelingAnnotatedDatasetConfig { + /** + * Gets the default type url for Deploy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ - annotatedDataset?: (string|null); + /** Properties of a DeployGke. */ + interface IDeployGke { + + /** DeployGke gkeYamlConfigs */ + gkeYamlConfigs?: (string[]|null); } - /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ - class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { + /** Represents a DeployGke. */ + class DeployGke implements IDeployGke { /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * Constructs a new DeployGke. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke); - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ - public annotatedDataset: string; + /** DeployGke gkeYamlConfigs. */ + public gkeYamlConfigs: string[]; /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * Creates a new DeployGke instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateDataLabelingAnnotatedDatasetConfig instance + * @returns DeployGke instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * Encodes the specified DeployGke message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @param message DeployGke message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * Encodes the specified DeployGke message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @param message DeployGke message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * Decodes a DeployGke message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @returns DeployGke * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a DeployGke message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @returns DeployGke * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke; /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * Verifies a DeployGke message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeployGke message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @returns DeployGke */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke; /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingAnnotatedDatasetConfig + * Creates a plain object from a DeployGke message. Also converts values to other types if specified. + * @param message DeployGke * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * Converts this DeployGke to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * Gets the default type url for DeployGke * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } + + /** OpenSourceCategory enum. */ + enum OpenSourceCategory { + OPEN_SOURCE_CATEGORY_UNSPECIFIED = 0, + PROPRIETARY = 1, + GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT = 2, + THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT = 3, + GOOGLE_OWNED_OSS = 4, + THIRD_PARTY_OWNED_OSS = 5 + } + + /** LaunchStage enum. */ + enum LaunchStage { + LAUNCH_STAGE_UNSPECIFIED = 0, + EXPERIMENTAL = 1, + PRIVATE_PREVIEW = 2, + PUBLIC_PREVIEW = 3, + GA = 4 + } + + /** VersionState enum. */ + enum VersionState { + VERSION_STATE_UNSPECIFIED = 0, + VERSION_STATE_STABLE = 1, + VERSION_STATE_UNSTABLE = 2 + } } - /** Properties of a BatchMigrateResourcesResponse. */ - interface IBatchMigrateResourcesResponse { + /** Represents a ModelService */ + class ModelService extends $protobuf.rpc.Service { - /** BatchMigrateResourcesResponse migrateResourceResponses */ - migrateResourceResponses?: (google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]|null); + /** + * Constructs a new ModelService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ModelService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; + + /** + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback): void; + + /** + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @returns Promise + */ + public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest): Promise; + + /** + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model + */ + public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback): void; + + /** + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @returns Promise + */ + public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest): Promise; + + /** + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelsResponse + */ + public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback): void; + + /** + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @returns Promise + */ + public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest): Promise; + + /** + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse + */ + public listModelVersions(request: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionsCallback): void; + + /** + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @returns Promise + */ + public listModelVersions(request: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest): Promise; + + /** + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model + */ + public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback): void; + + /** + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @returns Promise + */ + public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): Promise; + + /** + * Calls UpdateExplanationDataset. + * @param request UpdateExplanationDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateExplanationDataset(request: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDatasetCallback): void; + + /** + * Calls UpdateExplanationDataset. + * @param request UpdateExplanationDatasetRequest message or plain object + * @returns Promise + */ + public updateExplanationDataset(request: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest): Promise; + + /** + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback): void; + + /** + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @returns Promise + */ + public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): Promise; + + /** + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteModelVersion(request: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersionCallback): void; + + /** + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @returns Promise + */ + public deleteModelVersion(request: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest): Promise; + + /** + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model + */ + public mergeVersionAliases(request: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliasesCallback): void; + + /** + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @returns Promise + */ + public mergeVersionAliases(request: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest): Promise; + + /** + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback): void; + + /** + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @returns Promise + */ + public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest): Promise; + + /** + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback): void; + + /** + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @returns Promise + */ + public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest): Promise; + + /** + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation + */ + public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback): void; + + /** + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @returns Promise + */ + public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): Promise; + + /** + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + */ + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlicesCallback): void; + + /** + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): Promise; + + /** + * Calls BatchImportEvaluatedAnnotations. + * @param request BatchImportEvaluatedAnnotationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + */ + public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotationsCallback): void; + + /** + * Calls BatchImportEvaluatedAnnotations. + * @param request BatchImportEvaluatedAnnotationsRequest message or plain object + * @returns Promise + */ + public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest): Promise; + + /** + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation + */ + public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback): void; + + /** + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @returns Promise + */ + public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): Promise; + + /** + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + */ + public listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback): void; + + /** + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @returns Promise + */ + public listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): Promise; + + /** + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice + */ + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback): void; + + /** + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @returns Promise + */ + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): Promise; + + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback): void; + + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): Promise; } - /** Represents a BatchMigrateResourcesResponse. */ - class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { + namespace ModelService { /** - * Constructs a new BatchMigrateResourcesResponse. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|uploadModel}. + * @param error Error, if any + * @param [response] Operation + */ + type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModel}. + * @param error Error, if any + * @param [response] Model + */ + type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModels}. + * @param error Error, if any + * @param [response] ListModelsResponse + */ + type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelVersions}. + * @param error Error, if any + * @param [response] ListModelVersionsResponse + */ + type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateModel}. + * @param error Error, if any + * @param [response] Model + */ + type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateExplanationDataset}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateExplanationDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModel}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModelVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|mergeVersionAliases}. + * @param error Error, if any + * @param [response] Model + */ + type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|exportModel}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. + * @param error Error, if any + * @param [response] Operation + */ + type CopyModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportModelEvaluationSlices}. + * @param error Error, if any + * @param [response] BatchImportModelEvaluationSlicesResponse + */ + type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportEvaluatedAnnotations}. + * @param error Error, if any + * @param [response] BatchImportEvaluatedAnnotationsResponse + */ + type BatchImportEvaluatedAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluations}. + * @param error Error, if any + * @param [response] ListModelEvaluationsResponse + */ + type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluationSlice}. + * @param error Error, if any + * @param [response] ModelEvaluationSlice + */ + type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluationSlices}. + * @param error Error, if any + * @param [response] ListModelEvaluationSlicesResponse + */ + type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) => void; + } + + /** Properties of an UploadModelRequest. */ + interface IUploadModelRequest { + + /** UploadModelRequest parent */ + parent?: (string|null); + + /** UploadModelRequest parentModel */ + parentModel?: (string|null); + + /** UploadModelRequest modelId */ + modelId?: (string|null); + + /** UploadModelRequest model */ + model?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** UploadModelRequest serviceAccount */ + serviceAccount?: (string|null); + } + + /** Represents an UploadModelRequest. */ + class UploadModelRequest implements IUploadModelRequest { + + /** + * Constructs a new UploadModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest); - /** BatchMigrateResourcesResponse migrateResourceResponses. */ - public migrateResourceResponses: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]; + /** UploadModelRequest parent. */ + public parent: string; + + /** UploadModelRequest parentModel. */ + public parentModel: string; + + /** UploadModelRequest modelId. */ + public modelId: string; + + /** UploadModelRequest model. */ + public model?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** UploadModelRequest serviceAccount. */ + public serviceAccount: string; /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * Creates a new UploadModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesResponse instance + * @returns UploadModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes an UploadModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesResponse + * @returns UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesResponse + * @returns UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies an UploadModelRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesResponse + * @returns UploadModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesResponse + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * @param message UploadModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this UploadModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesResponse + * Gets the default type url for UploadModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateResourceResponse. */ - interface IMigrateResourceResponse { - - /** MigrateResourceResponse dataset */ - dataset?: (string|null); - - /** MigrateResourceResponse model */ - model?: (string|null); + /** Properties of an UploadModelOperationMetadata. */ + interface IUploadModelOperationMetadata { - /** MigrateResourceResponse migratableResource */ - migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); + /** UploadModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a MigrateResourceResponse. */ - class MigrateResourceResponse implements IMigrateResourceResponse { + /** Represents an UploadModelOperationMetadata. */ + class UploadModelOperationMetadata implements IUploadModelOperationMetadata { /** - * Constructs a new MigrateResourceResponse. + * Constructs a new UploadModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse); - - /** MigrateResourceResponse dataset. */ - public dataset?: (string|null); - - /** MigrateResourceResponse model. */ - public model?: (string|null); - - /** MigrateResourceResponse migratableResource. */ - public migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata); - /** MigrateResourceResponse migratedResource. */ - public migratedResource?: ("dataset"|"model"); + /** UploadModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new UploadModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceResponse instance + * @returns UploadModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceResponse + * @returns UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceResponse + * @returns UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Verifies a MigrateResourceResponse message. + * Verifies an UploadModelOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceResponse + * @returns UploadModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. - * @param message MigrateResourceResponse + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * @param message UploadModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this UploadModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateResourceResponse + * Gets the default type url for UploadModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchMigrateResourcesOperationMetadata. */ - interface IBatchMigrateResourcesOperationMetadata { + /** Properties of an UploadModelResponse. */ + interface IUploadModelResponse { - /** BatchMigrateResourcesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UploadModelResponse model */ + model?: (string|null); - /** BatchMigrateResourcesOperationMetadata partialResults */ - partialResults?: (google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); + /** UploadModelResponse modelVersionId */ + modelVersionId?: (string|null); } - /** Represents a BatchMigrateResourcesOperationMetadata. */ - class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { + /** Represents an UploadModelResponse. */ + class UploadModelResponse implements IUploadModelResponse { /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new UploadModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse); - /** BatchMigrateResourcesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UploadModelResponse model. */ + public model: string; - /** BatchMigrateResourcesOperationMetadata partialResults. */ - public partialResults: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; + /** UploadModelResponse modelVersionId. */ + public modelVersionId: string; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new UploadModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesOperationMetadata instance + * @returns UploadModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes an UploadModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesOperationMetadata + * @returns UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesOperationMetadata + * @returns UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies an UploadModelResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesOperationMetadata + * @returns UploadModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesOperationMetadata + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * @param message UploadModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. + * Converts this UploadModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesOperationMetadata + * Gets the default type url for UploadModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchMigrateResourcesOperationMetadata { - - /** Properties of a PartialResult. */ - interface IPartialResult { - - /** PartialResult error */ - error?: (google.rpc.IStatus|null); - - /** PartialResult model */ - model?: (string|null); - - /** PartialResult dataset */ - dataset?: (string|null); - - /** PartialResult request */ - request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); - } - - /** Represents a PartialResult. */ - class PartialResult implements IPartialResult { - - /** - * Constructs a new PartialResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult); - - /** PartialResult error. */ - public error?: (google.rpc.IStatus|null); + /** Properties of a GetModelRequest. */ + interface IGetModelRequest { - /** PartialResult model. */ - public model?: (string|null); + /** GetModelRequest name */ + name?: (string|null); + } - /** PartialResult dataset. */ - public dataset?: (string|null); + /** Represents a GetModelRequest. */ + class GetModelRequest implements IGetModelRequest { - /** PartialResult request. */ - public request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); + /** + * Constructs a new GetModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest); - /** PartialResult result. */ - public result?: ("error"|"model"|"dataset"); + /** GetModelRequest name. */ + public name: string; - /** - * Creates a new PartialResult instance using the specified properties. - * @param [properties] Properties to set - * @returns PartialResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Creates a new GetModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Decodes a GetModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Verifies a PartialResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a GetModelRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PartialResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @param message PartialResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * @param message GetModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this PartialResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this GetModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for PartialResult - * @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 GetModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelEvaluation. */ - interface IModelEvaluation { - - /** ModelEvaluation name */ - name?: (string|null); - - /** ModelEvaluation displayName */ - displayName?: (string|null); - - /** ModelEvaluation metricsSchemaUri */ - metricsSchemaUri?: (string|null); - - /** ModelEvaluation metrics */ - metrics?: (google.protobuf.IValue|null); - - /** ModelEvaluation createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListModelsRequest. */ + interface IListModelsRequest { - /** ModelEvaluation sliceDimensions */ - sliceDimensions?: (string[]|null); + /** ListModelsRequest parent */ + parent?: (string|null); - /** ModelEvaluation modelExplanation */ - modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** ListModelsRequest filter */ + filter?: (string|null); - /** ModelEvaluation explanationSpecs */ - explanationSpecs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); + /** ListModelsRequest pageSize */ + pageSize?: (number|null); - /** ModelEvaluation metadata */ - metadata?: (google.protobuf.IValue|null); + /** ListModelsRequest pageToken */ + pageToken?: (string|null); - /** ModelEvaluation biasConfigs */ - biasConfigs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null); + /** ListModelsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ModelEvaluation. */ - class ModelEvaluation implements IModelEvaluation { + /** Represents a ListModelsRequest. */ + class ListModelsRequest implements IListModelsRequest { /** - * Constructs a new ModelEvaluation. + * Constructs a new ListModelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation); - - /** ModelEvaluation name. */ - public name: string; - - /** ModelEvaluation displayName. */ - public displayName: string; - - /** ModelEvaluation metricsSchemaUri. */ - public metricsSchemaUri: string; - - /** ModelEvaluation metrics. */ - public metrics?: (google.protobuf.IValue|null); - - /** ModelEvaluation createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest); - /** ModelEvaluation sliceDimensions. */ - public sliceDimensions: string[]; + /** ListModelsRequest parent. */ + public parent: string; - /** ModelEvaluation modelExplanation. */ - public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** ListModelsRequest filter. */ + public filter: string; - /** ModelEvaluation explanationSpecs. */ - public explanationSpecs: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]; + /** ListModelsRequest pageSize. */ + public pageSize: number; - /** ModelEvaluation metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** ListModelsRequest pageToken. */ + public pageToken: string; - /** ModelEvaluation biasConfigs. */ - public biasConfigs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null); + /** ListModelsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new ListModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluation instance + * @returns ListModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes a ListModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluation + * @returns ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluation + * @returns ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Verifies a ModelEvaluation message. + * Verifies a ListModelsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluation + * @returns ListModelsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. - * @param message ModelEvaluation + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * @param message ListModelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluation to JSON. + * Converts this ListModelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelEvaluation + * Gets the default type url for ListModelsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelEvaluation { - - /** Properties of a ModelEvaluationExplanationSpec. */ - interface IModelEvaluationExplanationSpec { - - /** ModelEvaluationExplanationSpec explanationType */ - explanationType?: (string|null); - - /** ModelEvaluationExplanationSpec explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - } - - /** Represents a ModelEvaluationExplanationSpec. */ - class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { - - /** - * Constructs a new ModelEvaluationExplanationSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec); - - /** ModelEvaluationExplanationSpec explanationType. */ - public explanationType: string; - - /** ModelEvaluationExplanationSpec explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelEvaluationExplanationSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelEvaluationExplanationSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelEvaluationExplanationSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Verifies a ModelEvaluationExplanationSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelEvaluationExplanationSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. - * @param message ModelEvaluationExplanationSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ModelEvaluationExplanationSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ModelEvaluationExplanationSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BiasConfig. */ - interface IBiasConfig { + /** Properties of a ListModelsResponse. */ + interface IListModelsResponse { - /** BiasConfig biasSlices */ - biasSlices?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); + /** ListModelsResponse models */ + models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); - /** BiasConfig labels */ - labels?: (string[]|null); - } + /** ListModelsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a BiasConfig. */ - class BiasConfig implements IBiasConfig { + /** Represents a ListModelsResponse. */ + class ListModelsResponse implements IListModelsResponse { - /** - * Constructs a new BiasConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig); + /** + * Constructs a new ListModelsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse); - /** BiasConfig biasSlices. */ - public biasSlices?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); + /** ListModelsResponse models. */ + public models: google.cloud.aiplatform.v1beta1.IModel[]; - /** BiasConfig labels. */ - public labels: string[]; + /** ListModelsResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new BiasConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns BiasConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; + /** + * Creates a new ListModelsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse): google.cloud.aiplatform.v1beta1.ListModelsResponse; - /** - * Encodes the specified BiasConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. - * @param message BiasConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BiasConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. - * @param message BiasConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a BiasConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BiasConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; + /** + * Decodes a ListModelsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsResponse; - /** - * Decodes a BiasConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BiasConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; + /** + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsResponse; - /** - * Verifies a BiasConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ListModelsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a BiasConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BiasConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig; + /** + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsResponse; - /** - * Creates a plain object from a BiasConfig message. Also converts values to other types if specified. - * @param message BiasConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * @param message ListModelsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this BiasConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ListModelsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for BiasConfig - * @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 ListModelsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelEvaluationSlice. */ - interface IModelEvaluationSlice { + /** Properties of a ListModelVersionsRequest. */ + interface IListModelVersionsRequest { - /** ModelEvaluationSlice name */ + /** ListModelVersionsRequest name */ name?: (string|null); - /** ModelEvaluationSlice slice */ - slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); + /** ListModelVersionsRequest pageSize */ + pageSize?: (number|null); - /** ModelEvaluationSlice metricsSchemaUri */ - metricsSchemaUri?: (string|null); + /** ListModelVersionsRequest pageToken */ + pageToken?: (string|null); - /** ModelEvaluationSlice metrics */ - metrics?: (google.protobuf.IValue|null); + /** ListModelVersionsRequest filter */ + filter?: (string|null); - /** ModelEvaluationSlice createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListModelVersionsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** ModelEvaluationSlice modelExplanation */ - modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** ListModelVersionsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ModelEvaluationSlice. */ - class ModelEvaluationSlice implements IModelEvaluationSlice { + /** Represents a ListModelVersionsRequest. */ + class ListModelVersionsRequest implements IListModelVersionsRequest { /** - * Constructs a new ModelEvaluationSlice. + * Constructs a new ListModelVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest); - /** ModelEvaluationSlice name. */ + /** ListModelVersionsRequest name. */ public name: string; - /** ModelEvaluationSlice slice. */ - public slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); + /** ListModelVersionsRequest pageSize. */ + public pageSize: number; - /** ModelEvaluationSlice metricsSchemaUri. */ - public metricsSchemaUri: string; + /** ListModelVersionsRequest pageToken. */ + public pageToken: string; - /** ModelEvaluationSlice metrics. */ - public metrics?: (google.protobuf.IValue|null); + /** ListModelVersionsRequest filter. */ + public filter: string; - /** ModelEvaluationSlice createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListModelVersionsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** ModelEvaluationSlice modelExplanation. */ - public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** ListModelVersionsRequest orderBy. */ + public orderBy: string; /** - * Creates a new ModelEvaluationSlice instance using the specified properties. + * Creates a new ListModelVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluationSlice instance + * @returns ListModelVersionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluationSlice + * @returns ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluationSlice + * @returns ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Verifies a ModelEvaluationSlice message. + * Verifies a ListModelVersionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluationSlice + * @returns ListModelVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. - * @param message ModelEvaluationSlice + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * @param message ListModelVersionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluationSlice to JSON. + * Converts this ListModelVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelEvaluationSlice + * Gets the default type url for ListModelVersionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelEvaluationSlice { - - /** Properties of a Slice. */ - interface ISlice { - - /** Slice dimension */ - dimension?: (string|null); - - /** Slice value */ - value?: (string|null); - - /** Slice sliceSpec */ - sliceSpec?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); - } - - /** Represents a Slice. */ - class Slice implements ISlice { - - /** - * Constructs a new Slice. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice); - - /** Slice dimension. */ - public dimension: string; - - /** Slice value. */ - public value: string; - - /** Slice sliceSpec. */ - public sliceSpec?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null); - - /** - * Creates a new Slice instance using the specified properties. - * @param [properties] Properties to set - * @returns Slice instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; - - /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Slice message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Slice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; - - /** - * Decodes a Slice message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Slice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; - - /** - * Verifies a Slice message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Slice message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Slice - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; - - /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. - * @param message Slice - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Slice to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Slice - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Slice { - - /** Properties of a SliceSpec. */ - interface ISliceSpec { - - /** SliceSpec configs */ - configs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }|null); - } - - /** Represents a SliceSpec. */ - class SliceSpec implements ISliceSpec { - - /** - * Constructs a new SliceSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec); - - /** SliceSpec configs. */ - public configs: { [k: string]: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig }; - - /** - * Creates a new SliceSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns SliceSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; - - /** - * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. - * @param message SliceSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. - * @param message SliceSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SliceSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SliceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; - - /** - * Decodes a SliceSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SliceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; - - /** - * Verifies a SliceSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SliceSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SliceSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec; - - /** - * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. - * @param message SliceSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SliceSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SliceSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace SliceSpec { - - /** Properties of a SliceConfig. */ - interface ISliceConfig { - - /** SliceConfig value */ - value?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); - - /** SliceConfig range */ - range?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); - - /** SliceConfig allValues */ - allValues?: (google.protobuf.IBoolValue|null); - } - - /** Represents a SliceConfig. */ - class SliceConfig implements ISliceConfig { - - /** - * Constructs a new SliceConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig); - - /** SliceConfig value. */ - public value?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null); - - /** SliceConfig range. */ - public range?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null); - - /** SliceConfig allValues. */ - public allValues?: (google.protobuf.IBoolValue|null); - - /** SliceConfig kind. */ - public kind?: ("value"|"range"|"allValues"); - - /** - * Creates a new SliceConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns SliceConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; - - /** - * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. - * @param message SliceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. - * @param message SliceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SliceConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SliceConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; - - /** - * Decodes a SliceConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SliceConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; - - /** - * Verifies a SliceConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SliceConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SliceConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig; - - /** - * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. - * @param message SliceConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SliceConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SliceConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Range. */ - interface IRange { - - /** Range low */ - low?: (number|null); - - /** Range high */ - high?: (number|null); - } - - /** Represents a Range. */ - class Range implements IRange { - - /** - * Constructs a new Range. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange); - - /** Range low. */ - public low: number; - - /** Range high. */ - public high: number; - - /** - * Creates a new Range instance using the specified properties. - * @param [properties] Properties to set - * @returns Range instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; - - /** - * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. - * @param message Range message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. - * @param message Range message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Range message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Range - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; - - /** - * Decodes a Range message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Range - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; - - /** - * Verifies a Range message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Range message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Range - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range; - - /** - * Creates a plain object from a Range message. Also converts values to other types if specified. - * @param message Range - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Range to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Range - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Value. */ - interface IValue { - - /** Value stringValue */ - stringValue?: (string|null); - - /** Value floatValue */ - floatValue?: (number|null); - } - - /** Represents a Value. */ - class Value implements IValue { - - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue); - - /** Value stringValue. */ - public stringValue?: (string|null); - - /** Value floatValue. */ - public floatValue?: (number|null); - - /** Value kind. */ - public kind?: ("stringValue"|"floatValue"); - - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; - - /** - * Verifies a Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Value - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListModelVersionsResponse. */ + interface IListModelVersionsResponse { - /** - * Converts this Value to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListModelVersionsResponse models */ + models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); - /** - * Gets the default type url for Value - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** ListModelVersionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelGardenService */ - class ModelGardenService extends $protobuf.rpc.Service { + /** Represents a ListModelVersionsResponse. */ + class ListModelVersionsResponse implements IListModelVersionsResponse { /** - * Constructs a new ModelGardenService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new ListModelVersionsResponse. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse); + + /** ListModelVersionsResponse models. */ + public models: google.cloud.aiplatform.v1beta1.IModel[]; + + /** ListModelVersionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates new ModelGardenService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new ListModelVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsResponse instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelGardenService; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Calls GetPublisherModel. - * @param request GetPublisherModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PublisherModel + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPublisherModel(request: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelGardenService.GetPublisherModelCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPublisherModel. - * @param request GetPublisherModelRequest message or plain object - * @returns Promise + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPublisherModel(request: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListPublisherModels. - * @param request ListPublisherModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPublisherModelsResponse + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listPublisherModels(request: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest, callback: google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModelsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Calls ListPublisherModels. - * @param request ListPublisherModelsRequest message or plain object - * @returns Promise + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listPublisherModels(request: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest): Promise; - } + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; - namespace ModelGardenService { + /** + * Verifies a ListModelVersionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|getPublisherModel}. - * @param error Error, if any - * @param [response] PublisherModel + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsResponse */ - type GetPublisherModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PublisherModel) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|listPublisherModels}. - * @param error Error, if any - * @param [response] ListPublisherModelsResponse + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. + * @param message ListModelVersionsResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListPublisherModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) => void; - } + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PublisherModelView enum. */ - enum PublisherModelView { - PUBLISHER_MODEL_VIEW_UNSPECIFIED = 0, - PUBLISHER_MODEL_VIEW_BASIC = 1, - PUBLISHER_MODEL_VIEW_FULL = 2, - PUBLISHER_MODEL_VERSION_VIEW_BASIC = 3 - } + /** + * Converts this ListModelVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a GetPublisherModelRequest. */ - interface IGetPublisherModelRequest { + /** + * Gets the default type url for ListModelVersionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** GetPublisherModelRequest name */ - name?: (string|null); + /** Properties of an UpdateModelRequest. */ + interface IUpdateModelRequest { - /** GetPublisherModelRequest languageCode */ - languageCode?: (string|null); + /** UpdateModelRequest model */ + model?: (google.cloud.aiplatform.v1beta1.IModel|null); - /** GetPublisherModelRequest view */ - view?: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView|null); + /** UpdateModelRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetPublisherModelRequest. */ - class GetPublisherModelRequest implements IGetPublisherModelRequest { + /** Represents an UpdateModelRequest. */ + class UpdateModelRequest implements IUpdateModelRequest { /** - * Constructs a new GetPublisherModelRequest. + * Constructs a new UpdateModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest); - - /** GetPublisherModelRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest); - /** GetPublisherModelRequest languageCode. */ - public languageCode: string; + /** UpdateModelRequest model. */ + public model?: (google.cloud.aiplatform.v1beta1.IModel|null); - /** GetPublisherModelRequest view. */ - public view: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView); + /** UpdateModelRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetPublisherModelRequest instance using the specified properties. + * Creates a new UpdateModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPublisherModelRequest instance + * @returns UpdateModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Encodes the specified GetPublisherModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. - * @param message GetPublisherModelRequest message or plain object to encode + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPublisherModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. - * @param message GetPublisherModelRequest message or plain object to encode + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPublisherModelRequest message from the specified reader or buffer. + * Decodes an UpdateModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPublisherModelRequest + * @returns UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Decodes a GetPublisherModelRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPublisherModelRequest + * @returns UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Verifies a GetPublisherModelRequest message. + * Verifies an UpdateModelRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPublisherModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPublisherModelRequest + * @returns UpdateModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Creates a plain object from a GetPublisherModelRequest message. Also converts values to other types if specified. - * @param message GetPublisherModelRequest + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * @param message UpdateModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetPublisherModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPublisherModelRequest to JSON. + * Converts this UpdateModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPublisherModelRequest + * Gets the default type url for UpdateModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPublisherModelsRequest. */ - interface IListPublisherModelsRequest { - - /** ListPublisherModelsRequest parent */ - parent?: (string|null); - - /** ListPublisherModelsRequest filter */ - filter?: (string|null); - - /** ListPublisherModelsRequest pageSize */ - pageSize?: (number|null); - - /** ListPublisherModelsRequest pageToken */ - pageToken?: (string|null); - - /** ListPublisherModelsRequest view */ - view?: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView|null); + /** Properties of an UpdateExplanationDatasetRequest. */ + interface IUpdateExplanationDatasetRequest { - /** ListPublisherModelsRequest orderBy */ - orderBy?: (string|null); + /** UpdateExplanationDatasetRequest model */ + model?: (string|null); - /** ListPublisherModelsRequest languageCode */ - languageCode?: (string|null); + /** UpdateExplanationDatasetRequest examples */ + examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); } - /** Represents a ListPublisherModelsRequest. */ - class ListPublisherModelsRequest implements IListPublisherModelsRequest { + /** Represents an UpdateExplanationDatasetRequest. */ + class UpdateExplanationDatasetRequest implements IUpdateExplanationDatasetRequest { /** - * Constructs a new ListPublisherModelsRequest. + * Constructs a new UpdateExplanationDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest); - - /** ListPublisherModelsRequest parent. */ - public parent: string; - - /** ListPublisherModelsRequest filter. */ - public filter: string; - - /** ListPublisherModelsRequest pageSize. */ - public pageSize: number; - - /** ListPublisherModelsRequest pageToken. */ - public pageToken: string; - - /** ListPublisherModelsRequest view. */ - public view: (google.cloud.aiplatform.v1beta1.PublisherModelView|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModelView); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest); - /** ListPublisherModelsRequest orderBy. */ - public orderBy: string; + /** UpdateExplanationDatasetRequest model. */ + public model: string; - /** ListPublisherModelsRequest languageCode. */ - public languageCode: string; + /** UpdateExplanationDatasetRequest examples. */ + public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); /** - * Creates a new ListPublisherModelsRequest instance using the specified properties. + * Creates a new UpdateExplanationDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPublisherModelsRequest instance + * @returns UpdateExplanationDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; /** - * Encodes the specified ListPublisherModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. - * @param message ListPublisherModelsRequest message or plain object to encode + * Encodes the specified UpdateExplanationDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. + * @param message UpdateExplanationDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPublisherModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. - * @param message ListPublisherModelsRequest message or plain object to encode + * Encodes the specified UpdateExplanationDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. + * @param message UpdateExplanationDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPublisherModelsRequest message from the specified reader or buffer. + * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPublisherModelsRequest + * @returns UpdateExplanationDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; /** - * Decodes a ListPublisherModelsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPublisherModelsRequest + * @returns UpdateExplanationDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; /** - * Verifies a ListPublisherModelsRequest message. + * Verifies an UpdateExplanationDatasetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPublisherModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExplanationDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPublisherModelsRequest + * @returns UpdateExplanationDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; /** - * Creates a plain object from a ListPublisherModelsRequest message. Also converts values to other types if specified. - * @param message ListPublisherModelsRequest + * Creates a plain object from an UpdateExplanationDatasetRequest message. Also converts values to other types if specified. + * @param message UpdateExplanationDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPublisherModelsRequest to JSON. + * Converts this UpdateExplanationDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPublisherModelsRequest + * Gets the default type url for UpdateExplanationDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPublisherModelsResponse. */ - interface IListPublisherModelsResponse { - - /** ListPublisherModelsResponse publisherModels */ - publisherModels?: (google.cloud.aiplatform.v1beta1.IPublisherModel[]|null); + /** Properties of an UpdateExplanationDatasetOperationMetadata. */ + interface IUpdateExplanationDatasetOperationMetadata { - /** ListPublisherModelsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateExplanationDatasetOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListPublisherModelsResponse. */ - class ListPublisherModelsResponse implements IListPublisherModelsResponse { + /** Represents an UpdateExplanationDatasetOperationMetadata. */ + class UpdateExplanationDatasetOperationMetadata implements IUpdateExplanationDatasetOperationMetadata { /** - * Constructs a new ListPublisherModelsResponse. + * Constructs a new UpdateExplanationDatasetOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse); - - /** ListPublisherModelsResponse publisherModels. */ - public publisherModels: google.cloud.aiplatform.v1beta1.IPublisherModel[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata); - /** ListPublisherModelsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateExplanationDatasetOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListPublisherModelsResponse instance using the specified properties. + * Creates a new UpdateExplanationDatasetOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListPublisherModelsResponse instance + * @returns UpdateExplanationDatasetOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; /** - * Encodes the specified ListPublisherModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. - * @param message ListPublisherModelsResponse message or plain object to encode + * Encodes the specified UpdateExplanationDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. + * @param message UpdateExplanationDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPublisherModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. - * @param message ListPublisherModelsResponse message or plain object to encode + * Encodes the specified UpdateExplanationDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. + * @param message UpdateExplanationDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPublisherModelsResponse message from the specified reader or buffer. + * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPublisherModelsResponse + * @returns UpdateExplanationDatasetOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; /** - * Decodes a ListPublisherModelsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPublisherModelsResponse + * @returns UpdateExplanationDatasetOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; /** - * Verifies a ListPublisherModelsResponse message. + * Verifies an UpdateExplanationDatasetOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPublisherModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExplanationDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPublisherModelsResponse + * @returns UpdateExplanationDatasetOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; /** - * Creates a plain object from a ListPublisherModelsResponse message. Also converts values to other types if specified. - * @param message ListPublisherModelsResponse + * Creates a plain object from an UpdateExplanationDatasetOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateExplanationDatasetOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPublisherModelsResponse to JSON. + * Converts this UpdateExplanationDatasetOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPublisherModelsResponse + * Gets the default type url for UpdateExplanationDatasetOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PublisherModel. */ - interface IPublisherModel { + /** Properties of a DeleteModelRequest. */ + interface IDeleteModelRequest { - /** PublisherModel name */ + /** DeleteModelRequest name */ name?: (string|null); + } - /** PublisherModel versionId */ - versionId?: (string|null); - - /** PublisherModel openSourceCategory */ - openSourceCategory?: (google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|null); - - /** PublisherModel parent */ - parent?: (google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null); - - /** PublisherModel supportedActions */ - supportedActions?: (google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null); + /** Represents a DeleteModelRequest. */ + class DeleteModelRequest implements IDeleteModelRequest { - /** PublisherModel frameworks */ - frameworks?: (string[]|null); + /** + * Constructs a new DeleteModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest); - /** PublisherModel launchStage */ - launchStage?: (google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|null); + /** DeleteModelRequest name. */ + public name: string; - /** PublisherModel versionState */ - versionState?: (google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|null); + /** + * Creates a new DeleteModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): google.cloud.aiplatform.v1beta1.DeleteModelRequest; - /** PublisherModel publisherModelTemplate */ - publisherModelTemplate?: (string|null); + /** + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PublisherModel predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - } + /** + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a PublisherModel. */ - class PublisherModel implements IPublisherModel { + /** + * Decodes a DeleteModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelRequest; /** - * Constructs a new PublisherModel. - * @param [properties] Properties to set + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPublisherModel); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelRequest; - /** PublisherModel name. */ - public name: string; + /** + * Verifies a DeleteModelRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** PublisherModel versionId. */ - public versionId: string; + /** + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelRequest; - /** PublisherModel openSourceCategory. */ - public openSourceCategory: (google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory); + /** + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * @param message DeleteModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PublisherModel parent. */ - public parent?: (google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null); + /** + * Converts this DeleteModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PublisherModel supportedActions. */ - public supportedActions?: (google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null); + /** + * Gets the default type url for DeleteModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PublisherModel frameworks. */ - public frameworks: string[]; + /** Properties of a DeleteModelVersionRequest. */ + interface IDeleteModelVersionRequest { - /** PublisherModel launchStage. */ - public launchStage: (google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage); + /** DeleteModelVersionRequest name */ + name?: (string|null); + } - /** PublisherModel versionState. */ - public versionState: (google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|keyof typeof google.cloud.aiplatform.v1beta1.PublisherModel.VersionState); + /** Represents a DeleteModelVersionRequest. */ + class DeleteModelVersionRequest implements IDeleteModelVersionRequest { - /** PublisherModel publisherModelTemplate. */ - public publisherModelTemplate: string; + /** + * Constructs a new DeleteModelVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest); - /** PublisherModel predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** DeleteModelVersionRequest name. */ + public name: string; /** - * Creates a new PublisherModel instance using the specified properties. + * Creates a new DeleteModelVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PublisherModel instance + * @returns DeleteModelVersionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPublisherModel): google.cloud.aiplatform.v1beta1.PublisherModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Encodes the specified PublisherModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. - * @param message PublisherModel message or plain object to encode + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPublisherModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PublisherModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. - * @param message PublisherModel message or plain object to encode + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPublisherModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublisherModel message from the specified reader or buffer. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PublisherModel + * @returns DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Decodes a PublisherModel message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PublisherModel + * @returns DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Verifies a PublisherModel message. + * Verifies a DeleteModelVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PublisherModel message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PublisherModel + * @returns DeleteModelVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Creates a plain object from a PublisherModel message. Also converts values to other types if specified. - * @param message PublisherModel + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * @param message DeleteModelVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PublisherModel to JSON. + * Converts this DeleteModelVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PublisherModel + * Gets the default type url for DeleteModelVersionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PublisherModel { - - /** Properties of a ResourceReference. */ - interface IResourceReference { - - /** ResourceReference uri */ - uri?: (string|null); - - /** ResourceReference resourceName */ - resourceName?: (string|null); - - /** ResourceReference useCase */ - useCase?: (string|null); + /** Properties of a MergeVersionAliasesRequest. */ + interface IMergeVersionAliasesRequest { - /** ResourceReference description */ - description?: (string|null); - } + /** MergeVersionAliasesRequest name */ + name?: (string|null); - /** Represents a ResourceReference. */ - class ResourceReference implements IResourceReference { + /** MergeVersionAliasesRequest versionAliases */ + versionAliases?: (string[]|null); + } - /** - * Constructs a new ResourceReference. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference); + /** Represents a MergeVersionAliasesRequest. */ + class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { - /** ResourceReference uri. */ - public uri?: (string|null); + /** + * Constructs a new MergeVersionAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest); - /** ResourceReference resourceName. */ - public resourceName?: (string|null); + /** MergeVersionAliasesRequest name. */ + public name: string; - /** ResourceReference useCase. */ - public useCase?: (string|null); + /** MergeVersionAliasesRequest versionAliases. */ + public versionAliases: string[]; - /** ResourceReference description. */ - public description?: (string|null); + /** + * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MergeVersionAliasesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; - /** ResourceReference reference. */ - public reference?: ("uri"|"resourceName"|"useCase"|"description"); + /** + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ResourceReference instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourceReference instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; + /** + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; - /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; - /** - * Decodes a ResourceReference message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; + /** + * Verifies a MergeVersionAliasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; + /** + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MergeVersionAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; - /** - * Verifies a ResourceReference message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * @param message MergeVersionAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResourceReference - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference; + /** + * Converts this MergeVersionAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @param message ResourceReference - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for MergeVersionAliasesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this ResourceReference to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an ExportModelRequest. */ + interface IExportModelRequest { - /** - * Gets the default type url for ResourceReference - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ExportModelRequest name */ + name?: (string|null); - /** Properties of a Parent. */ - interface IParent { + /** ExportModelRequest outputConfig */ + outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); + } - /** Parent displayName */ - displayName?: (string|null); + /** Represents an ExportModelRequest. */ + class ExportModelRequest implements IExportModelRequest { - /** Parent reference */ - reference?: (google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null); - } + /** + * Constructs a new ExportModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest); - /** Represents a Parent. */ - class Parent implements IParent { + /** ExportModelRequest name. */ + public name: string; - /** - * Constructs a new Parent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IParent); + /** ExportModelRequest outputConfig. */ + public outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); - /** Parent displayName. */ - public displayName: string; + /** + * Creates a new ExportModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest): google.cloud.aiplatform.v1beta1.ExportModelRequest; - /** Parent reference. */ - public reference?: (google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null); + /** + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Parent instance using the specified properties. - * @param [properties] Properties to set - * @returns Parent instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IParent): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; + /** + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Parent message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. - * @param message Parent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IParent, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExportModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest; - /** - * Encodes the specified Parent message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. - * @param message Parent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.IParent, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest; - /** - * Decodes a Parent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; + /** + * Verifies an ExportModelRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Parent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; + /** + * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest; - /** - * Verifies a Parent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * @param message ExportModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a Parent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parent - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.Parent; + /** + * Converts this ExportModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a Parent message. Also converts values to other types if specified. - * @param message Parent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.Parent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ExportModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this Parent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace ExportModelRequest { - /** - * Gets the default type url for Parent - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an OutputConfig. */ + interface IOutputConfig { - /** Properties of a Documentation. */ - interface IDocumentation { + /** OutputConfig exportFormatId */ + exportFormatId?: (string|null); - /** Documentation title */ - title?: (string|null); + /** OutputConfig artifactDestination */ + artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Documentation content */ - content?: (string|null); + /** OutputConfig imageDestination */ + imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); } - /** Represents a Documentation. */ - class Documentation implements IDocumentation { + /** Represents an OutputConfig. */ + class OutputConfig implements IOutputConfig { /** - * Constructs a new Documentation. + * Constructs a new OutputConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation); + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig); - /** Documentation title. */ - public title: string; + /** OutputConfig exportFormatId. */ + public exportFormatId: string; - /** Documentation content. */ - public content: string; + /** OutputConfig artifactDestination. */ + public artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** OutputConfig imageDestination. */ + public imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); /** - * Creates a new Documentation instance using the specified properties. + * Creates a new OutputConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Documentation instance + * @returns OutputConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; /** - * Encodes the specified Documentation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. - * @param message Documentation message or plain object to encode + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Documentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. - * @param message Documentation message or plain object to encode + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Documentation message from the specified reader or buffer. + * Decodes an OutputConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Documentation + * @returns OutputConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; /** - * Decodes a Documentation message from the specified reader or buffer, length delimited. + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Documentation + * @returns OutputConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; /** - * Verifies a Documentation message. + * Verifies an OutputConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Documentation message from a plain object. Also converts values to their respective internal types. + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Documentation + * @returns OutputConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.Documentation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; /** - * Creates a plain object from a Documentation message. Also converts values to other types if specified. - * @param message Documentation + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. + * @param message OutputConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.Documentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Documentation to JSON. + * Converts this OutputConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Documentation + * Gets the default type url for OutputConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a CallToAction. */ - interface ICallToAction { + /** Properties of an ExportModelOperationMetadata. */ + interface IExportModelOperationMetadata { - /** CallToAction viewRestApi */ - viewRestApi?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null); + /** ExportModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CallToAction openNotebook */ - openNotebook?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** ExportModelOperationMetadata outputInfo */ + outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); + } + + /** Represents an ExportModelOperationMetadata. */ + class ExportModelOperationMetadata implements IExportModelOperationMetadata { + + /** + * Constructs a new ExportModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata); - /** CallToAction createApplication */ - createApplication?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** ExportModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CallToAction openFineTuningPipeline */ - openFineTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** ExportModelOperationMetadata outputInfo. */ + public outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); - /** CallToAction openPromptTuningPipeline */ - openPromptTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** + * Creates a new ExportModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; - /** CallToAction openGenie */ - openGenie?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** CallToAction deploy */ - deploy?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null); + /** + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** CallToAction openGenerationAiStudio */ - openGenerationAiStudio?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; - /** CallToAction requestAccess */ - requestAccess?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; - /** CallToAction openEvaluationPipeline */ - openEvaluationPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); - } + /** + * Verifies an ExportModelOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a CallToAction. */ - class CallToAction implements ICallToAction { + /** + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; - /** - * Constructs a new CallToAction. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction); + /** + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * @param message ExportModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CallToAction viewRestApi. */ - public viewRestApi?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null); + /** + * Converts this ExportModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CallToAction openNotebook. */ - public openNotebook?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** + * Gets the default type url for ExportModelOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CallToAction createApplication. */ - public createApplication?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + namespace ExportModelOperationMetadata { - /** CallToAction openFineTuningPipeline. */ - public openFineTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** Properties of an OutputInfo. */ + interface IOutputInfo { - /** CallToAction openPromptTuningPipeline. */ - public openPromptTuningPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** OutputInfo artifactOutputUri */ + artifactOutputUri?: (string|null); - /** CallToAction openGenie. */ - public openGenie?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** OutputInfo imageOutputUri */ + imageOutputUri?: (string|null); + } - /** CallToAction deploy. */ - public deploy?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null); + /** Represents an OutputInfo. */ + class OutputInfo implements IOutputInfo { - /** CallToAction openGenerationAiStudio. */ - public openGenerationAiStudio?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** + * Constructs a new OutputInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo); - /** CallToAction requestAccess. */ - public requestAccess?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** OutputInfo artifactOutputUri. */ + public artifactOutputUri: string; - /** CallToAction openEvaluationPipeline. */ - public openEvaluationPipeline?: (google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null); + /** OutputInfo imageOutputUri. */ + public imageOutputUri: string; /** - * Creates a new CallToAction instance using the specified properties. + * Creates a new OutputInfo instance using the specified properties. * @param [properties] Properties to set - * @returns CallToAction instance + * @returns OutputInfo instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; /** - * Encodes the specified CallToAction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. - * @param message CallToAction message or plain object to encode + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CallToAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. - * @param message CallToAction message or plain object to encode + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CallToAction message from the specified reader or buffer. + * Decodes an OutputInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CallToAction + * @returns OutputInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; /** - * Decodes a CallToAction message from the specified reader or buffer, length delimited. + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CallToAction + * @returns OutputInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; /** - * Verifies a CallToAction message. + * Verifies an OutputInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CallToAction message from a plain object. Also converts values to their respective internal types. + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CallToAction + * @returns OutputInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; /** - * Creates a plain object from a CallToAction message. Also converts values to other types if specified. - * @param message CallToAction + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @param message OutputInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CallToAction to JSON. + * Converts this OutputInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CallToAction + * Gets the default type url for OutputInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace CallToAction { + /** Properties of an UpdateExplanationDatasetResponse. */ + interface IUpdateExplanationDatasetResponse { + } - /** Properties of a RegionalResourceReferences. */ - interface IRegionalResourceReferences { + /** Represents an UpdateExplanationDatasetResponse. */ + class UpdateExplanationDatasetResponse implements IUpdateExplanationDatasetResponse { - /** RegionalResourceReferences references */ - references?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference }|null); + /** + * Constructs a new UpdateExplanationDatasetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse); - /** RegionalResourceReferences title */ - title?: (string|null); - } + /** + * Creates a new UpdateExplanationDatasetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateExplanationDatasetResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; - /** Represents a RegionalResourceReferences. */ - class RegionalResourceReferences implements IRegionalResourceReferences { + /** + * Encodes the specified UpdateExplanationDatasetResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. + * @param message UpdateExplanationDatasetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new RegionalResourceReferences. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences); + /** + * Encodes the specified UpdateExplanationDatasetResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. + * @param message UpdateExplanationDatasetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** RegionalResourceReferences references. */ - public references: { [k: string]: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference }; + /** + * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateExplanationDatasetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; - /** RegionalResourceReferences title. */ - public title: string; + /** + * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateExplanationDatasetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; - /** - * Creates a new RegionalResourceReferences instance using the specified properties. - * @param [properties] Properties to set - * @returns RegionalResourceReferences instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + /** + * Verifies an UpdateExplanationDatasetResponse message. + * @param message 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 RegionalResourceReferences message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. - * @param message RegionalResourceReferences message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an UpdateExplanationDatasetResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateExplanationDatasetResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; - /** - * Encodes the specified RegionalResourceReferences message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. - * @param message RegionalResourceReferences message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an UpdateExplanationDatasetResponse message. Also converts values to other types if specified. + * @param message UpdateExplanationDatasetResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a RegionalResourceReferences message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RegionalResourceReferences - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + /** + * Converts this UpdateExplanationDatasetResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a RegionalResourceReferences message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RegionalResourceReferences - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + /** + * Gets the default type url for UpdateExplanationDatasetResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a RegionalResourceReferences message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of an ExportModelResponse. */ + interface IExportModelResponse { + } - /** - * Creates a RegionalResourceReferences message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RegionalResourceReferences - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences; + /** Represents an ExportModelResponse. */ + class ExportModelResponse implements IExportModelResponse { - /** - * Creates a plain object from a RegionalResourceReferences message. Also converts values to other types if specified. - * @param message RegionalResourceReferences - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ExportModelResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse); - /** - * Converts this RegionalResourceReferences to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ExportModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse): google.cloud.aiplatform.v1beta1.ExportModelResponse; - /** - * Gets the default type url for RegionalResourceReferences - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ViewRestApi. */ - interface IViewRestApi { + /** + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** ViewRestApi documentations */ - documentations?: (google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation[]|null); + /** + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelResponse; - /** ViewRestApi title */ - title?: (string|null); - } + /** + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelResponse; - /** Represents a ViewRestApi. */ - class ViewRestApi implements IViewRestApi { + /** + * Verifies an ExportModelResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new ViewRestApi. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi); + /** + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelResponse; - /** ViewRestApi documentations. */ - public documentations: google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation[]; + /** + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @param message ExportModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ViewRestApi title. */ - public title: string; + /** + * Converts this ExportModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ViewRestApi instance using the specified properties. - * @param [properties] Properties to set - * @returns ViewRestApi instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + /** + * Gets the default type url for ExportModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ViewRestApi message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. - * @param message ViewRestApi message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a CopyModelRequest. */ + interface ICopyModelRequest { - /** - * Encodes the specified ViewRestApi message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. - * @param message ViewRestApi message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi, writer?: $protobuf.Writer): $protobuf.Writer; + /** CopyModelRequest modelId */ + modelId?: (string|null); - /** - * Decodes a ViewRestApi message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ViewRestApi - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + /** CopyModelRequest parentModel */ + parentModel?: (string|null); - /** - * Decodes a ViewRestApi message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ViewRestApi - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + /** CopyModelRequest parent */ + parent?: (string|null); - /** - * Verifies a ViewRestApi message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** CopyModelRequest sourceModel */ + sourceModel?: (string|null); - /** - * Creates a ViewRestApi message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ViewRestApi - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi; + /** CopyModelRequest encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } - /** - * Creates a plain object from a ViewRestApi message. Also converts values to other types if specified. - * @param message ViewRestApi - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a CopyModelRequest. */ + class CopyModelRequest implements ICopyModelRequest { - /** - * Converts this ViewRestApi to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new CopyModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest); - /** - * Gets the default type url for ViewRestApi - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CopyModelRequest modelId. */ + public modelId?: (string|null); - /** Properties of a Deploy. */ - interface IDeploy { + /** CopyModelRequest parentModel. */ + public parentModel?: (string|null); - /** Deploy dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** CopyModelRequest parent. */ + public parent: string; - /** Deploy automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** CopyModelRequest sourceModel. */ + public sourceModel: string; - /** Deploy sharedResources */ - sharedResources?: (string|null); + /** CopyModelRequest encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** Deploy modelDisplayName */ - modelDisplayName?: (string|null); + /** CopyModelRequest destinationModel. */ + public destinationModel?: ("modelId"|"parentModel"); - /** Deploy largeModelReference */ - largeModelReference?: (google.cloud.aiplatform.v1beta1.ILargeModelReference|null); + /** + * Creates a new CopyModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest): google.cloud.aiplatform.v1beta1.CopyModelRequest; - /** Deploy containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Deploy artifactUri */ - artifactUri?: (string|null); + /** + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Deploy title */ - title?: (string|null); + /** + * Decodes a CopyModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CopyModelRequest; - /** Deploy publicArtifactUri */ - publicArtifactUri?: (string|null); - } + /** + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CopyModelRequest; - /** Represents a Deploy. */ - class Deploy implements IDeploy { + /** + * Verifies a CopyModelRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new Deploy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy); + /** + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelRequest; - /** Deploy dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @param message CopyModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Deploy automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** + * Converts this CopyModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Deploy sharedResources. */ - public sharedResources?: (string|null); + /** + * Gets the default type url for CopyModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Deploy modelDisplayName. */ - public modelDisplayName: string; + /** Properties of a CopyModelOperationMetadata. */ + interface ICopyModelOperationMetadata { - /** Deploy largeModelReference. */ - public largeModelReference?: (google.cloud.aiplatform.v1beta1.ILargeModelReference|null); + /** CopyModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** Deploy containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** Represents a CopyModelOperationMetadata. */ + class CopyModelOperationMetadata implements ICopyModelOperationMetadata { - /** Deploy artifactUri. */ - public artifactUri: string; + /** + * Constructs a new CopyModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata); - /** Deploy title. */ - public title: string; + /** CopyModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** Deploy publicArtifactUri. */ - public publicArtifactUri: string; + /** + * Creates a new CopyModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; - /** Deploy predictionResources. */ - public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); + /** + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Deploy instance using the specified properties. - * @param [properties] Properties to set - * @returns Deploy instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; + /** + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Deploy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. - * @param message Deploy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; - /** - * Encodes the specified Deploy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. - * @param message Deploy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; - /** - * Decodes a Deploy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Deploy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; + /** + * Verifies a CopyModelOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Deploy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Deploy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; + /** + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; - /** - * Verifies a Deploy message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @param message CopyModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a Deploy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Deploy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy; + /** + * Converts this CopyModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a Deploy message. Also converts values to other types if specified. - * @param message Deploy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for CopyModelOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this Deploy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a CopyModelResponse. */ + interface ICopyModelResponse { - /** - * Gets the default type url for Deploy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** CopyModelResponse model */ + model?: (string|null); - /** OpenSourceCategory enum. */ - enum OpenSourceCategory { - OPEN_SOURCE_CATEGORY_UNSPECIFIED = 0, - PROPRIETARY = 1, - GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT = 2, - THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT = 3, - GOOGLE_OWNED_OSS = 4, - THIRD_PARTY_OWNED_OSS = 5 - } + /** CopyModelResponse modelVersionId */ + modelVersionId?: (string|null); + } - /** LaunchStage enum. */ - enum LaunchStage { - LAUNCH_STAGE_UNSPECIFIED = 0, - EXPERIMENTAL = 1, - PRIVATE_PREVIEW = 2, - PUBLIC_PREVIEW = 3, - GA = 4 - } + /** Represents a CopyModelResponse. */ + class CopyModelResponse implements ICopyModelResponse { - /** VersionState enum. */ - enum VersionState { - VERSION_STATE_UNSPECIFIED = 0, - VERSION_STATE_STABLE = 1, - VERSION_STATE_UNSTABLE = 2 - } - } + /** + * Constructs a new CopyModelResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse); - /** Represents a ModelService */ - class ModelService extends $protobuf.rpc.Service { + /** CopyModelResponse model. */ + public model: string; + + /** CopyModelResponse modelVersionId. */ + public modelVersionId: string; /** - * Constructs a new ModelService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new CopyModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelResponse instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse): google.cloud.aiplatform.v1beta1.CopyModelResponse; /** - * Creates new ModelService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @returns Promise + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CopyModelResponse; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CopyModelResponse; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @returns Promise + * Verifies a CopyModelResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelsResponse + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelResponse */ - public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelResponse; /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @returns Promise + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @param message CopyModelResponse + * @param [options] Conversion options + * @returns Plain object */ - public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListModelVersions. - * @param request ListModelVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * Converts this CopyModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ImportModelEvaluationRequest. */ + interface IImportModelEvaluationRequest { + + /** ImportModelEvaluationRequest parent */ + parent?: (string|null); + + /** ImportModelEvaluationRequest modelEvaluation */ + modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); + } + + /** Represents an ImportModelEvaluationRequest. */ + class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { + + /** + * Constructs a new ImportModelEvaluationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest); + + /** ImportModelEvaluationRequest parent. */ + public parent: string; + + /** ImportModelEvaluationRequest modelEvaluation. */ + public modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); + + /** + * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportModelEvaluationRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + + /** + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportModelEvaluationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + + /** + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportModelEvaluationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + + /** + * Verifies an ImportModelEvaluationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listModelVersions(request: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListModelVersions. - * @param request ListModelVersionsRequest message or plain object - * @returns Promise + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportModelEvaluationRequest */ - public listModelVersions(request: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @param message ImportModelEvaluationRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @returns Promise + * Converts this ImportModelEvaluationRequest to JSON. + * @returns JSON object */ - public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateExplanationDataset. - * @param request UpdateExplanationDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for ImportModelEvaluationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateExplanationDataset(request: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDatasetCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchImportModelEvaluationSlicesRequest. */ + interface IBatchImportModelEvaluationSlicesRequest { + + /** BatchImportModelEvaluationSlicesRequest parent */ + parent?: (string|null); + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); + } + + /** Represents a BatchImportModelEvaluationSlicesRequest. */ + class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { /** - * Calls UpdateExplanationDataset. - * @param request UpdateExplanationDatasetRequest message or plain object - * @returns Promise + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @param [properties] Properties to set */ - public updateExplanationDataset(request: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest); + + /** BatchImportModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportModelEvaluationSlicesRequest instance */ - public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @returns Promise + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteModelVersion. - * @param request DeleteModelVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteModelVersion(request: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersionCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteModelVersion. - * @param request DeleteModelVersionRequest message or plain object - * @returns Promise + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelVersion(request: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; /** - * Calls MergeVersionAliases. - * @param request MergeVersionAliasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public mergeVersionAliases(request: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliasesCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; /** - * Calls MergeVersionAliases. - * @param request MergeVersionAliasesRequest message or plain object - * @returns Promise + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public mergeVersionAliases(request: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportModelEvaluationSlicesRequest */ - public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @returns Promise + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesRequest + * @param [options] Conversion options + * @returns Plain object */ - public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CopyModel. - * @param request CopyModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @returns JSON object */ - public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls CopyModel. - * @param request CopyModelRequest message or plain object - * @returns Promise + * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchImportModelEvaluationSlicesResponse. */ + interface IBatchImportModelEvaluationSlicesResponse { + + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ + importedModelEvaluationSlices?: (string[]|null); + } + + /** Represents a BatchImportModelEvaluationSlicesResponse. */ + class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @param [properties] Properties to set */ - public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse); + + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ + public importedModelEvaluationSlices: string[]; /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @returns Promise + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportModelEvaluationSlicesResponse instance */ - public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; /** - * Calls BatchImportModelEvaluationSlices. - * @param request BatchImportModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlicesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchImportModelEvaluationSlices. - * @param request BatchImportModelEvaluationSlicesRequest message or plain object - * @returns Promise + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchImportEvaluatedAnnotations. - * @param request BatchImportEvaluatedAnnotationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotationsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; /** - * Calls BatchImportEvaluatedAnnotations. - * @param request BatchImportEvaluatedAnnotationsRequest message or plain object - * @returns Promise + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchImportEvaluatedAnnotations(request: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @returns Promise + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportModelEvaluationSlicesResponse */ - public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesResponse + * @param [options] Conversion options + * @returns Plain object */ - public listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @returns Promise + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * @returns JSON object */ - public listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * Gets the default type url for BatchImportModelEvaluationSlicesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchImportEvaluatedAnnotationsRequest. */ + interface IBatchImportEvaluatedAnnotationsRequest { + + /** BatchImportEvaluatedAnnotationsRequest parent */ + parent?: (string|null); + + /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations */ + evaluatedAnnotations?: (google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation[]|null); + } + + /** Represents a BatchImportEvaluatedAnnotationsRequest. */ + class BatchImportEvaluatedAnnotationsRequest implements IBatchImportEvaluatedAnnotationsRequest { /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @returns Promise + * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * @param [properties] Properties to set */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest); + + /** BatchImportEvaluatedAnnotationsRequest parent. */ + public parent: string; + + /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. */ + public evaluatedAnnotations: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation[]; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportEvaluatedAnnotationsRequest instance */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @returns Promise + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): Promise; - } + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - namespace ModelService { + /** + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|uploadModel}. - * @param error Error, if any - * @param [response] Operation + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModel}. - * @param error Error, if any - * @param [response] Model + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModels}. - * @param error Error, if any - * @param [response] ListModelsResponse + * Verifies a BatchImportEvaluatedAnnotationsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelVersions}. - * @param error Error, if any - * @param [response] ListModelVersionsResponse + * Creates a BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportEvaluatedAnnotationsRequest */ - type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateModel}. - * @param error Error, if any - * @param [response] Model + * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. + * @param message BatchImportEvaluatedAnnotationsRequest + * @param [options] Conversion options + * @returns Plain object */ - type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateExplanationDataset}. - * @param error Error, if any - * @param [response] Operation + * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. + * @returns JSON object */ - type UpdateExplanationDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModel}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for BatchImportEvaluatedAnnotationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchImportEvaluatedAnnotationsResponse. */ + interface IBatchImportEvaluatedAnnotationsResponse { + + /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount */ + importedEvaluatedAnnotationsCount?: (number|null); + } + + /** Represents a BatchImportEvaluatedAnnotationsResponse. */ + class BatchImportEvaluatedAnnotationsResponse implements IBatchImportEvaluatedAnnotationsResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModelVersion}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new BatchImportEvaluatedAnnotationsResponse. + * @param [properties] Properties to set */ - type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse); + + /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. */ + public importedEvaluatedAnnotationsCount: number; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|mergeVersionAliases}. - * @param error Error, if any - * @param [response] Model + * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportEvaluatedAnnotationsResponse instance */ - type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|exportModel}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CopyModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportModelEvaluationSlices}. - * @param error Error, if any - * @param [response] BatchImportModelEvaluationSlicesResponse + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportEvaluatedAnnotations}. - * @param error Error, if any - * @param [response] BatchImportEvaluatedAnnotationsResponse + * Verifies a BatchImportEvaluatedAnnotationsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type BatchImportEvaluatedAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation + * Creates a BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportEvaluatedAnnotationsResponse */ - type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluations}. - * @param error Error, if any - * @param [response] ListModelEvaluationsResponse + * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * @param message BatchImportEvaluatedAnnotationsResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluationSlice}. - * @param error Error, if any - * @param [response] ModelEvaluationSlice + * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * @returns JSON object */ - type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluationSlices}. - * @param error Error, if any - * @param [response] ListModelEvaluationSlicesResponse + * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelRequest. */ - interface IUploadModelRequest { - - /** UploadModelRequest parent */ - parent?: (string|null); - - /** UploadModelRequest parentModel */ - parentModel?: (string|null); - - /** UploadModelRequest modelId */ - modelId?: (string|null); - - /** UploadModelRequest model */ - model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** Properties of a GetModelEvaluationRequest. */ + interface IGetModelEvaluationRequest { - /** UploadModelRequest serviceAccount */ - serviceAccount?: (string|null); + /** GetModelEvaluationRequest name */ + name?: (string|null); } - /** Represents an UploadModelRequest. */ - class UploadModelRequest implements IUploadModelRequest { + /** Represents a GetModelEvaluationRequest. */ + class GetModelEvaluationRequest implements IGetModelEvaluationRequest { /** - * Constructs a new UploadModelRequest. + * Constructs a new GetModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest); - - /** UploadModelRequest parent. */ - public parent: string; - - /** UploadModelRequest parentModel. */ - public parentModel: string; - - /** UploadModelRequest modelId. */ - public modelId: string; - - /** UploadModelRequest model. */ - public model?: (google.cloud.aiplatform.v1beta1.IModel|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest); - /** UploadModelRequest serviceAccount. */ - public serviceAccount: string; + /** GetModelEvaluationRequest name. */ + public name: string; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelRequest instance + * @returns GetModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelRequest + * @returns GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelRequest + * @returns GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Verifies an UploadModelRequest message. + * Verifies a GetModelEvaluationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelRequest + * @returns GetModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. - * @param message UploadModelRequest + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelRequest + * Gets the default type url for GetModelEvaluationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelOperationMetadata. */ - interface IUploadModelOperationMetadata { + /** Properties of a ListModelEvaluationsRequest. */ + interface IListModelEvaluationsRequest { - /** UploadModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListModelEvaluationsRequest parent */ + parent?: (string|null); + + /** ListModelEvaluationsRequest filter */ + filter?: (string|null); + + /** ListModelEvaluationsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UploadModelOperationMetadata. */ - class UploadModelOperationMetadata implements IUploadModelOperationMetadata { + /** Represents a ListModelEvaluationsRequest. */ + class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new ListModelEvaluationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest); - /** UploadModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListModelEvaluationsRequest parent. */ + public parent: string; + + /** ListModelEvaluationsRequest filter. */ + public filter: string; + + /** ListModelEvaluationsRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationsRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelOperationMetadata instance + * @returns ListModelEvaluationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelOperationMetadata + * @returns ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelOperationMetadata + * @returns ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a ListModelEvaluationsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelOperationMetadata + * @returns ListModelEvaluationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. - * @param message UploadModelOperationMetadata + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelOperationMetadata + * Gets the default type url for ListModelEvaluationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelResponse. */ - interface IUploadModelResponse { + /** Properties of a ListModelEvaluationsResponse. */ + interface IListModelEvaluationsResponse { - /** UploadModelResponse model */ - model?: (string|null); + /** ListModelEvaluationsResponse modelEvaluations */ + modelEvaluations?: (google.cloud.aiplatform.v1beta1.IModelEvaluation[]|null); - /** UploadModelResponse modelVersionId */ - modelVersionId?: (string|null); + /** ListModelEvaluationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UploadModelResponse. */ - class UploadModelResponse implements IUploadModelResponse { + /** Represents a ListModelEvaluationsResponse. */ + class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { /** - * Constructs a new UploadModelResponse. + * Constructs a new ListModelEvaluationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse); - /** UploadModelResponse model. */ - public model: string; + /** ListModelEvaluationsResponse modelEvaluations. */ + public modelEvaluations: google.cloud.aiplatform.v1beta1.IModelEvaluation[]; - /** UploadModelResponse modelVersionId. */ - public modelVersionId: string; + /** ListModelEvaluationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UploadModelResponse instance using the specified properties. + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelResponse instance + * @returns ListModelEvaluationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse): google.cloud.aiplatform.v1beta1.UploadModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelResponse message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelResponse + * @returns ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelResponse + * @returns ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Verifies an UploadModelResponse message. + * Verifies a ListModelEvaluationsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelResponse + * @returns ListModelEvaluationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. - * @param message UploadModelResponse + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelResponse to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelResponse + * Gets the default type url for ListModelEvaluationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelRequest. */ - interface IGetModelRequest { + /** Properties of a GetModelEvaluationSliceRequest. */ + interface IGetModelEvaluationSliceRequest { - /** GetModelRequest name */ + /** GetModelEvaluationSliceRequest name */ name?: (string|null); } - /** Represents a GetModelRequest. */ - class GetModelRequest implements IGetModelRequest { + /** Represents a GetModelEvaluationSliceRequest. */ + class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { /** - * Constructs a new GetModelRequest. + * Constructs a new GetModelEvaluationSliceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest); - /** GetModelRequest name. */ + /** GetModelEvaluationSliceRequest name. */ public name: string; /** - * Creates a new GetModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelRequest instance + * @returns GetModelEvaluationSliceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelRequest + * @returns GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelRequest + * @returns GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Verifies a GetModelRequest message. + * Verifies a GetModelEvaluationSliceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelRequest + * @returns GetModelEvaluationSliceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. - * @param message GetModelRequest + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationSliceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelRequest to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelRequest + * Gets the default type url for GetModelEvaluationSliceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelsRequest. */ - interface IListModelsRequest { + /** Properties of a ListModelEvaluationSlicesRequest. */ + interface IListModelEvaluationSlicesRequest { - /** ListModelsRequest parent */ + /** ListModelEvaluationSlicesRequest parent */ parent?: (string|null); - /** ListModelsRequest filter */ + /** ListModelEvaluationSlicesRequest filter */ filter?: (string|null); - /** ListModelsRequest pageSize */ + /** ListModelEvaluationSlicesRequest pageSize */ pageSize?: (number|null); - /** ListModelsRequest pageToken */ + /** ListModelEvaluationSlicesRequest pageToken */ pageToken?: (string|null); - /** ListModelsRequest readMask */ + /** ListModelEvaluationSlicesRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListModelsRequest. */ - class ListModelsRequest implements IListModelsRequest { + /** Represents a ListModelEvaluationSlicesRequest. */ + class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { /** - * Constructs a new ListModelsRequest. + * Constructs a new ListModelEvaluationSlicesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest); - /** ListModelsRequest parent. */ + /** ListModelEvaluationSlicesRequest parent. */ public parent: string; - /** ListModelsRequest filter. */ + /** ListModelEvaluationSlicesRequest filter. */ public filter: string; - /** ListModelsRequest pageSize. */ + /** ListModelEvaluationSlicesRequest pageSize. */ public pageSize: number; - /** ListModelsRequest pageToken. */ + /** ListModelEvaluationSlicesRequest pageToken. */ public pageToken: string; - /** ListModelsRequest readMask. */ + /** ListModelEvaluationSlicesRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListModelsRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelsRequest instance + * @returns ListModelEvaluationSlicesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelsRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelsRequest + * @returns ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelsRequest + * @returns ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Verifies a ListModelsRequest message. + * Verifies a ListModelEvaluationSlicesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelsRequest + * @returns ListModelEvaluationSlicesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. - * @param message ListModelsRequest + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelsRequest to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelsRequest + * Gets the default type url for ListModelEvaluationSlicesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelsResponse. */ - interface IListModelsResponse { + /** Properties of a ListModelEvaluationSlicesResponse. */ + interface IListModelEvaluationSlicesResponse { - /** ListModelsResponse models */ - models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); + /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); - /** ListModelsResponse nextPageToken */ + /** ListModelEvaluationSlicesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListModelsResponse. */ - class ListModelsResponse implements IListModelsResponse { + /** Represents a ListModelEvaluationSlicesResponse. */ + class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { /** - * Constructs a new ListModelsResponse. + * Constructs a new ListModelEvaluationSlicesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse); - /** ListModelsResponse models. */ - public models: google.cloud.aiplatform.v1beta1.IModel[]; + /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; - /** ListModelsResponse nextPageToken. */ + /** ListModelEvaluationSlicesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListModelsResponse instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelsResponse instance + * @returns ListModelEvaluationSlicesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelsResponse message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelsResponse + * @returns ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelsResponse + * @returns ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Verifies a ListModelsResponse message. + * Verifies a ListModelEvaluationSlicesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelsResponse + * @returns ListModelEvaluationSlicesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @param message ListModelsResponse + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelsResponse to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelsResponse + * Gets the default type url for ListModelEvaluationSlicesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelVersionsRequest. */ - interface IListModelVersionsRequest { + /** Properties of a PersistentResource. */ + interface IPersistentResource { - /** ListModelVersionsRequest name */ + /** PersistentResource name */ name?: (string|null); - /** ListModelVersionsRequest pageSize */ - pageSize?: (number|null); + /** PersistentResource displayName */ + displayName?: (string|null); - /** ListModelVersionsRequest pageToken */ - pageToken?: (string|null); + /** PersistentResource resourcePools */ + resourcePools?: (google.cloud.aiplatform.v1beta1.IResourcePool[]|null); - /** ListModelVersionsRequest filter */ - filter?: (string|null); + /** PersistentResource state */ + state?: (google.cloud.aiplatform.v1beta1.PersistentResource.State|keyof typeof google.cloud.aiplatform.v1beta1.PersistentResource.State|null); + + /** PersistentResource error */ + error?: (google.rpc.IStatus|null); + + /** PersistentResource createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PersistentResource startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** PersistentResource updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** PersistentResource labels */ + labels?: ({ [k: string]: string }|null); + + /** PersistentResource network */ + network?: (string|null); + + /** PersistentResource encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** PersistentResource resourceRuntimeSpec */ + resourceRuntimeSpec?: (google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null); + + /** PersistentResource resourceRuntime */ + resourceRuntime?: (google.cloud.aiplatform.v1beta1.IResourceRuntime|null); + + /** PersistentResource reservedIpRanges */ + reservedIpRanges?: (string[]|null); + } + + /** Represents a PersistentResource. */ + class PersistentResource implements IPersistentResource { + + /** + * Constructs a new PersistentResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPersistentResource); + + /** PersistentResource name. */ + public name: string; + + /** PersistentResource displayName. */ + public displayName: string; + + /** PersistentResource resourcePools. */ + public resourcePools: google.cloud.aiplatform.v1beta1.IResourcePool[]; + + /** PersistentResource state. */ + public state: (google.cloud.aiplatform.v1beta1.PersistentResource.State|keyof typeof google.cloud.aiplatform.v1beta1.PersistentResource.State); - /** ListModelVersionsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PersistentResource error. */ + public error?: (google.rpc.IStatus|null); - /** ListModelVersionsRequest orderBy */ - orderBy?: (string|null); - } + /** PersistentResource createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Represents a ListModelVersionsRequest. */ - class ListModelVersionsRequest implements IListModelVersionsRequest { + /** PersistentResource startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ListModelVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest); + /** PersistentResource updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ListModelVersionsRequest name. */ - public name: string; + /** PersistentResource labels. */ + public labels: { [k: string]: string }; - /** ListModelVersionsRequest pageSize. */ - public pageSize: number; + /** PersistentResource network. */ + public network: string; - /** ListModelVersionsRequest pageToken. */ - public pageToken: string; + /** PersistentResource encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ListModelVersionsRequest filter. */ - public filter: string; + /** PersistentResource resourceRuntimeSpec. */ + public resourceRuntimeSpec?: (google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null); - /** ListModelVersionsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PersistentResource resourceRuntime. */ + public resourceRuntime?: (google.cloud.aiplatform.v1beta1.IResourceRuntime|null); - /** ListModelVersionsRequest orderBy. */ - public orderBy: string; + /** PersistentResource reservedIpRanges. */ + public reservedIpRanges: string[]; /** - * Creates a new ListModelVersionsRequest instance using the specified properties. + * Creates a new PersistentResource instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelVersionsRequest instance + * @returns PersistentResource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPersistentResource): google.cloud.aiplatform.v1beta1.PersistentResource; /** - * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. - * @param message ListModelVersionsRequest message or plain object to encode + * Encodes the specified PersistentResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. + * @param message PersistentResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPersistentResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. - * @param message ListModelVersionsRequest message or plain object to encode + * Encodes the specified PersistentResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. + * @param message PersistentResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPersistentResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * Decodes a PersistentResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelVersionsRequest + * @returns PersistentResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PersistentResource; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a PersistentResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelVersionsRequest + * @returns PersistentResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PersistentResource; /** - * Verifies a ListModelVersionsRequest message. + * Verifies a PersistentResource message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PersistentResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelVersionsRequest + * @returns PersistentResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PersistentResource; /** - * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. - * @param message ListModelVersionsRequest + * Creates a plain object from a PersistentResource message. Also converts values to other types if specified. + * @param message PersistentResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PersistentResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelVersionsRequest to JSON. + * Converts this PersistentResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelVersionsRequest + * Gets the default type url for PersistentResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelVersionsResponse. */ - interface IListModelVersionsResponse { + namespace PersistentResource { - /** ListModelVersionsResponse models */ - models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PROVISIONING = 1, + RUNNING = 3, + STOPPING = 4, + ERROR = 5 + } + } - /** ListModelVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of a ResourcePool. */ + interface IResourcePool { + + /** ResourcePool id */ + id?: (string|null); + + /** ResourcePool machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** ResourcePool replicaCount */ + replicaCount?: (number|Long|string|null); + + /** ResourcePool diskSpec */ + diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + + /** ResourcePool usedReplicaCount */ + usedReplicaCount?: (number|Long|string|null); + + /** ResourcePool autoscalingSpec */ + autoscalingSpec?: (google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null); } - /** Represents a ListModelVersionsResponse. */ - class ListModelVersionsResponse implements IListModelVersionsResponse { + /** Represents a ResourcePool. */ + class ResourcePool implements IResourcePool { /** - * Constructs a new ListModelVersionsResponse. + * Constructs a new ResourcePool. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IResourcePool); - /** ListModelVersionsResponse models. */ - public models: google.cloud.aiplatform.v1beta1.IModel[]; + /** ResourcePool id. */ + public id: string; - /** ListModelVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** ResourcePool machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** ResourcePool replicaCount. */ + public replicaCount?: (number|Long|string|null); + + /** ResourcePool diskSpec. */ + public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + + /** ResourcePool usedReplicaCount. */ + public usedReplicaCount: (number|Long|string); + + /** ResourcePool autoscalingSpec. */ + public autoscalingSpec?: (google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null); + + /** ResourcePool _replicaCount. */ + public _replicaCount?: "replicaCount"; /** - * Creates a new ListModelVersionsResponse instance using the specified properties. + * Creates a new ResourcePool instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelVersionsResponse instance + * @returns ResourcePool instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResourcePool): google.cloud.aiplatform.v1beta1.ResourcePool; /** - * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. - * @param message ListModelVersionsResponse message or plain object to encode + * Encodes the specified ResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. + * @param message ResourcePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. - * @param message ListModelVersionsResponse message or plain object to encode + * Encodes the specified ResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. + * @param message ResourcePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * Decodes a ResourcePool message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelVersionsResponse + * @returns ResourcePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourcePool; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ResourcePool message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelVersionsResponse + * @returns ResourcePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourcePool; /** - * Verifies a ListModelVersionsResponse message. + * Verifies a ResourcePool message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResourcePool message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelVersionsResponse + * @returns ResourcePool */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcePool; /** - * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. - * @param message ListModelVersionsResponse + * Creates a plain object from a ResourcePool message. Also converts values to other types if specified. + * @param message ResourcePool * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelVersionsResponse to JSON. + * Converts this ResourcePool to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelVersionsResponse + * Gets the default type url for ResourcePool * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelRequest. */ - interface IUpdateModelRequest { + namespace ResourcePool { - /** UpdateModelRequest model */ - model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** Properties of an AutoscalingSpec. */ + interface IAutoscalingSpec { - /** UpdateModelRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** AutoscalingSpec minReplicaCount */ + minReplicaCount?: (number|Long|string|null); + + /** AutoscalingSpec maxReplicaCount */ + maxReplicaCount?: (number|Long|string|null); + } + + /** Represents an AutoscalingSpec. */ + class AutoscalingSpec implements IAutoscalingSpec { + + /** + * Constructs a new AutoscalingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec); + + /** AutoscalingSpec minReplicaCount. */ + public minReplicaCount?: (number|Long|string|null); + + /** AutoscalingSpec maxReplicaCount. */ + public maxReplicaCount?: (number|Long|string|null); + + /** AutoscalingSpec _minReplicaCount. */ + public _minReplicaCount?: "minReplicaCount"; + + /** AutoscalingSpec _maxReplicaCount. */ + public _maxReplicaCount?: "maxReplicaCount"; + + /** + * Creates a new AutoscalingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoscalingSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; + + /** + * Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. + * @param message AutoscalingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. + * @param message AutoscalingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; + + /** + * Verifies an AutoscalingSpec message. + * @param message Plain 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 AutoscalingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoscalingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; + + /** + * Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified. + * @param message AutoscalingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoscalingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoscalingSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an UpdateModelRequest. */ - class UpdateModelRequest implements IUpdateModelRequest { + /** Properties of a ResourceRuntimeSpec. */ + interface IResourceRuntimeSpec { + + /** ResourceRuntimeSpec serviceAccountSpec */ + serviceAccountSpec?: (google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null); + + /** ResourceRuntimeSpec raySpec */ + raySpec?: (google.cloud.aiplatform.v1beta1.IRaySpec|null); + } + + /** Represents a ResourceRuntimeSpec. */ + class ResourceRuntimeSpec implements IResourceRuntimeSpec { /** - * Constructs a new UpdateModelRequest. + * Constructs a new ResourceRuntimeSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec); - /** UpdateModelRequest model. */ - public model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** ResourceRuntimeSpec serviceAccountSpec. */ + public serviceAccountSpec?: (google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null); - /** UpdateModelRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ResourceRuntimeSpec raySpec. */ + public raySpec?: (google.cloud.aiplatform.v1beta1.IRaySpec|null); /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new ResourceRuntimeSpec instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelRequest instance + * @returns ResourceRuntimeSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified ResourceRuntimeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. + * @param message ResourceRuntimeSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified ResourceRuntimeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. + * @param message ResourceRuntimeSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes a ResourceRuntimeSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelRequest + * @returns ResourceRuntimeSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ResourceRuntimeSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelRequest + * @returns ResourceRuntimeSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; /** - * Verifies an UpdateModelRequest message. + * Verifies a ResourceRuntimeSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceRuntimeSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelRequest + * @returns ResourceRuntimeSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. - * @param message UpdateModelRequest + * Creates a plain object from a ResourceRuntimeSpec message. Also converts values to other types if specified. + * @param message ResourceRuntimeSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this ResourceRuntimeSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelRequest + * Gets the default type url for ResourceRuntimeSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateExplanationDatasetRequest. */ - interface IUpdateExplanationDatasetRequest { + /** Properties of a RaySpec. */ + interface IRaySpec { - /** UpdateExplanationDatasetRequest model */ - model?: (string|null); + /** RaySpec imageUri */ + imageUri?: (string|null); - /** UpdateExplanationDatasetRequest examples */ - examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); + /** RaySpec resourcePoolImages */ + resourcePoolImages?: ({ [k: string]: string }|null); + + /** RaySpec headNodeResourcePoolId */ + headNodeResourcePoolId?: (string|null); } - /** Represents an UpdateExplanationDatasetRequest. */ - class UpdateExplanationDatasetRequest implements IUpdateExplanationDatasetRequest { + /** Represents a RaySpec. */ + class RaySpec implements IRaySpec { /** - * Constructs a new UpdateExplanationDatasetRequest. + * Constructs a new RaySpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IRaySpec); - /** UpdateExplanationDatasetRequest model. */ - public model: string; + /** RaySpec imageUri. */ + public imageUri: string; - /** UpdateExplanationDatasetRequest examples. */ - public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); + /** RaySpec resourcePoolImages. */ + public resourcePoolImages: { [k: string]: string }; + + /** RaySpec headNodeResourcePoolId. */ + public headNodeResourcePoolId: string; /** - * Creates a new UpdateExplanationDatasetRequest instance using the specified properties. + * Creates a new RaySpec instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExplanationDatasetRequest instance + * @returns RaySpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRaySpec): google.cloud.aiplatform.v1beta1.RaySpec; /** - * Encodes the specified UpdateExplanationDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. - * @param message UpdateExplanationDatasetRequest message or plain object to encode + * Encodes the specified RaySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. + * @param message RaySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRaySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExplanationDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. - * @param message UpdateExplanationDatasetRequest message or plain object to encode + * Encodes the specified RaySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. + * @param message RaySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRaySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer. + * Decodes a RaySpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExplanationDatasetRequest + * @returns RaySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RaySpec; /** - * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a RaySpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExplanationDatasetRequest + * @returns RaySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RaySpec; /** - * Verifies an UpdateExplanationDatasetRequest message. + * Verifies a RaySpec message. * @param message Plain 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 UpdateExplanationDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RaySpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExplanationDatasetRequest + * @returns RaySpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RaySpec; /** - * Creates a plain object from an UpdateExplanationDatasetRequest message. Also converts values to other types if specified. - * @param message UpdateExplanationDatasetRequest + * Creates a plain object from a RaySpec message. Also converts values to other types if specified. + * @param message RaySpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RaySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExplanationDatasetRequest to JSON. + * Converts this RaySpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExplanationDatasetRequest + * Gets the default type url for RaySpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateExplanationDatasetOperationMetadata. */ - interface IUpdateExplanationDatasetOperationMetadata { + /** Properties of a ResourceRuntime. */ + interface IResourceRuntime { - /** UpdateExplanationDatasetOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ResourceRuntime accessUris */ + accessUris?: ({ [k: string]: string }|null); } - /** Represents an UpdateExplanationDatasetOperationMetadata. */ - class UpdateExplanationDatasetOperationMetadata implements IUpdateExplanationDatasetOperationMetadata { + /** Represents a ResourceRuntime. */ + class ResourceRuntime implements IResourceRuntime { /** - * Constructs a new UpdateExplanationDatasetOperationMetadata. + * Constructs a new ResourceRuntime. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntime); - /** UpdateExplanationDatasetOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ResourceRuntime accessUris. */ + public accessUris: { [k: string]: string }; /** - * Creates a new UpdateExplanationDatasetOperationMetadata instance using the specified properties. + * Creates a new ResourceRuntime instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExplanationDatasetOperationMetadata instance + * @returns ResourceRuntime instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntime): google.cloud.aiplatform.v1beta1.ResourceRuntime; /** - * Encodes the specified UpdateExplanationDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. - * @param message UpdateExplanationDatasetOperationMetadata message or plain object to encode + * Encodes the specified ResourceRuntime message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. + * @param message ResourceRuntime message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResourceRuntime, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExplanationDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. - * @param message UpdateExplanationDatasetOperationMetadata message or plain object to encode + * Encodes the specified ResourceRuntime message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. + * @param message ResourceRuntime message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourceRuntime, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer. + * Decodes a ResourceRuntime message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExplanationDatasetOperationMetadata + * @returns ResourceRuntime * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourceRuntime; /** - * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ResourceRuntime message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExplanationDatasetOperationMetadata + * @returns ResourceRuntime * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourceRuntime; /** - * Verifies an UpdateExplanationDatasetOperationMetadata message. + * Verifies a ResourceRuntime message. * @param message Plain 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 UpdateExplanationDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceRuntime message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExplanationDatasetOperationMetadata + * @returns ResourceRuntime */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourceRuntime; /** - * Creates a plain object from an UpdateExplanationDatasetOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateExplanationDatasetOperationMetadata + * Creates a plain object from a ResourceRuntime message. Also converts values to other types if specified. + * @param message ResourceRuntime * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResourceRuntime, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExplanationDatasetOperationMetadata to JSON. + * Converts this ResourceRuntime to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExplanationDatasetOperationMetadata + * Gets the default type url for ResourceRuntime * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelRequest. */ - interface IDeleteModelRequest { + /** Properties of a ServiceAccountSpec. */ + interface IServiceAccountSpec { - /** DeleteModelRequest name */ - name?: (string|null); + /** ServiceAccountSpec enableCustomServiceAccount */ + enableCustomServiceAccount?: (boolean|null); + + /** ServiceAccountSpec serviceAccount */ + serviceAccount?: (string|null); } - /** Represents a DeleteModelRequest. */ - class DeleteModelRequest implements IDeleteModelRequest { + /** Represents a ServiceAccountSpec. */ + class ServiceAccountSpec implements IServiceAccountSpec { /** - * Constructs a new DeleteModelRequest. + * Constructs a new ServiceAccountSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IServiceAccountSpec); - /** DeleteModelRequest name. */ - public name: string; + /** ServiceAccountSpec enableCustomServiceAccount. */ + public enableCustomServiceAccount: boolean; + + /** ServiceAccountSpec serviceAccount. */ + public serviceAccount: string; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * Creates a new ServiceAccountSpec instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelRequest instance + * @returns ServiceAccountSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IServiceAccountSpec): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified ServiceAccountSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. + * @param message ServiceAccountSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IServiceAccountSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified ServiceAccountSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. + * @param message ServiceAccountSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IServiceAccountSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes a ServiceAccountSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelRequest + * @returns ServiceAccountSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ServiceAccountSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelRequest + * @returns ServiceAccountSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; /** - * Verifies a DeleteModelRequest message. + * Verifies a ServiceAccountSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceAccountSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelRequest + * @returns ServiceAccountSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. - * @param message DeleteModelRequest + * Creates a plain object from a ServiceAccountSpec message. Also converts values to other types if specified. + * @param message ServiceAccountSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ServiceAccountSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this ServiceAccountSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelRequest + * Gets the default type url for ServiceAccountSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelVersionRequest. */ - interface IDeleteModelVersionRequest { + /** Represents a PersistentResourceService */ + class PersistentResourceService extends $protobuf.rpc.Service { - /** DeleteModelVersionRequest name */ - name?: (string|null); - } + /** + * Constructs a new PersistentResourceService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a DeleteModelVersionRequest. */ - class DeleteModelVersionRequest implements IDeleteModelVersionRequest { + /** + * Creates new PersistentResourceService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PersistentResourceService; /** - * Constructs a new DeleteModelVersionRequest. - * @param [properties] Properties to set + * Calls CreatePersistentResource. + * @param request CreatePersistentResourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest); + public createPersistentResource(request: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResourceCallback): void; - /** DeleteModelVersionRequest name. */ - public name: string; + /** + * Calls CreatePersistentResource. + * @param request CreatePersistentResourceRequest message or plain object + * @returns Promise + */ + public createPersistentResource(request: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest): Promise; /** - * Creates a new DeleteModelVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteModelVersionRequest instance + * Calls GetPersistentResource. + * @param request GetPersistentResourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PersistentResource */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; + public getPersistentResource(request: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResourceCallback): void; /** - * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. - * @param message DeleteModelVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetPersistentResource. + * @param request GetPersistentResourceRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getPersistentResource(request: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest): Promise; /** - * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. - * @param message DeleteModelVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListPersistentResources. + * @param request ListPersistentResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPersistentResourcesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listPersistentResources(request: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResourcesCallback): void; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteModelVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPersistentResources. + * @param request ListPersistentResourcesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; + public listPersistentResources(request: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest): Promise; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteModelVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeletePersistentResource. + * @param request DeletePersistentResourceRequest 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.DeleteModelVersionRequest; + public deletePersistentResource(request: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResourceCallback): void; /** - * Verifies a DeleteModelVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeletePersistentResource. + * @param request DeletePersistentResourceRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deletePersistentResource(request: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest): Promise; /** - * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteModelVersionRequest + * Calls UpdatePersistentResource. + * @param request UpdatePersistentResourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; + public updatePersistentResource(request: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.UpdatePersistentResourceCallback): void; /** - * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. - * @param message DeleteModelVersionRequest - * @param [options] Conversion options - * @returns Plain object + * Calls UpdatePersistentResource. + * @param request UpdatePersistentResourceRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updatePersistentResource(request: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest): Promise; + } + + namespace PersistentResourceService { /** - * Converts this DeleteModelVersionRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|createPersistentResource}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type CreatePersistentResourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for DeleteModelVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|getPersistentResource}. + * @param error Error, if any + * @param [response] PersistentResource */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type GetPersistentResourceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PersistentResource) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|listPersistentResources}. + * @param error Error, if any + * @param [response] ListPersistentResourcesResponse + */ + type ListPersistentResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|deletePersistentResource}. + * @param error Error, if any + * @param [response] Operation + */ + type DeletePersistentResourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|updatePersistentResource}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdatePersistentResourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a MergeVersionAliasesRequest. */ - interface IMergeVersionAliasesRequest { + /** Properties of a CreatePersistentResourceRequest. */ + interface ICreatePersistentResourceRequest { - /** MergeVersionAliasesRequest name */ - name?: (string|null); + /** CreatePersistentResourceRequest parent */ + parent?: (string|null); - /** MergeVersionAliasesRequest versionAliases */ - versionAliases?: (string[]|null); + /** CreatePersistentResourceRequest persistentResource */ + persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + + /** CreatePersistentResourceRequest persistentResourceId */ + persistentResourceId?: (string|null); } - /** Represents a MergeVersionAliasesRequest. */ - class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { + /** Represents a CreatePersistentResourceRequest. */ + class CreatePersistentResourceRequest implements ICreatePersistentResourceRequest { /** - * Constructs a new MergeVersionAliasesRequest. + * Constructs a new CreatePersistentResourceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest); - /** MergeVersionAliasesRequest name. */ - public name: string; + /** CreatePersistentResourceRequest parent. */ + public parent: string; - /** MergeVersionAliasesRequest versionAliases. */ - public versionAliases: string[]; + /** CreatePersistentResourceRequest persistentResource. */ + public persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + + /** CreatePersistentResourceRequest persistentResourceId. */ + public persistentResourceId: string; /** - * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * Creates a new CreatePersistentResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MergeVersionAliasesRequest instance + * @returns CreatePersistentResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; /** - * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. - * @param message MergeVersionAliasesRequest message or plain object to encode + * Encodes the specified CreatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. + * @param message CreatePersistentResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. - * @param message MergeVersionAliasesRequest message or plain object to encode + * Encodes the specified CreatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. + * @param message CreatePersistentResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MergeVersionAliasesRequest + * @returns CreatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MergeVersionAliasesRequest + * @returns CreatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; /** - * Verifies a MergeVersionAliasesRequest message. + * Verifies a CreatePersistentResourceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MergeVersionAliasesRequest + * @returns CreatePersistentResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; /** - * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. - * @param message MergeVersionAliasesRequest + * Creates a plain object from a CreatePersistentResourceRequest message. Also converts values to other types if specified. + * @param message CreatePersistentResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MergeVersionAliasesRequest to JSON. + * Converts this CreatePersistentResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MergeVersionAliasesRequest + * Gets the default type url for CreatePersistentResourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportModelRequest. */ - interface IExportModelRequest { - - /** ExportModelRequest name */ - name?: (string|null); + /** Properties of a CreatePersistentResourceOperationMetadata. */ + interface ICreatePersistentResourceOperationMetadata { - /** ExportModelRequest outputConfig */ - outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); + /** CreatePersistentResourceOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportModelRequest. */ - class ExportModelRequest implements IExportModelRequest { + /** Represents a CreatePersistentResourceOperationMetadata. */ + class CreatePersistentResourceOperationMetadata implements ICreatePersistentResourceOperationMetadata { /** - * Constructs a new ExportModelRequest. + * Constructs a new CreatePersistentResourceOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest); - - /** ExportModelRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata); - /** ExportModelRequest outputConfig. */ - public outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); + /** CreatePersistentResourceOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportModelRequest instance using the specified properties. + * Creates a new CreatePersistentResourceOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelRequest instance + * @returns CreatePersistentResourceOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest): google.cloud.aiplatform.v1beta1.ExportModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode + * Encodes the specified CreatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. + * @param message CreatePersistentResourceOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode + * Encodes the specified CreatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. + * @param message CreatePersistentResourceOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelRequest message from the specified reader or buffer. + * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelRequest + * @returns CreatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelRequest + * @returns CreatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest; - - /** - * Verifies an ExportModelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportModelRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest; - - /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. - * @param message ExportModelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExportModelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; /** - * Gets the default type url for ExportModelRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ExportModelRequest { - - /** Properties of an OutputConfig. */ - interface IOutputConfig { - - /** OutputConfig exportFormatId */ - exportFormatId?: (string|null); - - /** OutputConfig artifactDestination */ - artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** OutputConfig imageDestination */ - imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); - } - - /** Represents an OutputConfig. */ - class OutputConfig implements IOutputConfig { - - /** - * Constructs a new OutputConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig); - - /** OutputConfig exportFormatId. */ - public exportFormatId: string; - - /** OutputConfig artifactDestination. */ - public artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** OutputConfig imageDestination. */ - public imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); - - /** - * Creates a new OutputConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Verifies an OutputConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + * Verifies a CreatePersistentResourceOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OutputConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; + /** + * Creates a CreatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePersistentResourceOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @param message OutputConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreatePersistentResourceOperationMetadata message. Also converts values to other types if specified. + * @param message CreatePersistentResourceOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this OutputConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CreatePersistentResourceOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for OutputConfig - * @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 CreatePersistentResourceOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportModelOperationMetadata. */ - interface IExportModelOperationMetadata { + /** Properties of an UpdatePersistentResourceOperationMetadata. */ + interface IUpdatePersistentResourceOperationMetadata { - /** ExportModelOperationMetadata genericMetadata */ + /** UpdatePersistentResourceOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** ExportModelOperationMetadata outputInfo */ - outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); } - /** Represents an ExportModelOperationMetadata. */ - class ExportModelOperationMetadata implements IExportModelOperationMetadata { + /** Represents an UpdatePersistentResourceOperationMetadata. */ + class UpdatePersistentResourceOperationMetadata implements IUpdatePersistentResourceOperationMetadata { /** - * Constructs a new ExportModelOperationMetadata. + * Constructs a new UpdatePersistentResourceOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata); - /** ExportModelOperationMetadata genericMetadata. */ + /** UpdatePersistentResourceOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ExportModelOperationMetadata outputInfo. */ - public outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); - /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. + * Creates a new UpdatePersistentResourceOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelOperationMetadata instance + * @returns UpdatePersistentResourceOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode + * Encodes the specified UpdatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. + * @param message UpdatePersistentResourceOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode + * Encodes the specified UpdatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. + * @param message UpdatePersistentResourceOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelOperationMetadata + * @returns UpdatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelOperationMetadata + * @returns UpdatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; /** - * Verifies an ExportModelOperationMetadata message. + * Verifies an UpdatePersistentResourceOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelOperationMetadata + * @returns UpdatePersistentResourceOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; /** - * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. - * @param message ExportModelOperationMetadata + * Creates a plain object from an UpdatePersistentResourceOperationMetadata message. Also converts values to other types if specified. + * @param message UpdatePersistentResourceOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelOperationMetadata to JSON. + * Converts this UpdatePersistentResourceOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportModelOperationMetadata + * Gets the default type url for UpdatePersistentResourceOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExportModelOperationMetadata { + /** Properties of a GetPersistentResourceRequest. */ + interface IGetPersistentResourceRequest { - /** Properties of an OutputInfo. */ - interface IOutputInfo { + /** GetPersistentResourceRequest name */ + name?: (string|null); + } - /** OutputInfo artifactOutputUri */ - artifactOutputUri?: (string|null); + /** Represents a GetPersistentResourceRequest. */ + class GetPersistentResourceRequest implements IGetPersistentResourceRequest { - /** OutputInfo imageOutputUri */ - imageOutputUri?: (string|null); - } + /** + * Constructs a new GetPersistentResourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest); - /** Represents an OutputInfo. */ - class OutputInfo implements IOutputInfo { + /** GetPersistentResourceRequest name. */ + public name: string; - /** - * Constructs a new OutputInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo); + /** + * Creates a new GetPersistentResourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPersistentResourceRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; - /** OutputInfo artifactOutputUri. */ - public artifactOutputUri: string; + /** + * Encodes the specified GetPersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. + * @param message GetPersistentResourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** OutputInfo imageOutputUri. */ - public imageOutputUri: string; + /** + * Encodes the specified GetPersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. + * @param message GetPersistentResourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new OutputInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputInfo instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + /** + * Decodes a GetPersistentResourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPersistentResourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; - /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a GetPersistentResourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPersistentResourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; - /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a GetPersistentResourceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an OutputInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + /** + * Creates a GetPersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPersistentResourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; - /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + /** + * Creates a plain object from a GetPersistentResourceRequest message. Also converts values to other types if specified. + * @param message GetPersistentResourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an OutputInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this GetPersistentResourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OutputInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + /** + * Gets the default type url for GetPersistentResourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @param message OutputInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListPersistentResourcesRequest. */ + interface IListPersistentResourcesRequest { - /** - * Converts this OutputInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListPersistentResourcesRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for OutputInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListPersistentResourcesRequest pageSize */ + pageSize?: (number|null); - /** Properties of an UpdateExplanationDatasetResponse. */ - interface IUpdateExplanationDatasetResponse { + /** ListPersistentResourcesRequest pageToken */ + pageToken?: (string|null); } - /** Represents an UpdateExplanationDatasetResponse. */ - class UpdateExplanationDatasetResponse implements IUpdateExplanationDatasetResponse { + /** Represents a ListPersistentResourcesRequest. */ + class ListPersistentResourcesRequest implements IListPersistentResourcesRequest { /** - * Constructs a new UpdateExplanationDatasetResponse. + * Constructs a new ListPersistentResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest); + + /** ListPersistentResourcesRequest parent. */ + public parent: string; + + /** ListPersistentResourcesRequest pageSize. */ + public pageSize: number; + + /** ListPersistentResourcesRequest pageToken. */ + public pageToken: string; /** - * Creates a new UpdateExplanationDatasetResponse instance using the specified properties. + * Creates a new ListPersistentResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExplanationDatasetResponse instance + * @returns ListPersistentResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; /** - * Encodes the specified UpdateExplanationDatasetResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. - * @param message UpdateExplanationDatasetResponse message or plain object to encode + * Encodes the specified ListPersistentResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. + * @param message ListPersistentResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExplanationDatasetResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. - * @param message UpdateExplanationDatasetResponse message or plain object to encode + * Encodes the specified ListPersistentResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. + * @param message ListPersistentResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer. + * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExplanationDatasetResponse + * @returns ListPersistentResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; /** - * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExplanationDatasetResponse + * @returns ListPersistentResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; /** - * Verifies an UpdateExplanationDatasetResponse message. + * Verifies a ListPersistentResourcesRequest message. * @param message Plain 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 UpdateExplanationDatasetResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPersistentResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExplanationDatasetResponse + * @returns ListPersistentResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; /** - * Creates a plain object from an UpdateExplanationDatasetResponse message. Also converts values to other types if specified. - * @param message UpdateExplanationDatasetResponse + * Creates a plain object from a ListPersistentResourcesRequest message. Also converts values to other types if specified. + * @param message ListPersistentResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExplanationDatasetResponse to JSON. + * Converts this ListPersistentResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExplanationDatasetResponse + * Gets the default type url for ListPersistentResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportModelResponse. */ - interface IExportModelResponse { + /** Properties of a ListPersistentResourcesResponse. */ + interface IListPersistentResourcesResponse { + + /** ListPersistentResourcesResponse persistentResources */ + persistentResources?: (google.cloud.aiplatform.v1beta1.IPersistentResource[]|null); + + /** ListPersistentResourcesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportModelResponse. */ - class ExportModelResponse implements IExportModelResponse { + /** Represents a ListPersistentResourcesResponse. */ + class ListPersistentResourcesResponse implements IListPersistentResourcesResponse { /** - * Constructs a new ExportModelResponse. + * Constructs a new ListPersistentResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse); + + /** ListPersistentResourcesResponse persistentResources. */ + public persistentResources: google.cloud.aiplatform.v1beta1.IPersistentResource[]; + + /** ListPersistentResourcesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportModelResponse instance using the specified properties. + * Creates a new ListPersistentResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelResponse instance + * @returns ListPersistentResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified ListPersistentResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. + * @param message ListPersistentResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified ListPersistentResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. + * @param message ListPersistentResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelResponse + * @returns ListPersistentResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelResponse + * @returns ListPersistentResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; /** - * Verifies an ExportModelResponse message. + * Verifies a ListPersistentResourcesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPersistentResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelResponse + * @returns ListPersistentResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. - * @param message ExportModelResponse + * Creates a plain object from a ListPersistentResourcesResponse message. Also converts values to other types if specified. + * @param message ListPersistentResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelResponse to JSON. + * Converts this ListPersistentResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportModelResponse + * Gets the default type url for ListPersistentResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CopyModelRequest. */ - interface ICopyModelRequest { - - /** CopyModelRequest modelId */ - modelId?: (string|null); - - /** CopyModelRequest parentModel */ - parentModel?: (string|null); - - /** CopyModelRequest parent */ - parent?: (string|null); - - /** CopyModelRequest sourceModel */ - sourceModel?: (string|null); + /** Properties of a DeletePersistentResourceRequest. */ + interface IDeletePersistentResourceRequest { - /** CopyModelRequest encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** DeletePersistentResourceRequest name */ + name?: (string|null); } - /** Represents a CopyModelRequest. */ - class CopyModelRequest implements ICopyModelRequest { + /** Represents a DeletePersistentResourceRequest. */ + class DeletePersistentResourceRequest implements IDeletePersistentResourceRequest { /** - * Constructs a new CopyModelRequest. + * Constructs a new DeletePersistentResourceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest); - - /** CopyModelRequest modelId. */ - public modelId?: (string|null); - - /** CopyModelRequest parentModel. */ - public parentModel?: (string|null); - - /** CopyModelRequest parent. */ - public parent: string; - - /** CopyModelRequest sourceModel. */ - public sourceModel: string; - - /** CopyModelRequest encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest); - /** CopyModelRequest destinationModel. */ - public destinationModel?: ("modelId"|"parentModel"); + /** DeletePersistentResourceRequest name. */ + public name: string; /** - * Creates a new CopyModelRequest instance using the specified properties. + * Creates a new DeletePersistentResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CopyModelRequest instance + * @returns DeletePersistentResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest): google.cloud.aiplatform.v1beta1.CopyModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; /** - * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. - * @param message CopyModelRequest message or plain object to encode + * Encodes the specified DeletePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. + * @param message DeletePersistentResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. - * @param message CopyModelRequest message or plain object to encode + * Encodes the specified DeletePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. + * @param message DeletePersistentResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CopyModelRequest message from the specified reader or buffer. + * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CopyModelRequest + * @returns DeletePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CopyModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; /** - * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CopyModelRequest + * @returns DeletePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CopyModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; /** - * Verifies a CopyModelRequest message. + * Verifies a DeletePersistentResourceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CopyModelRequest + * @returns DeletePersistentResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; /** - * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. - * @param message CopyModelRequest + * Creates a plain object from a DeletePersistentResourceRequest message. Also converts values to other types if specified. + * @param message DeletePersistentResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CopyModelRequest to JSON. + * Converts this DeletePersistentResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CopyModelRequest + * Gets the default type url for DeletePersistentResourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CopyModelOperationMetadata. */ - interface ICopyModelOperationMetadata { + /** Properties of an UpdatePersistentResourceRequest. */ + interface IUpdatePersistentResourceRequest { - /** CopyModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UpdatePersistentResourceRequest persistentResource */ + persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + + /** UpdatePersistentResourceRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CopyModelOperationMetadata. */ - class CopyModelOperationMetadata implements ICopyModelOperationMetadata { + /** Represents an UpdatePersistentResourceRequest. */ + class UpdatePersistentResourceRequest implements IUpdatePersistentResourceRequest { /** - * Constructs a new CopyModelOperationMetadata. + * Constructs a new UpdatePersistentResourceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest); - /** CopyModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UpdatePersistentResourceRequest persistentResource. */ + public persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + + /** UpdatePersistentResourceRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CopyModelOperationMetadata instance using the specified properties. + * Creates a new UpdatePersistentResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CopyModelOperationMetadata instance + * @returns UpdatePersistentResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; /** - * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. - * @param message CopyModelOperationMetadata message or plain object to encode + * Encodes the specified UpdatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. + * @param message UpdatePersistentResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. - * @param message CopyModelOperationMetadata message or plain object to encode + * Encodes the specified UpdatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. + * @param message UpdatePersistentResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CopyModelOperationMetadata + * @returns UpdatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; /** - * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CopyModelOperationMetadata + * @returns UpdatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; /** - * Verifies a CopyModelOperationMetadata message. + * Verifies an UpdatePersistentResourceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CopyModelOperationMetadata + * @returns UpdatePersistentResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; /** - * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. - * @param message CopyModelOperationMetadata + * Creates a plain object from an UpdatePersistentResourceRequest message. Also converts values to other types if specified. + * @param message UpdatePersistentResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CopyModelOperationMetadata to JSON. + * Converts this UpdatePersistentResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CopyModelOperationMetadata + * Gets the default type url for UpdatePersistentResourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CopyModelResponse. */ - interface ICopyModelResponse { + /** PipelineFailurePolicy enum. */ + enum PipelineFailurePolicy { + PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0, + PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1, + PIPELINE_FAILURE_POLICY_FAIL_FAST = 2 + } - /** CopyModelResponse model */ - model?: (string|null); + /** Properties of a PipelineJob. */ + interface IPipelineJob { - /** CopyModelResponse modelVersionId */ - modelVersionId?: (string|null); + /** PipelineJob name */ + name?: (string|null); + + /** PipelineJob displayName */ + displayName?: (string|null); + + /** PipelineJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob pipelineSpec */ + pipelineSpec?: (google.protobuf.IStruct|null); + + /** PipelineJob state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); + + /** PipelineJob jobDetail */ + jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); + + /** PipelineJob error */ + error?: (google.rpc.IStatus|null); + + /** PipelineJob labels */ + labels?: ({ [k: string]: string }|null); + + /** PipelineJob runtimeConfig */ + runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); + + /** PipelineJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** PipelineJob serviceAccount */ + serviceAccount?: (string|null); + + /** PipelineJob network */ + network?: (string|null); + + /** PipelineJob reservedIpRanges */ + reservedIpRanges?: (string[]|null); + + /** PipelineJob templateUri */ + templateUri?: (string|null); + + /** PipelineJob templateMetadata */ + templateMetadata?: (google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null); + + /** PipelineJob scheduleName */ + scheduleName?: (string|null); } - /** Represents a CopyModelResponse. */ - class CopyModelResponse implements ICopyModelResponse { + /** Represents a PipelineJob. */ + class PipelineJob implements IPipelineJob { /** - * Constructs a new CopyModelResponse. + * Constructs a new PipelineJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob); - /** CopyModelResponse model. */ - public model: string; + /** PipelineJob name. */ + public name: string; - /** CopyModelResponse modelVersionId. */ - public modelVersionId: string; + /** PipelineJob displayName. */ + public displayName: string; + + /** PipelineJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob pipelineSpec. */ + public pipelineSpec?: (google.protobuf.IStruct|null); + + /** PipelineJob state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); + + /** PipelineJob jobDetail. */ + public jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); + + /** PipelineJob error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineJob labels. */ + public labels: { [k: string]: string }; + + /** PipelineJob runtimeConfig. */ + public runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); + + /** PipelineJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** PipelineJob serviceAccount. */ + public serviceAccount: string; + + /** PipelineJob network. */ + public network: string; + + /** PipelineJob reservedIpRanges. */ + public reservedIpRanges: string[]; + + /** PipelineJob templateUri. */ + public templateUri: string; + + /** PipelineJob templateMetadata. */ + public templateMetadata?: (google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null); + + /** PipelineJob scheduleName. */ + public scheduleName: string; /** - * Creates a new CopyModelResponse instance using the specified properties. + * Creates a new PipelineJob instance using the specified properties. * @param [properties] Properties to set - * @returns CopyModelResponse instance + * @returns PipelineJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse): google.cloud.aiplatform.v1beta1.CopyModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. - * @param message CopyModelResponse message or plain object to encode + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. - * @param message CopyModelResponse message or plain object to encode + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CopyModelResponse message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CopyModelResponse + * @returns PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CopyModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CopyModelResponse + * @returns PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CopyModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Verifies a CopyModelResponse message. + * Verifies a PipelineJob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CopyModelResponse + * @returns PipelineJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. - * @param message CopyModelResponse + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * @param message PipelineJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CopyModelResponse to JSON. + * Converts this PipelineJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CopyModelResponse + * Gets the default type url for PipelineJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportModelEvaluationRequest. */ - interface IImportModelEvaluationRequest { + namespace PipelineJob { - /** ImportModelEvaluationRequest parent */ - parent?: (string|null); + /** Properties of a RuntimeConfig. */ + interface IRuntimeConfig { + + /** RuntimeConfig parameters */ + parameters?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IValue }|null); + + /** RuntimeConfig gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); + + /** RuntimeConfig parameterValues */ + parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); + + /** RuntimeConfig failurePolicy */ + failurePolicy?: (google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|null); + + /** RuntimeConfig inputArtifacts */ + inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact }|null); + } + + /** Represents a RuntimeConfig. */ + class RuntimeConfig implements IRuntimeConfig { + + /** + * Constructs a new RuntimeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig); + + /** RuntimeConfig parameters. */ + public parameters: { [k: string]: google.cloud.aiplatform.v1beta1.IValue }; + + /** RuntimeConfig gcsOutputDirectory. */ + public gcsOutputDirectory: string; + + /** RuntimeConfig parameterValues. */ + public parameterValues: { [k: string]: google.protobuf.IValue }; + + /** RuntimeConfig failurePolicy. */ + public failurePolicy: (google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1beta1.PipelineFailurePolicy); + + /** RuntimeConfig inputArtifacts. */ + public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact }; + + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + + /** + * Verifies a RuntimeConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RuntimeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @param message RuntimeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RuntimeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RuntimeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RuntimeConfig { + + /** Properties of an InputArtifact. */ + interface IInputArtifact { + + /** InputArtifact artifactId */ + artifactId?: (string|null); + } + + /** Represents an InputArtifact. */ + class InputArtifact implements IInputArtifact { + + /** + * Constructs a new InputArtifact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact); + + /** InputArtifact artifactId. */ + public artifactId?: (string|null); + + /** InputArtifact kind. */ + public kind?: "artifactId"; + + /** + * Creates a new InputArtifact instance using the specified properties. + * @param [properties] Properties to set + * @returns InputArtifact instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Verifies an InputArtifact message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputArtifact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @param message InputArtifact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InputArtifact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InputArtifact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a PipelineTemplateMetadata. */ + interface IPipelineTemplateMetadata { - /** ImportModelEvaluationRequest modelEvaluation */ - modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); + /** PipelineTemplateMetadata version */ + version?: (string|null); } - /** Represents an ImportModelEvaluationRequest. */ - class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { + /** Represents a PipelineTemplateMetadata. */ + class PipelineTemplateMetadata implements IPipelineTemplateMetadata { /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new PipelineTemplateMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest); - - /** ImportModelEvaluationRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata); - /** ImportModelEvaluationRequest modelEvaluation. */ - public modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); + /** PipelineTemplateMetadata version. */ + public version: string; /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new PipelineTemplateMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ImportModelEvaluationRequest instance + * @returns PipelineTemplateMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. + * @param message PipelineTemplateMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. + * @param message PipelineTemplateMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportModelEvaluationRequest + * @returns PipelineTemplateMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportModelEvaluationRequest + * @returns PipelineTemplateMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a PipelineTemplateMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportModelEvaluationRequest + * @returns PipelineTemplateMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. - * @param message ImportModelEvaluationRequest + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * @param message PipelineTemplateMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this PipelineTemplateMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportModelEvaluationRequest + * Gets the default type url for PipelineTemplateMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportModelEvaluationSlicesRequest. */ - interface IBatchImportModelEvaluationSlicesRequest { + /** Properties of a PipelineJobDetail. */ + interface IPipelineJobDetail { - /** BatchImportModelEvaluationSlicesRequest parent */ - parent?: (string|null); + /** PipelineJobDetail pipelineContext */ + pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); + /** PipelineJobDetail pipelineRunContext */ + pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + + /** PipelineJobDetail taskDetails */ + taskDetails?: (google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]|null); } - /** Represents a BatchImportModelEvaluationSlicesRequest. */ - class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { + /** Represents a PipelineJobDetail. */ + class PipelineJobDetail implements IPipelineJobDetail { /** - * Constructs a new BatchImportModelEvaluationSlicesRequest. + * Constructs a new PipelineJobDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail); - /** BatchImportModelEvaluationSlicesRequest parent. */ - public parent: string; + /** PipelineJobDetail pipelineContext. */ + public pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; + /** PipelineJobDetail pipelineRunContext. */ + public pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + + /** PipelineJobDetail taskDetails. */ + public taskDetails: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]; /** - * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new PipelineJobDetail instance using the specified properties. * @param [properties] Properties to set - * @returns BatchImportModelEvaluationSlicesRequest instance + * @returns PipelineJobDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchImportModelEvaluationSlicesRequest + * @returns PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchImportModelEvaluationSlicesRequest + * @returns PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Verifies a BatchImportModelEvaluationSlicesRequest message. + * Verifies a PipelineJobDetail message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchImportModelEvaluationSlicesRequest + * @returns PipelineJobDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message BatchImportModelEvaluationSlicesRequest + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * @param message PipelineJobDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * Converts this PipelineJobDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * Gets the default type url for PipelineJobDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportModelEvaluationSlicesResponse. */ - interface IBatchImportModelEvaluationSlicesResponse { + /** Properties of a PipelineTaskDetail. */ + interface IPipelineTaskDetail { - /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ - importedModelEvaluationSlices?: (string[]|null); + /** PipelineTaskDetail taskId */ + taskId?: (number|Long|string|null); + + /** PipelineTaskDetail parentTaskId */ + parentTaskId?: (number|Long|string|null); + + /** PipelineTaskDetail taskName */ + taskName?: (string|null); + + /** PipelineTaskDetail createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail */ + executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); + + /** PipelineTaskDetail execution */ + execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + + /** PipelineTaskDetail error */ + error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus */ + pipelineTaskStatus?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + + /** PipelineTaskDetail inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); + + /** PipelineTaskDetail outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); } - /** Represents a BatchImportModelEvaluationSlicesResponse. */ - class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { + /** Represents a PipelineTaskDetail. */ + class PipelineTaskDetail implements IPipelineTaskDetail { /** - * Constructs a new BatchImportModelEvaluationSlicesResponse. + * Constructs a new PipelineTaskDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail); - /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ - public importedModelEvaluationSlices: string[]; + /** PipelineTaskDetail taskId. */ + public taskId: (number|Long|string); + + /** PipelineTaskDetail parentTaskId. */ + public parentTaskId: (number|Long|string); + + /** PipelineTaskDetail taskName. */ + public taskName: string; + + /** PipelineTaskDetail createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail. */ + public executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); + + /** PipelineTaskDetail execution. */ + public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + + /** PipelineTaskDetail error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus. */ + public pipelineTaskStatus: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]; + + /** PipelineTaskDetail inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; + + /** PipelineTaskDetail outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; /** - * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @param [properties] Properties to set - * @returns BatchImportModelEvaluationSlicesResponse instance + * @returns PipelineTaskDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchImportModelEvaluationSlicesResponse + * @returns PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchImportModelEvaluationSlicesResponse + * @returns PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Verifies a BatchImportModelEvaluationSlicesResponse message. + * Verifies a PipelineTaskDetail message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchImportModelEvaluationSlicesResponse + * @returns PipelineTaskDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message BatchImportModelEvaluationSlicesResponse + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @param message PipelineTaskDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * Converts this PipelineTaskDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesResponse + * Gets the default type url for PipelineTaskDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportEvaluatedAnnotationsRequest. */ - interface IBatchImportEvaluatedAnnotationsRequest { + namespace PipelineTaskDetail { - /** BatchImportEvaluatedAnnotationsRequest parent */ - parent?: (string|null); + /** Properties of a PipelineTaskStatus. */ + interface IPipelineTaskStatus { - /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations */ - evaluatedAnnotations?: (google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation[]|null); - } + /** PipelineTaskStatus updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a BatchImportEvaluatedAnnotationsRequest. */ - class BatchImportEvaluatedAnnotationsRequest implements IBatchImportEvaluatedAnnotationsRequest { + /** PipelineTaskStatus state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); - /** - * Constructs a new BatchImportEvaluatedAnnotationsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest); + /** PipelineTaskStatus error */ + error?: (google.rpc.IStatus|null); + } - /** BatchImportEvaluatedAnnotationsRequest parent. */ - public parent: string; + /** Represents a PipelineTaskStatus. */ + class PipelineTaskStatus implements IPipelineTaskStatus { - /** BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. */ - public evaluatedAnnotations: google.cloud.aiplatform.v1beta1.IEvaluatedAnnotation[]; + /** + * Constructs a new PipelineTaskStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus); - /** - * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchImportEvaluatedAnnotationsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; + /** PipelineTaskStatus updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. - * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** PipelineTaskStatus state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); - /** - * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. - * @param message BatchImportEvaluatedAnnotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** PipelineTaskStatus error. */ + public error?: (google.rpc.IStatus|null); - /** - * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchImportEvaluatedAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskStatus instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchImportEvaluatedAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a BatchImportEvaluatedAnnotationsRequest message. - * @param message 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 PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchImportEvaluatedAnnotationsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest; + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. - * @param message BatchImportEvaluatedAnnotationsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a PipelineTaskStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for BatchImportEvaluatedAnnotationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** Properties of a BatchImportEvaluatedAnnotationsResponse. */ - interface IBatchImportEvaluatedAnnotationsResponse { + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @param message PipelineTaskStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount */ - importedEvaluatedAnnotationsCount?: (number|null); - } + /** + * Converts this PipelineTaskStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a BatchImportEvaluatedAnnotationsResponse. */ - class BatchImportEvaluatedAnnotationsResponse implements IBatchImportEvaluatedAnnotationsResponse { + /** + * Gets the default type url for PipelineTaskStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new BatchImportEvaluatedAnnotationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse); + /** Properties of an ArtifactList. */ + interface IArtifactList { - /** BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. */ - public importedEvaluatedAnnotationsCount: number; + /** ArtifactList artifacts */ + artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); + } - /** - * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchImportEvaluatedAnnotationsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; + /** Represents an ArtifactList. */ + class ArtifactList implements IArtifactList { - /** - * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. - * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ArtifactList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList); - /** - * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. - * @param message BatchImportEvaluatedAnnotationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** ArtifactList artifacts. */ + public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; - /** - * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchImportEvaluatedAnnotationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; + /** + * Creates a new ArtifactList instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactList instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** - * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchImportEvaluatedAnnotationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a BatchImportEvaluatedAnnotationsResponse message. - * @param message 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 ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchImportEvaluatedAnnotationsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse; + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** - * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. - * @param message BatchImportEvaluatedAnnotationsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** - * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an ArtifactList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for BatchImportEvaluatedAnnotationsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArtifactList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @param message ArtifactList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArtifactList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArtifactList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + RUNNING = 2, + SUCCEEDED = 3, + CANCEL_PENDING = 4, + CANCELLING = 5, + CANCELLED = 6, + FAILED = 7, + SKIPPED = 8, + NOT_TRIGGERED = 9 + } } - /** Properties of a GetModelEvaluationRequest. */ - interface IGetModelEvaluationRequest { + /** Properties of a PipelineTaskExecutorDetail. */ + interface IPipelineTaskExecutorDetail { - /** GetModelEvaluationRequest name */ - name?: (string|null); + /** PipelineTaskExecutorDetail containerDetail */ + containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail */ + customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); } - /** Represents a GetModelEvaluationRequest. */ - class GetModelEvaluationRequest implements IGetModelEvaluationRequest { + /** Represents a PipelineTaskExecutorDetail. */ + class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { /** - * Constructs a new GetModelEvaluationRequest. + * Constructs a new PipelineTaskExecutorDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail); - /** GetModelEvaluationRequest name. */ - public name: string; + /** PipelineTaskExecutorDetail containerDetail. */ + public containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail. */ + public customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + + /** PipelineTaskExecutorDetail details. */ + public details?: ("containerDetail"|"customJobDetail"); /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelEvaluationRequest instance + * @returns PipelineTaskExecutorDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelEvaluationRequest + * @returns PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationRequest + * @returns PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Verifies a GetModelEvaluationRequest message. + * Verifies a PipelineTaskExecutorDetail message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelEvaluationRequest + * @returns PipelineTaskExecutorDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationRequest + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * @param message PipelineTaskExecutorDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelEvaluationRequest to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelEvaluationRequest + * Gets the default type url for PipelineTaskExecutorDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelEvaluationsRequest. */ - interface IListModelEvaluationsRequest { + namespace PipelineTaskExecutorDetail { - /** ListModelEvaluationsRequest parent */ - parent?: (string|null); + /** Properties of a ContainerDetail. */ + interface IContainerDetail { - /** ListModelEvaluationsRequest filter */ - filter?: (string|null); + /** ContainerDetail mainJob */ + mainJob?: (string|null); - /** ListModelEvaluationsRequest pageSize */ - pageSize?: (number|null); + /** ContainerDetail preCachingCheckJob */ + preCachingCheckJob?: (string|null); - /** ListModelEvaluationsRequest pageToken */ - pageToken?: (string|null); + /** ContainerDetail failedMainJobs */ + failedMainJobs?: (string[]|null); - /** ListModelEvaluationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** ContainerDetail failedPreCachingCheckJobs */ + failedPreCachingCheckJobs?: (string[]|null); + } - /** Represents a ListModelEvaluationsRequest. */ - class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { + /** Represents a ContainerDetail. */ + class ContainerDetail implements IContainerDetail { - /** - * Constructs a new ListModelEvaluationsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest); + /** + * Constructs a new ContainerDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail); - /** ListModelEvaluationsRequest parent. */ - public parent: string; + /** ContainerDetail mainJob. */ + public mainJob: string; - /** ListModelEvaluationsRequest filter. */ - public filter: string; + /** ContainerDetail preCachingCheckJob. */ + public preCachingCheckJob: string; - /** ListModelEvaluationsRequest pageSize. */ - public pageSize: number; + /** ContainerDetail failedMainJobs. */ + public failedMainJobs: string[]; - /** ListModelEvaluationsRequest pageToken. */ - public pageToken: string; + /** ContainerDetail failedPreCachingCheckJobs. */ + public failedPreCachingCheckJobs: string[]; - /** ListModelEvaluationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Creates a new ContainerDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; - /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; - /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; - /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + /** + * Verifies a ContainerDetail message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a ListModelEvaluationsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainerDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; - /** - * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @param message ContainerDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ContainerDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this ListModelEvaluationsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for ContainerDetail + * @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 ListModelEvaluationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** Properties of a CustomJobDetail. */ + interface ICustomJobDetail { + + /** CustomJobDetail job */ + job?: (string|null); + + /** CustomJobDetail failedJobs */ + failedJobs?: (string[]|null); + } + + /** Represents a CustomJobDetail. */ + class CustomJobDetail implements ICustomJobDetail { + + /** + * Constructs a new CustomJobDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail); + + /** CustomJobDetail job. */ + public job: string; + + /** CustomJobDetail failedJobs. */ + public failedJobs: string[]; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomJobDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * Verifies a CustomJobDetail message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomJobDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @param message CustomJobDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomJobDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomJobDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** PipelineState enum. */ + enum PipelineState { + PIPELINE_STATE_UNSPECIFIED = 0, + PIPELINE_STATE_QUEUED = 1, + PIPELINE_STATE_PENDING = 2, + PIPELINE_STATE_RUNNING = 3, + PIPELINE_STATE_SUCCEEDED = 4, + PIPELINE_STATE_FAILED = 5, + PIPELINE_STATE_CANCELLING = 6, + PIPELINE_STATE_CANCELLED = 7, + PIPELINE_STATE_PAUSED = 8 } - /** Properties of a ListModelEvaluationsResponse. */ - interface IListModelEvaluationsResponse { + /** Properties of a Value. */ + interface IValue { - /** ListModelEvaluationsResponse modelEvaluations */ - modelEvaluations?: (google.cloud.aiplatform.v1beta1.IModelEvaluation[]|null); + /** Value intValue */ + intValue?: (number|Long|string|null); - /** ListModelEvaluationsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Value doubleValue */ + doubleValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); } - /** Represents a ListModelEvaluationsResponse. */ - class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { + /** Represents a Value. */ + class Value implements IValue { /** - * Constructs a new ListModelEvaluationsResponse. + * Constructs a new Value. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IValue); - /** ListModelEvaluationsResponse modelEvaluations. */ - public modelEvaluations: google.cloud.aiplatform.v1beta1.IModelEvaluation[]; + /** Value intValue. */ + public intValue?: (number|Long|string|null); - /** ListModelEvaluationsResponse nextPageToken. */ - public nextPageToken: string; + /** Value doubleValue. */ + public doubleValue?: (number|null); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value value. */ + public value?: ("intValue"|"doubleValue"|"stringValue"); /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. + * Creates a new Value instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelEvaluationsResponse instance + * @returns Value instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IValue): google.cloud.aiplatform.v1beta1.Value; /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. + * @param message Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. + * @param message Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsResponse + * @returns Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Value; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsResponse + * @returns Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Value; /** - * Verifies a ListModelEvaluationsResponse message. + * Verifies a Value message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationsResponse + * @returns Value */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Value; /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationsResponse + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationsResponse to JSON. + * Converts this Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelEvaluationsResponse + * Gets the default type url for Value * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelEvaluationSliceRequest. */ - interface IGetModelEvaluationSliceRequest { - - /** GetModelEvaluationSliceRequest name */ - name?: (string|null); - } - - /** Represents a GetModelEvaluationSliceRequest. */ - class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { - - /** - * Constructs a new GetModelEvaluationSliceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest); - - /** GetModelEvaluationSliceRequest name. */ - public name: string; - - /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetModelEvaluationSliceRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; - - /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + /** Represents a PipelineService */ + class PipelineService extends $protobuf.rpc.Service { /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new PipelineService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Verifies a GetModelEvaluationSliceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Creates new PipelineService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static verify(message: { [k: string]: any }): (string|null); + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetModelEvaluationSliceRequest + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback): void; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationSliceRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): Promise; /** - * Converts this GetModelEvaluationSliceRequest to JSON. - * @returns JSON object + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline */ - public toJSON(): { [k: string]: any }; + public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback): void; /** - * Gets the default type url for GetModelEvaluationSliceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListModelEvaluationSlicesRequest. */ - interface IListModelEvaluationSlicesRequest { - - /** ListModelEvaluationSlicesRequest parent */ - parent?: (string|null); - - /** ListModelEvaluationSlicesRequest filter */ - filter?: (string|null); - - /** ListModelEvaluationSlicesRequest pageSize */ - pageSize?: (number|null); - - /** ListModelEvaluationSlicesRequest pageToken */ - pageToken?: (string|null); - - /** ListModelEvaluationSlicesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents a ListModelEvaluationSlicesRequest. */ - class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { + public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): Promise; /** - * Constructs a new ListModelEvaluationSlicesRequest. - * @param [properties] Properties to set + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest); - - /** ListModelEvaluationSlicesRequest parent. */ - public parent: string; - - /** ListModelEvaluationSlicesRequest filter. */ - public filter: string; - - /** ListModelEvaluationSlicesRequest pageSize. */ - public pageSize: number; - - /** ListModelEvaluationSlicesRequest pageToken. */ - public pageToken: string; - - /** ListModelEvaluationSlicesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback): void; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesRequest instance + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): Promise; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback): void; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): Promise; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback): void; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): Promise; /** - * Verifies a ListModelEvaluationSlicesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static verify(message: { [k: string]: any }): (string|null); + public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback): void; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationSlicesRequest + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): Promise; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback): void; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. - * @returns JSON object + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): Promise; /** - * Gets the default type url for ListModelEvaluationSlicesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListModelEvaluationSlicesResponse. */ - interface IListModelEvaluationSlicesResponse { - - /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); - - /** ListModelEvaluationSlicesResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListModelEvaluationSlicesResponse. */ - class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { + public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback): void; /** - * Constructs a new ListModelEvaluationSlicesResponse. - * @param [properties] Properties to set + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse); - - /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; - - /** ListModelEvaluationSlicesResponse nextPageToken. */ - public nextPageToken: string; + public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): Promise; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesResponse instance + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; + public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback): void; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): Promise; /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls BatchDeletePipelineJobs. + * @param request BatchDeletePipelineJobsRequest 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.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public batchDeletePipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobsCallback): void; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchDeletePipelineJobs. + * @param request BatchDeletePipelineJobsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; + public batchDeletePipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest): Promise; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest 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.ListModelEvaluationSlicesResponse; + public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback): void; /** - * Verifies a ListModelEvaluationSlicesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): Promise; /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationSlicesResponse + * Calls BatchCancelPipelineJobs. + * @param request BatchCancelPipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; + public batchCancelPipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobsCallback): void; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesResponse - * @param [options] Conversion options - * @returns Plain object + * Calls BatchCancelPipelineJobs. + * @param request BatchCancelPipelineJobsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public batchCancelPipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest): Promise; + } - /** - * Converts this ListModelEvaluationSlicesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace PipelineService { /** - * Gets the default type url for ListModelEvaluationSlicesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PersistentResource. */ - interface IPersistentResource { - - /** PersistentResource name */ - name?: (string|null); - - /** PersistentResource displayName */ - displayName?: (string|null); - - /** PersistentResource resourcePools */ - resourcePools?: (google.cloud.aiplatform.v1beta1.IResourcePool[]|null); - - /** PersistentResource state */ - state?: (google.cloud.aiplatform.v1beta1.PersistentResource.State|keyof typeof google.cloud.aiplatform.v1beta1.PersistentResource.State|null); - - /** PersistentResource error */ - error?: (google.rpc.IStatus|null); - - /** PersistentResource createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PersistentResource startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** PersistentResource updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** PersistentResource labels */ - labels?: ({ [k: string]: string }|null); - - /** PersistentResource network */ - network?: (string|null); - - /** PersistentResource encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** PersistentResource resourceRuntimeSpec */ - resourceRuntimeSpec?: (google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null); - - /** PersistentResource resourceRuntime */ - resourceRuntime?: (google.cloud.aiplatform.v1beta1.IResourceRuntime|null); - - /** PersistentResource reservedIpRanges */ - reservedIpRanges?: (string[]|null); - } - - /** Represents a PersistentResource. */ - class PersistentResource implements IPersistentResource { + type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; /** - * Constructs a new PersistentResource. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPersistentResource); - - /** PersistentResource name. */ - public name: string; - - /** PersistentResource displayName. */ - public displayName: string; - - /** PersistentResource resourcePools. */ - public resourcePools: google.cloud.aiplatform.v1beta1.IResourcePool[]; - - /** PersistentResource state. */ - public state: (google.cloud.aiplatform.v1beta1.PersistentResource.State|keyof typeof google.cloud.aiplatform.v1beta1.PersistentResource.State); - - /** PersistentResource error. */ - public error?: (google.rpc.IStatus|null); - - /** PersistentResource createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** PersistentResource startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** PersistentResource updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** PersistentResource labels. */ - public labels: { [k: string]: string }; - - /** PersistentResource network. */ - public network: string; - - /** PersistentResource encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** PersistentResource resourceRuntimeSpec. */ - public resourceRuntimeSpec?: (google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null); - - /** PersistentResource resourceRuntime. */ - public resourceRuntime?: (google.cloud.aiplatform.v1beta1.IResourceRuntime|null); - - /** PersistentResource reservedIpRanges. */ - public reservedIpRanges: string[]; + type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; /** - * Creates a new PersistentResource instance using the specified properties. - * @param [properties] Properties to set - * @returns PersistentResource instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listTrainingPipelines}. + * @param error Error, if any + * @param [response] ListTrainingPipelinesResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPersistentResource): google.cloud.aiplatform.v1beta1.PersistentResource; + type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) => void; /** - * Encodes the specified PersistentResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. - * @param message PersistentResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deleteTrainingPipeline}. + * @param error Error, if any + * @param [response] Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPersistentResource, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified PersistentResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. - * @param message PersistentResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelTrainingPipeline}. + * @param error Error, if any + * @param [response] Empty */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPersistentResource, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Decodes a PersistentResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PersistentResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PersistentResource; + type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; /** - * Decodes a PersistentResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PersistentResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PersistentResource; + type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; /** - * Verifies a PersistentResource 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.PipelineService|listPipelineJobs}. + * @param error Error, if any + * @param [response] ListPipelineJobsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) => void; /** - * Creates a PersistentResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PersistentResource + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deletePipelineJob}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PersistentResource; + type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a PersistentResource message. Also converts values to other types if specified. - * @param message PersistentResource - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchDeletePipelineJobs}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PersistentResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type BatchDeletePipelineJobsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this PersistentResource to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelPipelineJob}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Gets the default type url for PersistentResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchCancelPipelineJobs}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace PersistentResource { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PROVISIONING = 1, - RUNNING = 3, - STOPPING = 4, - ERROR = 5 - } + type BatchCancelPipelineJobsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ResourcePool. */ - interface IResourcePool { - - /** ResourcePool id */ - id?: (string|null); - - /** ResourcePool machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - - /** ResourcePool replicaCount */ - replicaCount?: (number|Long|string|null); - - /** ResourcePool diskSpec */ - diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); - - /** ResourcePool usedReplicaCount */ - usedReplicaCount?: (number|Long|string|null); + /** Properties of a BatchCancelPipelineJobsOperationMetadata. */ + interface IBatchCancelPipelineJobsOperationMetadata { - /** ResourcePool autoscalingSpec */ - autoscalingSpec?: (google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null); + /** BatchCancelPipelineJobsOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ResourcePool. */ - class ResourcePool implements IResourcePool { + /** Represents a BatchCancelPipelineJobsOperationMetadata. */ + class BatchCancelPipelineJobsOperationMetadata implements IBatchCancelPipelineJobsOperationMetadata { /** - * Constructs a new ResourcePool. + * Constructs a new BatchCancelPipelineJobsOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResourcePool); - - /** ResourcePool id. */ - public id: string; - - /** ResourcePool machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - - /** ResourcePool replicaCount. */ - public replicaCount?: (number|Long|string|null); - - /** ResourcePool diskSpec. */ - public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); - - /** ResourcePool usedReplicaCount. */ - public usedReplicaCount: (number|Long|string); - - /** ResourcePool autoscalingSpec. */ - public autoscalingSpec?: (google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata); - /** ResourcePool _replicaCount. */ - public _replicaCount?: "replicaCount"; + /** BatchCancelPipelineJobsOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ResourcePool instance using the specified properties. + * Creates a new BatchCancelPipelineJobsOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ResourcePool instance + * @returns BatchCancelPipelineJobsOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResourcePool): google.cloud.aiplatform.v1beta1.ResourcePool; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata; /** - * Encodes the specified ResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. - * @param message ResourcePool message or plain object to encode + * Encodes the specified BatchCancelPipelineJobsOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata.verify|verify} messages. + * @param message BatchCancelPipelineJobsOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. - * @param message ResourcePool message or plain object to encode + * Encodes the specified BatchCancelPipelineJobsOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata.verify|verify} messages. + * @param message BatchCancelPipelineJobsOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourcePool message from the specified reader or buffer. + * Decodes a BatchCancelPipelineJobsOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourcePool + * @returns BatchCancelPipelineJobsOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourcePool; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata; /** - * Decodes a ResourcePool message from the specified reader or buffer, length delimited. + * Decodes a BatchCancelPipelineJobsOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourcePool + * @returns BatchCancelPipelineJobsOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourcePool; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata; /** - * Verifies a ResourcePool message. + * Verifies a BatchCancelPipelineJobsOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResourcePool message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCancelPipelineJobsOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourcePool + * @returns BatchCancelPipelineJobsOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcePool; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata; /** - * Creates a plain object from a ResourcePool message. Also converts values to other types if specified. - * @param message ResourcePool + * Creates a plain object from a BatchCancelPipelineJobsOperationMetadata message. Also converts values to other types if specified. + * @param message BatchCancelPipelineJobsOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourcePool to JSON. + * Converts this BatchCancelPipelineJobsOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourcePool + * Gets the default type url for BatchCancelPipelineJobsOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ResourcePool { - - /** Properties of an AutoscalingSpec. */ - interface IAutoscalingSpec { - - /** AutoscalingSpec minReplicaCount */ - minReplicaCount?: (number|Long|string|null); - - /** AutoscalingSpec maxReplicaCount */ - maxReplicaCount?: (number|Long|string|null); - } - - /** Represents an AutoscalingSpec. */ - class AutoscalingSpec implements IAutoscalingSpec { - - /** - * Constructs a new AutoscalingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec); - - /** AutoscalingSpec minReplicaCount. */ - public minReplicaCount?: (number|Long|string|null); - - /** AutoscalingSpec maxReplicaCount. */ - public maxReplicaCount?: (number|Long|string|null); - - /** AutoscalingSpec _minReplicaCount. */ - public _minReplicaCount?: "minReplicaCount"; - - /** AutoscalingSpec _maxReplicaCount. */ - public _maxReplicaCount?: "maxReplicaCount"; - - /** - * Creates a new AutoscalingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoscalingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; - - /** - * Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. - * @param message AutoscalingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. - * @param message AutoscalingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AutoscalingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutoscalingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; - - /** - * Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutoscalingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; - - /** - * Verifies an AutoscalingSpec message. - * @param message Plain 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 AutoscalingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutoscalingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec; - - /** - * Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified. - * @param message AutoscalingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AutoscalingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AutoscalingSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ResourceRuntimeSpec. */ - interface IResourceRuntimeSpec { + /** Properties of a CreateTrainingPipelineRequest. */ + interface ICreateTrainingPipelineRequest { - /** ResourceRuntimeSpec serviceAccountSpec */ - serviceAccountSpec?: (google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null); + /** CreateTrainingPipelineRequest parent */ + parent?: (string|null); - /** ResourceRuntimeSpec raySpec */ - raySpec?: (google.cloud.aiplatform.v1beta1.IRaySpec|null); + /** CreateTrainingPipelineRequest trainingPipeline */ + trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); } - /** Represents a ResourceRuntimeSpec. */ - class ResourceRuntimeSpec implements IResourceRuntimeSpec { + /** Represents a CreateTrainingPipelineRequest. */ + class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { /** - * Constructs a new ResourceRuntimeSpec. + * Constructs a new CreateTrainingPipelineRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest); - /** ResourceRuntimeSpec serviceAccountSpec. */ - public serviceAccountSpec?: (google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null); + /** CreateTrainingPipelineRequest parent. */ + public parent: string; - /** ResourceRuntimeSpec raySpec. */ - public raySpec?: (google.cloud.aiplatform.v1beta1.IRaySpec|null); + /** CreateTrainingPipelineRequest trainingPipeline. */ + public trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); /** - * Creates a new ResourceRuntimeSpec instance using the specified properties. + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceRuntimeSpec instance + * @returns CreateTrainingPipelineRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; /** - * Encodes the specified ResourceRuntimeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. - * @param message ResourceRuntimeSpec message or plain object to encode + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceRuntimeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. - * @param message ResourceRuntimeSpec message or plain object to encode + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceRuntimeSpec message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceRuntimeSpec + * @returns CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; /** - * Decodes a ResourceRuntimeSpec message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceRuntimeSpec + * @returns CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; /** - * Verifies a ResourceRuntimeSpec message. + * Verifies a CreateTrainingPipelineRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResourceRuntimeSpec message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceRuntimeSpec + * @returns CreateTrainingPipelineRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; /** - * Creates a plain object from a ResourceRuntimeSpec message. Also converts values to other types if specified. - * @param message ResourceRuntimeSpec + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CreateTrainingPipelineRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceRuntimeSpec to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceRuntimeSpec + * Gets the default type url for CreateTrainingPipelineRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RaySpec. */ - interface IRaySpec { - - /** RaySpec imageUri */ - imageUri?: (string|null); - - /** RaySpec resourcePoolImages */ - resourcePoolImages?: ({ [k: string]: string }|null); + /** Properties of a GetTrainingPipelineRequest. */ + interface IGetTrainingPipelineRequest { - /** RaySpec headNodeResourcePoolId */ - headNodeResourcePoolId?: (string|null); + /** GetTrainingPipelineRequest name */ + name?: (string|null); } - /** Represents a RaySpec. */ - class RaySpec implements IRaySpec { + /** Represents a GetTrainingPipelineRequest. */ + class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { /** - * Constructs a new RaySpec. + * Constructs a new GetTrainingPipelineRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRaySpec); - - /** RaySpec imageUri. */ - public imageUri: string; - - /** RaySpec resourcePoolImages. */ - public resourcePoolImages: { [k: string]: string }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest); - /** RaySpec headNodeResourcePoolId. */ - public headNodeResourcePoolId: string; + /** GetTrainingPipelineRequest name. */ + public name: string; /** - * Creates a new RaySpec instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RaySpec instance + * @returns GetTrainingPipelineRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRaySpec): google.cloud.aiplatform.v1beta1.RaySpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Encodes the specified RaySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. - * @param message RaySpec message or plain object to encode + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRaySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RaySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. - * @param message RaySpec message or plain object to encode + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRaySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RaySpec message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RaySpec + * @returns GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RaySpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Decodes a RaySpec message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RaySpec + * @returns GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RaySpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Verifies a RaySpec message. + * Verifies a GetTrainingPipelineRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RaySpec message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RaySpec + * @returns GetTrainingPipelineRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RaySpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Creates a plain object from a RaySpec message. Also converts values to other types if specified. - * @param message RaySpec + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message GetTrainingPipelineRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RaySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RaySpec to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RaySpec + * Gets the default type url for GetTrainingPipelineRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResourceRuntime. */ - interface IResourceRuntime { + /** Properties of a ListTrainingPipelinesRequest. */ + interface IListTrainingPipelinesRequest { - /** ResourceRuntime accessUris */ - accessUris?: ({ [k: string]: string }|null); + /** ListTrainingPipelinesRequest parent */ + parent?: (string|null); + + /** ListTrainingPipelinesRequest filter */ + filter?: (string|null); + + /** ListTrainingPipelinesRequest pageSize */ + pageSize?: (number|null); + + /** ListTrainingPipelinesRequest pageToken */ + pageToken?: (string|null); + + /** ListTrainingPipelinesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ResourceRuntime. */ - class ResourceRuntime implements IResourceRuntime { + /** Represents a ListTrainingPipelinesRequest. */ + class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { /** - * Constructs a new ResourceRuntime. + * Constructs a new ListTrainingPipelinesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntime); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest); - /** ResourceRuntime accessUris. */ - public accessUris: { [k: string]: string }; + /** ListTrainingPipelinesRequest parent. */ + public parent: string; + + /** ListTrainingPipelinesRequest filter. */ + public filter: string; + + /** ListTrainingPipelinesRequest pageSize. */ + public pageSize: number; + + /** ListTrainingPipelinesRequest pageToken. */ + public pageToken: string; + + /** ListTrainingPipelinesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ResourceRuntime instance using the specified properties. + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceRuntime instance + * @returns ListTrainingPipelinesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResourceRuntime): google.cloud.aiplatform.v1beta1.ResourceRuntime; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; /** - * Encodes the specified ResourceRuntime message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. - * @param message ResourceRuntime message or plain object to encode + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResourceRuntime, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceRuntime message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. - * @param message ResourceRuntime message or plain object to encode + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourceRuntime, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceRuntime message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceRuntime + * @returns ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourceRuntime; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; /** - * Decodes a ResourceRuntime message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceRuntime + * @returns ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourceRuntime; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; /** - * Verifies a ResourceRuntime message. + * Verifies a ListTrainingPipelinesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResourceRuntime message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceRuntime + * @returns ListTrainingPipelinesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourceRuntime; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; /** - * Creates a plain object from a ResourceRuntime message. Also converts values to other types if specified. - * @param message ResourceRuntime + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResourceRuntime, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceRuntime to JSON. + * Converts this ListTrainingPipelinesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceRuntime + * Gets the default type url for ListTrainingPipelinesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceAccountSpec. */ - interface IServiceAccountSpec { + /** Properties of a ListTrainingPipelinesResponse. */ + interface IListTrainingPipelinesResponse { - /** ServiceAccountSpec enableCustomServiceAccount */ - enableCustomServiceAccount?: (boolean|null); + /** ListTrainingPipelinesResponse trainingPipelines */ + trainingPipelines?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline[]|null); - /** ServiceAccountSpec serviceAccount */ - serviceAccount?: (string|null); + /** ListTrainingPipelinesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ServiceAccountSpec. */ - class ServiceAccountSpec implements IServiceAccountSpec { + /** Represents a ListTrainingPipelinesResponse. */ + class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { /** - * Constructs a new ServiceAccountSpec. + * Constructs a new ListTrainingPipelinesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IServiceAccountSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse); - /** ServiceAccountSpec enableCustomServiceAccount. */ - public enableCustomServiceAccount: boolean; + /** ListTrainingPipelinesResponse trainingPipelines. */ + public trainingPipelines: google.cloud.aiplatform.v1beta1.ITrainingPipeline[]; - /** ServiceAccountSpec serviceAccount. */ - public serviceAccount: string; + /** ListTrainingPipelinesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ServiceAccountSpec instance using the specified properties. + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceAccountSpec instance + * @returns ListTrainingPipelinesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IServiceAccountSpec): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; /** - * Encodes the specified ServiceAccountSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. - * @param message ServiceAccountSpec message or plain object to encode + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IServiceAccountSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceAccountSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. - * @param message ServiceAccountSpec message or plain object to encode + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IServiceAccountSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceAccountSpec message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceAccountSpec + * @returns ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; /** - * Decodes a ServiceAccountSpec message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceAccountSpec + * @returns ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; /** - * Verifies a ServiceAccountSpec message. + * Verifies a ListTrainingPipelinesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ServiceAccountSpec message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceAccountSpec + * @returns ListTrainingPipelinesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ServiceAccountSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; /** - * Creates a plain object from a ServiceAccountSpec message. Also converts values to other types if specified. - * @param message ServiceAccountSpec + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ServiceAccountSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceAccountSpec to JSON. + * Converts this ListTrainingPipelinesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceAccountSpec + * Gets the default type url for ListTrainingPipelinesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PersistentResourceService */ - class PersistentResourceService extends $protobuf.rpc.Service { - - /** - * Constructs a new PersistentResourceService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new PersistentResourceService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PersistentResourceService; - - /** - * Calls CreatePersistentResource. - * @param request CreatePersistentResourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createPersistentResource(request: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResourceCallback): void; + /** Properties of a DeleteTrainingPipelineRequest. */ + interface IDeleteTrainingPipelineRequest { - /** - * Calls CreatePersistentResource. - * @param request CreatePersistentResourceRequest message or plain object - * @returns Promise - */ - public createPersistentResource(request: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest): Promise; + /** DeleteTrainingPipelineRequest name */ + name?: (string|null); + } - /** - * Calls GetPersistentResource. - * @param request GetPersistentResourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PersistentResource - */ - public getPersistentResource(request: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResourceCallback): void; + /** Represents a DeleteTrainingPipelineRequest. */ + class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { /** - * Calls GetPersistentResource. - * @param request GetPersistentResourceRequest message or plain object - * @returns Promise + * Constructs a new DeleteTrainingPipelineRequest. + * @param [properties] Properties to set */ - public getPersistentResource(request: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest); - /** - * Calls ListPersistentResources. - * @param request ListPersistentResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPersistentResourcesResponse - */ - public listPersistentResources(request: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResourcesCallback): void; + /** DeleteTrainingPipelineRequest name. */ + public name: string; /** - * Calls ListPersistentResources. - * @param request ListPersistentResourcesRequest message or plain object - * @returns Promise + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTrainingPipelineRequest instance */ - public listPersistentResources(request: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Calls DeletePersistentResource. - * @param request DeletePersistentResourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deletePersistentResource(request: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResourceCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeletePersistentResource. - * @param request DeletePersistentResourceRequest message or plain object - * @returns Promise + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deletePersistentResource(request: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdatePersistentResource. - * @param request UpdatePersistentResourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updatePersistentResource(request: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest, callback: google.cloud.aiplatform.v1beta1.PersistentResourceService.UpdatePersistentResourceCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Calls UpdatePersistentResource. - * @param request UpdatePersistentResourceRequest message or plain object - * @returns Promise + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updatePersistentResource(request: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest): Promise; - } - - namespace PersistentResourceService { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|createPersistentResource}. - * @param error Error, if any - * @param [response] Operation + * Verifies a DeleteTrainingPipelineRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreatePersistentResourceCallback = (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.PersistentResourceService|getPersistentResource}. - * @param error Error, if any - * @param [response] PersistentResource + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTrainingPipelineRequest */ - type GetPersistentResourceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PersistentResource) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|listPersistentResources}. - * @param error Error, if any - * @param [response] ListPersistentResourcesResponse + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message DeleteTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object */ - type ListPersistentResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|deletePersistentResource}. - * @param error Error, if any - * @param [response] Operation + * Converts this DeleteTrainingPipelineRequest to JSON. + * @returns JSON object */ - type DeletePersistentResourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|updatePersistentResource}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for DeleteTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type UpdatePersistentResourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePersistentResourceRequest. */ - interface ICreatePersistentResourceRequest { - - /** CreatePersistentResourceRequest parent */ - parent?: (string|null); - - /** CreatePersistentResourceRequest persistentResource */ - persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + /** Properties of a CancelTrainingPipelineRequest. */ + interface ICancelTrainingPipelineRequest { - /** CreatePersistentResourceRequest persistentResourceId */ - persistentResourceId?: (string|null); + /** CancelTrainingPipelineRequest name */ + name?: (string|null); } - /** Represents a CreatePersistentResourceRequest. */ - class CreatePersistentResourceRequest implements ICreatePersistentResourceRequest { + /** Represents a CancelTrainingPipelineRequest. */ + class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { /** - * Constructs a new CreatePersistentResourceRequest. + * Constructs a new CancelTrainingPipelineRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest); - - /** CreatePersistentResourceRequest parent. */ - public parent: string; - - /** CreatePersistentResourceRequest persistentResource. */ - public persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest); - /** CreatePersistentResourceRequest persistentResourceId. */ - public persistentResourceId: string; + /** CancelTrainingPipelineRequest name. */ + public name: string; /** - * Creates a new CreatePersistentResourceRequest instance using the specified properties. + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePersistentResourceRequest instance + * @returns CancelTrainingPipelineRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Encodes the specified CreatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. - * @param message CreatePersistentResourceRequest message or plain object to encode + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. - * @param message CreatePersistentResourceRequest message or plain object to encode + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePersistentResourceRequest + * @returns CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePersistentResourceRequest + * @returns CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Verifies a CreatePersistentResourceRequest message. + * Verifies a CancelTrainingPipelineRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePersistentResourceRequest + * @returns CancelTrainingPipelineRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Creates a plain object from a CreatePersistentResourceRequest message. Also converts values to other types if specified. - * @param message CreatePersistentResourceRequest + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CancelTrainingPipelineRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePersistentResourceRequest to JSON. + * Converts this CancelTrainingPipelineRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePersistentResourceRequest + * Gets the default type url for CancelTrainingPipelineRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePersistentResourceOperationMetadata. */ - interface ICreatePersistentResourceOperationMetadata { + /** Properties of a CreatePipelineJobRequest. */ + interface ICreatePipelineJobRequest { - /** CreatePersistentResourceOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CreatePipelineJobRequest parent */ + parent?: (string|null); + + /** CreatePipelineJobRequest pipelineJob */ + pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + + /** CreatePipelineJobRequest pipelineJobId */ + pipelineJobId?: (string|null); + + /** CreatePipelineJobRequest preflightValidations */ + preflightValidations?: (boolean|null); } - /** Represents a CreatePersistentResourceOperationMetadata. */ - class CreatePersistentResourceOperationMetadata implements ICreatePersistentResourceOperationMetadata { + /** Represents a CreatePipelineJobRequest. */ + class CreatePipelineJobRequest implements ICreatePipelineJobRequest { /** - * Constructs a new CreatePersistentResourceOperationMetadata. + * Constructs a new CreatePipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest); - /** CreatePersistentResourceOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CreatePipelineJobRequest parent. */ + public parent: string; + + /** CreatePipelineJobRequest pipelineJob. */ + public pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + + /** CreatePipelineJobRequest pipelineJobId. */ + public pipelineJobId: string; + + /** CreatePipelineJobRequest preflightValidations. */ + public preflightValidations: boolean; /** - * Creates a new CreatePersistentResourceOperationMetadata instance using the specified properties. + * Creates a new CreatePipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePersistentResourceOperationMetadata instance + * @returns CreatePipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Encodes the specified CreatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. - * @param message CreatePersistentResourceOperationMetadata message or plain object to encode + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. - * @param message CreatePersistentResourceOperationMetadata message or plain object to encode + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePersistentResourceOperationMetadata + * @returns CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePersistentResourceOperationMetadata + * @returns CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Verifies a CreatePersistentResourceOperationMetadata message. + * Verifies a CreatePipelineJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePersistentResourceOperationMetadata + * @returns CreatePipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Creates a plain object from a CreatePersistentResourceOperationMetadata message. Also converts values to other types if specified. - * @param message CreatePersistentResourceOperationMetadata + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * @param message CreatePipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePersistentResourceOperationMetadata to JSON. + * Converts this CreatePipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePersistentResourceOperationMetadata + * Gets the default type url for CreatePipelineJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdatePersistentResourceOperationMetadata. */ - interface IUpdatePersistentResourceOperationMetadata { + /** Properties of a GetPipelineJobRequest. */ + interface IGetPipelineJobRequest { - /** UpdatePersistentResourceOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetPipelineJobRequest name */ + name?: (string|null); } - /** Represents an UpdatePersistentResourceOperationMetadata. */ - class UpdatePersistentResourceOperationMetadata implements IUpdatePersistentResourceOperationMetadata { + /** Represents a GetPipelineJobRequest. */ + class GetPipelineJobRequest implements IGetPipelineJobRequest { /** - * Constructs a new UpdatePersistentResourceOperationMetadata. + * Constructs a new GetPipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest); - /** UpdatePersistentResourceOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetPipelineJobRequest name. */ + public name: string; /** - * Creates a new UpdatePersistentResourceOperationMetadata instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdatePersistentResourceOperationMetadata instance + * @returns GetPipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Encodes the specified UpdatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. - * @param message UpdatePersistentResourceOperationMetadata message or plain object to encode + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. - * @param message UpdatePersistentResourceOperationMetadata message or plain object to encode + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdatePersistentResourceOperationMetadata + * @returns GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdatePersistentResourceOperationMetadata + * @returns GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Verifies an UpdatePersistentResourceOperationMetadata message. + * Verifies a GetPipelineJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdatePersistentResourceOperationMetadata + * @returns GetPipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Creates a plain object from an UpdatePersistentResourceOperationMetadata message. Also converts values to other types if specified. - * @param message UpdatePersistentResourceOperationMetadata + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * @param message GetPipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdatePersistentResourceOperationMetadata to JSON. + * Converts this GetPipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdatePersistentResourceOperationMetadata + * Gets the default type url for GetPipelineJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPersistentResourceRequest. */ - interface IGetPersistentResourceRequest { + /** Properties of a ListPipelineJobsRequest. */ + interface IListPipelineJobsRequest { - /** GetPersistentResourceRequest name */ - name?: (string|null); + /** ListPipelineJobsRequest parent */ + parent?: (string|null); + + /** ListPipelineJobsRequest filter */ + filter?: (string|null); + + /** ListPipelineJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListPipelineJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListPipelineJobsRequest orderBy */ + orderBy?: (string|null); + + /** ListPipelineJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetPersistentResourceRequest. */ - class GetPersistentResourceRequest implements IGetPersistentResourceRequest { + /** Represents a ListPipelineJobsRequest. */ + class ListPipelineJobsRequest implements IListPipelineJobsRequest { /** - * Constructs a new GetPersistentResourceRequest. + * Constructs a new ListPipelineJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest); - /** GetPersistentResourceRequest name. */ - public name: string; + /** ListPipelineJobsRequest parent. */ + public parent: string; + + /** ListPipelineJobsRequest filter. */ + public filter: string; + + /** ListPipelineJobsRequest pageSize. */ + public pageSize: number; + + /** ListPipelineJobsRequest pageToken. */ + public pageToken: string; + + /** ListPipelineJobsRequest orderBy. */ + public orderBy: string; + + /** ListPipelineJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetPersistentResourceRequest instance using the specified properties. + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPersistentResourceRequest instance + * @returns ListPipelineJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Encodes the specified GetPersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. - * @param message GetPersistentResourceRequest message or plain object to encode + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. - * @param message GetPersistentResourceRequest message or plain object to encode + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPersistentResourceRequest message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPersistentResourceRequest + * @returns ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Decodes a GetPersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPersistentResourceRequest + * @returns ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Verifies a GetPersistentResourceRequest message. + * Verifies a ListPipelineJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPersistentResourceRequest + * @returns ListPipelineJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Creates a plain object from a GetPersistentResourceRequest message. Also converts values to other types if specified. - * @param message GetPersistentResourceRequest + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * @param message ListPipelineJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPersistentResourceRequest to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPersistentResourceRequest + * Gets the default type url for ListPipelineJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPersistentResourcesRequest. */ - interface IListPersistentResourcesRequest { - - /** ListPersistentResourcesRequest parent */ - parent?: (string|null); + /** Properties of a ListPipelineJobsResponse. */ + interface IListPipelineJobsResponse { - /** ListPersistentResourcesRequest pageSize */ - pageSize?: (number|null); + /** ListPipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); - /** ListPersistentResourcesRequest pageToken */ - pageToken?: (string|null); + /** ListPipelineJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListPersistentResourcesRequest. */ - class ListPersistentResourcesRequest implements IListPersistentResourcesRequest { + /** Represents a ListPipelineJobsResponse. */ + class ListPipelineJobsResponse implements IListPipelineJobsResponse { /** - * Constructs a new ListPersistentResourcesRequest. + * Constructs a new ListPipelineJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest); - - /** ListPersistentResourcesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse); - /** ListPersistentResourcesRequest pageSize. */ - public pageSize: number; + /** ListPipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; - /** ListPersistentResourcesRequest pageToken. */ - public pageToken: string; + /** ListPipelineJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListPersistentResourcesRequest instance using the specified properties. + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListPersistentResourcesRequest instance + * @returns ListPipelineJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Encodes the specified ListPersistentResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. - * @param message ListPersistentResourcesRequest message or plain object to encode + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPersistentResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. - * @param message ListPersistentResourcesRequest message or plain object to encode + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPersistentResourcesRequest + * @returns ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPersistentResourcesRequest + * @returns ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Verifies a ListPersistentResourcesRequest message. + * Verifies a ListPipelineJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPersistentResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPersistentResourcesRequest + * @returns ListPipelineJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Creates a plain object from a ListPersistentResourcesRequest message. Also converts values to other types if specified. - * @param message ListPersistentResourcesRequest + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * @param message ListPipelineJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPersistentResourcesRequest to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPersistentResourcesRequest + * Gets the default type url for ListPipelineJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPersistentResourcesResponse. */ - interface IListPersistentResourcesResponse { - - /** ListPersistentResourcesResponse persistentResources */ - persistentResources?: (google.cloud.aiplatform.v1beta1.IPersistentResource[]|null); + /** Properties of a DeletePipelineJobRequest. */ + interface IDeletePipelineJobRequest { - /** ListPersistentResourcesResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeletePipelineJobRequest name */ + name?: (string|null); } - /** Represents a ListPersistentResourcesResponse. */ - class ListPersistentResourcesResponse implements IListPersistentResourcesResponse { + /** Represents a DeletePipelineJobRequest. */ + class DeletePipelineJobRequest implements IDeletePipelineJobRequest { /** - * Constructs a new ListPersistentResourcesResponse. + * Constructs a new DeletePipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse); - - /** ListPersistentResourcesResponse persistentResources. */ - public persistentResources: google.cloud.aiplatform.v1beta1.IPersistentResource[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest); - /** ListPersistentResourcesResponse nextPageToken. */ - public nextPageToken: string; + /** DeletePipelineJobRequest name. */ + public name: string; /** - * Creates a new ListPersistentResourcesResponse instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPersistentResourcesResponse instance + * @returns DeletePipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Encodes the specified ListPersistentResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. - * @param message ListPersistentResourcesResponse message or plain object to encode + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPersistentResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. - * @param message ListPersistentResourcesResponse message or plain object to encode + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPersistentResourcesResponse + * @returns DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPersistentResourcesResponse + * @returns DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Verifies a ListPersistentResourcesResponse message. + * Verifies a DeletePipelineJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPersistentResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPersistentResourcesResponse + * @returns DeletePipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Creates a plain object from a ListPersistentResourcesResponse message. Also converts values to other types if specified. - * @param message ListPersistentResourcesResponse + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * @param message DeletePipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPersistentResourcesResponse to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPersistentResourcesResponse + * Gets the default type url for DeletePipelineJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePersistentResourceRequest. */ - interface IDeletePersistentResourceRequest { + /** Properties of a BatchDeletePipelineJobsRequest. */ + interface IBatchDeletePipelineJobsRequest { - /** DeletePersistentResourceRequest name */ - name?: (string|null); + /** BatchDeletePipelineJobsRequest parent */ + parent?: (string|null); + + /** BatchDeletePipelineJobsRequest names */ + names?: (string[]|null); } - /** Represents a DeletePersistentResourceRequest. */ - class DeletePersistentResourceRequest implements IDeletePersistentResourceRequest { + /** Represents a BatchDeletePipelineJobsRequest. */ + class BatchDeletePipelineJobsRequest implements IBatchDeletePipelineJobsRequest { /** - * Constructs a new DeletePersistentResourceRequest. + * Constructs a new BatchDeletePipelineJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest); - /** DeletePersistentResourceRequest name. */ - public name: string; + /** BatchDeletePipelineJobsRequest parent. */ + public parent: string; + + /** BatchDeletePipelineJobsRequest names. */ + public names: string[]; /** - * Creates a new DeletePersistentResourceRequest instance using the specified properties. + * Creates a new BatchDeletePipelineJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePersistentResourceRequest instance + * @returns BatchDeletePipelineJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; /** - * Encodes the specified DeletePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. - * @param message DeletePersistentResourceRequest message or plain object to encode + * Encodes the specified BatchDeletePipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * @param message BatchDeletePipelineJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. - * @param message DeletePersistentResourceRequest message or plain object to encode + * Encodes the specified BatchDeletePipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * @param message BatchDeletePipelineJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer. + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePersistentResourceRequest + * @returns BatchDeletePipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; /** - * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePersistentResourceRequest + * @returns BatchDeletePipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; /** - * Verifies a DeletePersistentResourceRequest message. + * Verifies a BatchDeletePipelineJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeletePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeletePipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePersistentResourceRequest + * @returns BatchDeletePipelineJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; /** - * Creates a plain object from a DeletePersistentResourceRequest message. Also converts values to other types if specified. - * @param message DeletePersistentResourceRequest + * Creates a plain object from a BatchDeletePipelineJobsRequest message. Also converts values to other types if specified. + * @param message BatchDeletePipelineJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePersistentResourceRequest to JSON. + * Converts this BatchDeletePipelineJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePersistentResourceRequest + * Gets the default type url for BatchDeletePipelineJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdatePersistentResourceRequest. */ - interface IUpdatePersistentResourceRequest { - - /** UpdatePersistentResourceRequest persistentResource */ - persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + /** Properties of a BatchDeletePipelineJobsResponse. */ + interface IBatchDeletePipelineJobsResponse { - /** UpdatePersistentResourceRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** BatchDeletePipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); } - /** Represents an UpdatePersistentResourceRequest. */ - class UpdatePersistentResourceRequest implements IUpdatePersistentResourceRequest { + /** Represents a BatchDeletePipelineJobsResponse. */ + class BatchDeletePipelineJobsResponse implements IBatchDeletePipelineJobsResponse { /** - * Constructs a new UpdatePersistentResourceRequest. + * Constructs a new BatchDeletePipelineJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest); - - /** UpdatePersistentResourceRequest persistentResource. */ - public persistentResource?: (google.cloud.aiplatform.v1beta1.IPersistentResource|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse); - /** UpdatePersistentResourceRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** BatchDeletePipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; /** - * Creates a new UpdatePersistentResourceRequest instance using the specified properties. + * Creates a new BatchDeletePipelineJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdatePersistentResourceRequest instance + * @returns BatchDeletePipelineJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; /** - * Encodes the specified UpdatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. - * @param message UpdatePersistentResourceRequest message or plain object to encode + * Encodes the specified BatchDeletePipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * @param message BatchDeletePipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. - * @param message UpdatePersistentResourceRequest message or plain object to encode + * Encodes the specified BatchDeletePipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * @param message BatchDeletePipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer. + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdatePersistentResourceRequest + * @returns BatchDeletePipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; /** - * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdatePersistentResourceRequest + * @returns BatchDeletePipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; /** - * Verifies an UpdatePersistentResourceRequest message. + * Verifies a BatchDeletePipelineJobsResponse message. * @param message Plain 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 UpdatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeletePipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdatePersistentResourceRequest + * @returns BatchDeletePipelineJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; /** - * Creates a plain object from an UpdatePersistentResourceRequest message. Also converts values to other types if specified. - * @param message UpdatePersistentResourceRequest + * Creates a plain object from a BatchDeletePipelineJobsResponse message. Also converts values to other types if specified. + * @param message BatchDeletePipelineJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdatePersistentResourceRequest to JSON. + * Converts this BatchDeletePipelineJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdatePersistentResourceRequest + * Gets the default type url for BatchDeletePipelineJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PipelineFailurePolicy enum. */ - enum PipelineFailurePolicy { - PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0, - PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1, - PIPELINE_FAILURE_POLICY_FAIL_FAST = 2 - } - - /** Properties of a PipelineJob. */ - interface IPipelineJob { - - /** PipelineJob name */ - name?: (string|null); - - /** PipelineJob displayName */ - displayName?: (string|null); - - /** PipelineJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob pipelineSpec */ - pipelineSpec?: (google.protobuf.IStruct|null); - - /** PipelineJob state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); - - /** PipelineJob jobDetail */ - jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); - - /** PipelineJob error */ - error?: (google.rpc.IStatus|null); - - /** PipelineJob labels */ - labels?: ({ [k: string]: string }|null); - - /** PipelineJob runtimeConfig */ - runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); - - /** PipelineJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** PipelineJob serviceAccount */ - serviceAccount?: (string|null); - - /** PipelineJob network */ - network?: (string|null); - - /** PipelineJob reservedIpRanges */ - reservedIpRanges?: (string[]|null); - - /** PipelineJob templateUri */ - templateUri?: (string|null); - - /** PipelineJob templateMetadata */ - templateMetadata?: (google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null); - - /** PipelineJob scheduleName */ - scheduleName?: (string|null); - } - - /** Represents a PipelineJob. */ - class PipelineJob implements IPipelineJob { - - /** - * Constructs a new PipelineJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob); - - /** PipelineJob name. */ - public name: string; - - /** PipelineJob displayName. */ - public displayName: string; - - /** PipelineJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** PipelineJob pipelineSpec. */ - public pipelineSpec?: (google.protobuf.IStruct|null); - - /** PipelineJob state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); - - /** PipelineJob jobDetail. */ - public jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); - - /** PipelineJob error. */ - public error?: (google.rpc.IStatus|null); - - /** PipelineJob labels. */ - public labels: { [k: string]: string }; - - /** PipelineJob runtimeConfig. */ - public runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); - - /** PipelineJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** PipelineJob serviceAccount. */ - public serviceAccount: string; - - /** PipelineJob network. */ - public network: string; + /** Properties of a CancelPipelineJobRequest. */ + interface ICancelPipelineJobRequest { - /** PipelineJob reservedIpRanges. */ - public reservedIpRanges: string[]; + /** CancelPipelineJobRequest name */ + name?: (string|null); + } - /** PipelineJob templateUri. */ - public templateUri: string; + /** Represents a CancelPipelineJobRequest. */ + class CancelPipelineJobRequest implements ICancelPipelineJobRequest { - /** PipelineJob templateMetadata. */ - public templateMetadata?: (google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null); + /** + * Constructs a new CancelPipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest); - /** PipelineJob scheduleName. */ - public scheduleName: string; + /** CancelPipelineJobRequest name. */ + public name: string; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJob instance + * @returns CancelPipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob): google.cloud.aiplatform.v1beta1.PipelineJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJob + * @returns CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJob + * @returns CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Verifies a PipelineJob message. + * Verifies a CancelPipelineJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJob + * @returns CancelPipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. - * @param message PipelineJob + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * @param message CancelPipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJob to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineJob + * Gets the default type url for CancelPipelineJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineJob { - - /** Properties of a RuntimeConfig. */ - interface IRuntimeConfig { - - /** RuntimeConfig parameters */ - parameters?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IValue }|null); - - /** RuntimeConfig gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); - - /** RuntimeConfig parameterValues */ - parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); - - /** RuntimeConfig failurePolicy */ - failurePolicy?: (google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|null); - - /** RuntimeConfig inputArtifacts */ - inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact }|null); - } - - /** Represents a RuntimeConfig. */ - class RuntimeConfig implements IRuntimeConfig { - - /** - * Constructs a new RuntimeConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig); - - /** RuntimeConfig parameters. */ - public parameters: { [k: string]: google.cloud.aiplatform.v1beta1.IValue }; - - /** RuntimeConfig gcsOutputDirectory. */ - public gcsOutputDirectory: string; - - /** RuntimeConfig parameterValues. */ - public parameterValues: { [k: string]: google.protobuf.IValue }; - - /** RuntimeConfig failurePolicy. */ - public failurePolicy: (google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1beta1.PipelineFailurePolicy); - - /** RuntimeConfig inputArtifacts. */ - public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact }; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RuntimeConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - - /** - * Verifies a RuntimeConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RuntimeConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @param message RuntimeConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RuntimeConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RuntimeConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RuntimeConfig { + /** Properties of a BatchCancelPipelineJobsRequest. */ + interface IBatchCancelPipelineJobsRequest { - /** Properties of an InputArtifact. */ - interface IInputArtifact { + /** BatchCancelPipelineJobsRequest parent */ + parent?: (string|null); - /** InputArtifact artifactId */ - artifactId?: (string|null); - } + /** BatchCancelPipelineJobsRequest names */ + names?: (string[]|null); + } - /** Represents an InputArtifact. */ - class InputArtifact implements IInputArtifact { + /** Represents a BatchCancelPipelineJobsRequest. */ + class BatchCancelPipelineJobsRequest implements IBatchCancelPipelineJobsRequest { - /** - * Constructs a new InputArtifact. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact); + /** + * Constructs a new BatchCancelPipelineJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest); - /** InputArtifact artifactId. */ - public artifactId?: (string|null); + /** BatchCancelPipelineJobsRequest parent. */ + public parent: string; - /** InputArtifact kind. */ - public kind?: "artifactId"; + /** BatchCancelPipelineJobsRequest names. */ + public names: string[]; - /** - * Creates a new InputArtifact instance using the specified properties. - * @param [properties] Properties to set - * @returns InputArtifact instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + /** + * Creates a new BatchCancelPipelineJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCancelPipelineJobsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest; - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @param message InputArtifact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified BatchCancelPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest.verify|verify} messages. + * @param message BatchCancelPipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @param message InputArtifact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified BatchCancelPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest.verify|verify} messages. + * @param message BatchCancelPipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + /** + * Decodes a BatchCancelPipelineJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCancelPipelineJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest; - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + /** + * Decodes a BatchCancelPipelineJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCancelPipelineJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest; - /** - * 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); + /** + * Verifies a BatchCancelPipelineJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputArtifact - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + /** + * Creates a BatchCancelPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCancelPipelineJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest; - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @param message InputArtifact - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a BatchCancelPipelineJobsRequest message. Also converts values to other types if specified. + * @param message BatchCancelPipelineJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this InputArtifact to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this BatchCancelPipelineJobsRequest 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; - } - } + /** + * Gets the default type url for BatchCancelPipelineJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTemplateMetadata. */ - interface IPipelineTemplateMetadata { + /** Properties of a BatchCancelPipelineJobsResponse. */ + interface IBatchCancelPipelineJobsResponse { - /** PipelineTemplateMetadata version */ - version?: (string|null); + /** BatchCancelPipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); } - /** Represents a PipelineTemplateMetadata. */ - class PipelineTemplateMetadata implements IPipelineTemplateMetadata { + /** Represents a BatchCancelPipelineJobsResponse. */ + class BatchCancelPipelineJobsResponse implements IBatchCancelPipelineJobsResponse { /** - * Constructs a new PipelineTemplateMetadata. + * Constructs a new BatchCancelPipelineJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse); - /** PipelineTemplateMetadata version. */ - public version: string; + /** BatchCancelPipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. + * Creates a new BatchCancelPipelineJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTemplateMetadata instance + * @returns BatchCancelPipelineJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse; /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. - * @param message PipelineTemplateMetadata message or plain object to encode + * Encodes the specified BatchCancelPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse.verify|verify} messages. + * @param message BatchCancelPipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. - * @param message PipelineTemplateMetadata message or plain object to encode + * Encodes the specified BatchCancelPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse.verify|verify} messages. + * @param message BatchCancelPipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes a BatchCancelPipelineJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTemplateMetadata + * @returns BatchCancelPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes a BatchCancelPipelineJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTemplateMetadata + * @returns BatchCancelPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies a BatchCancelPipelineJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCancelPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTemplateMetadata + * @returns BatchCancelPipelineJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. - * @param message PipelineTemplateMetadata + * Creates a plain object from a BatchCancelPipelineJobsResponse message. Also converts values to other types if specified. + * @param message BatchCancelPipelineJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this BatchCancelPipelineJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for BatchCancelPipelineJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineJobDetail. */ - interface IPipelineJobDetail { + /** Properties of a TrainingPipeline. */ + interface ITrainingPipeline { - /** PipelineJobDetail pipelineContext */ - pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** TrainingPipeline name */ + name?: (string|null); - /** PipelineJobDetail pipelineRunContext */ - pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** TrainingPipeline displayName */ + displayName?: (string|null); - /** PipelineJobDetail taskDetails */ - taskDetails?: (google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]|null); + /** TrainingPipeline inputDataConfig */ + inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); + + /** TrainingPipeline trainingTaskDefinition */ + trainingTaskDefinition?: (string|null); + + /** TrainingPipeline trainingTaskInputs */ + trainingTaskInputs?: (google.protobuf.IValue|null); + + /** TrainingPipeline trainingTaskMetadata */ + trainingTaskMetadata?: (google.protobuf.IValue|null); + + /** TrainingPipeline modelToUpload */ + modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** TrainingPipeline modelId */ + modelId?: (string|null); + + /** TrainingPipeline parentModel */ + parentModel?: (string|null); + + /** TrainingPipeline state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); + + /** TrainingPipeline error */ + error?: (google.rpc.IStatus|null); + + /** TrainingPipeline createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline labels */ + labels?: ({ [k: string]: string }|null); + + /** TrainingPipeline encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a PipelineJobDetail. */ - class PipelineJobDetail implements IPipelineJobDetail { + /** Represents a TrainingPipeline. */ + class TrainingPipeline implements ITrainingPipeline { /** - * Constructs a new PipelineJobDetail. + * Constructs a new TrainingPipeline. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline); - /** PipelineJobDetail pipelineContext. */ - public pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** TrainingPipeline name. */ + public name: string; - /** PipelineJobDetail pipelineRunContext. */ - public pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** TrainingPipeline displayName. */ + public displayName: string; - /** PipelineJobDetail taskDetails. */ - public taskDetails: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]; + /** TrainingPipeline inputDataConfig. */ + public inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); + + /** TrainingPipeline trainingTaskDefinition. */ + public trainingTaskDefinition: string; + + /** TrainingPipeline trainingTaskInputs. */ + public trainingTaskInputs?: (google.protobuf.IValue|null); + + /** TrainingPipeline trainingTaskMetadata. */ + public trainingTaskMetadata?: (google.protobuf.IValue|null); + + /** TrainingPipeline modelToUpload. */ + public modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** TrainingPipeline modelId. */ + public modelId: string; + + /** TrainingPipeline parentModel. */ + public parentModel: string; + + /** TrainingPipeline state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); + + /** TrainingPipeline error. */ + public error?: (google.rpc.IStatus|null); + + /** TrainingPipeline createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline labels. */ + public labels: { [k: string]: string }; + + /** TrainingPipeline encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new TrainingPipeline instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJobDetail instance + * @returns TrainingPipeline instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJobDetail + * @returns TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJobDetail + * @returns TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Verifies a PipelineJobDetail message. + * Verifies a TrainingPipeline message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJobDetail + * @returns TrainingPipeline */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. - * @param message PipelineJobDetail + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * @param message TrainingPipeline * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this TrainingPipeline to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for TrainingPipeline * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTaskDetail. */ - interface IPipelineTaskDetail { - - /** PipelineTaskDetail taskId */ - taskId?: (number|Long|string|null); + /** Properties of an InputDataConfig. */ + interface IInputDataConfig { - /** PipelineTaskDetail parentTaskId */ - parentTaskId?: (number|Long|string|null); + /** InputDataConfig fractionSplit */ + fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - /** PipelineTaskDetail taskName */ - taskName?: (string|null); + /** InputDataConfig filterSplit */ + filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - /** PipelineTaskDetail createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** InputDataConfig predefinedSplit */ + predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); - /** PipelineTaskDetail startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** InputDataConfig timestampSplit */ + timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); - /** PipelineTaskDetail endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** InputDataConfig stratifiedSplit */ + stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); - /** PipelineTaskDetail executorDetail */ - executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + /** InputDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** PipelineTaskDetail state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); + /** InputDataConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** PipelineTaskDetail execution */ - execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** InputDataConfig datasetId */ + datasetId?: (string|null); - /** PipelineTaskDetail error */ - error?: (google.rpc.IStatus|null); + /** InputDataConfig annotationsFilter */ + annotationsFilter?: (string|null); - /** PipelineTaskDetail pipelineTaskStatus */ - pipelineTaskStatus?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + /** InputDataConfig annotationSchemaUri */ + annotationSchemaUri?: (string|null); - /** PipelineTaskDetail inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); + /** InputDataConfig savedQueryId */ + savedQueryId?: (string|null); - /** PipelineTaskDetail outputs */ - outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); + /** InputDataConfig persistMlUseAssignment */ + persistMlUseAssignment?: (boolean|null); } - /** Represents a PipelineTaskDetail. */ - class PipelineTaskDetail implements IPipelineTaskDetail { + /** Represents an InputDataConfig. */ + class InputDataConfig implements IInputDataConfig { /** - * Constructs a new PipelineTaskDetail. + * Constructs a new InputDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail); + constructor(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig); - /** PipelineTaskDetail taskId. */ - public taskId: (number|Long|string); + /** InputDataConfig fractionSplit. */ + public fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - /** PipelineTaskDetail parentTaskId. */ - public parentTaskId: (number|Long|string); + /** InputDataConfig filterSplit. */ + public filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - /** PipelineTaskDetail taskName. */ - public taskName: string; + /** InputDataConfig predefinedSplit. */ + public predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); - /** PipelineTaskDetail createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** InputDataConfig timestampSplit. */ + public timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); - /** PipelineTaskDetail startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** InputDataConfig stratifiedSplit. */ + public stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); - /** PipelineTaskDetail endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** InputDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** PipelineTaskDetail executorDetail. */ - public executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + /** InputDataConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** PipelineTaskDetail state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); + /** InputDataConfig datasetId. */ + public datasetId: string; - /** PipelineTaskDetail execution. */ - public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** InputDataConfig annotationsFilter. */ + public annotationsFilter: string; - /** PipelineTaskDetail error. */ - public error?: (google.rpc.IStatus|null); + /** InputDataConfig annotationSchemaUri. */ + public annotationSchemaUri: string; - /** PipelineTaskDetail pipelineTaskStatus. */ - public pipelineTaskStatus: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]; + /** InputDataConfig savedQueryId. */ + public savedQueryId: string; - /** PipelineTaskDetail inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; + /** InputDataConfig persistMlUseAssignment. */ + public persistMlUseAssignment: boolean; - /** PipelineTaskDetail outputs. */ - public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; + /** InputDataConfig split. */ + public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); + + /** InputDataConfig destination. */ + public destination?: ("gcsDestination"|"bigqueryDestination"); /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * Creates a new InputDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskDetail instance + * @returns InputDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public static create(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskDetail + * @returns InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskDetail + * @returns InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Verifies a PipelineTaskDetail message. + * Verifies an InputDataConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskDetail + * @returns InputDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. - * @param message PipelineTaskDetail + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @param message InputDataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this InputDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTaskDetail + * Gets the default type url for InputDataConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineTaskDetail { - - /** Properties of a PipelineTaskStatus. */ - interface IPipelineTaskStatus { - - /** PipelineTaskStatus updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskStatus state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); - - /** PipelineTaskStatus error */ - error?: (google.rpc.IStatus|null); - } - - /** Represents a PipelineTaskStatus. */ - class PipelineTaskStatus implements IPipelineTaskStatus { - - /** - * Constructs a new PipelineTaskStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus); - - /** PipelineTaskStatus updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskStatus state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); - - /** PipelineTaskStatus error. */ - public error?: (google.rpc.IStatus|null); - - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns PipelineTaskStatus instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - - /** - * Verifies a PipelineTaskStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PipelineTaskStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @param message PipelineTaskStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a FractionSplit. */ + interface IFractionSplit { - /** - * Converts this PipelineTaskStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FractionSplit trainingFraction */ + trainingFraction?: (number|null); - /** - * Gets the default type url for PipelineTaskStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FractionSplit validationFraction */ + validationFraction?: (number|null); - /** Properties of an ArtifactList. */ - interface IArtifactList { + /** FractionSplit testFraction */ + testFraction?: (number|null); + } - /** ArtifactList artifacts */ - artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); - } + /** Represents a FractionSplit. */ + class FractionSplit implements IFractionSplit { - /** Represents an ArtifactList. */ - class ArtifactList implements IArtifactList { + /** + * Constructs a new FractionSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit); - /** - * Constructs a new ArtifactList. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList); + /** FractionSplit trainingFraction. */ + public trainingFraction: number; - /** ArtifactList artifacts. */ - public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; + /** FractionSplit validationFraction. */ + public validationFraction: number; - /** - * Creates a new ArtifactList instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactList instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** FractionSplit testFraction. */ + public testFraction: number; - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FractionSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns FractionSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit): google.cloud.aiplatform.v1beta1.FractionSplit; - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** + * Decodes a FractionSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FractionSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FractionSplit; - /** - * Verifies an ArtifactList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FractionSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FractionSplit; - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ArtifactList - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** + * Verifies a FractionSplit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. - * @param message ArtifactList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FractionSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FractionSplit; - /** - * Converts this ArtifactList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * @param message FractionSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ArtifactList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this FractionSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - RUNNING = 2, - SUCCEEDED = 3, - CANCEL_PENDING = 4, - CANCELLING = 5, - CANCELLED = 6, - FAILED = 7, - SKIPPED = 8, - NOT_TRIGGERED = 9 - } + /** + * Gets the default type url for FractionSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTaskExecutorDetail. */ - interface IPipelineTaskExecutorDetail { + /** Properties of a FilterSplit. */ + interface IFilterSplit { - /** PipelineTaskExecutorDetail containerDetail */ - containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); + /** FilterSplit trainingFilter */ + trainingFilter?: (string|null); - /** PipelineTaskExecutorDetail customJobDetail */ - customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + /** FilterSplit validationFilter */ + validationFilter?: (string|null); + + /** FilterSplit testFilter */ + testFilter?: (string|null); } - /** Represents a PipelineTaskExecutorDetail. */ - class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { + /** Represents a FilterSplit. */ + class FilterSplit implements IFilterSplit { /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new FilterSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit); - /** PipelineTaskExecutorDetail containerDetail. */ - public containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); + /** FilterSplit trainingFilter. */ + public trainingFilter: string; - /** PipelineTaskExecutorDetail customJobDetail. */ - public customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + /** FilterSplit validationFilter. */ + public validationFilter: string; - /** PipelineTaskExecutorDetail details. */ - public details?: ("containerDetail"|"customJobDetail"); + /** FilterSplit testFilter. */ + public testFilter: string; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskExecutorDetail instance + * @returns FilterSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskExecutorDetail + * @returns FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskExecutorDetail + * @returns FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a FilterSplit message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskExecutorDetail + * @returns FilterSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. - * @param message PipelineTaskExecutorDetail + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * @param message FilterSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this FilterSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for FilterSplit * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineTaskExecutorDetail { - - /** Properties of a ContainerDetail. */ - interface IContainerDetail { - - /** ContainerDetail mainJob */ - mainJob?: (string|null); - - /** ContainerDetail preCachingCheckJob */ - preCachingCheckJob?: (string|null); + /** Properties of a PredefinedSplit. */ + interface IPredefinedSplit { - /** ContainerDetail failedMainJobs */ - failedMainJobs?: (string[]|null); + /** PredefinedSplit key */ + key?: (string|null); + } - /** ContainerDetail failedPreCachingCheckJobs */ - failedPreCachingCheckJobs?: (string[]|null); - } + /** Represents a PredefinedSplit. */ + class PredefinedSplit implements IPredefinedSplit { - /** Represents a ContainerDetail. */ - class ContainerDetail implements IContainerDetail { + /** + * Constructs a new PredefinedSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit); - /** - * Constructs a new ContainerDetail. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail); + /** PredefinedSplit key. */ + public key: string; - /** ContainerDetail mainJob. */ - public mainJob: string; + /** + * Creates a new PredefinedSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns PredefinedSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit): google.cloud.aiplatform.v1beta1.PredefinedSplit; - /** ContainerDetail preCachingCheckJob. */ - public preCachingCheckJob: string; + /** + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContainerDetail failedMainJobs. */ - public failedMainJobs: string[]; + /** + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContainerDetail failedPreCachingCheckJobs. */ - public failedPreCachingCheckJobs: string[]; + /** + * Decodes a PredefinedSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredefinedSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredefinedSplit; - /** - * Creates a new ContainerDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerDetail instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredefinedSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredefinedSplit; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a PredefinedSplit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredefinedSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredefinedSplit; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. + * @param message PredefinedSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Converts this PredefinedSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a ContainerDetail message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Gets the default type url for PredefinedSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContainerDetail - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** Properties of a TimestampSplit. */ + interface ITimestampSplit { - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @param message ContainerDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TimestampSplit trainingFraction */ + trainingFraction?: (number|null); - /** - * Converts this ContainerDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TimestampSplit validationFraction */ + validationFraction?: (number|null); - /** - * Gets the default type url for ContainerDetail - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TimestampSplit testFraction */ + testFraction?: (number|null); - /** Properties of a CustomJobDetail. */ - interface ICustomJobDetail { + /** TimestampSplit key */ + key?: (string|null); + } - /** CustomJobDetail job */ - job?: (string|null); + /** Represents a TimestampSplit. */ + class TimestampSplit implements ITimestampSplit { - /** CustomJobDetail failedJobs */ - failedJobs?: (string[]|null); - } + /** + * Constructs a new TimestampSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit); - /** Represents a CustomJobDetail. */ - class CustomJobDetail implements ICustomJobDetail { + /** TimestampSplit trainingFraction. */ + public trainingFraction: number; - /** - * Constructs a new CustomJobDetail. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail); + /** TimestampSplit validationFraction. */ + public validationFraction: number; - /** CustomJobDetail job. */ - public job: string; + /** TimestampSplit testFraction. */ + public testFraction: number; - /** CustomJobDetail failedJobs. */ - public failedJobs: string[]; + /** TimestampSplit key. */ + public key: string; - /** - * Creates a new CustomJobDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomJobDetail instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** + * Creates a new TimestampSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit): google.cloud.aiplatform.v1beta1.TimestampSplit; - /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CustomJobDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** + * Decodes a TimestampSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TimestampSplit; - /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TimestampSplit; - /** - * Verifies a CustomJobDetail message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a TimestampSplit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CustomJobDetail - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TimestampSplit; - /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @param message CustomJobDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @param message TimestampSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CustomJobDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this TimestampSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for CustomJobDetail - * @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 TimestampSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PipelineState enum. */ - enum PipelineState { - PIPELINE_STATE_UNSPECIFIED = 0, - PIPELINE_STATE_QUEUED = 1, - PIPELINE_STATE_PENDING = 2, - PIPELINE_STATE_RUNNING = 3, - PIPELINE_STATE_SUCCEEDED = 4, - PIPELINE_STATE_FAILED = 5, - PIPELINE_STATE_CANCELLING = 6, - PIPELINE_STATE_CANCELLED = 7, - PIPELINE_STATE_PAUSED = 8 - } + /** Properties of a StratifiedSplit. */ + interface IStratifiedSplit { - /** Properties of a Value. */ - interface IValue { + /** StratifiedSplit trainingFraction */ + trainingFraction?: (number|null); - /** Value intValue */ - intValue?: (number|Long|string|null); + /** StratifiedSplit validationFraction */ + validationFraction?: (number|null); - /** Value doubleValue */ - doubleValue?: (number|null); + /** StratifiedSplit testFraction */ + testFraction?: (number|null); - /** Value stringValue */ - stringValue?: (string|null); + /** StratifiedSplit key */ + key?: (string|null); } - /** Represents a Value. */ - class Value implements IValue { + /** Represents a StratifiedSplit. */ + class StratifiedSplit implements IStratifiedSplit { /** - * Constructs a new Value. + * Constructs a new StratifiedSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IValue); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit); - /** Value intValue. */ - public intValue?: (number|Long|string|null); + /** StratifiedSplit trainingFraction. */ + public trainingFraction: number; - /** Value doubleValue. */ - public doubleValue?: (number|null); + /** StratifiedSplit validationFraction. */ + public validationFraction: number; - /** Value stringValue. */ - public stringValue?: (string|null); + /** StratifiedSplit testFraction. */ + public testFraction: number; - /** Value value. */ - public value?: ("intValue"|"doubleValue"|"stringValue"); + /** StratifiedSplit key. */ + public key: string; /** - * Creates a new Value instance using the specified properties. + * Creates a new StratifiedSplit instance using the specified properties. * @param [properties] Properties to set - * @returns Value instance + * @returns StratifiedSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IValue): google.cloud.aiplatform.v1beta1.Value; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a StratifiedSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Value + * @returns StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Value; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Value + * @returns StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Value; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Verifies a Value message. + * Verifies a StratifiedSplit message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Value + * @returns StratifiedSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Value; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * @param message StratifiedSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Value to JSON. + * Converts this StratifiedSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Value + * Gets the default type url for StratifiedSplit * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PipelineService */ - class PipelineService extends $protobuf.rpc.Service { + /** Represents a PredictionService */ + class PredictionService extends $protobuf.rpc.Service { /** - * Constructs a new PipelineService service. + * Constructs a new PredictionService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -171427,2604 +173120,2905 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new PipelineService service using the specified rpc implementation. + * Creates new PredictionService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline + * Calls Predict. + * @param request PredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PredictResponse */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback): void; + public predict(request: google.cloud.aiplatform.v1beta1.IPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.PredictCallback): void; /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object + * Calls Predict. + * @param request PredictRequest message or plain object * @returns Promise */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): Promise; + public predict(request: google.cloud.aiplatform.v1beta1.IPredictRequest): Promise; /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HttpBody */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback): void; + public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.RawPredictCallback): void; /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object + * Calls RawPredict. + * @param request RawPredictRequest message or plain object * @returns Promise */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): Promise; + public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest): Promise; /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * Calls DirectPredict. + * @param request DirectPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DirectPredictResponse */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback): void; + public directPredict(request: google.cloud.aiplatform.v1beta1.IDirectPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.DirectPredictCallback): void; /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object + * Calls DirectPredict. + * @param request DirectPredictRequest message or plain object * @returns Promise */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): Promise; + public directPredict(request: google.cloud.aiplatform.v1beta1.IDirectPredictRequest): Promise; /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls DirectRawPredict. + * @param request DirectRawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DirectRawPredictResponse */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback): void; + public directRawPredict(request: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.DirectRawPredictCallback): void; /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object + * Calls DirectRawPredict. + * @param request DirectRawPredictRequest message or plain object * @returns Promise */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): Promise; + public directRawPredict(request: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest): Promise; /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls StreamDirectPredict. + * @param request StreamDirectPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamDirectPredictResponse */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback): void; + public streamDirectPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectPredictCallback): void; /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object + * Calls StreamDirectPredict. + * @param request StreamDirectPredictRequest message or plain object * @returns Promise */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): Promise; + public streamDirectPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest): Promise; /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob + * Calls StreamDirectRawPredict. + * @param request StreamDirectRawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamDirectRawPredictResponse */ - public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback): void; + public streamDirectRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectRawPredictCallback): void; /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object + * Calls StreamDirectRawPredict. + * @param request StreamDirectRawPredictRequest message or plain object * @returns Promise */ - public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): Promise; + public streamDirectRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest): Promise; /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob + * Calls StreamingPredict. + * @param request StreamingPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingPredictResponse */ - public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback): void; + public streamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamingPredictCallback): void; /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object + * Calls StreamingPredict. + * @param request StreamingPredictRequest message or plain object * @returns Promise */ - public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): Promise; + public streamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest): Promise; /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * Calls ServerStreamingPredict. + * @param request StreamingPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingPredictResponse */ - public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback): void; + public serverStreamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.ServerStreamingPredictCallback): void; /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object + * Calls ServerStreamingPredict. + * @param request StreamingPredictRequest message or plain object * @returns Promise */ - public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): Promise; + public serverStreamingPredict(request: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest): Promise; /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls StreamingRawPredict. + * @param request StreamingRawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingRawPredictResponse */ - public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback): void; + public streamingRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamingRawPredictCallback): void; /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object + * Calls StreamingRawPredict. + * @param request StreamingRawPredictRequest message or plain object * @returns Promise */ - public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): Promise; + public streamingRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest): Promise; /** - * Calls BatchDeletePipelineJobs. - * @param request BatchDeletePipelineJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls Explain. + * @param request ExplainRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExplainResponse */ - public batchDeletePipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobsCallback): void; + public explain(request: google.cloud.aiplatform.v1beta1.IExplainRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.ExplainCallback): void; /** - * Calls BatchDeletePipelineJobs. - * @param request BatchDeletePipelineJobsRequest message or plain object + * Calls Explain. + * @param request ExplainRequest message or plain object * @returns Promise */ - public batchDeletePipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest): Promise; + public explain(request: google.cloud.aiplatform.v1beta1.IExplainRequest): Promise; /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls CountTokens. + * @param request CountTokensRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CountTokensResponse */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback): void; + public countTokens(request: google.cloud.aiplatform.v1beta1.ICountTokensRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.CountTokensCallback): void; /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object + * Calls CountTokens. + * @param request CountTokensRequest message or plain object * @returns Promise */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): Promise; - } - - namespace PipelineService { + public countTokens(request: google.cloud.aiplatform.v1beta1.ICountTokensRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Calls GenerateContent. + * @param request GenerateContentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GenerateContentResponse */ - type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; + public generateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.GenerateContentCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Calls GenerateContent. + * @param request GenerateContentRequest message or plain object + * @returns Promise */ - type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; + public generateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listTrainingPipelines}. - * @param error Error, if any - * @param [response] ListTrainingPipelinesResponse + * Calls StreamGenerateContent. + * @param request GenerateContentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GenerateContentResponse */ - type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) => void; + public streamGenerateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamGenerateContentCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deleteTrainingPipeline}. - * @param error Error, if any - * @param [response] Operation + * Calls StreamGenerateContent. + * @param request GenerateContentRequest message or plain object + * @returns Promise */ - type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public streamGenerateContent(request: google.cloud.aiplatform.v1beta1.IGenerateContentRequest): Promise; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelTrainingPipeline}. - * @param error Error, if any - * @param [response] Empty - */ - type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + namespace PredictionService { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createPipelineJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|predict}. * @param error Error, if any - * @param [response] PipelineJob + * @param [response] PredictResponse */ - type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; + type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PredictResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getPipelineJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|rawPredict}. * @param error Error, if any - * @param [response] PipelineJob + * @param [response] HttpBody */ - type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; + type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listPipelineJobs}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directPredict}. * @param error Error, if any - * @param [response] ListPipelineJobsResponse + * @param [response] DirectPredictResponse */ - type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) => void; + type DirectPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DirectPredictResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deletePipelineJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directRawPredict}. * @param error Error, if any - * @param [response] Operation + * @param [response] DirectRawPredictResponse */ - type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type DirectRawPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DirectRawPredictResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchDeletePipelineJobs}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectPredict}. * @param error Error, if any - * @param [response] Operation + * @param [response] StreamDirectPredictResponse */ - type BatchDeletePipelineJobsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type StreamDirectPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelPipelineJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectRawPredict}. * @param error Error, if any - * @param [response] Empty - */ - type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a CreateTrainingPipelineRequest. */ - interface ICreateTrainingPipelineRequest { - - /** CreateTrainingPipelineRequest parent */ - parent?: (string|null); - - /** CreateTrainingPipelineRequest trainingPipeline */ - trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); - } - - /** Represents a CreateTrainingPipelineRequest. */ - class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { - - /** - * Constructs a new CreateTrainingPipelineRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest); - - /** CreateTrainingPipelineRequest parent. */ - public parent: string; - - /** CreateTrainingPipelineRequest trainingPipeline. */ - public trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); - - /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTrainingPipelineRequest instance + * @param [response] StreamDirectRawPredictResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + type StreamDirectRawPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse) => void; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingPredict}. + * @param error Error, if any + * @param [response] StreamingPredictResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type StreamingPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamingPredictResponse) => void; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|serverStreamingPredict}. + * @param error Error, if any + * @param [response] StreamingPredictResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type ServerStreamingPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamingPredictResponse) => void; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingRawPredict}. + * @param error Error, if any + * @param [response] StreamingRawPredictResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + type StreamingRawPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse) => void; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|explain}. + * @param error Error, if any + * @param [response] ExplainResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ExplainResponse) => void; /** - * Verifies a CreateTrainingPipelineRequest 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.PredictionService|countTokens}. + * @param error Error, if any + * @param [response] CountTokensResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type CountTokensCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CountTokensResponse) => void; /** - * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTrainingPipelineRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|generateContent}. + * @param error Error, if any + * @param [response] GenerateContentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + type GenerateContentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.GenerateContentResponse) => void; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CreateTrainingPipelineRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamGenerateContent}. + * @param error Error, if any + * @param [response] GenerateContentResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type StreamGenerateContentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.GenerateContentResponse) => void; + } - /** - * Converts this CreateTrainingPipelineRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a PredictRequest. */ + interface IPredictRequest { - /** - * Gets the default type url for CreateTrainingPipelineRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PredictRequest endpoint */ + endpoint?: (string|null); - /** Properties of a GetTrainingPipelineRequest. */ - interface IGetTrainingPipelineRequest { + /** PredictRequest instances */ + instances?: (google.protobuf.IValue[]|null); - /** GetTrainingPipelineRequest name */ - name?: (string|null); + /** PredictRequest parameters */ + parameters?: (google.protobuf.IValue|null); } - /** Represents a GetTrainingPipelineRequest. */ - class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { + /** Represents a PredictRequest. */ + class PredictRequest implements IPredictRequest { /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new PredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequest); - /** GetTrainingPipelineRequest name. */ - public name: string; + /** PredictRequest endpoint. */ + public endpoint: string; + + /** PredictRequest instances. */ + public instances: google.protobuf.IValue[]; + + /** PredictRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * Creates a new PredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrainingPipelineRequest instance + * @returns PredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequest): google.cloud.aiplatform.v1beta1.PredictRequest; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a PredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTrainingPipelineRequest + * @returns PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequest; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTrainingPipelineRequest + * @returns PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequest; /** - * Verifies a GetTrainingPipelineRequest message. + * Verifies a PredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTrainingPipelineRequest + * @returns PredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequest; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message GetTrainingPipelineRequest + * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. + * @param message PredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this PredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTrainingPipelineRequest + * Gets the default type url for PredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrainingPipelinesRequest. */ - interface IListTrainingPipelinesRequest { + /** Properties of a PredictResponse. */ + interface IPredictResponse { - /** ListTrainingPipelinesRequest parent */ - parent?: (string|null); + /** PredictResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); - /** ListTrainingPipelinesRequest filter */ - filter?: (string|null); + /** PredictResponse deployedModelId */ + deployedModelId?: (string|null); - /** ListTrainingPipelinesRequest pageSize */ - pageSize?: (number|null); + /** PredictResponse model */ + model?: (string|null); - /** ListTrainingPipelinesRequest pageToken */ - pageToken?: (string|null); + /** PredictResponse modelVersionId */ + modelVersionId?: (string|null); - /** ListTrainingPipelinesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PredictResponse modelDisplayName */ + modelDisplayName?: (string|null); + + /** PredictResponse metadata */ + metadata?: (google.protobuf.IValue|null); } - /** Represents a ListTrainingPipelinesRequest. */ - class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { + /** Represents a PredictResponse. */ + class PredictResponse implements IPredictResponse { /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new PredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictResponse); - /** ListTrainingPipelinesRequest parent. */ - public parent: string; + /** PredictResponse predictions. */ + public predictions: google.protobuf.IValue[]; - /** ListTrainingPipelinesRequest filter. */ - public filter: string; + /** PredictResponse deployedModelId. */ + public deployedModelId: string; - /** ListTrainingPipelinesRequest pageSize. */ - public pageSize: number; + /** PredictResponse model. */ + public model: string; - /** ListTrainingPipelinesRequest pageToken. */ - public pageToken: string; + /** PredictResponse modelVersionId. */ + public modelVersionId: string; - /** ListTrainingPipelinesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PredictResponse modelDisplayName. */ + public modelDisplayName: string; + + /** PredictResponse metadata. */ + public metadata?: (google.protobuf.IValue|null); /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new PredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesRequest instance + * @returns PredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictResponse): google.cloud.aiplatform.v1beta1.PredictResponse; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a PredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesRequest + * @returns PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictResponse; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesRequest + * @returns PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictResponse; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a PredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesRequest + * @returns PredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictResponse; /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesRequest + * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. + * @param message PredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this PredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for PredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrainingPipelinesResponse. */ - interface IListTrainingPipelinesResponse { + /** Properties of a RawPredictRequest. */ + interface IRawPredictRequest { - /** ListTrainingPipelinesResponse trainingPipelines */ - trainingPipelines?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline[]|null); + /** RawPredictRequest endpoint */ + endpoint?: (string|null); - /** ListTrainingPipelinesResponse nextPageToken */ - nextPageToken?: (string|null); + /** RawPredictRequest httpBody */ + httpBody?: (google.api.IHttpBody|null); } - /** Represents a ListTrainingPipelinesResponse. */ - class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { + /** Represents a RawPredictRequest. */ + class RawPredictRequest implements IRawPredictRequest { /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new RawPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IRawPredictRequest); - /** ListTrainingPipelinesResponse trainingPipelines. */ - public trainingPipelines: google.cloud.aiplatform.v1beta1.ITrainingPipeline[]; + /** RawPredictRequest endpoint. */ + public endpoint: string; - /** ListTrainingPipelinesResponse nextPageToken. */ - public nextPageToken: string; + /** RawPredictRequest httpBody. */ + public httpBody?: (google.api.IHttpBody|null); /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates a new RawPredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesResponse instance + * @returns RawPredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRawPredictRequest): google.cloud.aiplatform.v1beta1.RawPredictRequest; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes a RawPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesResponse + * @returns RawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RawPredictRequest; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesResponse + * @returns RawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RawPredictRequest; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies a RawPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesResponse + * @returns RawPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RawPredictRequest; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesResponse + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * @param message RawPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this RawPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrainingPipelinesResponse + * Gets the default type url for RawPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTrainingPipelineRequest. */ - interface IDeleteTrainingPipelineRequest { + /** Properties of a DirectPredictRequest. */ + interface IDirectPredictRequest { - /** DeleteTrainingPipelineRequest name */ - name?: (string|null); + /** DirectPredictRequest endpoint */ + endpoint?: (string|null); + + /** DirectPredictRequest inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + + /** DirectPredictRequest parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); } - /** Represents a DeleteTrainingPipelineRequest. */ - class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { + /** Represents a DirectPredictRequest. */ + class DirectPredictRequest implements IDirectPredictRequest { /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new DirectPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictRequest); - /** DeleteTrainingPipelineRequest name. */ - public name: string; + /** DirectPredictRequest endpoint. */ + public endpoint: string; + + /** DirectPredictRequest inputs. */ + public inputs: google.cloud.aiplatform.v1beta1.ITensor[]; + + /** DirectPredictRequest parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * Creates a new DirectPredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrainingPipelineRequest instance + * @returns DirectPredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictRequest): google.cloud.aiplatform.v1beta1.DirectPredictRequest; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified DirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. + * @param message DirectPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified DirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. + * @param message DirectPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a DirectPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTrainingPipelineRequest + * @returns DirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectPredictRequest; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTrainingPipelineRequest + * @returns DirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectPredictRequest; /** - * Verifies a DeleteTrainingPipelineRequest message. + * Verifies a DirectPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTrainingPipelineRequest + * @returns DirectPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectPredictRequest; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message DeleteTrainingPipelineRequest + * Creates a plain object from a DirectPredictRequest message. Also converts values to other types if specified. + * @param message DirectPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DirectPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this DirectPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTrainingPipelineRequest + * Gets the default type url for DirectPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelTrainingPipelineRequest. */ - interface ICancelTrainingPipelineRequest { + /** Properties of a DirectPredictResponse. */ + interface IDirectPredictResponse { - /** CancelTrainingPipelineRequest name */ - name?: (string|null); + /** DirectPredictResponse outputs */ + outputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + + /** DirectPredictResponse parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); } - /** Represents a CancelTrainingPipelineRequest. */ - class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { + /** Represents a DirectPredictResponse. */ + class DirectPredictResponse implements IDirectPredictResponse { /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new DirectPredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictResponse); - /** CancelTrainingPipelineRequest name. */ - public name: string; + /** DirectPredictResponse outputs. */ + public outputs: google.cloud.aiplatform.v1beta1.ITensor[]; + + /** DirectPredictResponse parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Creates a new DirectPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelTrainingPipelineRequest instance + * @returns DirectPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectPredictResponse): google.cloud.aiplatform.v1beta1.DirectPredictResponse; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified DirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. + * @param message DirectPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified DirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. + * @param message DirectPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a DirectPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelTrainingPipelineRequest + * @returns DirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectPredictResponse; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelTrainingPipelineRequest + * @returns DirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectPredictResponse; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a DirectPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelTrainingPipelineRequest + * @returns DirectPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectPredictResponse; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CancelTrainingPipelineRequest + * Creates a plain object from a DirectPredictResponse message. Also converts values to other types if specified. + * @param message DirectPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DirectPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this DirectPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelTrainingPipelineRequest + * Gets the default type url for DirectPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePipelineJobRequest. */ - interface ICreatePipelineJobRequest { + /** Properties of a DirectRawPredictRequest. */ + interface IDirectRawPredictRequest { - /** CreatePipelineJobRequest parent */ - parent?: (string|null); + /** DirectRawPredictRequest endpoint */ + endpoint?: (string|null); - /** CreatePipelineJobRequest pipelineJob */ - pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + /** DirectRawPredictRequest methodName */ + methodName?: (string|null); - /** CreatePipelineJobRequest pipelineJobId */ - pipelineJobId?: (string|null); + /** DirectRawPredictRequest input */ + input?: (Uint8Array|string|null); } - /** Represents a CreatePipelineJobRequest. */ - class CreatePipelineJobRequest implements ICreatePipelineJobRequest { + /** Represents a DirectRawPredictRequest. */ + class DirectRawPredictRequest implements IDirectRawPredictRequest { /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new DirectRawPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest); - /** CreatePipelineJobRequest parent. */ - public parent: string; + /** DirectRawPredictRequest endpoint. */ + public endpoint: string; - /** CreatePipelineJobRequest pipelineJob. */ - public pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + /** DirectRawPredictRequest methodName. */ + public methodName: string; - /** CreatePipelineJobRequest pipelineJobId. */ - public pipelineJobId: string; + /** DirectRawPredictRequest input. */ + public input: (Uint8Array|string); /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * Creates a new DirectRawPredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePipelineJobRequest instance + * @returns DirectRawPredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified DirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. + * @param message DirectRawPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified DirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. + * @param message DirectRawPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a DirectRawPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePipelineJobRequest + * @returns DirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectRawPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePipelineJobRequest + * @returns DirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a DirectRawPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePipelineJobRequest + * @returns DirectRawPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. - * @param message CreatePipelineJobRequest + * Creates a plain object from a DirectRawPredictRequest message. Also converts values to other types if specified. + * @param message DirectRawPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DirectRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this DirectRawPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for DirectRawPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPipelineJobRequest. */ - interface IGetPipelineJobRequest { + /** Properties of a DirectRawPredictResponse. */ + interface IDirectRawPredictResponse { - /** GetPipelineJobRequest name */ - name?: (string|null); + /** DirectRawPredictResponse output */ + output?: (Uint8Array|string|null); } - /** Represents a GetPipelineJobRequest. */ - class GetPipelineJobRequest implements IGetPipelineJobRequest { + /** Represents a DirectRawPredictResponse. */ + class DirectRawPredictResponse implements IDirectRawPredictResponse { /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new DirectRawPredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse); - /** GetPipelineJobRequest name. */ - public name: string; + /** DirectRawPredictResponse output. */ + public output: (Uint8Array|string); /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new DirectRawPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetPipelineJobRequest instance + * @returns DirectRawPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified DirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. + * @param message DirectRawPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified DirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. + * @param message DirectRawPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a DirectRawPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPipelineJobRequest + * @returns DirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectRawPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPipelineJobRequest + * @returns DirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a DirectRawPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPipelineJobRequest + * @returns DirectRawPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. - * @param message GetPipelineJobRequest + * Creates a plain object from a DirectRawPredictResponse message. Also converts values to other types if specified. + * @param message DirectRawPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DirectRawPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this DirectRawPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for DirectRawPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPipelineJobsRequest. */ - interface IListPipelineJobsRequest { - - /** ListPipelineJobsRequest parent */ - parent?: (string|null); - - /** ListPipelineJobsRequest filter */ - filter?: (string|null); - - /** ListPipelineJobsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a StreamDirectPredictRequest. */ + interface IStreamDirectPredictRequest { - /** ListPipelineJobsRequest pageToken */ - pageToken?: (string|null); + /** StreamDirectPredictRequest endpoint */ + endpoint?: (string|null); - /** ListPipelineJobsRequest orderBy */ - orderBy?: (string|null); + /** StreamDirectPredictRequest inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); - /** ListPipelineJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** StreamDirectPredictRequest parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); } - /** Represents a ListPipelineJobsRequest. */ - class ListPipelineJobsRequest implements IListPipelineJobsRequest { + /** Represents a StreamDirectPredictRequest. */ + class StreamDirectPredictRequest implements IStreamDirectPredictRequest { /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new StreamDirectPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest); - - /** ListPipelineJobsRequest parent. */ - public parent: string; - - /** ListPipelineJobsRequest filter. */ - public filter: string; - - /** ListPipelineJobsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest); - /** ListPipelineJobsRequest pageToken. */ - public pageToken: string; + /** StreamDirectPredictRequest endpoint. */ + public endpoint: string; - /** ListPipelineJobsRequest orderBy. */ - public orderBy: string; + /** StreamDirectPredictRequest inputs. */ + public inputs: google.cloud.aiplatform.v1beta1.ITensor[]; - /** ListPipelineJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** StreamDirectPredictRequest parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new StreamDirectPredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsRequest instance + * @returns StreamDirectPredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified StreamDirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. + * @param message StreamDirectPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified StreamDirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. + * @param message StreamDirectPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a StreamDirectPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsRequest + * @returns StreamDirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsRequest + * @returns StreamDirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a StreamDirectPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsRequest + * @returns StreamDirectPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. - * @param message ListPipelineJobsRequest + * Creates a plain object from a StreamDirectPredictRequest message. Also converts values to other types if specified. + * @param message StreamDirectPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this StreamDirectPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPipelineJobsRequest + * Gets the default type url for StreamDirectPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPipelineJobsResponse. */ - interface IListPipelineJobsResponse { + /** Properties of a StreamDirectPredictResponse. */ + interface IStreamDirectPredictResponse { - /** ListPipelineJobsResponse pipelineJobs */ - pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); + /** StreamDirectPredictResponse outputs */ + outputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); - /** ListPipelineJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** StreamDirectPredictResponse parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); } - /** Represents a ListPipelineJobsResponse. */ - class ListPipelineJobsResponse implements IListPipelineJobsResponse { + /** Represents a StreamDirectPredictResponse. */ + class StreamDirectPredictResponse implements IStreamDirectPredictResponse { /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new StreamDirectPredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse); - /** ListPipelineJobsResponse pipelineJobs. */ - public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; + /** StreamDirectPredictResponse outputs. */ + public outputs: google.cloud.aiplatform.v1beta1.ITensor[]; - /** ListPipelineJobsResponse nextPageToken. */ - public nextPageToken: string; + /** StreamDirectPredictResponse parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new StreamDirectPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsResponse instance + * @returns StreamDirectPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified StreamDirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. + * @param message StreamDirectPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified StreamDirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. + * @param message StreamDirectPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a StreamDirectPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsResponse + * @returns StreamDirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsResponse + * @returns StreamDirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a StreamDirectPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsResponse + * @returns StreamDirectPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. - * @param message ListPipelineJobsResponse + * Creates a plain object from a StreamDirectPredictResponse message. Also converts values to other types if specified. + * @param message StreamDirectPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this StreamDirectPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for StreamDirectPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePipelineJobRequest. */ - interface IDeletePipelineJobRequest { + /** Properties of a StreamDirectRawPredictRequest. */ + interface IStreamDirectRawPredictRequest { - /** DeletePipelineJobRequest name */ - name?: (string|null); + /** StreamDirectRawPredictRequest endpoint */ + endpoint?: (string|null); + + /** StreamDirectRawPredictRequest methodName */ + methodName?: (string|null); + + /** StreamDirectRawPredictRequest input */ + input?: (Uint8Array|string|null); } - /** Represents a DeletePipelineJobRequest. */ - class DeletePipelineJobRequest implements IDeletePipelineJobRequest { + /** Represents a StreamDirectRawPredictRequest. */ + class StreamDirectRawPredictRequest implements IStreamDirectRawPredictRequest { /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new StreamDirectRawPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest); - /** DeletePipelineJobRequest name. */ - public name: string; + /** StreamDirectRawPredictRequest endpoint. */ + public endpoint: string; + + /** StreamDirectRawPredictRequest methodName. */ + public methodName: string; + + /** StreamDirectRawPredictRequest input. */ + public input: (Uint8Array|string); /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new StreamDirectRawPredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePipelineJobRequest instance + * @returns StreamDirectRawPredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified StreamDirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. + * @param message StreamDirectRawPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified StreamDirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. + * @param message StreamDirectRawPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePipelineJobRequest + * @returns StreamDirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePipelineJobRequest + * @returns StreamDirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a StreamDirectRawPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePipelineJobRequest + * @returns StreamDirectRawPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. - * @param message DeletePipelineJobRequest + * Creates a plain object from a StreamDirectRawPredictRequest message. Also converts values to other types if specified. + * @param message StreamDirectRawPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this StreamDirectRawPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for StreamDirectRawPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchDeletePipelineJobsRequest. */ - interface IBatchDeletePipelineJobsRequest { - - /** BatchDeletePipelineJobsRequest parent */ - parent?: (string|null); + /** Properties of a StreamDirectRawPredictResponse. */ + interface IStreamDirectRawPredictResponse { - /** BatchDeletePipelineJobsRequest names */ - names?: (string[]|null); + /** StreamDirectRawPredictResponse output */ + output?: (Uint8Array|string|null); } - /** Represents a BatchDeletePipelineJobsRequest. */ - class BatchDeletePipelineJobsRequest implements IBatchDeletePipelineJobsRequest { + /** Represents a StreamDirectRawPredictResponse. */ + class StreamDirectRawPredictResponse implements IStreamDirectRawPredictResponse { /** - * Constructs a new BatchDeletePipelineJobsRequest. + * Constructs a new StreamDirectRawPredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest); - - /** BatchDeletePipelineJobsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse); - /** BatchDeletePipelineJobsRequest names. */ - public names: string[]; + /** StreamDirectRawPredictResponse output. */ + public output: (Uint8Array|string); /** - * Creates a new BatchDeletePipelineJobsRequest instance using the specified properties. + * Creates a new StreamDirectRawPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeletePipelineJobsRequest instance + * @returns StreamDirectRawPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; /** - * Encodes the specified BatchDeletePipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. - * @param message BatchDeletePipelineJobsRequest message or plain object to encode + * Encodes the specified StreamDirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. + * @param message StreamDirectRawPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeletePipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. - * @param message BatchDeletePipelineJobsRequest message or plain object to encode + * Encodes the specified StreamDirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. + * @param message StreamDirectRawPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer. + * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeletePipelineJobsRequest + * @returns StreamDirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; /** - * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeletePipelineJobsRequest + * @returns StreamDirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; /** - * Verifies a BatchDeletePipelineJobsRequest message. + * Verifies a StreamDirectRawPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeletePipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeletePipelineJobsRequest + * @returns StreamDirectRawPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; /** - * Creates a plain object from a BatchDeletePipelineJobsRequest message. Also converts values to other types if specified. - * @param message BatchDeletePipelineJobsRequest + * Creates a plain object from a StreamDirectRawPredictResponse message. Also converts values to other types if specified. + * @param message StreamDirectRawPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeletePipelineJobsRequest to JSON. + * Converts this StreamDirectRawPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchDeletePipelineJobsRequest + * Gets the default type url for StreamDirectRawPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchDeletePipelineJobsResponse. */ - interface IBatchDeletePipelineJobsResponse { + /** Properties of a StreamingPredictRequest. */ + interface IStreamingPredictRequest { - /** BatchDeletePipelineJobsResponse pipelineJobs */ - pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); + /** StreamingPredictRequest endpoint */ + endpoint?: (string|null); + + /** StreamingPredictRequest inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + + /** StreamingPredictRequest parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); } - /** Represents a BatchDeletePipelineJobsResponse. */ - class BatchDeletePipelineJobsResponse implements IBatchDeletePipelineJobsResponse { + /** Represents a StreamingPredictRequest. */ + class StreamingPredictRequest implements IStreamingPredictRequest { /** - * Constructs a new BatchDeletePipelineJobsResponse. + * Constructs a new StreamingPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest); - /** BatchDeletePipelineJobsResponse pipelineJobs. */ - public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; + /** StreamingPredictRequest endpoint. */ + public endpoint: string; + + /** StreamingPredictRequest inputs. */ + public inputs: google.cloud.aiplatform.v1beta1.ITensor[]; + + /** StreamingPredictRequest parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); /** - * Creates a new BatchDeletePipelineJobsResponse instance using the specified properties. + * Creates a new StreamingPredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeletePipelineJobsResponse instance + * @returns StreamingPredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; /** - * Encodes the specified BatchDeletePipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. - * @param message BatchDeletePipelineJobsResponse message or plain object to encode + * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. + * @param message StreamingPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeletePipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. - * @param message BatchDeletePipelineJobsResponse message or plain object to encode + * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. + * @param message StreamingPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer. + * Decodes a StreamingPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeletePipelineJobsResponse + * @returns StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; /** - * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeletePipelineJobsResponse + * @returns StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; /** - * Verifies a BatchDeletePipelineJobsResponse message. + * Verifies a StreamingPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeletePipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeletePipelineJobsResponse + * @returns StreamingPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingPredictRequest; /** - * Creates a plain object from a BatchDeletePipelineJobsResponse message. Also converts values to other types if specified. - * @param message BatchDeletePipelineJobsResponse + * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. + * @param message StreamingPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeletePipelineJobsResponse to JSON. + * Converts this StreamingPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchDeletePipelineJobsResponse + * Gets the default type url for StreamingPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelPipelineJobRequest. */ - interface ICancelPipelineJobRequest { + /** Properties of a StreamingPredictResponse. */ + interface IStreamingPredictResponse { - /** CancelPipelineJobRequest name */ - name?: (string|null); + /** StreamingPredictResponse outputs */ + outputs?: (google.cloud.aiplatform.v1beta1.ITensor[]|null); + + /** StreamingPredictResponse parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); } - /** Represents a CancelPipelineJobRequest. */ - class CancelPipelineJobRequest implements ICancelPipelineJobRequest { + /** Represents a StreamingPredictResponse. */ + class StreamingPredictResponse implements IStreamingPredictResponse { /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new StreamingPredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse); - /** CancelPipelineJobRequest name. */ - public name: string; + /** StreamingPredictResponse outputs. */ + public outputs: google.cloud.aiplatform.v1beta1.ITensor[]; + + /** StreamingPredictResponse parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.ITensor|null); /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new StreamingPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelPipelineJobRequest instance + * @returns StreamingPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. + * @param message StreamingPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. + * @param message StreamingPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a StreamingPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelPipelineJobRequest + * @returns StreamingPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelPipelineJobRequest + * @returns StreamingPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a StreamingPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelPipelineJobRequest + * @returns StreamingPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingPredictResponse; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. - * @param message CancelPipelineJobRequest + * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. + * @param message StreamingPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this StreamingPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for StreamingPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainingPipeline. */ - interface ITrainingPipeline { - - /** TrainingPipeline name */ - name?: (string|null); - - /** TrainingPipeline displayName */ - displayName?: (string|null); - - /** TrainingPipeline inputDataConfig */ - inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition */ - trainingTaskDefinition?: (string|null); - - /** TrainingPipeline trainingTaskInputs */ - trainingTaskInputs?: (google.protobuf.IValue|null); - - /** TrainingPipeline trainingTaskMetadata */ - trainingTaskMetadata?: (google.protobuf.IValue|null); - - /** TrainingPipeline modelToUpload */ - modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); - - /** TrainingPipeline modelId */ - modelId?: (string|null); - - /** TrainingPipeline parentModel */ - parentModel?: (string|null); - - /** TrainingPipeline state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); - - /** TrainingPipeline error */ - error?: (google.rpc.IStatus|null); - - /** TrainingPipeline createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TrainingPipeline startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** TrainingPipeline endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** Properties of a StreamingRawPredictRequest. */ + interface IStreamingRawPredictRequest { - /** TrainingPipeline updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** StreamingRawPredictRequest endpoint */ + endpoint?: (string|null); - /** TrainingPipeline labels */ - labels?: ({ [k: string]: string }|null); + /** StreamingRawPredictRequest methodName */ + methodName?: (string|null); - /** TrainingPipeline encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** StreamingRawPredictRequest input */ + input?: (Uint8Array|string|null); } - /** Represents a TrainingPipeline. */ - class TrainingPipeline implements ITrainingPipeline { + /** Represents a StreamingRawPredictRequest. */ + class StreamingRawPredictRequest implements IStreamingRawPredictRequest { /** - * Constructs a new TrainingPipeline. + * Constructs a new StreamingRawPredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest); - /** TrainingPipeline name. */ - public name: string; + /** StreamingRawPredictRequest endpoint. */ + public endpoint: string; - /** TrainingPipeline displayName. */ - public displayName: string; + /** StreamingRawPredictRequest methodName. */ + public methodName: string; - /** TrainingPipeline inputDataConfig. */ - public inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); + /** StreamingRawPredictRequest input. */ + public input: (Uint8Array|string); - /** TrainingPipeline trainingTaskDefinition. */ - public trainingTaskDefinition: string; + /** + * Creates a new StreamingRawPredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamingRawPredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; - /** TrainingPipeline trainingTaskInputs. */ - public trainingTaskInputs?: (google.protobuf.IValue|null); + /** + * Encodes the specified StreamingRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. + * @param message StreamingRawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** TrainingPipeline trainingTaskMetadata. */ - public trainingTaskMetadata?: (google.protobuf.IValue|null); + /** + * Encodes the specified StreamingRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. + * @param message StreamingRawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** TrainingPipeline modelToUpload. */ - public modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** + * Decodes a StreamingRawPredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamingRawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; - /** TrainingPipeline modelId. */ - public modelId: string; + /** + * Decodes a StreamingRawPredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamingRawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; - /** TrainingPipeline parentModel. */ - public parentModel: string; + /** + * Verifies a StreamingRawPredictRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamingRawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamingRawPredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; - /** TrainingPipeline state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); + /** + * Creates a plain object from a StreamingRawPredictRequest message. Also converts values to other types if specified. + * @param message StreamingRawPredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrainingPipeline error. */ - public error?: (google.rpc.IStatus|null); + /** + * Converts this StreamingRawPredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TrainingPipeline createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for StreamingRawPredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TrainingPipeline startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a StreamingRawPredictResponse. */ + interface IStreamingRawPredictResponse { - /** TrainingPipeline endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** StreamingRawPredictResponse output */ + output?: (Uint8Array|string|null); + } - /** TrainingPipeline updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Represents a StreamingRawPredictResponse. */ + class StreamingRawPredictResponse implements IStreamingRawPredictResponse { - /** TrainingPipeline labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new StreamingRawPredictResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse); - /** TrainingPipeline encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** StreamingRawPredictResponse output. */ + public output: (Uint8Array|string); /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new StreamingRawPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingPipeline instance + * @returns StreamingRawPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline): google.cloud.aiplatform.v1beta1.TrainingPipeline; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline message or plain object to encode + * Encodes the specified StreamingRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. + * @param message StreamingRawPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline message or plain object to encode + * Encodes the specified StreamingRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. + * @param message StreamingRawPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a StreamingRawPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingPipeline + * @returns StreamingRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingPipeline; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a StreamingRawPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingPipeline + * @returns StreamingRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingPipeline; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; /** - * Verifies a TrainingPipeline message. + * Verifies a StreamingRawPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRawPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingPipeline + * @returns StreamingRawPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingPipeline; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. - * @param message TrainingPipeline + * Creates a plain object from a StreamingRawPredictResponse message. Also converts values to other types if specified. + * @param message StreamingRawPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingPipeline to JSON. + * Converts this StreamingRawPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingPipeline + * Gets the default type url for StreamingRawPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InputDataConfig. */ - interface IInputDataConfig { - - /** InputDataConfig fractionSplit */ - fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - - /** InputDataConfig filterSplit */ - filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - - /** InputDataConfig predefinedSplit */ - predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); - - /** InputDataConfig timestampSplit */ - timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); - - /** InputDataConfig stratifiedSplit */ - stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); - - /** InputDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Properties of an ExplainRequest. */ + interface IExplainRequest { - /** InputDataConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ExplainRequest endpoint */ + endpoint?: (string|null); - /** InputDataConfig datasetId */ - datasetId?: (string|null); + /** ExplainRequest instances */ + instances?: (google.protobuf.IValue[]|null); - /** InputDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** ExplainRequest parameters */ + parameters?: (google.protobuf.IValue|null); - /** InputDataConfig annotationSchemaUri */ - annotationSchemaUri?: (string|null); + /** ExplainRequest explanationSpecOverride */ + explanationSpecOverride?: (google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null); - /** InputDataConfig savedQueryId */ - savedQueryId?: (string|null); + /** ExplainRequest concurrentExplanationSpecOverride */ + concurrentExplanationSpecOverride?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride }|null); - /** InputDataConfig persistMlUseAssignment */ - persistMlUseAssignment?: (boolean|null); + /** ExplainRequest deployedModelId */ + deployedModelId?: (string|null); } - /** Represents an InputDataConfig. */ - class InputDataConfig implements IInputDataConfig { + /** Represents an ExplainRequest. */ + class ExplainRequest implements IExplainRequest { /** - * Constructs a new InputDataConfig. + * Constructs a new ExplainRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig); - - /** InputDataConfig fractionSplit. */ - public fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - - /** InputDataConfig filterSplit. */ - public filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - - /** InputDataConfig predefinedSplit. */ - public predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); - - /** InputDataConfig timestampSplit. */ - public timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); - - /** InputDataConfig stratifiedSplit. */ - public stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); - - /** InputDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** InputDataConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** InputDataConfig datasetId. */ - public datasetId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplainRequest); - /** InputDataConfig annotationsFilter. */ - public annotationsFilter: string; + /** ExplainRequest endpoint. */ + public endpoint: string; - /** InputDataConfig annotationSchemaUri. */ - public annotationSchemaUri: string; + /** ExplainRequest instances. */ + public instances: google.protobuf.IValue[]; - /** InputDataConfig savedQueryId. */ - public savedQueryId: string; + /** ExplainRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); - /** InputDataConfig persistMlUseAssignment. */ - public persistMlUseAssignment: boolean; + /** ExplainRequest explanationSpecOverride. */ + public explanationSpecOverride?: (google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null); - /** InputDataConfig split. */ - public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); + /** ExplainRequest concurrentExplanationSpecOverride. */ + public concurrentExplanationSpecOverride: { [k: string]: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride }; - /** InputDataConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + /** ExplainRequest deployedModelId. */ + public deployedModelId: string; /** - * Creates a new InputDataConfig instance using the specified properties. + * Creates a new ExplainRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InputDataConfig instance + * @returns ExplainRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig): google.cloud.aiplatform.v1beta1.InputDataConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplainRequest): google.cloud.aiplatform.v1beta1.ExplainRequest; /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig message or plain object to encode + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig message or plain object to encode + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputDataConfig message from the specified reader or buffer. + * Decodes an ExplainRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InputDataConfig + * @returns ExplainRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.InputDataConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplainRequest; /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InputDataConfig + * @returns ExplainRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.InputDataConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplainRequest; /** - * Verifies an InputDataConfig message. + * Verifies an ExplainRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InputDataConfig + * @returns ExplainRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.InputDataConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplainRequest; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. - * @param message InputDataConfig + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @param message ExplainRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputDataConfig to JSON. + * Converts this ExplainRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InputDataConfig + * Gets the default type url for ExplainRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FractionSplit. */ - interface IFractionSplit { + /** Properties of an ExplainResponse. */ + interface IExplainResponse { - /** FractionSplit trainingFraction */ - trainingFraction?: (number|null); + /** ExplainResponse explanations */ + explanations?: (google.cloud.aiplatform.v1beta1.IExplanation[]|null); - /** FractionSplit validationFraction */ - validationFraction?: (number|null); + /** ExplainResponse concurrentExplanations */ + concurrentExplanations?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation }|null); - /** FractionSplit testFraction */ - testFraction?: (number|null); + /** ExplainResponse deployedModelId */ + deployedModelId?: (string|null); + + /** ExplainResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); } - /** Represents a FractionSplit. */ - class FractionSplit implements IFractionSplit { + /** Represents an ExplainResponse. */ + class ExplainResponse implements IExplainResponse { /** - * Constructs a new FractionSplit. + * Constructs a new ExplainResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplainResponse); - /** FractionSplit trainingFraction. */ - public trainingFraction: number; + /** ExplainResponse explanations. */ + public explanations: google.cloud.aiplatform.v1beta1.IExplanation[]; - /** FractionSplit validationFraction. */ - public validationFraction: number; + /** ExplainResponse concurrentExplanations. */ + public concurrentExplanations: { [k: string]: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation }; - /** FractionSplit testFraction. */ - public testFraction: number; + /** ExplainResponse deployedModelId. */ + public deployedModelId: string; + + /** ExplainResponse predictions. */ + public predictions: google.protobuf.IValue[]; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new ExplainResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FractionSplit instance + * @returns ExplainResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit): google.cloud.aiplatform.v1beta1.FractionSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplainResponse): google.cloud.aiplatform.v1beta1.ExplainResponse; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. - * @param message FractionSplit message or plain object to encode + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. - * @param message FractionSplit message or plain object to encode + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes an ExplainResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FractionSplit + * @returns ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FractionSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplainResponse; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FractionSplit + * @returns ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FractionSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplainResponse; /** - * Verifies a FractionSplit message. + * Verifies an ExplainResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FractionSplit + * @returns ExplainResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FractionSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplainResponse; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. - * @param message FractionSplit + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * @param message ExplainResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FractionSplit to JSON. + * Converts this ExplainResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for ExplainResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilterSplit. */ - interface IFilterSplit { + namespace ExplainResponse { - /** FilterSplit trainingFilter */ - trainingFilter?: (string|null); + /** Properties of a ConcurrentExplanation. */ + interface IConcurrentExplanation { - /** FilterSplit validationFilter */ - validationFilter?: (string|null); + /** ConcurrentExplanation explanations */ + explanations?: (google.cloud.aiplatform.v1beta1.IExplanation[]|null); + } - /** FilterSplit testFilter */ - testFilter?: (string|null); + /** Represents a ConcurrentExplanation. */ + class ConcurrentExplanation implements IConcurrentExplanation { + + /** + * Constructs a new ConcurrentExplanation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation); + + /** ConcurrentExplanation explanations. */ + public explanations: google.cloud.aiplatform.v1beta1.IExplanation[]; + + /** + * Creates a new ConcurrentExplanation instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcurrentExplanation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + + /** + * Encodes the specified ConcurrentExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. + * @param message ConcurrentExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcurrentExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. + * @param message ConcurrentExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcurrentExplanation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcurrentExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + + /** + * Decodes a ConcurrentExplanation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcurrentExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + + /** + * Verifies a ConcurrentExplanation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcurrentExplanation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcurrentExplanation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation; + + /** + * Creates a plain object from a ConcurrentExplanation message. Also converts values to other types if specified. + * @param message ConcurrentExplanation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcurrentExplanation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcurrentExplanation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a FilterSplit. */ - class FilterSplit implements IFilterSplit { + /** Properties of a CountTokensRequest. */ + interface ICountTokensRequest { + + /** CountTokensRequest endpoint */ + endpoint?: (string|null); + + /** CountTokensRequest model */ + model?: (string|null); + + /** CountTokensRequest instances */ + instances?: (google.protobuf.IValue[]|null); + + /** CountTokensRequest contents */ + contents?: (google.cloud.aiplatform.v1beta1.IContent[]|null); + } + + /** Represents a CountTokensRequest. */ + class CountTokensRequest implements ICountTokensRequest { /** - * Constructs a new FilterSplit. + * Constructs a new CountTokensRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICountTokensRequest); - /** FilterSplit trainingFilter. */ - public trainingFilter: string; + /** CountTokensRequest endpoint. */ + public endpoint: string; - /** FilterSplit validationFilter. */ - public validationFilter: string; + /** CountTokensRequest model. */ + public model: string; - /** FilterSplit testFilter. */ - public testFilter: string; + /** CountTokensRequest instances. */ + public instances: google.protobuf.IValue[]; + + /** CountTokensRequest contents. */ + public contents: google.cloud.aiplatform.v1beta1.IContent[]; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new CountTokensRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FilterSplit instance + * @returns CountTokensRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit): google.cloud.aiplatform.v1beta1.FilterSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICountTokensRequest): google.cloud.aiplatform.v1beta1.CountTokensRequest; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. - * @param message FilterSplit message or plain object to encode + * Encodes the specified CountTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. + * @param message CountTokensRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICountTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. - * @param message FilterSplit message or plain object to encode + * Encodes the specified CountTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. + * @param message CountTokensRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICountTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a CountTokensRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilterSplit + * @returns CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FilterSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CountTokensRequest; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a CountTokensRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilterSplit + * @returns CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FilterSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CountTokensRequest; /** - * Verifies a FilterSplit message. + * Verifies a CountTokensRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilterSplit + * @returns CountTokensRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FilterSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CountTokensRequest; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. - * @param message FilterSplit + * Creates a plain object from a CountTokensRequest message. Also converts values to other types if specified. + * @param message CountTokensRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CountTokensRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilterSplit to JSON. + * Converts this CountTokensRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for CountTokensRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PredefinedSplit. */ - interface IPredefinedSplit { + /** Properties of a CountTokensResponse. */ + interface ICountTokensResponse { - /** PredefinedSplit key */ - key?: (string|null); + /** CountTokensResponse totalTokens */ + totalTokens?: (number|null); + + /** CountTokensResponse totalBillableCharacters */ + totalBillableCharacters?: (number|null); } - /** Represents a PredefinedSplit. */ - class PredefinedSplit implements IPredefinedSplit { + /** Represents a CountTokensResponse. */ + class CountTokensResponse implements ICountTokensResponse { /** - * Constructs a new PredefinedSplit. + * Constructs a new CountTokensResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICountTokensResponse); - /** PredefinedSplit key. */ - public key: string; + /** CountTokensResponse totalTokens. */ + public totalTokens: number; + + /** CountTokensResponse totalBillableCharacters. */ + public totalBillableCharacters: number; /** - * Creates a new PredefinedSplit instance using the specified properties. + * Creates a new CountTokensResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PredefinedSplit instance + * @returns CountTokensResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit): google.cloud.aiplatform.v1beta1.PredefinedSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICountTokensResponse): google.cloud.aiplatform.v1beta1.CountTokensResponse; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit message or plain object to encode + * Encodes the specified CountTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. + * @param message CountTokensResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICountTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit message or plain object to encode + * Encodes the specified CountTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. + * @param message CountTokensResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICountTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a CountTokensResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredefinedSplit + * @returns CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredefinedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CountTokensResponse; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a CountTokensResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredefinedSplit + * @returns CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredefinedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CountTokensResponse; /** - * Verifies a PredefinedSplit message. + * Verifies a CountTokensResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredefinedSplit + * @returns CountTokensResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredefinedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CountTokensResponse; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. - * @param message PredefinedSplit + * Creates a plain object from a CountTokensResponse message. Also converts values to other types if specified. + * @param message CountTokensResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CountTokensResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredefinedSplit to JSON. + * Converts this CountTokensResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for CountTokensResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TimestampSplit. */ - interface ITimestampSplit { + /** Properties of a GenerateContentRequest. */ + interface IGenerateContentRequest { - /** TimestampSplit trainingFraction */ - trainingFraction?: (number|null); + /** GenerateContentRequest model */ + model?: (string|null); - /** TimestampSplit validationFraction */ - validationFraction?: (number|null); + /** GenerateContentRequest contents */ + contents?: (google.cloud.aiplatform.v1beta1.IContent[]|null); - /** TimestampSplit testFraction */ - testFraction?: (number|null); + /** GenerateContentRequest tools */ + tools?: (google.cloud.aiplatform.v1beta1.ITool[]|null); - /** TimestampSplit key */ - key?: (string|null); + /** GenerateContentRequest safetySettings */ + safetySettings?: (google.cloud.aiplatform.v1beta1.ISafetySetting[]|null); + + /** GenerateContentRequest generationConfig */ + generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); } - /** Represents a TimestampSplit. */ - class TimestampSplit implements ITimestampSplit { + /** Represents a GenerateContentRequest. */ + class GenerateContentRequest implements IGenerateContentRequest { /** - * Constructs a new TimestampSplit. + * Constructs a new GenerateContentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentRequest); - /** TimestampSplit trainingFraction. */ - public trainingFraction: number; + /** GenerateContentRequest model. */ + public model: string; - /** TimestampSplit validationFraction. */ - public validationFraction: number; + /** GenerateContentRequest contents. */ + public contents: google.cloud.aiplatform.v1beta1.IContent[]; - /** TimestampSplit testFraction. */ - public testFraction: number; + /** GenerateContentRequest tools. */ + public tools: google.cloud.aiplatform.v1beta1.ITool[]; - /** TimestampSplit key. */ - public key: string; + /** GenerateContentRequest safetySettings. */ + public safetySettings: google.cloud.aiplatform.v1beta1.ISafetySetting[]; + + /** GenerateContentRequest generationConfig. */ + public generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); /** - * Creates a new TimestampSplit instance using the specified properties. + * Creates a new GenerateContentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TimestampSplit instance + * @returns GenerateContentRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit): google.cloud.aiplatform.v1beta1.TimestampSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentRequest): google.cloud.aiplatform.v1beta1.GenerateContentRequest; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode + * Encodes the specified GenerateContentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. + * @param message GenerateContentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode + * Encodes the specified GenerateContentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. + * @param message GenerateContentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenerateContentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * Decodes a GenerateContentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimestampSplit + * @returns GenerateContentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TimestampSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentRequest; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a GenerateContentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimestampSplit + * @returns GenerateContentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TimestampSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentRequest; /** - * Verifies a TimestampSplit message. + * Verifies a GenerateContentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateContentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimestampSplit + * @returns GenerateContentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TimestampSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentRequest; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. - * @param message TimestampSplit + * Creates a plain object from a GenerateContentRequest message. Also converts values to other types if specified. + * @param message GenerateContentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimestampSplit to JSON. + * Converts this GenerateContentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TimestampSplit + * Gets the default type url for GenerateContentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StratifiedSplit. */ - interface IStratifiedSplit { - - /** StratifiedSplit trainingFraction */ - trainingFraction?: (number|null); + /** Properties of a GenerateContentResponse. */ + interface IGenerateContentResponse { - /** StratifiedSplit validationFraction */ - validationFraction?: (number|null); + /** GenerateContentResponse candidates */ + candidates?: (google.cloud.aiplatform.v1beta1.ICandidate[]|null); - /** StratifiedSplit testFraction */ - testFraction?: (number|null); + /** GenerateContentResponse promptFeedback */ + promptFeedback?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null); - /** StratifiedSplit key */ - key?: (string|null); + /** GenerateContentResponse usageMetadata */ + usageMetadata?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null); } - /** Represents a StratifiedSplit. */ - class StratifiedSplit implements IStratifiedSplit { + /** Represents a GenerateContentResponse. */ + class GenerateContentResponse implements IGenerateContentResponse { /** - * Constructs a new StratifiedSplit. + * Constructs a new GenerateContentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit); - - /** StratifiedSplit trainingFraction. */ - public trainingFraction: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentResponse); - /** StratifiedSplit validationFraction. */ - public validationFraction: number; + /** GenerateContentResponse candidates. */ + public candidates: google.cloud.aiplatform.v1beta1.ICandidate[]; - /** StratifiedSplit testFraction. */ - public testFraction: number; + /** GenerateContentResponse promptFeedback. */ + public promptFeedback?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null); - /** StratifiedSplit key. */ - public key: string; + /** GenerateContentResponse usageMetadata. */ + public usageMetadata?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null); /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new GenerateContentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StratifiedSplit instance + * @returns GenerateContentResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit): google.cloud.aiplatform.v1beta1.StratifiedSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGenerateContentResponse): google.cloud.aiplatform.v1beta1.GenerateContentResponse; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit message or plain object to encode + * Encodes the specified GenerateContentResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. + * @param message GenerateContentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGenerateContentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit message or plain object to encode + * Encodes the specified GenerateContentResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. + * @param message GenerateContentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenerateContentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes a GenerateContentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StratifiedSplit + * @returns GenerateContentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StratifiedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentResponse; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes a GenerateContentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StratifiedSplit + * @returns GenerateContentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StratifiedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentResponse; /** - * Verifies a StratifiedSplit message. + * Verifies a GenerateContentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateContentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StratifiedSplit + * @returns GenerateContentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StratifiedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentResponse; /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. - * @param message StratifiedSplit + * Creates a plain object from a GenerateContentResponse message. Also converts values to other types if specified. + * @param message GenerateContentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StratifiedSplit to JSON. + * Converts this GenerateContentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for GenerateContentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace GenerateContentResponse { + + /** Properties of a PromptFeedback. */ + interface IPromptFeedback { + + /** PromptFeedback blockReason */ + blockReason?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|keyof typeof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|null); + + /** PromptFeedback safetyRatings */ + safetyRatings?: (google.cloud.aiplatform.v1beta1.ISafetyRating[]|null); + + /** PromptFeedback blockReasonMessage */ + blockReasonMessage?: (string|null); + } + + /** Represents a PromptFeedback. */ + class PromptFeedback implements IPromptFeedback { + + /** + * Constructs a new PromptFeedback. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback); + + /** PromptFeedback blockReason. */ + public blockReason: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|keyof typeof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason); + + /** PromptFeedback safetyRatings. */ + public safetyRatings: google.cloud.aiplatform.v1beta1.ISafetyRating[]; + + /** PromptFeedback blockReasonMessage. */ + public blockReasonMessage: string; + + /** + * Creates a new PromptFeedback instance using the specified properties. + * @param [properties] Properties to set + * @returns PromptFeedback instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; + + /** + * Encodes the specified PromptFeedback message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. + * @param message PromptFeedback message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PromptFeedback message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. + * @param message PromptFeedback message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PromptFeedback message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PromptFeedback + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; + + /** + * Decodes a PromptFeedback message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PromptFeedback + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; + + /** + * Verifies a PromptFeedback message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PromptFeedback message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PromptFeedback + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback; + + /** + * Creates a plain object from a PromptFeedback message. Also converts values to other types if specified. + * @param message PromptFeedback + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PromptFeedback to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PromptFeedback + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PromptFeedback { + + /** BlockedReason enum. */ + enum BlockedReason { + BLOCKED_REASON_UNSPECIFIED = 0, + SAFETY = 1, + OTHER = 2 + } + } + + /** Properties of a UsageMetadata. */ + interface IUsageMetadata { + + /** UsageMetadata promptTokenCount */ + promptTokenCount?: (number|null); + + /** UsageMetadata candidatesTokenCount */ + candidatesTokenCount?: (number|null); + + /** UsageMetadata totalTokenCount */ + totalTokenCount?: (number|null); + } + + /** Represents a UsageMetadata. */ + class UsageMetadata implements IUsageMetadata { + + /** + * Constructs a new UsageMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata); + + /** UsageMetadata promptTokenCount. */ + public promptTokenCount: number; + + /** UsageMetadata candidatesTokenCount. */ + public candidatesTokenCount: number; + + /** UsageMetadata totalTokenCount. */ + public totalTokenCount: number; + + /** + * Creates a new UsageMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UsageMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; + + /** + * Encodes the specified UsageMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. + * @param message UsageMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UsageMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. + * @param message UsageMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UsageMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UsageMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; + + /** + * Decodes a UsageMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UsageMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; + + /** + * Verifies a UsageMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UsageMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UsageMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata; + + /** + * Creates a plain object from a UsageMetadata message. Also converts values to other types if specified. + * @param message UsageMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UsageMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UsageMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a Schedule. */ interface ISchedule { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 948f456c98c7..cf9614af3680 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -20103,6 +20103,7 @@ case 4: case 5: case 6: + case 7: break; } if (message.copy != null && message.hasOwnProperty("copy")) @@ -20158,6 +20159,10 @@ case 6: message.sourceType = 6; break; + case "MARKETPLACE": + case 7: + message.sourceType = 7; + break; } if (object.copy != null) message.copy = Boolean(object.copy); @@ -20225,6 +20230,7 @@ * @property {number} MODEL_GARDEN=4 MODEL_GARDEN value * @property {number} GENIE=5 GENIE value * @property {number} CUSTOM_TEXT_EMBEDDING=6 CUSTOM_TEXT_EMBEDDING value + * @property {number} MARKETPLACE=7 MARKETPLACE value */ ModelSourceInfo.ModelSourceType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -20235,6 +20241,7 @@ values[valuesById[4] = "MODEL_GARDEN"] = 4; values[valuesById[5] = "GENIE"] = 5; values[valuesById[6] = "CUSTOM_TEXT_EMBEDDING"] = 6; + values[valuesById[7] = "MARKETPLACE"] = 7; return values; })(); @@ -28861,7 +28868,6 @@ * @property {google.protobuf.IDuration|null} [timeout] Scheduling timeout * @property {boolean|null} [restartJobOnWorkerRestart] Scheduling restartJobOnWorkerRestart * @property {boolean|null} [disableRetries] Scheduling disableRetries - * @property {google.protobuf.IDuration|null} [maxWaitDuration] Scheduling maxWaitDuration */ /** @@ -28903,14 +28909,6 @@ */ Scheduling.prototype.disableRetries = false; - /** - * Scheduling maxWaitDuration. - * @member {google.protobuf.IDuration|null|undefined} maxWaitDuration - * @memberof google.cloud.aiplatform.v1.Scheduling - * @instance - */ - Scheduling.prototype.maxWaitDuration = null; - /** * Creates a new Scheduling instance using the specified properties. * @function create @@ -28941,8 +28939,6 @@ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restartJobOnWorkerRestart); if (message.disableRetries != null && Object.hasOwnProperty.call(message, "disableRetries")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disableRetries); - if (message.maxWaitDuration != null && Object.hasOwnProperty.call(message, "maxWaitDuration")) - $root.google.protobuf.Duration.encode(message.maxWaitDuration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -28989,10 +28985,6 @@ message.disableRetries = reader.bool(); break; } - case 6: { - message.maxWaitDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -29039,11 +29031,6 @@ if (message.disableRetries != null && message.hasOwnProperty("disableRetries")) if (typeof message.disableRetries !== "boolean") return "disableRetries: boolean expected"; - if (message.maxWaitDuration != null && message.hasOwnProperty("maxWaitDuration")) { - var error = $root.google.protobuf.Duration.verify(message.maxWaitDuration); - if (error) - return "maxWaitDuration." + error; - } return null; }; @@ -29068,11 +29055,6 @@ message.restartJobOnWorkerRestart = Boolean(object.restartJobOnWorkerRestart); if (object.disableRetries != null) message.disableRetries = Boolean(object.disableRetries); - if (object.maxWaitDuration != null) { - if (typeof object.maxWaitDuration !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Scheduling.maxWaitDuration: object expected"); - message.maxWaitDuration = $root.google.protobuf.Duration.fromObject(object.maxWaitDuration); - } return message; }; @@ -29093,7 +29075,6 @@ object.timeout = null; object.restartJobOnWorkerRestart = false; object.disableRetries = false; - object.maxWaitDuration = null; } if (message.timeout != null && message.hasOwnProperty("timeout")) object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); @@ -29101,8 +29082,6 @@ object.restartJobOnWorkerRestart = message.restartJobOnWorkerRestart; if (message.disableRetries != null && message.hasOwnProperty("disableRetries")) object.disableRetries = message.disableRetries; - if (message.maxWaitDuration != null && message.hasOwnProperty("maxWaitDuration")) - object.maxWaitDuration = $root.google.protobuf.Duration.toObject(message.maxWaitDuration, options); return object; }; @@ -103550,6 +103529,7 @@ * @interface IIndexPrivateEndpoints * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + * @property {Array.|null} [pscAutomatedEndpoints] IndexPrivateEndpoints pscAutomatedEndpoints */ /** @@ -103561,6 +103541,7 @@ * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints=} [properties] Properties to set */ function IndexPrivateEndpoints(properties) { + this.pscAutomatedEndpoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103583,6 +103564,14 @@ */ IndexPrivateEndpoints.prototype.serviceAttachment = ""; + /** + * IndexPrivateEndpoints pscAutomatedEndpoints. + * @member {Array.} pscAutomatedEndpoints + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.pscAutomatedEndpoints = $util.emptyArray; + /** * Creates a new IndexPrivateEndpoints instance using the specified properties. * @function create @@ -103611,6 +103600,9 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + if (message.pscAutomatedEndpoints != null && message.pscAutomatedEndpoints.length) + for (var i = 0; i < message.pscAutomatedEndpoints.length; ++i) + $root.google.cloud.aiplatform.v1.PscAutomatedEndpoints.encode(message.pscAutomatedEndpoints[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -103653,6 +103645,12 @@ message.serviceAttachment = reader.string(); break; } + case 3: { + if (!(message.pscAutomatedEndpoints && message.pscAutomatedEndpoints.length)) + message.pscAutomatedEndpoints = []; + message.pscAutomatedEndpoints.push($root.google.cloud.aiplatform.v1.PscAutomatedEndpoints.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -103694,6 +103692,15 @@ if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) if (!$util.isString(message.serviceAttachment)) return "serviceAttachment: string expected"; + if (message.pscAutomatedEndpoints != null && message.hasOwnProperty("pscAutomatedEndpoints")) { + if (!Array.isArray(message.pscAutomatedEndpoints)) + return "pscAutomatedEndpoints: array expected"; + for (var i = 0; i < message.pscAutomatedEndpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PscAutomatedEndpoints.verify(message.pscAutomatedEndpoints[i]); + if (error) + return "pscAutomatedEndpoints." + error; + } + } return null; }; @@ -103713,6 +103720,16 @@ message.matchGrpcAddress = String(object.matchGrpcAddress); if (object.serviceAttachment != null) message.serviceAttachment = String(object.serviceAttachment); + if (object.pscAutomatedEndpoints) { + if (!Array.isArray(object.pscAutomatedEndpoints)) + throw TypeError(".google.cloud.aiplatform.v1.IndexPrivateEndpoints.pscAutomatedEndpoints: array expected"); + message.pscAutomatedEndpoints = []; + for (var i = 0; i < object.pscAutomatedEndpoints.length; ++i) { + if (typeof object.pscAutomatedEndpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexPrivateEndpoints.pscAutomatedEndpoints: object expected"); + message.pscAutomatedEndpoints[i] = $root.google.cloud.aiplatform.v1.PscAutomatedEndpoints.fromObject(object.pscAutomatedEndpoints[i]); + } + } return message; }; @@ -103729,6 +103746,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pscAutomatedEndpoints = []; if (options.defaults) { object.matchGrpcAddress = ""; object.serviceAttachment = ""; @@ -103737,6 +103756,11 @@ object.matchGrpcAddress = message.matchGrpcAddress; if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) object.serviceAttachment = message.serviceAttachment; + if (message.pscAutomatedEndpoints && message.pscAutomatedEndpoints.length) { + object.pscAutomatedEndpoints = []; + for (var j = 0; j < message.pscAutomatedEndpoints.length; ++j) + object.pscAutomatedEndpoints[j] = $root.google.cloud.aiplatform.v1.PscAutomatedEndpoints.toObject(message.pscAutomatedEndpoints[j], options); + } return object; }; @@ -104012,6 +104036,256 @@ return PrivateServiceConnectConfig; })(); + v1.PscAutomatedEndpoints = (function() { + + /** + * Properties of a PscAutomatedEndpoints. + * @memberof google.cloud.aiplatform.v1 + * @interface IPscAutomatedEndpoints + * @property {string|null} [projectId] PscAutomatedEndpoints projectId + * @property {string|null} [network] PscAutomatedEndpoints network + * @property {string|null} [matchAddress] PscAutomatedEndpoints matchAddress + */ + + /** + * Constructs a new PscAutomatedEndpoints. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PscAutomatedEndpoints. + * @implements IPscAutomatedEndpoints + * @constructor + * @param {google.cloud.aiplatform.v1.IPscAutomatedEndpoints=} [properties] Properties to set + */ + function PscAutomatedEndpoints(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PscAutomatedEndpoints projectId. + * @member {string} projectId + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @instance + */ + PscAutomatedEndpoints.prototype.projectId = ""; + + /** + * PscAutomatedEndpoints network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @instance + */ + PscAutomatedEndpoints.prototype.network = ""; + + /** + * PscAutomatedEndpoints matchAddress. + * @member {string} matchAddress + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @instance + */ + PscAutomatedEndpoints.prototype.matchAddress = ""; + + /** + * Creates a new PscAutomatedEndpoints instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IPscAutomatedEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PscAutomatedEndpoints} PscAutomatedEndpoints instance + */ + PscAutomatedEndpoints.create = function create(properties) { + return new PscAutomatedEndpoints(properties); + }; + + /** + * Encodes the specified PscAutomatedEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1.PscAutomatedEndpoints.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IPscAutomatedEndpoints} message PscAutomatedEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PscAutomatedEndpoints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); + if (message.matchAddress != null && Object.hasOwnProperty.call(message, "matchAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.matchAddress); + return writer; + }; + + /** + * Encodes the specified PscAutomatedEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PscAutomatedEndpoints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IPscAutomatedEndpoints} message PscAutomatedEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PscAutomatedEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @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.PscAutomatedEndpoints} PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PscAutomatedEndpoints.decode = function decode(reader, 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.PscAutomatedEndpoints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.network = reader.string(); + break; + } + case 3: { + message.matchAddress = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PscAutomatedEndpoints} PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PscAutomatedEndpoints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PscAutomatedEndpoints message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PscAutomatedEndpoints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.matchAddress != null && message.hasOwnProperty("matchAddress")) + if (!$util.isString(message.matchAddress)) + return "matchAddress: string expected"; + return null; + }; + + /** + * Creates a PscAutomatedEndpoints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PscAutomatedEndpoints} PscAutomatedEndpoints + */ + PscAutomatedEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PscAutomatedEndpoints) + return object; + var message = new $root.google.cloud.aiplatform.v1.PscAutomatedEndpoints(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.network != null) + message.network = String(object.network); + if (object.matchAddress != null) + message.matchAddress = String(object.matchAddress); + return message; + }; + + /** + * Creates a plain object from a PscAutomatedEndpoints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1.PscAutomatedEndpoints} message PscAutomatedEndpoints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PscAutomatedEndpoints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.network = ""; + object.matchAddress = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.matchAddress != null && message.hasOwnProperty("matchAddress")) + object.matchAddress = message.matchAddress; + return object; + }; + + /** + * Converts this PscAutomatedEndpoints to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @instance + * @returns {Object.} JSON object + */ + PscAutomatedEndpoints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PscAutomatedEndpoints + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PscAutomatedEndpoints + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PscAutomatedEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PscAutomatedEndpoints"; + }; + + return PscAutomatedEndpoints; + })(); + v1.IndexEndpointService = (function() { /** @@ -110069,6 +110343,7 @@ * @interface IUpsertDatapointsRequest * @property {string|null} [index] UpsertDatapointsRequest index * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + * @property {google.protobuf.IFieldMask|null} [updateMask] UpsertDatapointsRequest updateMask */ /** @@ -110103,6 +110378,14 @@ */ UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + /** + * UpsertDatapointsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.updateMask = null; + /** * Creates a new UpsertDatapointsRequest instance using the specified properties. * @function create @@ -110132,6 +110415,8 @@ 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(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -110176,6 +110461,10 @@ message.datapoints.push($root.google.cloud.aiplatform.v1.IndexDatapoint.decode(reader, reader.uint32())); break; } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -110223,6 +110512,11 @@ return "datapoints." + error; } } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; @@ -110250,6 +110544,11 @@ message.datapoints[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.fromObject(object.datapoints[i]); } } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; @@ -110268,8 +110567,10 @@ var object = {}; if (options.arrays || options.defaults) object.datapoints = []; - if (options.defaults) + if (options.defaults) { object.index = ""; + object.updateMask = null; + } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; if (message.datapoints && message.datapoints.length) { @@ -110277,6 +110578,8 @@ for (var j = 0; j < message.datapoints.length; ++j) object.datapoints[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.toObject(message.datapoints[j], options); } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; @@ -111364,6 +111667,12 @@ case 5: case 6: case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: break; } if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) @@ -111432,6 +111741,30 @@ case 7: message.errorType = 7; break; + case "PARSING_ERROR": + case 8: + message.errorType = 8; + break; + case "DUPLICATE_NAMESPACE": + case 9: + message.errorType = 9; + break; + case "OP_IN_DATAPOINT": + case 10: + message.errorType = 10; + break; + case "MULTIPLE_VALUES": + case 11: + message.errorType = 11; + break; + case "INVALID_NUMERIC_VALUE": + case 12: + message.errorType = 12; + break; + case "INVALID_ENCODING": + case 13: + message.errorType = 13; + break; } if (object.errorMessage != null) message.errorMessage = String(object.errorMessage); @@ -111515,6 +111848,12 @@ * @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 + * @property {number} PARSING_ERROR=8 PARSING_ERROR value + * @property {number} DUPLICATE_NAMESPACE=9 DUPLICATE_NAMESPACE value + * @property {number} OP_IN_DATAPOINT=10 OP_IN_DATAPOINT value + * @property {number} MULTIPLE_VALUES=11 MULTIPLE_VALUES value + * @property {number} INVALID_NUMERIC_VALUE=12 INVALID_NUMERIC_VALUE value + * @property {number} INVALID_ENCODING=13 INVALID_ENCODING value */ RecordError.RecordErrorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -111526,6 +111865,12 @@ values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + values[valuesById[8] = "PARSING_ERROR"] = 8; + values[valuesById[9] = "DUPLICATE_NAMESPACE"] = 9; + values[valuesById[10] = "OP_IN_DATAPOINT"] = 10; + values[valuesById[11] = "MULTIPLE_VALUES"] = 11; + values[valuesById[12] = "INVALID_NUMERIC_VALUE"] = 12; + values[valuesById[13] = "INVALID_ENCODING"] = 13; return values; })(); @@ -124898,6 +125243,7 @@ * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + * @property {string|null} [requestResponseLoggingSchemaVersion] ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion */ /** @@ -124939,6 +125285,14 @@ */ ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + /** + * ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion. + * @member {string} requestResponseLoggingSchemaVersion + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.requestResponseLoggingSchemaVersion = ""; + /** * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @function create @@ -124969,6 +125323,8 @@ 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.requestResponseLoggingSchemaVersion != null && Object.hasOwnProperty.call(message, "requestResponseLoggingSchemaVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestResponseLoggingSchemaVersion); return writer; }; @@ -125015,6 +125371,10 @@ message.bigqueryTablePath = reader.string(); break; } + case 4: { + message.requestResponseLoggingSchemaVersion = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -125071,6 +125431,9 @@ if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) if (!$util.isString(message.bigqueryTablePath)) return "bigqueryTablePath: string expected"; + if (message.requestResponseLoggingSchemaVersion != null && message.hasOwnProperty("requestResponseLoggingSchemaVersion")) + if (!$util.isString(message.requestResponseLoggingSchemaVersion)) + return "requestResponseLoggingSchemaVersion: string expected"; return null; }; @@ -125128,6 +125491,8 @@ } if (object.bigqueryTablePath != null) message.bigqueryTablePath = String(object.bigqueryTablePath); + if (object.requestResponseLoggingSchemaVersion != null) + message.requestResponseLoggingSchemaVersion = String(object.requestResponseLoggingSchemaVersion); return message; }; @@ -125148,6 +125513,7 @@ object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; object.bigqueryTablePath = ""; + object.requestResponseLoggingSchemaVersion = ""; } if (message.logSource != null && message.hasOwnProperty("logSource")) object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; @@ -125155,6 +125521,8 @@ object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) object.bigqueryTablePath = message.bigqueryTablePath; + if (message.requestResponseLoggingSchemaVersion != null && message.hasOwnProperty("requestResponseLoggingSchemaVersion")) + object.requestResponseLoggingSchemaVersion = message.requestResponseLoggingSchemaVersion; return object; }; @@ -164906,11 +165274,14 @@ * @interface ICallToAction * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IViewRestApi|null} [viewRestApi] CallToAction viewRestApi * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openNotebook] CallToAction openNotebook + * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks|null} [openNotebooks] CallToAction openNotebooks * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [createApplication] CallToAction createApplication * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openFineTuningPipeline] CallToAction openFineTuningPipeline + * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null} [openFineTuningPipelines] CallToAction openFineTuningPipelines * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openPromptTuningPipeline] CallToAction openPromptTuningPipeline * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openGenie] CallToAction openGenie * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeploy|null} [deploy] CallToAction deploy + * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke|null} [deployGke] CallToAction deployGke * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openGenerationAiStudio] CallToAction openGenerationAiStudio * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [requestAccess] CallToAction requestAccess * @property {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openEvaluationPipeline] CallToAction openEvaluationPipeline @@ -164947,6 +165318,14 @@ */ CallToAction.prototype.openNotebook = null; + /** + * CallToAction openNotebooks. + * @member {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks|null|undefined} openNotebooks + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.openNotebooks = null; + /** * CallToAction createApplication. * @member {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} createApplication @@ -164963,6 +165342,14 @@ */ CallToAction.prototype.openFineTuningPipeline = null; + /** + * CallToAction openFineTuningPipelines. + * @member {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null|undefined} openFineTuningPipelines + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.openFineTuningPipelines = null; + /** * CallToAction openPromptTuningPipeline. * @member {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openPromptTuningPipeline @@ -164987,6 +165374,14 @@ */ CallToAction.prototype.deploy = null; + /** + * CallToAction deployGke. + * @member {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke|null|undefined} deployGke + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.deployGke = null; + /** * CallToAction openGenerationAiStudio. * @member {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openGenerationAiStudio @@ -165011,6 +165406,31 @@ */ CallToAction.prototype.openEvaluationPipeline = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CallToAction _openNotebooks. + * @member {"openNotebooks"|undefined} _openNotebooks + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @instance + */ + Object.defineProperty(CallToAction.prototype, "_openNotebooks", { + get: $util.oneOfGetter($oneOfFields = ["openNotebooks"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * CallToAction _openFineTuningPipelines. + * @member {"openFineTuningPipelines"|undefined} _openFineTuningPipelines + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @instance + */ + Object.defineProperty(CallToAction.prototype, "_openFineTuningPipelines", { + get: $util.oneOfGetter($oneOfFields = ["openFineTuningPipelines"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new CallToAction instance using the specified properties. * @function create @@ -165055,6 +165475,12 @@ $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.requestAccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.openEvaluationPipeline != null && Object.hasOwnProperty.call(message, "openEvaluationPipeline")) $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openEvaluationPipeline, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.openNotebooks != null && Object.hasOwnProperty.call(message, "openNotebooks")) + $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.encode(message.openNotebooks, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.openFineTuningPipelines != null && Object.hasOwnProperty.call(message, "openFineTuningPipelines")) + $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.encode(message.openFineTuningPipelines, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.deployGke != null && Object.hasOwnProperty.call(message, "deployGke")) + $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.encode(message.deployGke, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); return writer; }; @@ -165097,6 +165523,10 @@ message.openNotebook = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); break; } + case 12: { + message.openNotebooks = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.decode(reader, reader.uint32()); + break; + } case 3: { message.createApplication = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); break; @@ -165105,6 +165535,10 @@ message.openFineTuningPipeline = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); break; } + case 13: { + message.openFineTuningPipelines = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.decode(reader, reader.uint32()); + break; + } case 5: { message.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); break; @@ -165117,6 +165551,10 @@ message.deploy = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.Deploy.decode(reader, reader.uint32()); break; } + case 14: { + message.deployGke = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.decode(reader, reader.uint32()); + break; + } case 8: { message.openGenerationAiStudio = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); break; @@ -165164,6 +165602,7 @@ CallToAction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.viewRestApi != null && message.hasOwnProperty("viewRestApi")) { var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.ViewRestApi.verify(message.viewRestApi); if (error) @@ -165174,6 +165613,14 @@ if (error) return "openNotebook." + error; } + if (message.openNotebooks != null && message.hasOwnProperty("openNotebooks")) { + properties._openNotebooks = 1; + { + var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.verify(message.openNotebooks); + if (error) + return "openNotebooks." + error; + } + } if (message.createApplication != null && message.hasOwnProperty("createApplication")) { var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.createApplication); if (error) @@ -165184,6 +165631,14 @@ if (error) return "openFineTuningPipeline." + error; } + if (message.openFineTuningPipelines != null && message.hasOwnProperty("openFineTuningPipelines")) { + properties._openFineTuningPipelines = 1; + { + var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify(message.openFineTuningPipelines); + if (error) + return "openFineTuningPipelines." + error; + } + } if (message.openPromptTuningPipeline != null && message.hasOwnProperty("openPromptTuningPipeline")) { var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openPromptTuningPipeline); if (error) @@ -165199,6 +165654,11 @@ if (error) return "deploy." + error; } + if (message.deployGke != null && message.hasOwnProperty("deployGke")) { + var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.verify(message.deployGke); + if (error) + return "deployGke." + error; + } if (message.openGenerationAiStudio != null && message.hasOwnProperty("openGenerationAiStudio")) { var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openGenerationAiStudio); if (error) @@ -165239,6 +165699,11 @@ throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.openNotebook: object expected"); message.openNotebook = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openNotebook); } + if (object.openNotebooks != null) { + if (typeof object.openNotebooks !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.openNotebooks: object expected"); + message.openNotebooks = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.fromObject(object.openNotebooks); + } if (object.createApplication != null) { if (typeof object.createApplication !== "object") throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.createApplication: object expected"); @@ -165249,6 +165714,11 @@ throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.openFineTuningPipeline: object expected"); message.openFineTuningPipeline = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openFineTuningPipeline); } + if (object.openFineTuningPipelines != null) { + if (typeof object.openFineTuningPipelines !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.openFineTuningPipelines: object expected"); + message.openFineTuningPipelines = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.fromObject(object.openFineTuningPipelines); + } if (object.openPromptTuningPipeline != null) { if (typeof object.openPromptTuningPipeline !== "object") throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.openPromptTuningPipeline: object expected"); @@ -165264,6 +165734,11 @@ throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.deploy: object expected"); message.deploy = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.Deploy.fromObject(object.deploy); } + if (object.deployGke != null) { + if (typeof object.deployGke !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.deployGke: object expected"); + message.deployGke = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.fromObject(object.deployGke); + } if (object.openGenerationAiStudio != null) { if (typeof object.openGenerationAiStudio !== "object") throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.openGenerationAiStudio: object expected"); @@ -165306,6 +165781,7 @@ object.openGenerationAiStudio = null; object.requestAccess = null; object.openEvaluationPipeline = null; + object.deployGke = null; } if (message.viewRestApi != null && message.hasOwnProperty("viewRestApi")) object.viewRestApi = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.ViewRestApi.toObject(message.viewRestApi, options); @@ -165327,6 +165803,18 @@ object.requestAccess = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.requestAccess, options); if (message.openEvaluationPipeline != null && message.hasOwnProperty("openEvaluationPipeline")) object.openEvaluationPipeline = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openEvaluationPipeline, options); + if (message.openNotebooks != null && message.hasOwnProperty("openNotebooks")) { + object.openNotebooks = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.toObject(message.openNotebooks, options); + if (options.oneofs) + object._openNotebooks = "openNotebooks"; + } + if (message.openFineTuningPipelines != null && message.hasOwnProperty("openFineTuningPipelines")) { + object.openFineTuningPipelines = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.toObject(message.openFineTuningPipelines, options); + if (options.oneofs) + object._openFineTuningPipelines = "openFineTuningPipelines"; + } + if (message.deployGke != null && message.hasOwnProperty("deployGke")) + object.deployGke = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.toObject(message.deployGke, options); return object; }; @@ -165364,6 +165852,9 @@ * @interface IRegionalResourceReferences * @property {Object.|null} [references] RegionalResourceReferences references * @property {string|null} [title] RegionalResourceReferences title + * @property {string|null} [resourceTitle] RegionalResourceReferences resourceTitle + * @property {string|null} [resourceUseCase] RegionalResourceReferences resourceUseCase + * @property {string|null} [resourceDescription] RegionalResourceReferences resourceDescription */ /** @@ -165398,6 +165889,66 @@ */ RegionalResourceReferences.prototype.title = ""; + /** + * RegionalResourceReferences resourceTitle. + * @member {string|null|undefined} resourceTitle + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.resourceTitle = null; + + /** + * RegionalResourceReferences resourceUseCase. + * @member {string|null|undefined} resourceUseCase + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.resourceUseCase = null; + + /** + * RegionalResourceReferences resourceDescription. + * @member {string|null|undefined} resourceDescription + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.resourceDescription = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RegionalResourceReferences _resourceTitle. + * @member {"resourceTitle"|undefined} _resourceTitle + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + Object.defineProperty(RegionalResourceReferences.prototype, "_resourceTitle", { + get: $util.oneOfGetter($oneOfFields = ["resourceTitle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RegionalResourceReferences _resourceUseCase. + * @member {"resourceUseCase"|undefined} _resourceUseCase + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + Object.defineProperty(RegionalResourceReferences.prototype, "_resourceUseCase", { + get: $util.oneOfGetter($oneOfFields = ["resourceUseCase"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RegionalResourceReferences _resourceDescription. + * @member {"resourceDescription"|undefined} _resourceDescription + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + Object.defineProperty(RegionalResourceReferences.prototype, "_resourceDescription", { + get: $util.oneOfGetter($oneOfFields = ["resourceDescription"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new RegionalResourceReferences instance using the specified properties. * @function create @@ -165429,6 +165980,12 @@ } if (message.title != null && Object.hasOwnProperty.call(message, "title")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + if (message.resourceTitle != null && Object.hasOwnProperty.call(message, "resourceTitle")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceTitle); + if (message.resourceUseCase != null && Object.hasOwnProperty.call(message, "resourceUseCase")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceUseCase); + if (message.resourceDescription != null && Object.hasOwnProperty.call(message, "resourceDescription")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.resourceDescription); return writer; }; @@ -165490,6 +166047,18 @@ message.title = reader.string(); break; } + case 3: { + message.resourceTitle = reader.string(); + break; + } + case 4: { + message.resourceUseCase = reader.string(); + break; + } + case 5: { + message.resourceDescription = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -165525,6 +166094,7 @@ RegionalResourceReferences.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.references != null && message.hasOwnProperty("references")) { if (!$util.isObject(message.references)) return "references: object expected"; @@ -165538,6 +166108,21 @@ if (message.title != null && message.hasOwnProperty("title")) if (!$util.isString(message.title)) return "title: string expected"; + if (message.resourceTitle != null && message.hasOwnProperty("resourceTitle")) { + properties._resourceTitle = 1; + if (!$util.isString(message.resourceTitle)) + return "resourceTitle: string expected"; + } + if (message.resourceUseCase != null && message.hasOwnProperty("resourceUseCase")) { + properties._resourceUseCase = 1; + if (!$util.isString(message.resourceUseCase)) + return "resourceUseCase: string expected"; + } + if (message.resourceDescription != null && message.hasOwnProperty("resourceDescription")) { + properties._resourceDescription = 1; + if (!$util.isString(message.resourceDescription)) + return "resourceDescription: string expected"; + } return null; }; @@ -165565,6 +166150,12 @@ } if (object.title != null) message.title = String(object.title); + if (object.resourceTitle != null) + message.resourceTitle = String(object.resourceTitle); + if (object.resourceUseCase != null) + message.resourceUseCase = String(object.resourceUseCase); + if (object.resourceDescription != null) + message.resourceDescription = String(object.resourceDescription); return message; }; @@ -165593,6 +166184,21 @@ } if (message.title != null && message.hasOwnProperty("title")) object.title = message.title; + if (message.resourceTitle != null && message.hasOwnProperty("resourceTitle")) { + object.resourceTitle = message.resourceTitle; + if (options.oneofs) + object._resourceTitle = "resourceTitle"; + } + if (message.resourceUseCase != null && message.hasOwnProperty("resourceUseCase")) { + object.resourceUseCase = message.resourceUseCase; + if (options.oneofs) + object._resourceUseCase = "resourceUseCase"; + } + if (message.resourceDescription != null && message.hasOwnProperty("resourceDescription")) { + object.resourceDescription = message.resourceDescription; + if (options.oneofs) + object._resourceDescription = "resourceDescription"; + } return object; }; @@ -165873,6 +166479,454 @@ return ViewRestApi; })(); + CallToAction.OpenNotebooks = (function() { + + /** + * Properties of an OpenNotebooks. + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @interface IOpenNotebooks + * @property {Array.|null} [notebooks] OpenNotebooks notebooks + */ + + /** + * Constructs a new OpenNotebooks. + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @classdesc Represents an OpenNotebooks. + * @implements IOpenNotebooks + * @constructor + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks=} [properties] Properties to set + */ + function OpenNotebooks(properties) { + this.notebooks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OpenNotebooks notebooks. + * @member {Array.} notebooks + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @instance + */ + OpenNotebooks.prototype.notebooks = $util.emptyArray; + + /** + * Creates a new OpenNotebooks instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks instance + */ + OpenNotebooks.create = function create(properties) { + return new OpenNotebooks(properties); + }; + + /** + * Encodes the specified OpenNotebooks message. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks} message OpenNotebooks message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenNotebooks.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notebooks != null && message.notebooks.length) + for (var i = 0; i < message.notebooks.length; ++i) + $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.notebooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OpenNotebooks message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenNotebooks} message OpenNotebooks message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenNotebooks.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OpenNotebooks message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @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.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenNotebooks.decode = function decode(reader, 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.PublisherModel.CallToAction.OpenNotebooks(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.notebooks && message.notebooks.length)) + message.notebooks = []; + message.notebooks.push($root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OpenNotebooks message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenNotebooks.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OpenNotebooks message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OpenNotebooks.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.notebooks != null && message.hasOwnProperty("notebooks")) { + if (!Array.isArray(message.notebooks)) + return "notebooks: array expected"; + for (var i = 0; i < message.notebooks.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.notebooks[i]); + if (error) + return "notebooks." + error; + } + } + return null; + }; + + /** + * Creates an OpenNotebooks message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks + */ + OpenNotebooks.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks) + return object; + var message = new $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks(); + if (object.notebooks) { + if (!Array.isArray(object.notebooks)) + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.notebooks: array expected"); + message.notebooks = []; + for (var i = 0; i < object.notebooks.length; ++i) { + if (typeof object.notebooks[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks.notebooks: object expected"); + message.notebooks[i] = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.notebooks[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OpenNotebooks message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks} message OpenNotebooks + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OpenNotebooks.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.notebooks = []; + if (message.notebooks && message.notebooks.length) { + object.notebooks = []; + for (var j = 0; j < message.notebooks.length; ++j) + object.notebooks[j] = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.notebooks[j], options); + } + return object; + }; + + /** + * Converts this OpenNotebooks to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @instance + * @returns {Object.} JSON object + */ + OpenNotebooks.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OpenNotebooks + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OpenNotebooks.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks"; + }; + + return OpenNotebooks; + })(); + + CallToAction.OpenFineTuningPipelines = (function() { + + /** + * Properties of an OpenFineTuningPipelines. + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @interface IOpenFineTuningPipelines + * @property {Array.|null} [fineTuningPipelines] OpenFineTuningPipelines fineTuningPipelines + */ + + /** + * Constructs a new OpenFineTuningPipelines. + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @classdesc Represents an OpenFineTuningPipelines. + * @implements IOpenFineTuningPipelines + * @constructor + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines=} [properties] Properties to set + */ + function OpenFineTuningPipelines(properties) { + this.fineTuningPipelines = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OpenFineTuningPipelines fineTuningPipelines. + * @member {Array.} fineTuningPipelines + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @instance + */ + OpenFineTuningPipelines.prototype.fineTuningPipelines = $util.emptyArray; + + /** + * Creates a new OpenFineTuningPipelines instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines instance + */ + OpenFineTuningPipelines.create = function create(properties) { + return new OpenFineTuningPipelines(properties); + }; + + /** + * Encodes the specified OpenFineTuningPipelines message. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines} message OpenFineTuningPipelines message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenFineTuningPipelines.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fineTuningPipelines != null && message.fineTuningPipelines.length) + for (var i = 0; i < message.fineTuningPipelines.length; ++i) + $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.fineTuningPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OpenFineTuningPipelines message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IOpenFineTuningPipelines} message OpenFineTuningPipelines message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenFineTuningPipelines.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @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.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenFineTuningPipelines.decode = function decode(reader, 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.PublisherModel.CallToAction.OpenFineTuningPipelines(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.fineTuningPipelines && message.fineTuningPipelines.length)) + message.fineTuningPipelines = []; + message.fineTuningPipelines.push($root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenFineTuningPipelines.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OpenFineTuningPipelines message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OpenFineTuningPipelines.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fineTuningPipelines != null && message.hasOwnProperty("fineTuningPipelines")) { + if (!Array.isArray(message.fineTuningPipelines)) + return "fineTuningPipelines: array expected"; + for (var i = 0; i < message.fineTuningPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.fineTuningPipelines[i]); + if (error) + return "fineTuningPipelines." + error; + } + } + return null; + }; + + /** + * Creates an OpenFineTuningPipelines message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines + */ + OpenFineTuningPipelines.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines) + return object; + var message = new $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines(); + if (object.fineTuningPipelines) { + if (!Array.isArray(object.fineTuningPipelines)) + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.fineTuningPipelines: array expected"); + message.fineTuningPipelines = []; + for (var i = 0; i < object.fineTuningPipelines.length; ++i) { + if (typeof object.fineTuningPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines.fineTuningPipelines: object expected"); + message.fineTuningPipelines[i] = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.fineTuningPipelines[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OpenFineTuningPipelines message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines} message OpenFineTuningPipelines + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OpenFineTuningPipelines.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.fineTuningPipelines = []; + if (message.fineTuningPipelines && message.fineTuningPipelines.length) { + object.fineTuningPipelines = []; + for (var j = 0; j < message.fineTuningPipelines.length; ++j) + object.fineTuningPipelines[j] = $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.fineTuningPipelines[j], options); + } + return object; + }; + + /** + * Converts this OpenFineTuningPipelines to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @instance + * @returns {Object.} JSON object + */ + OpenFineTuningPipelines.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OpenFineTuningPipelines + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OpenFineTuningPipelines.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenFineTuningPipelines"; + }; + + return OpenFineTuningPipelines; + })(); + CallToAction.Deploy = (function() { /** @@ -166314,6 +167368,225 @@ return Deploy; })(); + CallToAction.DeployGke = (function() { + + /** + * Properties of a DeployGke. + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @interface IDeployGke + * @property {Array.|null} [gkeYamlConfigs] DeployGke gkeYamlConfigs + */ + + /** + * Constructs a new DeployGke. + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction + * @classdesc Represents a DeployGke. + * @implements IDeployGke + * @constructor + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke=} [properties] Properties to set + */ + function DeployGke(properties) { + this.gkeYamlConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeployGke gkeYamlConfigs. + * @member {Array.} gkeYamlConfigs + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @instance + */ + DeployGke.prototype.gkeYamlConfigs = $util.emptyArray; + + /** + * Creates a new DeployGke instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke} DeployGke instance + */ + DeployGke.create = function create(properties) { + return new DeployGke(properties); + }; + + /** + * Encodes the specified DeployGke message. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke} message DeployGke message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployGke.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gkeYamlConfigs != null && message.gkeYamlConfigs.length) + for (var i = 0; i < message.gkeYamlConfigs.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gkeYamlConfigs[i]); + return writer; + }; + + /** + * Encodes the specified DeployGke message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.IDeployGke} message DeployGke message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployGke.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployGke message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @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.PublisherModel.CallToAction.DeployGke} DeployGke + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployGke.decode = function decode(reader, 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.PublisherModel.CallToAction.DeployGke(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.gkeYamlConfigs && message.gkeYamlConfigs.length)) + message.gkeYamlConfigs = []; + message.gkeYamlConfigs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeployGke message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke} DeployGke + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployGke.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployGke message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployGke.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gkeYamlConfigs != null && message.hasOwnProperty("gkeYamlConfigs")) { + if (!Array.isArray(message.gkeYamlConfigs)) + return "gkeYamlConfigs: array expected"; + for (var i = 0; i < message.gkeYamlConfigs.length; ++i) + if (!$util.isString(message.gkeYamlConfigs[i])) + return "gkeYamlConfigs: string[] expected"; + } + return null; + }; + + /** + * Creates a DeployGke message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke} DeployGke + */ + DeployGke.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke) + return object; + var message = new $root.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke(); + if (object.gkeYamlConfigs) { + if (!Array.isArray(object.gkeYamlConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke.gkeYamlConfigs: array expected"); + message.gkeYamlConfigs = []; + for (var i = 0; i < object.gkeYamlConfigs.length; ++i) + message.gkeYamlConfigs[i] = String(object.gkeYamlConfigs[i]); + } + return message; + }; + + /** + * Creates a plain object from a DeployGke message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke} message DeployGke + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployGke.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.gkeYamlConfigs = []; + if (message.gkeYamlConfigs && message.gkeYamlConfigs.length) { + object.gkeYamlConfigs = []; + for (var j = 0; j < message.gkeYamlConfigs.length; ++j) + object.gkeYamlConfigs[j] = message.gkeYamlConfigs[j]; + } + return object; + }; + + /** + * Converts this DeployGke to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @instance + * @returns {Object.} JSON object + */ + DeployGke.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployGke + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployGke.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployGke"; + }; + + return DeployGke; + })(); + return CallToAction; })(); @@ -245816,6 +247089,7 @@ * @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 + * @property {string|null} [requestResponseLoggingSchemaVersion] ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion */ /** @@ -245857,6 +247131,14 @@ */ ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + /** + * ModelDeploymentMonitoringBigQueryTable requestResponseLoggingSchemaVersion. + * @member {string} requestResponseLoggingSchemaVersion + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.requestResponseLoggingSchemaVersion = ""; + /** * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @function create @@ -245887,6 +247169,8 @@ 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.requestResponseLoggingSchemaVersion != null && Object.hasOwnProperty.call(message, "requestResponseLoggingSchemaVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestResponseLoggingSchemaVersion); return writer; }; @@ -245933,6 +247217,10 @@ message.bigqueryTablePath = reader.string(); break; } + case 4: { + message.requestResponseLoggingSchemaVersion = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -245989,6 +247277,9 @@ if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) if (!$util.isString(message.bigqueryTablePath)) return "bigqueryTablePath: string expected"; + if (message.requestResponseLoggingSchemaVersion != null && message.hasOwnProperty("requestResponseLoggingSchemaVersion")) + if (!$util.isString(message.requestResponseLoggingSchemaVersion)) + return "requestResponseLoggingSchemaVersion: string expected"; return null; }; @@ -246046,6 +247337,8 @@ } if (object.bigqueryTablePath != null) message.bigqueryTablePath = String(object.bigqueryTablePath); + if (object.requestResponseLoggingSchemaVersion != null) + message.requestResponseLoggingSchemaVersion = String(object.requestResponseLoggingSchemaVersion); return message; }; @@ -246066,6 +247359,7 @@ object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; object.bigqueryTablePath = ""; + object.requestResponseLoggingSchemaVersion = ""; } if (message.logSource != null && message.hasOwnProperty("logSource")) object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; @@ -246073,6 +247367,8 @@ object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) object.bigqueryTablePath = message.bigqueryTablePath; + if (message.requestResponseLoggingSchemaVersion != null && message.hasOwnProperty("requestResponseLoggingSchemaVersion")) + object.requestResponseLoggingSchemaVersion = message.requestResponseLoggingSchemaVersion; return object; }; @@ -254164,6 +255460,7 @@ case 4: case 5: case 6: + case 7: break; } if (message.copy != null && message.hasOwnProperty("copy")) @@ -254219,6 +255516,10 @@ case 6: message.sourceType = 6; break; + case "MARKETPLACE": + case 7: + message.sourceType = 7; + break; } if (object.copy != null) message.copy = Boolean(object.copy); @@ -254286,6 +255587,7 @@ * @property {number} MODEL_GARDEN=4 MODEL_GARDEN value * @property {number} GENIE=5 GENIE value * @property {number} CUSTOM_TEXT_EMBEDDING=6 CUSTOM_TEXT_EMBEDDING value + * @property {number} MARKETPLACE=7 MARKETPLACE value */ ModelSourceInfo.ModelSourceType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -254296,6 +255598,7 @@ values[valuesById[4] = "MODEL_GARDEN"] = 4; values[valuesById[5] = "GENIE"] = 5; values[valuesById[6] = "CUSTOM_TEXT_EMBEDDING"] = 6; + values[valuesById[7] = "MARKETPLACE"] = 7; return values; })(); @@ -258249,6 +259552,7 @@ * @property {Array.|null} [safetyRatings] Candidate safetyRatings * @property {string|null} [finishMessage] Candidate finishMessage * @property {google.cloud.aiplatform.v1beta1.ICitationMetadata|null} [citationMetadata] Candidate citationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGroundingMetadata|null} [groundingMetadata] Candidate groundingMetadata */ /** @@ -258315,6 +259619,14 @@ */ Candidate.prototype.citationMetadata = null; + /** + * Candidate groundingMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGroundingMetadata|null|undefined} groundingMetadata + * @memberof google.cloud.aiplatform.v1beta1.Candidate + * @instance + */ + Candidate.prototype.groundingMetadata = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -258366,6 +259678,8 @@ writer.uint32(/* id 5, wireType 2 =*/42).string(message.finishMessage); if (message.citationMetadata != null && Object.hasOwnProperty.call(message, "citationMetadata")) $root.google.cloud.aiplatform.v1beta1.CitationMetadata.encode(message.citationMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.groundingMetadata != null && Object.hasOwnProperty.call(message, "groundingMetadata")) + $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.encode(message.groundingMetadata, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -258426,6 +259740,10 @@ message.citationMetadata = $root.google.cloud.aiplatform.v1beta1.CitationMetadata.decode(reader, reader.uint32()); break; } + case 7: { + message.groundingMetadata = $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -258501,6 +259819,11 @@ if (error) return "citationMetadata." + error; } + if (message.groundingMetadata != null && message.hasOwnProperty("groundingMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.verify(message.groundingMetadata); + if (error) + return "groundingMetadata." + error; + } return null; }; @@ -258572,6 +259895,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Candidate.citationMetadata: object expected"); message.citationMetadata = $root.google.cloud.aiplatform.v1beta1.CitationMetadata.fromObject(object.citationMetadata); } + if (object.groundingMetadata != null) { + if (typeof object.groundingMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Candidate.groundingMetadata: object expected"); + message.groundingMetadata = $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.fromObject(object.groundingMetadata); + } return message; }; @@ -258595,6 +259923,7 @@ object.content = null; object.finishReason = options.enums === String ? "FINISH_REASON_UNSPECIFIED" : 0; object.citationMetadata = null; + object.groundingMetadata = null; } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; @@ -258614,6 +259943,8 @@ } if (message.citationMetadata != null && message.hasOwnProperty("citationMetadata")) object.citationMetadata = $root.google.cloud.aiplatform.v1beta1.CitationMetadata.toObject(message.citationMetadata, options); + if (message.groundingMetadata != null && message.hasOwnProperty("groundingMetadata")) + object.groundingMetadata = $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.toObject(message.groundingMetadata, options); return object; }; @@ -258668,6 +259999,1041 @@ return Candidate; })(); + v1beta1.Segment = (function() { + + /** + * Properties of a Segment. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISegment + * @property {number|null} [partIndex] Segment partIndex + * @property {number|null} [startIndex] Segment startIndex + * @property {number|null} [endIndex] Segment endIndex + */ + + /** + * Constructs a new Segment. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Segment. + * @implements ISegment + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISegment=} [properties] Properties to set + */ + function Segment(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Segment partIndex. + * @member {number} partIndex + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @instance + */ + Segment.prototype.partIndex = 0; + + /** + * Segment startIndex. + * @member {number} startIndex + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @instance + */ + Segment.prototype.startIndex = 0; + + /** + * Segment endIndex. + * @member {number} endIndex + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @instance + */ + Segment.prototype.endIndex = 0; + + /** + * Creates a new Segment instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {google.cloud.aiplatform.v1beta1.ISegment=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Segment} Segment instance + */ + Segment.create = function create(properties) { + return new Segment(properties); + }; + + /** + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Segment.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {google.cloud.aiplatform.v1beta1.ISegment} message Segment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Segment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.partIndex != null && Object.hasOwnProperty.call(message, "partIndex")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.partIndex); + if (message.startIndex != null && Object.hasOwnProperty.call(message, "startIndex")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.startIndex); + if (message.endIndex != null && Object.hasOwnProperty.call(message, "endIndex")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.endIndex); + return writer; + }; + + /** + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Segment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {google.cloud.aiplatform.v1beta1.ISegment} message Segment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Segment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Segment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Segment} Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Segment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Segment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.partIndex = reader.int32(); + break; + } + case 2: { + message.startIndex = reader.int32(); + break; + } + case 3: { + message.endIndex = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Segment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Segment} Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Segment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Segment message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Segment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.partIndex != null && message.hasOwnProperty("partIndex")) + if (!$util.isInteger(message.partIndex)) + return "partIndex: integer expected"; + if (message.startIndex != null && message.hasOwnProperty("startIndex")) + if (!$util.isInteger(message.startIndex)) + return "startIndex: integer expected"; + if (message.endIndex != null && message.hasOwnProperty("endIndex")) + if (!$util.isInteger(message.endIndex)) + return "endIndex: integer expected"; + return null; + }; + + /** + * Creates a Segment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Segment} Segment + */ + Segment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Segment) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Segment(); + if (object.partIndex != null) + message.partIndex = object.partIndex | 0; + if (object.startIndex != null) + message.startIndex = object.startIndex | 0; + if (object.endIndex != null) + message.endIndex = object.endIndex | 0; + return message; + }; + + /** + * Creates a plain object from a Segment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {google.cloud.aiplatform.v1beta1.Segment} message Segment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Segment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.partIndex = 0; + object.startIndex = 0; + object.endIndex = 0; + } + if (message.partIndex != null && message.hasOwnProperty("partIndex")) + object.partIndex = message.partIndex; + if (message.startIndex != null && message.hasOwnProperty("startIndex")) + object.startIndex = message.startIndex; + if (message.endIndex != null && message.hasOwnProperty("endIndex")) + object.endIndex = message.endIndex; + return object; + }; + + /** + * Converts this Segment to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @instance + * @returns {Object.} JSON object + */ + Segment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Segment + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Segment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Segment"; + }; + + return Segment; + })(); + + v1beta1.GroundingAttribution = (function() { + + /** + * Properties of a GroundingAttribution. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundingAttribution + * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null} [web] GroundingAttribution web + * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingAttribution segment + * @property {number|null} [confidenceScore] GroundingAttribution confidenceScore + */ + + /** + * Constructs a new GroundingAttribution. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundingAttribution. + * @implements IGroundingAttribution + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set + */ + function GroundingAttribution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GroundingAttribution web. + * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null|undefined} web + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.web = null; + + /** + * GroundingAttribution segment. + * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.segment = null; + + /** + * GroundingAttribution confidenceScore. + * @member {number|null|undefined} confidenceScore + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.confidenceScore = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundingAttribution reference. + * @member {"web"|undefined} reference + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + Object.defineProperty(GroundingAttribution.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["web"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GroundingAttribution _confidenceScore. + * @member {"confidenceScore"|undefined} _confidenceScore + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + Object.defineProperty(GroundingAttribution.prototype, "_confidenceScore", { + get: $util.oneOfGetter($oneOfFields = ["confidenceScore"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundingAttribution instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution instance + */ + GroundingAttribution.create = function create(properties) { + return new GroundingAttribution(properties); + }; + + /** + * Encodes the specified GroundingAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingAttribution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) + $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.confidenceScore != null && Object.hasOwnProperty.call(message, "confidenceScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidenceScore); + if (message.web != null && Object.hasOwnProperty.call(message, "web")) + $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.encode(message.web, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GroundingAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingAttribution.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundingAttribution message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingAttribution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.decode(reader, reader.uint32()); + break; + } + case 1: { + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); + break; + } + case 2: { + message.confidenceScore = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundingAttribution message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingAttribution.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundingAttribution message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundingAttribution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.web != null && message.hasOwnProperty("web")) { + properties.reference = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify(message.web); + if (error) + return "web." + error; + } + } + if (message.segment != null && message.hasOwnProperty("segment")) { + var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); + if (error) + return "segment." + error; + } + if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { + properties._confidenceScore = 1; + if (typeof message.confidenceScore !== "number") + return "confidenceScore: number expected"; + } + return null; + }; + + /** + * Creates a GroundingAttribution message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + */ + GroundingAttribution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); + if (object.web != null) { + if (typeof object.web !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.web: object expected"); + message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.fromObject(object.web); + } + if (object.segment != null) { + if (typeof object.segment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.segment: object expected"); + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); + } + if (object.confidenceScore != null) + message.confidenceScore = Number(object.confidenceScore); + return message; + }; + + /** + * Creates a plain object from a GroundingAttribution message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution} message GroundingAttribution + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundingAttribution.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.segment = null; + if (message.segment != null && message.hasOwnProperty("segment")) + object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); + if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { + object.confidenceScore = options.json && !isFinite(message.confidenceScore) ? String(message.confidenceScore) : message.confidenceScore; + if (options.oneofs) + object._confidenceScore = "confidenceScore"; + } + if (message.web != null && message.hasOwnProperty("web")) { + object.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.toObject(message.web, options); + if (options.oneofs) + object.reference = "web"; + } + return object; + }; + + /** + * Converts this GroundingAttribution to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + * @returns {Object.} JSON object + */ + GroundingAttribution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundingAttribution + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundingAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution"; + }; + + GroundingAttribution.Web = (function() { + + /** + * Properties of a Web. + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @interface IWeb + * @property {string|null} [uri] Web uri + * @property {string|null} [title] Web title + */ + + /** + * Constructs a new Web. + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @classdesc Represents a Web. + * @implements IWeb + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set + */ + function Web(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Web uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @instance + */ + Web.prototype.uri = ""; + + /** + * Web title. + * @member {string} title + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @instance + */ + Web.prototype.title = ""; + + /** + * Creates a new Web instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web instance + */ + Web.create = function create(properties) { + return new Web(properties); + }; + + /** + * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Web.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + return writer; + }; + + /** + * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Web.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Web message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Web.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + message.title = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Web message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Web.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Web message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Web.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + return null; + }; + + /** + * Creates a Web message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web + */ + Web.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.title != null) + message.title = String(object.title); + return message; + }; + + /** + * Creates a plain object from a Web message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} message Web + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Web.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.uri = ""; + object.title = ""; + } + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + return object; + }; + + /** + * Converts this Web to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @instance + * @returns {Object.} JSON object + */ + Web.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Web + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Web.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution.Web"; + }; + + return Web; + })(); + + return GroundingAttribution; + })(); + + v1beta1.GroundingMetadata = (function() { + + /** + * Properties of a GroundingMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundingMetadata + * @property {Array.|null} [webSearchQueries] GroundingMetadata webSearchQueries + * @property {Array.|null} [groundingAttributions] GroundingMetadata groundingAttributions + */ + + /** + * Constructs a new GroundingMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundingMetadata. + * @implements IGroundingMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundingMetadata=} [properties] Properties to set + */ + function GroundingMetadata(properties) { + this.webSearchQueries = []; + this.groundingAttributions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GroundingMetadata webSearchQueries. + * @member {Array.} webSearchQueries + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @instance + */ + GroundingMetadata.prototype.webSearchQueries = $util.emptyArray; + + /** + * GroundingMetadata groundingAttributions. + * @member {Array.} groundingAttributions + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @instance + */ + GroundingMetadata.prototype.groundingAttributions = $util.emptyArray; + + /** + * Creates a new GroundingMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingMetadata} GroundingMetadata instance + */ + GroundingMetadata.create = function create(properties) { + return new GroundingMetadata(properties); + }; + + /** + * Encodes the specified GroundingMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingMetadata} message GroundingMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.webSearchQueries != null && message.webSearchQueries.length) + for (var i = 0; i < message.webSearchQueries.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.webSearchQueries[i]); + if (message.groundingAttributions != null && message.groundingAttributions.length) + for (var i = 0; i < message.groundingAttributions.length; ++i) + $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.encode(message.groundingAttributions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GroundingMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingMetadata} message GroundingMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundingMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingMetadata} GroundingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.webSearchQueries && message.webSearchQueries.length)) + message.webSearchQueries = []; + message.webSearchQueries.push(reader.string()); + break; + } + case 2: { + if (!(message.groundingAttributions && message.groundingAttributions.length)) + message.groundingAttributions = []; + message.groundingAttributions.push($root.google.cloud.aiplatform.v1beta1.GroundingAttribution.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundingMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingMetadata} GroundingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundingMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundingMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.webSearchQueries != null && message.hasOwnProperty("webSearchQueries")) { + if (!Array.isArray(message.webSearchQueries)) + return "webSearchQueries: array expected"; + for (var i = 0; i < message.webSearchQueries.length; ++i) + if (!$util.isString(message.webSearchQueries[i])) + return "webSearchQueries: string[] expected"; + } + if (message.groundingAttributions != null && message.hasOwnProperty("groundingAttributions")) { + if (!Array.isArray(message.groundingAttributions)) + return "groundingAttributions: array expected"; + for (var i = 0; i < message.groundingAttributions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.verify(message.groundingAttributions[i]); + if (error) + return "groundingAttributions." + error; + } + } + return null; + }; + + /** + * Creates a GroundingMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingMetadata} GroundingMetadata + */ + GroundingMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingMetadata(); + if (object.webSearchQueries) { + if (!Array.isArray(object.webSearchQueries)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.webSearchQueries: array expected"); + message.webSearchQueries = []; + for (var i = 0; i < object.webSearchQueries.length; ++i) + message.webSearchQueries[i] = String(object.webSearchQueries[i]); + } + if (object.groundingAttributions) { + if (!Array.isArray(object.groundingAttributions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingAttributions: array expected"); + message.groundingAttributions = []; + for (var i = 0; i < object.groundingAttributions.length; ++i) { + if (typeof object.groundingAttributions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingAttributions: object expected"); + message.groundingAttributions[i] = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.fromObject(object.groundingAttributions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GroundingMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingMetadata} message GroundingMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundingMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.webSearchQueries = []; + object.groundingAttributions = []; + } + if (message.webSearchQueries && message.webSearchQueries.length) { + object.webSearchQueries = []; + for (var j = 0; j < message.webSearchQueries.length; ++j) + object.webSearchQueries[j] = message.webSearchQueries[j]; + } + if (message.groundingAttributions && message.groundingAttributions.length) { + object.groundingAttributions = []; + for (var j = 0; j < message.groundingAttributions.length; ++j) + object.groundingAttributions[j] = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.toObject(message.groundingAttributions[j], options); + } + return object; + }; + + /** + * Converts this GroundingMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @instance + * @returns {Object.} JSON object + */ + GroundingMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundingMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundingMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingMetadata"; + }; + + return GroundingMetadata; + })(); + v1beta1.Tool = (function() { /** @@ -258675,6 +261041,8 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface ITool * @property {Array.|null} [functionDeclarations] Tool functionDeclarations + * @property {google.cloud.aiplatform.v1beta1.IRetrieval|null} [retrieval] Tool retrieval + * @property {google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval|null} [googleSearchRetrieval] Tool googleSearchRetrieval */ /** @@ -258701,6 +261069,22 @@ */ Tool.prototype.functionDeclarations = $util.emptyArray; + /** + * Tool retrieval. + * @member {google.cloud.aiplatform.v1beta1.IRetrieval|null|undefined} retrieval + * @memberof google.cloud.aiplatform.v1beta1.Tool + * @instance + */ + Tool.prototype.retrieval = null; + + /** + * Tool googleSearchRetrieval. + * @member {google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval|null|undefined} googleSearchRetrieval + * @memberof google.cloud.aiplatform.v1beta1.Tool + * @instance + */ + Tool.prototype.googleSearchRetrieval = null; + /** * Creates a new Tool instance using the specified properties. * @function create @@ -258728,6 +261112,10 @@ if (message.functionDeclarations != null && message.functionDeclarations.length) for (var i = 0; i < message.functionDeclarations.length; ++i) $root.google.cloud.aiplatform.v1beta1.FunctionDeclaration.encode(message.functionDeclarations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.retrieval != null && Object.hasOwnProperty.call(message, "retrieval")) + $root.google.cloud.aiplatform.v1beta1.Retrieval.encode(message.retrieval, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.googleSearchRetrieval != null && Object.hasOwnProperty.call(message, "googleSearchRetrieval")) + $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.encode(message.googleSearchRetrieval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -258768,6 +261156,14 @@ message.functionDeclarations.push($root.google.cloud.aiplatform.v1beta1.FunctionDeclaration.decode(reader, reader.uint32())); break; } + case 2: { + message.retrieval = $root.google.cloud.aiplatform.v1beta1.Retrieval.decode(reader, reader.uint32()); + break; + } + case 3: { + message.googleSearchRetrieval = $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -258812,6 +261208,16 @@ return "functionDeclarations." + error; } } + if (message.retrieval != null && message.hasOwnProperty("retrieval")) { + var error = $root.google.cloud.aiplatform.v1beta1.Retrieval.verify(message.retrieval); + if (error) + return "retrieval." + error; + } + if (message.googleSearchRetrieval != null && message.hasOwnProperty("googleSearchRetrieval")) { + var error = $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.verify(message.googleSearchRetrieval); + if (error) + return "googleSearchRetrieval." + error; + } return null; }; @@ -258837,6 +261243,16 @@ message.functionDeclarations[i] = $root.google.cloud.aiplatform.v1beta1.FunctionDeclaration.fromObject(object.functionDeclarations[i]); } } + if (object.retrieval != null) { + if (typeof object.retrieval !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Tool.retrieval: object expected"); + message.retrieval = $root.google.cloud.aiplatform.v1beta1.Retrieval.fromObject(object.retrieval); + } + if (object.googleSearchRetrieval != null) { + if (typeof object.googleSearchRetrieval !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Tool.googleSearchRetrieval: object expected"); + message.googleSearchRetrieval = $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.fromObject(object.googleSearchRetrieval); + } return message; }; @@ -258855,11 +261271,19 @@ var object = {}; if (options.arrays || options.defaults) object.functionDeclarations = []; + if (options.defaults) { + object.retrieval = null; + object.googleSearchRetrieval = null; + } if (message.functionDeclarations && message.functionDeclarations.length) { object.functionDeclarations = []; for (var j = 0; j < message.functionDeclarations.length; ++j) object.functionDeclarations[j] = $root.google.cloud.aiplatform.v1beta1.FunctionDeclaration.toObject(message.functionDeclarations[j], options); } + if (message.retrieval != null && message.hasOwnProperty("retrieval")) + object.retrieval = $root.google.cloud.aiplatform.v1beta1.Retrieval.toObject(message.retrieval, options); + if (message.googleSearchRetrieval != null && message.hasOwnProperty("googleSearchRetrieval")) + object.googleSearchRetrieval = $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.toObject(message.googleSearchRetrieval, options); return object; }; @@ -259611,6 +262035,663 @@ return FunctionResponse; })(); + v1beta1.Retrieval = (function() { + + /** + * Properties of a Retrieval. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRetrieval + * @property {google.cloud.aiplatform.v1beta1.IVertexAISearch|null} [vertexAiSearch] Retrieval vertexAiSearch + * @property {boolean|null} [disableAttribution] Retrieval disableAttribution + */ + + /** + * Constructs a new Retrieval. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Retrieval. + * @implements IRetrieval + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRetrieval=} [properties] Properties to set + */ + function Retrieval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Retrieval vertexAiSearch. + * @member {google.cloud.aiplatform.v1beta1.IVertexAISearch|null|undefined} vertexAiSearch + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @instance + */ + Retrieval.prototype.vertexAiSearch = null; + + /** + * Retrieval disableAttribution. + * @member {boolean} disableAttribution + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @instance + */ + Retrieval.prototype.disableAttribution = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Retrieval source. + * @member {"vertexAiSearch"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @instance + */ + Object.defineProperty(Retrieval.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["vertexAiSearch"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Retrieval instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.IRetrieval=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Retrieval} Retrieval instance + */ + Retrieval.create = function create(properties) { + return new Retrieval(properties); + }; + + /** + * Encodes the specified Retrieval message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Retrieval.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.IRetrieval} message Retrieval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Retrieval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vertexAiSearch != null && Object.hasOwnProperty.call(message, "vertexAiSearch")) + $root.google.cloud.aiplatform.v1beta1.VertexAISearch.encode(message.vertexAiSearch, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.disableAttribution != null && Object.hasOwnProperty.call(message, "disableAttribution")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.disableAttribution); + return writer; + }; + + /** + * Encodes the specified Retrieval message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Retrieval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.IRetrieval} message Retrieval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Retrieval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Retrieval message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Retrieval} Retrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Retrieval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Retrieval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.vertexAiSearch = $root.google.cloud.aiplatform.v1beta1.VertexAISearch.decode(reader, reader.uint32()); + break; + } + case 3: { + message.disableAttribution = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Retrieval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Retrieval} Retrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Retrieval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Retrieval message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Retrieval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.vertexAiSearch != null && message.hasOwnProperty("vertexAiSearch")) { + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.VertexAISearch.verify(message.vertexAiSearch); + if (error) + return "vertexAiSearch." + error; + } + } + if (message.disableAttribution != null && message.hasOwnProperty("disableAttribution")) + if (typeof message.disableAttribution !== "boolean") + return "disableAttribution: boolean expected"; + return null; + }; + + /** + * Creates a Retrieval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Retrieval} Retrieval + */ + Retrieval.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Retrieval) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Retrieval(); + if (object.vertexAiSearch != null) { + if (typeof object.vertexAiSearch !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Retrieval.vertexAiSearch: object expected"); + message.vertexAiSearch = $root.google.cloud.aiplatform.v1beta1.VertexAISearch.fromObject(object.vertexAiSearch); + } + if (object.disableAttribution != null) + message.disableAttribution = Boolean(object.disableAttribution); + return message; + }; + + /** + * Creates a plain object from a Retrieval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.Retrieval} message Retrieval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Retrieval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.disableAttribution = false; + if (message.vertexAiSearch != null && message.hasOwnProperty("vertexAiSearch")) { + object.vertexAiSearch = $root.google.cloud.aiplatform.v1beta1.VertexAISearch.toObject(message.vertexAiSearch, options); + if (options.oneofs) + object.source = "vertexAiSearch"; + } + if (message.disableAttribution != null && message.hasOwnProperty("disableAttribution")) + object.disableAttribution = message.disableAttribution; + return object; + }; + + /** + * Converts this Retrieval to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @instance + * @returns {Object.} JSON object + */ + Retrieval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Retrieval + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Retrieval + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Retrieval.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Retrieval"; + }; + + return Retrieval; + })(); + + v1beta1.VertexAISearch = (function() { + + /** + * Properties of a VertexAISearch. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IVertexAISearch + * @property {string|null} [datastore] VertexAISearch datastore + */ + + /** + * Constructs a new VertexAISearch. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a VertexAISearch. + * @implements IVertexAISearch + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IVertexAISearch=} [properties] Properties to set + */ + function VertexAISearch(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VertexAISearch datastore. + * @member {string} datastore + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @instance + */ + VertexAISearch.prototype.datastore = ""; + + /** + * Creates a new VertexAISearch instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexAISearch=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.VertexAISearch} VertexAISearch instance + */ + VertexAISearch.create = function create(properties) { + return new VertexAISearch(properties); + }; + + /** + * Encodes the specified VertexAISearch message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexAISearch.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexAISearch} message VertexAISearch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexAISearch.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datastore != null && Object.hasOwnProperty.call(message, "datastore")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datastore); + return writer; + }; + + /** + * Encodes the specified VertexAISearch message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.VertexAISearch.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {google.cloud.aiplatform.v1beta1.IVertexAISearch} message VertexAISearch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexAISearch.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VertexAISearch message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.VertexAISearch} VertexAISearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexAISearch.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.VertexAISearch(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datastore = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VertexAISearch message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.VertexAISearch} VertexAISearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexAISearch.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VertexAISearch message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VertexAISearch.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datastore != null && message.hasOwnProperty("datastore")) + if (!$util.isString(message.datastore)) + return "datastore: string expected"; + return null; + }; + + /** + * Creates a VertexAISearch message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.VertexAISearch} VertexAISearch + */ + VertexAISearch.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.VertexAISearch) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.VertexAISearch(); + if (object.datastore != null) + message.datastore = String(object.datastore); + return message; + }; + + /** + * Creates a plain object from a VertexAISearch message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {google.cloud.aiplatform.v1beta1.VertexAISearch} message VertexAISearch + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VertexAISearch.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.datastore = ""; + if (message.datastore != null && message.hasOwnProperty("datastore")) + object.datastore = message.datastore; + return object; + }; + + /** + * Converts this VertexAISearch to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @instance + * @returns {Object.} JSON object + */ + VertexAISearch.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VertexAISearch + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.VertexAISearch + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VertexAISearch.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.VertexAISearch"; + }; + + return VertexAISearch; + })(); + + v1beta1.GoogleSearchRetrieval = (function() { + + /** + * Properties of a GoogleSearchRetrieval. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGoogleSearchRetrieval + * @property {boolean|null} [disableAttribution] GoogleSearchRetrieval disableAttribution + */ + + /** + * Constructs a new GoogleSearchRetrieval. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GoogleSearchRetrieval. + * @implements IGoogleSearchRetrieval + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval=} [properties] Properties to set + */ + function GoogleSearchRetrieval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GoogleSearchRetrieval disableAttribution. + * @member {boolean} disableAttribution + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @instance + */ + GoogleSearchRetrieval.prototype.disableAttribution = false; + + /** + * Creates a new GoogleSearchRetrieval instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval} GoogleSearchRetrieval instance + */ + GoogleSearchRetrieval.create = function create(properties) { + return new GoogleSearchRetrieval(properties); + }; + + /** + * Encodes the specified GoogleSearchRetrieval message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval} message GoogleSearchRetrieval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleSearchRetrieval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disableAttribution != null && Object.hasOwnProperty.call(message, "disableAttribution")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableAttribution); + return writer; + }; + + /** + * Encodes the specified GoogleSearchRetrieval message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval} message GoogleSearchRetrieval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleSearchRetrieval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleSearchRetrieval message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval} GoogleSearchRetrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleSearchRetrieval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.disableAttribution = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleSearchRetrieval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval} GoogleSearchRetrieval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleSearchRetrieval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleSearchRetrieval message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleSearchRetrieval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.disableAttribution != null && message.hasOwnProperty("disableAttribution")) + if (typeof message.disableAttribution !== "boolean") + return "disableAttribution: boolean expected"; + return null; + }; + + /** + * Creates a GoogleSearchRetrieval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval} GoogleSearchRetrieval + */ + GoogleSearchRetrieval.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval(); + if (object.disableAttribution != null) + message.disableAttribution = Boolean(object.disableAttribution); + return message; + }; + + /** + * Creates a plain object from a GoogleSearchRetrieval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval} message GoogleSearchRetrieval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleSearchRetrieval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.disableAttribution = false; + if (message.disableAttribution != null && message.hasOwnProperty("disableAttribution")) + object.disableAttribution = message.disableAttribution; + return object; + }; + + /** + * Converts this GoogleSearchRetrieval to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @instance + * @returns {Object.} JSON object + */ + GoogleSearchRetrieval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GoogleSearchRetrieval + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoogleSearchRetrieval.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval"; + }; + + return GoogleSearchRetrieval; + })(); + /** * Type enum. * @name google.cloud.aiplatform.v1beta1.Type @@ -262945,7 +266026,6 @@ * @property {google.protobuf.IDuration|null} [timeout] Scheduling timeout * @property {boolean|null} [restartJobOnWorkerRestart] Scheduling restartJobOnWorkerRestart * @property {boolean|null} [disableRetries] Scheduling disableRetries - * @property {google.protobuf.IDuration|null} [maxWaitDuration] Scheduling maxWaitDuration */ /** @@ -262987,14 +266067,6 @@ */ Scheduling.prototype.disableRetries = false; - /** - * Scheduling maxWaitDuration. - * @member {google.protobuf.IDuration|null|undefined} maxWaitDuration - * @memberof google.cloud.aiplatform.v1beta1.Scheduling - * @instance - */ - Scheduling.prototype.maxWaitDuration = null; - /** * Creates a new Scheduling instance using the specified properties. * @function create @@ -263025,8 +266097,6 @@ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restartJobOnWorkerRestart); if (message.disableRetries != null && Object.hasOwnProperty.call(message, "disableRetries")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disableRetries); - if (message.maxWaitDuration != null && Object.hasOwnProperty.call(message, "maxWaitDuration")) - $root.google.protobuf.Duration.encode(message.maxWaitDuration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -263073,10 +266143,6 @@ message.disableRetries = reader.bool(); break; } - case 6: { - message.maxWaitDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -263123,11 +266189,6 @@ if (message.disableRetries != null && message.hasOwnProperty("disableRetries")) if (typeof message.disableRetries !== "boolean") return "disableRetries: boolean expected"; - if (message.maxWaitDuration != null && message.hasOwnProperty("maxWaitDuration")) { - var error = $root.google.protobuf.Duration.verify(message.maxWaitDuration); - if (error) - return "maxWaitDuration." + error; - } return null; }; @@ -263152,11 +266213,6 @@ message.restartJobOnWorkerRestart = Boolean(object.restartJobOnWorkerRestart); if (object.disableRetries != null) message.disableRetries = Boolean(object.disableRetries); - if (object.maxWaitDuration != null) { - if (typeof object.maxWaitDuration !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Scheduling.maxWaitDuration: object expected"); - message.maxWaitDuration = $root.google.protobuf.Duration.fromObject(object.maxWaitDuration); - } return message; }; @@ -263177,7 +266233,6 @@ object.timeout = null; object.restartJobOnWorkerRestart = false; object.disableRetries = false; - object.maxWaitDuration = null; } if (message.timeout != null && message.hasOwnProperty("timeout")) object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); @@ -263185,8 +266240,6 @@ object.restartJobOnWorkerRestart = message.restartJobOnWorkerRestart; if (message.disableRetries != null && message.hasOwnProperty("disableRetries")) object.disableRetries = message.disableRetries; - if (message.maxWaitDuration != null && message.hasOwnProperty("maxWaitDuration")) - object.maxWaitDuration = $root.google.protobuf.Duration.toObject(message.maxWaitDuration, options); return object; }; @@ -292650,6 +295703,256 @@ return PrivateServiceConnectConfig; })(); + v1beta1.PscAutomatedEndpoints = (function() { + + /** + * Properties of a PscAutomatedEndpoints. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPscAutomatedEndpoints + * @property {string|null} [projectId] PscAutomatedEndpoints projectId + * @property {string|null} [network] PscAutomatedEndpoints network + * @property {string|null} [matchAddress] PscAutomatedEndpoints matchAddress + */ + + /** + * Constructs a new PscAutomatedEndpoints. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PscAutomatedEndpoints. + * @implements IPscAutomatedEndpoints + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints=} [properties] Properties to set + */ + function PscAutomatedEndpoints(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PscAutomatedEndpoints projectId. + * @member {string} projectId + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @instance + */ + PscAutomatedEndpoints.prototype.projectId = ""; + + /** + * PscAutomatedEndpoints network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @instance + */ + PscAutomatedEndpoints.prototype.network = ""; + + /** + * PscAutomatedEndpoints matchAddress. + * @member {string} matchAddress + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @instance + */ + PscAutomatedEndpoints.prototype.matchAddress = ""; + + /** + * Creates a new PscAutomatedEndpoints instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints} PscAutomatedEndpoints instance + */ + PscAutomatedEndpoints.create = function create(properties) { + return new PscAutomatedEndpoints(properties); + }; + + /** + * Encodes the specified PscAutomatedEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints} message PscAutomatedEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PscAutomatedEndpoints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); + if (message.matchAddress != null && Object.hasOwnProperty.call(message, "matchAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.matchAddress); + return writer; + }; + + /** + * Encodes the specified PscAutomatedEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IPscAutomatedEndpoints} message PscAutomatedEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PscAutomatedEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints} PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PscAutomatedEndpoints.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.network = reader.string(); + break; + } + case 3: { + message.matchAddress = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PscAutomatedEndpoints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints} PscAutomatedEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PscAutomatedEndpoints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PscAutomatedEndpoints message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PscAutomatedEndpoints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.matchAddress != null && message.hasOwnProperty("matchAddress")) + if (!$util.isString(message.matchAddress)) + return "matchAddress: string expected"; + return null; + }; + + /** + * Creates a PscAutomatedEndpoints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints} PscAutomatedEndpoints + */ + PscAutomatedEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.network != null) + message.network = String(object.network); + if (object.matchAddress != null) + message.matchAddress = String(object.matchAddress); + return message; + }; + + /** + * Creates a plain object from a PscAutomatedEndpoints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints} message PscAutomatedEndpoints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PscAutomatedEndpoints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.network = ""; + object.matchAddress = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.matchAddress != null && message.hasOwnProperty("matchAddress")) + object.matchAddress = message.matchAddress; + return object; + }; + + /** + * Converts this PscAutomatedEndpoints to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @instance + * @returns {Object.} JSON object + */ + PscAutomatedEndpoints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PscAutomatedEndpoints + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PscAutomatedEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints"; + }; + + return PscAutomatedEndpoints; + })(); + v1beta1.FeatureOnlineStoreAdminService = (function() { /** @@ -339574,6 +342877,7 @@ * @interface IIndexPrivateEndpoints * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + * @property {Array.|null} [pscAutomatedEndpoints] IndexPrivateEndpoints pscAutomatedEndpoints */ /** @@ -339585,6 +342889,7 @@ * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set */ function IndexPrivateEndpoints(properties) { + this.pscAutomatedEndpoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -339607,6 +342912,14 @@ */ IndexPrivateEndpoints.prototype.serviceAttachment = ""; + /** + * IndexPrivateEndpoints pscAutomatedEndpoints. + * @member {Array.} pscAutomatedEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.pscAutomatedEndpoints = $util.emptyArray; + /** * Creates a new IndexPrivateEndpoints instance using the specified properties. * @function create @@ -339635,6 +342948,9 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + if (message.pscAutomatedEndpoints != null && message.pscAutomatedEndpoints.length) + for (var i = 0; i < message.pscAutomatedEndpoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.encode(message.pscAutomatedEndpoints[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -339677,6 +342993,12 @@ message.serviceAttachment = reader.string(); break; } + case 3: { + if (!(message.pscAutomatedEndpoints && message.pscAutomatedEndpoints.length)) + message.pscAutomatedEndpoints = []; + message.pscAutomatedEndpoints.push($root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -339718,6 +343040,15 @@ if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) if (!$util.isString(message.serviceAttachment)) return "serviceAttachment: string expected"; + if (message.pscAutomatedEndpoints != null && message.hasOwnProperty("pscAutomatedEndpoints")) { + if (!Array.isArray(message.pscAutomatedEndpoints)) + return "pscAutomatedEndpoints: array expected"; + for (var i = 0; i < message.pscAutomatedEndpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.verify(message.pscAutomatedEndpoints[i]); + if (error) + return "pscAutomatedEndpoints." + error; + } + } return null; }; @@ -339737,6 +343068,16 @@ message.matchGrpcAddress = String(object.matchGrpcAddress); if (object.serviceAttachment != null) message.serviceAttachment = String(object.serviceAttachment); + if (object.pscAutomatedEndpoints) { + if (!Array.isArray(object.pscAutomatedEndpoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.pscAutomatedEndpoints: array expected"); + message.pscAutomatedEndpoints = []; + for (var i = 0; i < object.pscAutomatedEndpoints.length; ++i) { + if (typeof object.pscAutomatedEndpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.pscAutomatedEndpoints: object expected"); + message.pscAutomatedEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.fromObject(object.pscAutomatedEndpoints[i]); + } + } return message; }; @@ -339753,6 +343094,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pscAutomatedEndpoints = []; if (options.defaults) { object.matchGrpcAddress = ""; object.serviceAttachment = ""; @@ -339761,6 +343104,11 @@ object.matchGrpcAddress = message.matchGrpcAddress; if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) object.serviceAttachment = message.serviceAttachment; + if (message.pscAutomatedEndpoints && message.pscAutomatedEndpoints.length) { + object.pscAutomatedEndpoints = []; + for (var j = 0; j < message.pscAutomatedEndpoints.length; ++j) + object.pscAutomatedEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.PscAutomatedEndpoints.toObject(message.pscAutomatedEndpoints[j], options); + } return object; }; @@ -345850,6 +349198,7 @@ * @interface IUpsertDatapointsRequest * @property {string|null} [index] UpsertDatapointsRequest index * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + * @property {google.protobuf.IFieldMask|null} [updateMask] UpsertDatapointsRequest updateMask */ /** @@ -345884,6 +349233,14 @@ */ UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + /** + * UpsertDatapointsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.updateMask = null; + /** * Creates a new UpsertDatapointsRequest instance using the specified properties. * @function create @@ -345913,6 +349270,8 @@ 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(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -345957,6 +349316,10 @@ message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); break; } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -346004,6 +349367,11 @@ return "datapoints." + error; } } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; @@ -346031,6 +349399,11 @@ message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); } } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; @@ -346049,8 +349422,10 @@ var object = {}; if (options.arrays || options.defaults) object.datapoints = []; - if (options.defaults) + if (options.defaults) { object.index = ""; + object.updateMask = null; + } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; if (message.datapoints && message.datapoints.length) { @@ -346058,6 +349433,8 @@ for (var j = 0; j < message.datapoints.length; ++j) object.datapoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoints[j], options); } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; @@ -347145,6 +350522,12 @@ case 5: case 6: case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: break; } if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) @@ -347213,6 +350596,30 @@ case 7: message.errorType = 7; break; + case "PARSING_ERROR": + case 8: + message.errorType = 8; + break; + case "DUPLICATE_NAMESPACE": + case 9: + message.errorType = 9; + break; + case "OP_IN_DATAPOINT": + case 10: + message.errorType = 10; + break; + case "MULTIPLE_VALUES": + case 11: + message.errorType = 11; + break; + case "INVALID_NUMERIC_VALUE": + case 12: + message.errorType = 12; + break; + case "INVALID_ENCODING": + case 13: + message.errorType = 13; + break; } if (object.errorMessage != null) message.errorMessage = String(object.errorMessage); @@ -347296,6 +350703,12 @@ * @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 + * @property {number} PARSING_ERROR=8 PARSING_ERROR value + * @property {number} DUPLICATE_NAMESPACE=9 DUPLICATE_NAMESPACE value + * @property {number} OP_IN_DATAPOINT=10 OP_IN_DATAPOINT value + * @property {number} MULTIPLE_VALUES=11 MULTIPLE_VALUES value + * @property {number} INVALID_NUMERIC_VALUE=12 INVALID_NUMERIC_VALUE value + * @property {number} INVALID_ENCODING=13 INVALID_ENCODING value */ RecordError.RecordErrorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -347307,6 +350720,12 @@ values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + values[valuesById[8] = "PARSING_ERROR"] = 8; + values[valuesById[9] = "DUPLICATE_NAMESPACE"] = 9; + values[valuesById[10] = "OP_IN_DATAPOINT"] = 10; + values[valuesById[11] = "MULTIPLE_VALUES"] = 11; + values[valuesById[12] = "INVALID_NUMERIC_VALUE"] = 12; + values[valuesById[13] = "INVALID_ENCODING"] = 13; return values; })(); @@ -362971,39 +366390,6 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.LlmUtilityService|countTokens}. - * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService - * @typedef CountTokensCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CountTokensResponse} [response] CountTokensResponse - */ - - /** - * Calls CountTokens. - * @function countTokens - * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} request CountTokensRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.LlmUtilityService.CountTokensCallback} callback Node-style callback called with the error, if any, and CountTokensResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(LlmUtilityService.prototype.countTokens = function countTokens(request, callback) { - return this.rpcCall(countTokens, $root.google.cloud.aiplatform.v1beta1.CountTokensRequest, $root.google.cloud.aiplatform.v1beta1.CountTokensResponse, request, callback); - }, "name", { value: "CountTokens" }); - - /** - * Calls CountTokens. - * @function countTokens - * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} request CountTokensRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.LlmUtilityService|computeTokens}. * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService @@ -363792,491 +367178,129 @@ return ComputeTokensResponse; })(); - v1beta1.PredictionService = (function() { + v1beta1.MatchService = (function() { /** - * Constructs a new PredictionService service. + * Constructs a new MatchService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredictionService + * @classdesc Represents a MatchService * @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 PredictionService(rpcImpl, requestDelimited, responseDelimited) { + function MatchService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; + (MatchService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MatchService; /** - * Creates new PredictionService service using the specified rpc implementation. + * Creates new MatchService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @memberof google.cloud.aiplatform.v1beta1.MatchService * @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 {PredictionService} RPC service. Useful where requests and/or responses are streamed. + * @returns {MatchService} RPC service. Useful where requests and/or responses are streamed. */ - PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + MatchService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|predict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef PredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PredictResponse} [response] PredictResponse - */ - - /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} request PredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { - return this.rpcCall(predict, $root.google.cloud.aiplatform.v1beta1.PredictRequest, $root.google.cloud.aiplatform.v1beta1.PredictResponse, request, callback); - }, "name", { value: "Predict" }); - - /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} request PredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|rawPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef RawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.api.HttpBody} [response] HttpBody - */ - - /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} request RawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { - return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1beta1.RawPredictRequest, $root.google.api.HttpBody, request, callback); - }, "name", { value: "RawPredict" }); - - /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} request RawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef DirectPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DirectPredictResponse} [response] DirectPredictResponse - */ - - /** - * Calls DirectPredict. - * @function directPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} request DirectPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.DirectPredictCallback} callback Node-style callback called with the error, if any, and DirectPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.directPredict = function directPredict(request, callback) { - return this.rpcCall(directPredict, $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest, $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse, request, callback); - }, "name", { value: "DirectPredict" }); - - /** - * Calls DirectPredict. - * @function directPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} request DirectPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directRawPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef DirectRawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} [response] DirectRawPredictResponse - */ - - /** - * Calls DirectRawPredict. - * @function directRawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} request DirectRawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.DirectRawPredictCallback} callback Node-style callback called with the error, if any, and DirectRawPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.directRawPredict = function directRawPredict(request, callback) { - return this.rpcCall(directRawPredict, $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest, $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse, request, callback); - }, "name", { value: "DirectRawPredict" }); - - /** - * Calls DirectRawPredict. - * @function directRawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} request DirectRawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef StreamDirectPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} [response] StreamDirectPredictResponse - */ - - /** - * Calls StreamDirectPredict. - * @function streamDirectPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} request StreamDirectPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectPredictCallback} callback Node-style callback called with the error, if any, and StreamDirectPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.streamDirectPredict = function streamDirectPredict(request, callback) { - return this.rpcCall(streamDirectPredict, $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse, request, callback); - }, "name", { value: "StreamDirectPredict" }); - - /** - * Calls StreamDirectPredict. - * @function streamDirectPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} request StreamDirectPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectRawPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef StreamDirectRawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} [response] StreamDirectRawPredictResponse - */ - - /** - * Calls StreamDirectRawPredict. - * @function streamDirectRawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} request StreamDirectRawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectRawPredictCallback} callback Node-style callback called with the error, if any, and StreamDirectRawPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.streamDirectRawPredict = function streamDirectRawPredict(request, callback) { - return this.rpcCall(streamDirectRawPredict, $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse, request, callback); - }, "name", { value: "StreamDirectRawPredict" }); - - /** - * Calls StreamDirectRawPredict. - * @function streamDirectRawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} request StreamDirectRawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef StreamingPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} [response] StreamingPredictResponse - */ - - /** - * Calls StreamingPredict. - * @function streamingPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamingPredictCallback} callback Node-style callback called with the error, if any, and StreamingPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.streamingPredict = function streamingPredict(request, callback) { - return this.rpcCall(streamingPredict, $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse, request, callback); - }, "name", { value: "StreamingPredict" }); - - /** - * Calls StreamingPredict. - * @function streamingPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|serverStreamingPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef ServerStreamingPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} [response] StreamingPredictResponse - */ - - /** - * Calls ServerStreamingPredict. - * @function serverStreamingPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.ServerStreamingPredictCallback} callback Node-style callback called with the error, if any, and StreamingPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.serverStreamingPredict = function serverStreamingPredict(request, callback) { - return this.rpcCall(serverStreamingPredict, $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse, request, callback); - }, "name", { value: "ServerStreamingPredict" }); - - /** - * Calls ServerStreamingPredict. - * @function serverStreamingPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingRawPredict}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef StreamingRawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} [response] StreamingRawPredictResponse - */ - - /** - * Calls StreamingRawPredict. - * @function streamingRawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} request StreamingRawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamingRawPredictCallback} callback Node-style callback called with the error, if any, and StreamingRawPredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.streamingRawPredict = function streamingRawPredict(request, callback) { - return this.rpcCall(streamingRawPredict, $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse, request, callback); - }, "name", { value: "StreamingRawPredict" }); - - /** - * Calls StreamingRawPredict. - * @function streamingRawPredict - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} request StreamingRawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|explain}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef ExplainCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse} [response] ExplainResponse - */ - - /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} request ExplainRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { - return this.rpcCall(explain, $root.google.cloud.aiplatform.v1beta1.ExplainRequest, $root.google.cloud.aiplatform.v1beta1.ExplainResponse, request, callback); - }, "name", { value: "Explain" }); - - /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} request ExplainRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|countTokens}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef CountTokensCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CountTokensResponse} [response] CountTokensResponse - */ - - /** - * Calls CountTokens. - * @function countTokens - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} request CountTokensRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.CountTokensCallback} callback Node-style callback called with the error, if any, and CountTokensResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.countTokens = function countTokens(request, callback) { - return this.rpcCall(countTokens, $root.google.cloud.aiplatform.v1beta1.CountTokensRequest, $root.google.cloud.aiplatform.v1beta1.CountTokensResponse, request, callback); - }, "name", { value: "CountTokens" }); - - /** - * Calls CountTokens. - * @function countTokens - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} request CountTokensRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|generateContent}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef GenerateContentCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|findNeighbors}. + * @memberof google.cloud.aiplatform.v1beta1.MatchService + * @typedef FindNeighborsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse} [response] GenerateContentResponse + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} [response] FindNeighborsResponse */ /** - * Calls GenerateContent. - * @function generateContent - * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * Calls FindNeighbors. + * @function findNeighbors + * @memberof google.cloud.aiplatform.v1beta1.MatchService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.GenerateContentCallback} callback Node-style callback called with the error, if any, and GenerateContentResponse + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} request FindNeighborsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MatchService.FindNeighborsCallback} callback Node-style callback called with the error, if any, and FindNeighborsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PredictionService.prototype.generateContent = function generateContent(request, callback) { - return this.rpcCall(generateContent, $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest, $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse, request, callback); - }, "name", { value: "GenerateContent" }); + Object.defineProperty(MatchService.prototype.findNeighbors = function findNeighbors(request, callback) { + return this.rpcCall(findNeighbors, $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest, $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse, request, callback); + }, "name", { value: "FindNeighbors" }); /** - * Calls GenerateContent. - * @function generateContent - * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * Calls FindNeighbors. + * @function findNeighbors + * @memberof google.cloud.aiplatform.v1beta1.MatchService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} request FindNeighborsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamGenerateContent}. - * @memberof google.cloud.aiplatform.v1beta1.PredictionService - * @typedef StreamGenerateContentCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|readIndexDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.MatchService + * @typedef ReadIndexDatapointsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse} [response] GenerateContentResponse + * @param {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} [response] ReadIndexDatapointsResponse */ /** - * Calls StreamGenerateContent. - * @function streamGenerateContent - * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * Calls ReadIndexDatapoints. + * @function readIndexDatapoints + * @memberof google.cloud.aiplatform.v1beta1.MatchService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamGenerateContentCallback} callback Node-style callback called with the error, if any, and GenerateContentResponse + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} request ReadIndexDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MatchService.ReadIndexDatapointsCallback} callback Node-style callback called with the error, if any, and ReadIndexDatapointsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PredictionService.prototype.streamGenerateContent = function streamGenerateContent(request, callback) { - return this.rpcCall(streamGenerateContent, $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest, $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse, request, callback); - }, "name", { value: "StreamGenerateContent" }); + Object.defineProperty(MatchService.prototype.readIndexDatapoints = function readIndexDatapoints(request, callback) { + return this.rpcCall(readIndexDatapoints, $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse, request, callback); + }, "name", { value: "ReadIndexDatapoints" }); /** - * Calls StreamGenerateContent. - * @function streamGenerateContent - * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * Calls ReadIndexDatapoints. + * @function readIndexDatapoints + * @memberof google.cloud.aiplatform.v1beta1.MatchService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} request ReadIndexDatapointsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return PredictionService; + return MatchService; })(); - v1beta1.PredictRequest = (function() { + v1beta1.FindNeighborsRequest = (function() { /** - * Properties of a PredictRequest. + * Properties of a FindNeighborsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPredictRequest - * @property {string|null} [endpoint] PredictRequest endpoint - * @property {Array.|null} [instances] PredictRequest instances - * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + * @interface IFindNeighborsRequest + * @property {string|null} [indexEndpoint] FindNeighborsRequest indexEndpoint + * @property {string|null} [deployedIndexId] FindNeighborsRequest deployedIndexId + * @property {Array.|null} [queries] FindNeighborsRequest queries + * @property {boolean|null} [returnFullDatapoint] FindNeighborsRequest returnFullDatapoint */ /** - * Constructs a new PredictRequest. + * Constructs a new FindNeighborsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredictRequest. - * @implements IPredictRequest + * @classdesc Represents a FindNeighborsRequest. + * @implements IFindNeighborsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest=} [properties] Properties to set */ - function PredictRequest(properties) { - this.instances = []; + function FindNeighborsRequest(properties) { + this.queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -364284,106 +367308,120 @@ } /** - * PredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * FindNeighborsRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @instance */ - PredictRequest.prototype.endpoint = ""; + FindNeighborsRequest.prototype.indexEndpoint = ""; /** - * PredictRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * FindNeighborsRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @instance */ - PredictRequest.prototype.instances = $util.emptyArray; + FindNeighborsRequest.prototype.deployedIndexId = ""; /** - * PredictRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * FindNeighborsRequest queries. + * @member {Array.} queries + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @instance */ - PredictRequest.prototype.parameters = null; + FindNeighborsRequest.prototype.queries = $util.emptyArray; /** - * Creates a new PredictRequest instance using the specified properties. + * FindNeighborsRequest returnFullDatapoint. + * @member {boolean} returnFullDatapoint + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @instance + */ + FindNeighborsRequest.prototype.returnFullDatapoint = false; + + /** + * Creates a new FindNeighborsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest instance */ - PredictRequest.create = function create(properties) { - return new PredictRequest(properties); + FindNeighborsRequest.create = function create(properties) { + return new FindNeighborsRequest(properties); }; /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. + * Encodes the specified FindNeighborsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} message FindNeighborsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encode = function encode(message, writer) { + FindNeighborsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.queries != null && message.queries.length) + for (var i = 0; i < message.queries.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.encode(message.queries[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.returnFullDatapoint != null && Object.hasOwnProperty.call(message, "returnFullDatapoint")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.returnFullDatapoint); return writer; }; /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. + * Encodes the specified FindNeighborsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} message FindNeighborsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + FindNeighborsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictRequest message from the specified reader or buffer. + * Decodes a FindNeighborsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decode = function decode(reader, length) { + FindNeighborsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.indexEndpoint = reader.string(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.deployedIndexId = reader.string(); break; } case 3: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + if (!(message.queries && message.queries.length)) + message.queries = []; + message.queries.push($root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.decode(reader, reader.uint32())); + break; + } + case 4: { + message.returnFullDatapoint = reader.bool(); break; } default: @@ -364395,509 +367433,467 @@ }; /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FindNeighborsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decodeDelimited = function decodeDelimited(reader) { + FindNeighborsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictRequest message. + * Verifies a FindNeighborsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictRequest.verify = function verify(message) { + FindNeighborsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; + if (message.queries != null && message.hasOwnProperty("queries")) { + if (!Array.isArray(message.queries)) + return "queries: array expected"; + for (var i = 0; i < message.queries.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify(message.queries[i]); if (error) - return "instances." + error; + return "queries." + error; } } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Value.verify(message.parameters); - if (error) - return "parameters." + error; - } + if (message.returnFullDatapoint != null && message.hasOwnProperty("returnFullDatapoint")) + if (typeof message.returnFullDatapoint !== "boolean") + return "returnFullDatapoint: boolean expected"; return null; }; /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FindNeighborsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest */ - PredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictRequest) + FindNeighborsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); + if (object.queries) { + if (!Array.isArray(object.queries)) + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsRequest.queries: array expected"); + message.queries = []; + for (var i = 0; i < object.queries.length; ++i) { + if (typeof object.queries[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsRequest.queries: object expected"); + message.queries[i] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.fromObject(object.queries[i]); } } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequest.parameters: object expected"); - message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); - } + if (object.returnFullDatapoint != null) + message.returnFullDatapoint = Boolean(object.returnFullDatapoint); return message; }; /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a FindNeighborsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PredictRequest} message PredictRequest + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} message FindNeighborsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictRequest.toObject = function toObject(message, options) { + FindNeighborsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.instances = []; + object.queries = []; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; + object.indexEndpoint = ""; + object.deployedIndexId = ""; + object.returnFullDatapoint = false; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; + if (message.queries && message.queries.length) { + object.queries = []; + for (var j = 0; j < message.queries.length; ++j) + object.queries[j] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.toObject(message.queries[j], options); } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.returnFullDatapoint != null && message.hasOwnProperty("returnFullDatapoint")) + object.returnFullDatapoint = message.returnFullDatapoint; return object; }; /** - * Converts this PredictRequest to JSON. + * Converts this FindNeighborsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @instance * @returns {Object.} JSON object */ - PredictRequest.prototype.toJSON = function toJSON() { + FindNeighborsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictRequest + * Gets the default type url for FindNeighborsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FindNeighborsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsRequest"; }; - return PredictRequest; - })(); - - v1beta1.PredictResponse = (function() { - - /** - * Properties of a PredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPredictResponse - * @property {Array.|null} [predictions] PredictResponse predictions - * @property {string|null} [deployedModelId] PredictResponse deployedModelId - * @property {string|null} [model] PredictResponse model - * @property {string|null} [modelVersionId] PredictResponse modelVersionId - * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName - * @property {google.protobuf.IValue|null} [metadata] PredictResponse metadata - */ + FindNeighborsRequest.Query = (function() { - /** - * Constructs a new PredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredictResponse. - * @implements IPredictResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredictResponse=} [properties] Properties to set - */ - function PredictResponse(properties) { - this.predictions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a Query. + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @interface IQuery + * @property {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null} [datapoint] Query datapoint + * @property {number|null} [neighborCount] Query neighborCount + * @property {number|null} [perCrowdingAttributeNeighborCount] Query perCrowdingAttributeNeighborCount + * @property {number|null} [approximateNeighborCount] Query approximateNeighborCount + * @property {number|null} [fractionLeafNodesToSearchOverride] Query fractionLeafNodesToSearchOverride + */ - /** - * PredictResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - */ - PredictResponse.prototype.predictions = $util.emptyArray; + /** + * Constructs a new Query. + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @classdesc Represents a Query. + * @implements IQuery + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery=} [properties] Properties to set + */ + function Query(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * PredictResponse deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - */ - PredictResponse.prototype.deployedModelId = ""; + /** + * Query datapoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null|undefined} datapoint + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @instance + */ + Query.prototype.datapoint = null; - /** - * PredictResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - */ - PredictResponse.prototype.model = ""; + /** + * Query neighborCount. + * @member {number} neighborCount + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @instance + */ + Query.prototype.neighborCount = 0; - /** - * PredictResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - */ - PredictResponse.prototype.modelVersionId = ""; + /** + * Query perCrowdingAttributeNeighborCount. + * @member {number} perCrowdingAttributeNeighborCount + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @instance + */ + Query.prototype.perCrowdingAttributeNeighborCount = 0; - /** - * PredictResponse modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - */ - PredictResponse.prototype.modelDisplayName = ""; + /** + * Query approximateNeighborCount. + * @member {number} approximateNeighborCount + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @instance + */ + Query.prototype.approximateNeighborCount = 0; - /** - * PredictResponse metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - */ - PredictResponse.prototype.metadata = null; + /** + * Query fractionLeafNodesToSearchOverride. + * @member {number} fractionLeafNodesToSearchOverride + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @instance + */ + Query.prototype.fractionLeafNodesToSearchOverride = 0; - /** - * Creates a new PredictResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse instance - */ - PredictResponse.create = function create(properties) { - return new PredictResponse(properties); - }; + /** + * Creates a new Query instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query instance + */ + Query.create = function create(properties) { + return new Query(properties); + }; - /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictResponse} message PredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.predictions != null && message.predictions.length) - for (var i = 0; i < message.predictions.length; ++i) - $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Query message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery} message Query message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Query.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapoint != null && Object.hasOwnProperty.call(message, "datapoint")) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.neighborCount != null && Object.hasOwnProperty.call(message, "neighborCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.neighborCount); + if (message.perCrowdingAttributeNeighborCount != null && Object.hasOwnProperty.call(message, "perCrowdingAttributeNeighborCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.perCrowdingAttributeNeighborCount); + if (message.approximateNeighborCount != null && Object.hasOwnProperty.call(message, "approximateNeighborCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.approximateNeighborCount); + if (message.fractionLeafNodesToSearchOverride != null && Object.hasOwnProperty.call(message, "fractionLeafNodesToSearchOverride")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.fractionLeafNodesToSearchOverride); + return writer; + }; - /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictResponse} message PredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Query message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery} message Query message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Query.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PredictResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - } - case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.model = reader.string(); - break; - } - case 5: { - message.modelVersionId = reader.string(); - break; - } - case 4: { - message.modelDisplayName = reader.string(); - break; - } - case 6: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + /** + * Decodes a Query message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Query.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.neighborCount = reader.int32(); + break; + } + case 3: { + message.perCrowdingAttributeNeighborCount = reader.int32(); + break; + } + case 4: { + message.approximateNeighborCount = reader.int32(); + break; + } + case 5: { + message.fractionLeafNodesToSearchOverride = reader.double(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Query message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Query.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PredictResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PredictResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.predictions != null && message.hasOwnProperty("predictions")) { - if (!Array.isArray(message.predictions)) - return "predictions: array expected"; - for (var i = 0; i < message.predictions.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.predictions[i]); + /** + * Verifies a Query message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Query.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapoint != null && message.hasOwnProperty("datapoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoint); if (error) - return "predictions." + error; + return "datapoint." + error; } - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; + if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) + if (!$util.isInteger(message.neighborCount)) + return "neighborCount: integer expected"; + if (message.perCrowdingAttributeNeighborCount != null && message.hasOwnProperty("perCrowdingAttributeNeighborCount")) + if (!$util.isInteger(message.perCrowdingAttributeNeighborCount)) + return "perCrowdingAttributeNeighborCount: integer expected"; + if (message.approximateNeighborCount != null && message.hasOwnProperty("approximateNeighborCount")) + if (!$util.isInteger(message.approximateNeighborCount)) + return "approximateNeighborCount: integer expected"; + if (message.fractionLeafNodesToSearchOverride != null && message.hasOwnProperty("fractionLeafNodesToSearchOverride")) + if (typeof message.fractionLeafNodesToSearchOverride !== "number") + return "fractionLeafNodesToSearchOverride: number expected"; + return null; + }; - /** - * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse - */ - PredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PredictResponse(); - if (object.predictions) { - if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictResponse.predictions: array expected"); - message.predictions = []; - for (var i = 0; i < object.predictions.length; ++i) { - if (typeof object.predictions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictResponse.predictions: object expected"); - message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + /** + * Creates a Query message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query + */ + Query.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query(); + if (object.datapoint != null) { + if (typeof object.datapoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.datapoint: object expected"); + message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoint); } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictResponse.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - return message; - }; + if (object.neighborCount != null) + message.neighborCount = object.neighborCount | 0; + if (object.perCrowdingAttributeNeighborCount != null) + message.perCrowdingAttributeNeighborCount = object.perCrowdingAttributeNeighborCount | 0; + if (object.approximateNeighborCount != null) + message.approximateNeighborCount = object.approximateNeighborCount | 0; + if (object.fractionLeafNodesToSearchOverride != null) + message.fractionLeafNodesToSearchOverride = Number(object.fractionLeafNodesToSearchOverride); + return message; + }; - /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.PredictResponse} message PredictResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PredictResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.predictions = []; - if (options.defaults) { - object.deployedModelId = ""; - object.model = ""; - object.modelDisplayName = ""; - object.modelVersionId = ""; - object.metadata = null; - } - if (message.predictions && message.predictions.length) { - object.predictions = []; - for (var j = 0; j < message.predictions.length; ++j) - object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - return object; - }; + /** + * Creates a plain object from a Query message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} message Query + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Query.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.datapoint = null; + object.neighborCount = 0; + object.perCrowdingAttributeNeighborCount = 0; + object.approximateNeighborCount = 0; + object.fractionLeafNodesToSearchOverride = 0; + } + if (message.datapoint != null && message.hasOwnProperty("datapoint")) + object.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoint, options); + if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) + object.neighborCount = message.neighborCount; + if (message.perCrowdingAttributeNeighborCount != null && message.hasOwnProperty("perCrowdingAttributeNeighborCount")) + object.perCrowdingAttributeNeighborCount = message.perCrowdingAttributeNeighborCount; + if (message.approximateNeighborCount != null && message.hasOwnProperty("approximateNeighborCount")) + object.approximateNeighborCount = message.approximateNeighborCount; + if (message.fractionLeafNodesToSearchOverride != null && message.hasOwnProperty("fractionLeafNodesToSearchOverride")) + object.fractionLeafNodesToSearchOverride = options.json && !isFinite(message.fractionLeafNodesToSearchOverride) ? String(message.fractionLeafNodesToSearchOverride) : message.fractionLeafNodesToSearchOverride; + return object; + }; - /** - * Converts this PredictResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @instance - * @returns {Object.} JSON object - */ - PredictResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Query to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @instance + * @returns {Object.} JSON object + */ + Query.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for PredictResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PredictResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredictResponse"; - }; + /** + * Gets the default type url for Query + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Query.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query"; + }; - return PredictResponse; + return Query; + })(); + + return FindNeighborsRequest; })(); - v1beta1.RawPredictRequest = (function() { + v1beta1.FindNeighborsResponse = (function() { /** - * Properties of a RawPredictRequest. + * Properties of a FindNeighborsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRawPredictRequest - * @property {string|null} [endpoint] RawPredictRequest endpoint - * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody + * @interface IFindNeighborsResponse + * @property {Array.|null} [nearestNeighbors] FindNeighborsResponse nearestNeighbors */ /** - * Constructs a new RawPredictRequest. + * Constructs a new FindNeighborsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RawPredictRequest. - * @implements IRawPredictRequest + * @classdesc Represents a FindNeighborsResponse. + * @implements IFindNeighborsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse=} [properties] Properties to set */ - function RawPredictRequest(properties) { + function FindNeighborsResponse(properties) { + this.nearestNeighbors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -364905,89 +367901,78 @@ } /** - * RawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest - * @instance - */ - RawPredictRequest.prototype.endpoint = ""; - - /** - * RawPredictRequest httpBody. - * @member {google.api.IHttpBody|null|undefined} httpBody - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * FindNeighborsResponse nearestNeighbors. + * @member {Array.} nearestNeighbors + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @instance */ - RawPredictRequest.prototype.httpBody = null; + FindNeighborsResponse.prototype.nearestNeighbors = $util.emptyArray; /** - * Creates a new RawPredictRequest instance using the specified properties. + * Creates a new FindNeighborsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse instance */ - RawPredictRequest.create = function create(properties) { - return new RawPredictRequest(properties); + FindNeighborsResponse.create = function create(properties) { + return new FindNeighborsResponse(properties); }; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. + * Encodes the specified FindNeighborsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse} message FindNeighborsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encode = function encode(message, writer) { + FindNeighborsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) - $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nearestNeighbors != null && message.nearestNeighbors.length) + for (var i = 0; i < message.nearestNeighbors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.encode(message.nearestNeighbors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. + * Encodes the specified FindNeighborsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse} message FindNeighborsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + FindNeighborsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. + * Decodes a FindNeighborsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decode = function decode(reader, length) { + FindNeighborsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RawPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + if (!(message.nearestNeighbors && message.nearestNeighbors.length)) + message.nearestNeighbors = []; + message.nearestNeighbors.push($root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.decode(reader, reader.uint32())); break; } default: @@ -364999,139 +367984,622 @@ }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FindNeighborsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + FindNeighborsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RawPredictRequest message. + * Verifies a FindNeighborsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RawPredictRequest.verify = function verify(message) { + FindNeighborsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) { - var error = $root.google.api.HttpBody.verify(message.httpBody); - if (error) - return "httpBody." + error; + if (message.nearestNeighbors != null && message.hasOwnProperty("nearestNeighbors")) { + if (!Array.isArray(message.nearestNeighbors)) + return "nearestNeighbors: array expected"; + for (var i = 0; i < message.nearestNeighbors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify(message.nearestNeighbors[i]); + if (error) + return "nearestNeighbors." + error; + } } return null; }; /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FindNeighborsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse */ - RawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RawPredictRequest) + FindNeighborsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.RawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.httpBody != null) { - if (typeof object.httpBody !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.RawPredictRequest.httpBody: object expected"); - message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); + var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse(); + if (object.nearestNeighbors) { + if (!Array.isArray(object.nearestNeighbors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.nearestNeighbors: array expected"); + message.nearestNeighbors = []; + for (var i = 0; i < object.nearestNeighbors.length; ++i) { + if (typeof object.nearestNeighbors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.nearestNeighbors: object expected"); + message.nearestNeighbors[i] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.fromObject(object.nearestNeighbors[i]); + } } return message; }; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a FindNeighborsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.RawPredictRequest} message RawPredictRequest + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} message FindNeighborsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RawPredictRequest.toObject = function toObject(message, options) { + FindNeighborsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.httpBody = null; + if (options.arrays || options.defaults) + object.nearestNeighbors = []; + if (message.nearestNeighbors && message.nearestNeighbors.length) { + object.nearestNeighbors = []; + for (var j = 0; j < message.nearestNeighbors.length; ++j) + object.nearestNeighbors[j] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.toObject(message.nearestNeighbors[j], options); } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) - object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); return object; }; /** - * Converts this RawPredictRequest to JSON. + * Converts this FindNeighborsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @instance * @returns {Object.} JSON object */ - RawPredictRequest.prototype.toJSON = function toJSON() { + FindNeighborsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RawPredictRequest + * Gets the default type url for FindNeighborsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FindNeighborsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RawPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsResponse"; }; - return RawPredictRequest; + FindNeighborsResponse.Neighbor = (function() { + + /** + * Properties of a Neighbor. + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @interface INeighbor + * @property {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null} [datapoint] Neighbor datapoint + * @property {number|null} [distance] Neighbor distance + */ + + /** + * Constructs a new Neighbor. + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @classdesc Represents a Neighbor. + * @implements INeighbor + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor=} [properties] Properties to set + */ + function Neighbor(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Neighbor datapoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null|undefined} datapoint + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @instance + */ + Neighbor.prototype.datapoint = null; + + /** + * Neighbor distance. + * @member {number} distance + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @instance + */ + Neighbor.prototype.distance = 0; + + /** + * Creates a new Neighbor instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor instance + */ + Neighbor.create = function create(properties) { + return new Neighbor(properties); + }; + + /** + * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor} message Neighbor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Neighbor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapoint != null && Object.hasOwnProperty.call(message, "datapoint")) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.distance != null && Object.hasOwnProperty.call(message, "distance")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.distance); + return writer; + }; + + /** + * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor} message Neighbor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Neighbor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Neighbor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Neighbor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.distance = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Neighbor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Neighbor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Neighbor message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Neighbor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapoint != null && message.hasOwnProperty("datapoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoint); + if (error) + return "datapoint." + error; + } + if (message.distance != null && message.hasOwnProperty("distance")) + if (typeof message.distance !== "number") + return "distance: number expected"; + return null; + }; + + /** + * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor + */ + Neighbor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor(); + if (object.datapoint != null) { + if (typeof object.datapoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.datapoint: object expected"); + message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoint); + } + if (object.distance != null) + message.distance = Number(object.distance); + return message; + }; + + /** + * Creates a plain object from a Neighbor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} message Neighbor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Neighbor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.datapoint = null; + object.distance = 0; + } + if (message.datapoint != null && message.hasOwnProperty("datapoint")) + object.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoint, options); + if (message.distance != null && message.hasOwnProperty("distance")) + object.distance = options.json && !isFinite(message.distance) ? String(message.distance) : message.distance; + return object; + }; + + /** + * Converts this Neighbor to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @instance + * @returns {Object.} JSON object + */ + Neighbor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Neighbor + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Neighbor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor"; + }; + + return Neighbor; + })(); + + FindNeighborsResponse.NearestNeighbors = (function() { + + /** + * Properties of a NearestNeighbors. + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @interface INearestNeighbors + * @property {string|null} [id] NearestNeighbors id + * @property {Array.|null} [neighbors] NearestNeighbors neighbors + */ + + /** + * Constructs a new NearestNeighbors. + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @classdesc Represents a NearestNeighbors. + * @implements INearestNeighbors + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors=} [properties] Properties to set + */ + function NearestNeighbors(properties) { + this.neighbors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NearestNeighbors id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @instance + */ + NearestNeighbors.prototype.id = ""; + + /** + * NearestNeighbors neighbors. + * @member {Array.} neighbors + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @instance + */ + NearestNeighbors.prototype.neighbors = $util.emptyArray; + + /** + * Creates a new NearestNeighbors instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors instance + */ + NearestNeighbors.create = function create(properties) { + return new NearestNeighbors(properties); + }; + + /** + * Encodes the specified NearestNeighbors message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors} message NearestNeighbors message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NearestNeighbors.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.neighbors != null && message.neighbors.length) + for (var i = 0; i < message.neighbors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.encode(message.neighbors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NearestNeighbors message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors} message NearestNeighbors message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NearestNeighbors.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NearestNeighbors message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NearestNeighbors.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + if (!(message.neighbors && message.neighbors.length)) + message.neighbors = []; + message.neighbors.push($root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NearestNeighbors message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NearestNeighbors.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NearestNeighbors message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NearestNeighbors.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.neighbors != null && message.hasOwnProperty("neighbors")) { + if (!Array.isArray(message.neighbors)) + return "neighbors: array expected"; + for (var i = 0; i < message.neighbors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify(message.neighbors[i]); + if (error) + return "neighbors." + error; + } + } + return null; + }; + + /** + * Creates a NearestNeighbors message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors + */ + NearestNeighbors.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors(); + if (object.id != null) + message.id = String(object.id); + if (object.neighbors) { + if (!Array.isArray(object.neighbors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.neighbors: array expected"); + message.neighbors = []; + for (var i = 0; i < object.neighbors.length; ++i) { + if (typeof object.neighbors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.neighbors: object expected"); + message.neighbors[i] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.fromObject(object.neighbors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a NearestNeighbors message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} message NearestNeighbors + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NearestNeighbors.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.neighbors = []; + if (options.defaults) + object.id = ""; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.neighbors && message.neighbors.length) { + object.neighbors = []; + for (var j = 0; j < message.neighbors.length; ++j) + object.neighbors[j] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.toObject(message.neighbors[j], options); + } + return object; + }; + + /** + * Converts this NearestNeighbors to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @instance + * @returns {Object.} JSON object + */ + NearestNeighbors.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NearestNeighbors + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NearestNeighbors.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors"; + }; + + return NearestNeighbors; + })(); + + return FindNeighborsResponse; })(); - v1beta1.DirectPredictRequest = (function() { + v1beta1.ReadIndexDatapointsRequest = (function() { /** - * Properties of a DirectPredictRequest. + * Properties of a ReadIndexDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDirectPredictRequest - * @property {string|null} [endpoint] DirectPredictRequest endpoint - * @property {Array.|null} [inputs] DirectPredictRequest inputs - * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] DirectPredictRequest parameters + * @interface IReadIndexDatapointsRequest + * @property {string|null} [indexEndpoint] ReadIndexDatapointsRequest indexEndpoint + * @property {string|null} [deployedIndexId] ReadIndexDatapointsRequest deployedIndexId + * @property {Array.|null} [ids] ReadIndexDatapointsRequest ids */ /** - * Constructs a new DirectPredictRequest. + * Constructs a new ReadIndexDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DirectPredictRequest. - * @implements IDirectPredictRequest + * @classdesc Represents a ReadIndexDatapointsRequest. + * @implements IReadIndexDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest=} [properties] Properties to set */ - function DirectPredictRequest(properties) { - this.inputs = []; + function ReadIndexDatapointsRequest(properties) { + this.ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -365139,106 +368607,106 @@ } /** - * DirectPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * ReadIndexDatapointsRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @instance */ - DirectPredictRequest.prototype.endpoint = ""; + ReadIndexDatapointsRequest.prototype.indexEndpoint = ""; /** - * DirectPredictRequest inputs. - * @member {Array.} inputs - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * ReadIndexDatapointsRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @instance */ - DirectPredictRequest.prototype.inputs = $util.emptyArray; + ReadIndexDatapointsRequest.prototype.deployedIndexId = ""; /** - * DirectPredictRequest parameters. - * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * ReadIndexDatapointsRequest ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @instance */ - DirectPredictRequest.prototype.parameters = null; + ReadIndexDatapointsRequest.prototype.ids = $util.emptyArray; /** - * Creates a new DirectPredictRequest instance using the specified properties. + * Creates a new ReadIndexDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest instance + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest instance */ - DirectPredictRequest.create = function create(properties) { - return new DirectPredictRequest(properties); + ReadIndexDatapointsRequest.create = function create(properties) { + return new ReadIndexDatapointsRequest(properties); }; /** - * Encodes the specified DirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. + * Encodes the specified ReadIndexDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} message DirectPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} message ReadIndexDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DirectPredictRequest.encode = function encode(message, writer) { + ReadIndexDatapointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ids[i]); + return writer; + }; + /** - * Encodes the specified DirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. + * Encodes the specified ReadIndexDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} message DirectPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} message ReadIndexDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DirectPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadIndexDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DirectPredictRequest message from the specified reader or buffer. + * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DirectPredictRequest.decode = function decode(reader, length) { + ReadIndexDatapointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.indexEndpoint = reader.string(); break; } case 2: { - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + message.deployedIndexId = reader.string(); break; } case 3: { - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push(reader.string()); break; } default: @@ -365250,164 +368718,153 @@ }; /** - * Decodes a DirectPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DirectPredictRequest.decodeDelimited = function decodeDelimited(reader) { + ReadIndexDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DirectPredictRequest message. + * Verifies a ReadIndexDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DirectPredictRequest.verify = function verify(message) { + ReadIndexDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); - if (error) - return "parameters." + error; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isString(message.ids[i])) + return "ids: string[] expected"; } return null; }; /** - * Creates a DirectPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadIndexDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest */ - DirectPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest) + ReadIndexDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.inputs) { - if (!Array.isArray(object.inputs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictRequest.inputs: array expected"); - message.inputs = []; - for (var i = 0; i < object.inputs.length; ++i) { - if (typeof object.inputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictRequest.inputs: object expected"); - message.inputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.inputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictRequest.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + var message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + message.ids[i] = String(object.ids[i]); } return message; }; /** - * Creates a plain object from a DirectPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadIndexDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DirectPredictRequest} message DirectPredictRequest + * @param {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} message ReadIndexDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DirectPredictRequest.toObject = function toObject(message, options) { + ReadIndexDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.inputs = []; + object.ids = []; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; + object.indexEndpoint = ""; + object.deployedIndexId = ""; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.inputs && message.inputs.length) { - object.inputs = []; - for (var j = 0; j < message.inputs.length; ++j) - object.inputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.inputs[j], options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + object.ids[j] = message.ids[j]; } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this DirectPredictRequest to JSON. + * Converts this ReadIndexDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @instance * @returns {Object.} JSON object */ - DirectPredictRequest.prototype.toJSON = function toJSON() { + ReadIndexDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DirectPredictRequest + * Gets the default type url for ReadIndexDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DirectPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadIndexDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest"; }; - return DirectPredictRequest; + return ReadIndexDatapointsRequest; })(); - v1beta1.DirectPredictResponse = (function() { + v1beta1.ReadIndexDatapointsResponse = (function() { /** - * Properties of a DirectPredictResponse. + * Properties of a ReadIndexDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDirectPredictResponse - * @property {Array.|null} [outputs] DirectPredictResponse outputs - * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] DirectPredictResponse parameters + * @interface IReadIndexDatapointsResponse + * @property {Array.|null} [datapoints] ReadIndexDatapointsResponse datapoints */ /** - * Constructs a new DirectPredictResponse. + * Constructs a new ReadIndexDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DirectPredictResponse. - * @implements IDirectPredictResponse + * @classdesc Represents a ReadIndexDatapointsResponse. + * @implements IReadIndexDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse=} [properties] Properties to set */ - function DirectPredictResponse(properties) { - this.outputs = []; + function ReadIndexDatapointsResponse(properties) { + this.datapoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -365415,92 +368872,78 @@ } /** - * DirectPredictResponse outputs. - * @member {Array.} outputs - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse - * @instance - */ - DirectPredictResponse.prototype.outputs = $util.emptyArray; - - /** - * DirectPredictResponse parameters. - * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * ReadIndexDatapointsResponse datapoints. + * @member {Array.} datapoints + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @instance */ - DirectPredictResponse.prototype.parameters = null; + ReadIndexDatapointsResponse.prototype.datapoints = $util.emptyArray; /** - * Creates a new DirectPredictResponse instance using the specified properties. + * Creates a new ReadIndexDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse instance + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse instance */ - DirectPredictResponse.create = function create(properties) { - return new DirectPredictResponse(properties); + ReadIndexDatapointsResponse.create = function create(properties) { + return new ReadIndexDatapointsResponse(properties); }; /** - * Encodes the specified DirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. + * Encodes the specified ReadIndexDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse} message DirectPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse} message ReadIndexDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DirectPredictResponse.encode = function encode(message, writer) { + ReadIndexDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. + * Encodes the specified ReadIndexDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse} message DirectPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse} message ReadIndexDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DirectPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadIndexDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DirectPredictResponse message from the specified reader or buffer. + * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DirectPredictResponse.decode = function decode(reader, length) { + ReadIndexDatapointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); - break; - } - case 2: { - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); + if (!(message.datapoints && message.datapoints.length)) + message.datapoints = []; + message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); break; } default: @@ -365512,155 +368955,144 @@ }; /** - * Decodes a DirectPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DirectPredictResponse.decodeDelimited = function decodeDelimited(reader) { + ReadIndexDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DirectPredictResponse message. + * Verifies a ReadIndexDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DirectPredictResponse.verify = function verify(message) { + ReadIndexDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.outputs[i]); + 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 "outputs." + error; + return "datapoints." + error; } } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); - if (error) - return "parameters." + error; - } return null; }; /** - * Creates a DirectPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadIndexDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse */ - DirectPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse) + ReadIndexDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse(); - if (object.outputs) { - if (!Array.isArray(object.outputs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictResponse.outputs: array expected"); - message.outputs = []; - for (var i = 0; i < object.outputs.length; ++i) { - if (typeof object.outputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictResponse.outputs: object expected"); - message.outputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.outputs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse(); + if (object.datapoints) { + if (!Array.isArray(object.datapoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.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.ReadIndexDatapointsResponse.datapoints: object expected"); + message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); } } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictResponse.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); - } return message; }; /** - * Creates a plain object from a DirectPredictResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadIndexDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DirectPredictResponse} message DirectPredictResponse + * @param {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} message ReadIndexDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DirectPredictResponse.toObject = function toObject(message, options) { + ReadIndexDatapointsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.outputs = []; - if (options.defaults) - object.parameters = null; - if (message.outputs && message.outputs.length) { - object.outputs = []; - for (var j = 0; j < message.outputs.length; ++j) - object.outputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.outputs[j], options); + object.datapoints = []; + 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); } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this DirectPredictResponse to JSON. + * Converts this ReadIndexDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @instance * @returns {Object.} JSON object */ - DirectPredictResponse.prototype.toJSON = function toJSON() { + ReadIndexDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DirectPredictResponse + * Gets the default type url for ReadIndexDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DirectPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadIndexDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectPredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse"; }; - return DirectPredictResponse; + return ReadIndexDatapointsResponse; })(); - v1beta1.DirectRawPredictRequest = (function() { + v1beta1.MetadataSchema = (function() { /** - * Properties of a DirectRawPredictRequest. + * Properties of a MetadataSchema. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDirectRawPredictRequest - * @property {string|null} [endpoint] DirectRawPredictRequest endpoint - * @property {string|null} [methodName] DirectRawPredictRequest methodName - * @property {Uint8Array|null} [input] DirectRawPredictRequest input + * @interface IMetadataSchema + * @property {string|null} [name] MetadataSchema name + * @property {string|null} [schemaVersion] MetadataSchema schemaVersion + * @property {string|null} [schema] MetadataSchema schema + * @property {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime + * @property {string|null} [description] MetadataSchema description */ /** - * Constructs a new DirectRawPredictRequest. + * Constructs a new MetadataSchema. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DirectRawPredictRequest. - * @implements IDirectRawPredictRequest + * @classdesc Represents a MetadataSchema. + * @implements IMetadataSchema * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set */ - function DirectRawPredictRequest(properties) { + function MetadataSchema(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -365668,103 +369100,145 @@ } /** - * DirectRawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * MetadataSchema name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @instance */ - DirectRawPredictRequest.prototype.endpoint = ""; + MetadataSchema.prototype.name = ""; /** - * DirectRawPredictRequest methodName. - * @member {string} methodName - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * MetadataSchema schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @instance */ - DirectRawPredictRequest.prototype.methodName = ""; + MetadataSchema.prototype.schemaVersion = ""; /** - * DirectRawPredictRequest input. - * @member {Uint8Array} input - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * MetadataSchema schema. + * @member {string} schema + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @instance */ - DirectRawPredictRequest.prototype.input = $util.newBuffer([]); + MetadataSchema.prototype.schema = ""; /** - * Creates a new DirectRawPredictRequest instance using the specified properties. + * MetadataSchema schemaType. + * @member {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType} schemaType + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.schemaType = 0; + + /** + * MetadataSchema createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.createTime = null; + + /** + * MetadataSchema description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.description = ""; + + /** + * Creates a new MetadataSchema instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema instance */ - DirectRawPredictRequest.create = function create(properties) { - return new DirectRawPredictRequest(properties); + MetadataSchema.create = function create(properties) { + return new MetadataSchema(properties); }; /** - * Encodes the specified DirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} message DirectRawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DirectRawPredictRequest.encode = function encode(message, writer) { + MetadataSchema.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.methodName != null && Object.hasOwnProperty.call(message, "methodName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.methodName); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.input); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); + if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); return writer; }; /** - * Encodes the specified DirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} message DirectRawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DirectRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DirectRawPredictRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DirectRawPredictRequest.decode = function decode(reader, length) { + MetadataSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.name = reader.string(); break; } case 2: { - message.methodName = reader.string(); + message.schemaVersion = reader.string(); break; } case 3: { - message.input = reader.bytes(); + message.schema = reader.string(); + break; + } + case 4: { + message.schemaType = reader.int32(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.description = reader.string(); break; } default: @@ -365776,1364 +369250,1308 @@ }; /** - * Decodes a DirectRawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DirectRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + MetadataSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DirectRawPredictRequest message. + * Verifies a MetadataSchema message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DirectRawPredictRequest.verify = function verify(message) { + MetadataSchema.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.methodName != null && message.hasOwnProperty("methodName")) - if (!$util.isString(message.methodName)) - return "methodName: string expected"; - if (message.input != null && message.hasOwnProperty("input")) - if (!(message.input && typeof message.input.length === "number" || $util.isString(message.input))) - return "input: buffer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + switch (message.schemaType) { + default: + return "schemaType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema */ - DirectRawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest) + MetadataSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataSchema) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.methodName != null) - message.methodName = String(object.methodName); - if (object.input != null) - if (typeof object.input === "string") - $util.base64.decode(object.input, message.input = $util.newBuffer($util.base64.length(object.input)), 0); - else if (object.input.length >= 0) - message.input = object.input; + var message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); + if (object.name != null) + message.name = String(object.name); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.schema != null) + message.schema = String(object.schema); + switch (object.schemaType) { + default: + if (typeof object.schemaType === "number") { + message.schemaType = object.schemaType; + break; + } + break; + case "METADATA_SCHEMA_TYPE_UNSPECIFIED": + case 0: + message.schemaType = 0; + break; + case "ARTIFACT_TYPE": + case 1: + message.schemaType = 1; + break; + case "EXECUTION_TYPE": + case 2: + message.schemaType = 2; + break; + case "CONTEXT_TYPE": + case 3: + message.schemaType = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataSchema.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DirectRawPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} message DirectRawPredictRequest + * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} message MetadataSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DirectRawPredictRequest.toObject = function toObject(message, options) { + MetadataSchema.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.endpoint = ""; - object.methodName = ""; - if (options.bytes === String) - object.input = ""; - else { - object.input = []; - if (options.bytes !== Array) - object.input = $util.newBuffer(object.input); - } + object.name = ""; + object.schemaVersion = ""; + object.schema = ""; + object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; + object.createTime = null; + object.description = ""; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.methodName != null && message.hasOwnProperty("methodName")) - object.methodName = message.methodName; - if (message.input != null && message.hasOwnProperty("input")) - object.input = options.bytes === String ? $util.base64.encode(message.input, 0, message.input.length) : options.bytes === Array ? Array.prototype.slice.call(message.input) : message.input; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType[message.schemaType] === undefined ? message.schemaType : $root.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this DirectRawPredictRequest to JSON. + * Converts this MetadataSchema to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @instance * @returns {Object.} JSON object */ - DirectRawPredictRequest.prototype.toJSON = function toJSON() { + MetadataSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DirectRawPredictRequest + * Gets the default type url for MetadataSchema * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DirectRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectRawPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetadataSchema"; }; - return DirectRawPredictRequest; - })(); - - v1beta1.DirectRawPredictResponse = (function() { - /** - * Properties of a DirectRawPredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDirectRawPredictResponse - * @property {Uint8Array|null} [output] DirectRawPredictResponse output + * MetadataSchemaType enum. + * @name google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType + * @enum {number} + * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value + * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value + * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value + * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value */ + MetadataSchema.MetadataSchemaType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ARTIFACT_TYPE"] = 1; + values[valuesById[2] = "EXECUTION_TYPE"] = 2; + values[valuesById[3] = "CONTEXT_TYPE"] = 3; + return values; + })(); + + return MetadataSchema; + })(); + + v1beta1.MetadataService = (function() { /** - * Constructs a new DirectRawPredictResponse. + * Constructs a new MetadataService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DirectRawPredictResponse. - * @implements IDirectRawPredictResponse + * @classdesc Represents a MetadataService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function DirectRawPredictResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function MetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * DirectRawPredictResponse output. - * @member {Uint8Array} output - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @instance - */ - DirectRawPredictResponse.prototype.output = $util.newBuffer([]); + (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; /** - * Creates a new DirectRawPredictResponse instance using the specified properties. + * Creates new MetadataService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MetadataService} RPC service. Useful where requests and/or responses are streamed. */ - DirectRawPredictResponse.create = function create(properties) { - return new DirectRawPredictResponse(properties); + MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified DirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse} message DirectRawPredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataStore}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - DirectRawPredictResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.output != null && Object.hasOwnProperty.call(message, "output")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.output); - return writer; - }; /** - * Encodes the specified DirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse} message DirectRawPredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DirectRawPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { + return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateMetadataStore" }); /** - * Decodes a DirectRawPredictResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DirectRawPredictResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.output = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DirectRawPredictResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataStore}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.MetadataStore} [response] MetadataStore */ - DirectRawPredictResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DirectRawPredictResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore + * @returns {undefined} + * @variation 1 */ - DirectRawPredictResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.output != null && message.hasOwnProperty("output")) - if (!(message.output && typeof message.output.length === "number" || $util.isString(message.output))) - return "output: buffer expected"; - return null; - }; + Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { + return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1beta1.MetadataStore, request, callback); + }, "name", { value: "GetMetadataStore" }); /** - * Creates a DirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DirectRawPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse(); - if (object.output != null) - if (typeof object.output === "string") - $util.base64.decode(object.output, message.output = $util.newBuffer($util.base64.length(object.output)), 0); - else if (object.output.length >= 0) - message.output = object.output; - return message; - }; /** - * Creates a plain object from a DirectRawPredictResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} message DirectRawPredictResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataStores}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListMetadataStoresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse */ - DirectRawPredictResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.output = ""; - else { - object.output = []; - if (options.bytes !== Array) - object.output = $util.newBuffer(object.output); - } - if (message.output != null && message.hasOwnProperty("output")) - object.output = options.bytes === String ? $util.base64.encode(message.output, 0, message.output.length) : options.bytes === Array ? Array.prototype.slice.call(message.output) : message.output; - return object; - }; /** - * Converts this DirectRawPredictResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + * @returns {undefined} + * @variation 1 */ - DirectRawPredictResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { + return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, request, callback); + }, "name", { value: "ListMetadataStores" }); /** - * Gets the default type url for DirectRawPredictResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DirectRawPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectRawPredictResponse"; - }; - - return DirectRawPredictResponse; - })(); - - v1beta1.StreamDirectPredictRequest = (function() { /** - * Properties of a StreamDirectPredictRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamDirectPredictRequest - * @property {string|null} [endpoint] StreamDirectPredictRequest endpoint - * @property {Array.|null} [inputs] StreamDirectPredictRequest inputs - * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamDirectPredictRequest parameters + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteMetadataStore}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new StreamDirectPredictRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamDirectPredictRequest. - * @implements IStreamDirectPredictRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest=} [properties] Properties to set + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function StreamDirectPredictRequest(properties) { - this.inputs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { + return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteMetadataStore" }); /** - * StreamDirectPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictRequest.prototype.endpoint = ""; /** - * StreamDirectPredictRequest inputs. - * @member {Array.} inputs - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact */ - StreamDirectPredictRequest.prototype.inputs = $util.emptyArray; /** - * StreamDirectPredictRequest parameters. - * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictRequest.prototype.parameters = null; + Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { + return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); + }, "name", { value: "CreateArtifact" }); /** - * Creates a new StreamDirectPredictRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest instance + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictRequest.create = function create(properties) { - return new StreamDirectPredictRequest(properties); - }; /** - * Encodes the specified StreamDirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} message StreamDirectPredictRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact */ - StreamDirectPredictRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified StreamDirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} message StreamDirectPredictRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { + return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); + }, "name", { value: "GetArtifact" }); /** - * Decodes a StreamDirectPredictRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); - break; - } - case 3: { - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a StreamDirectPredictRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listArtifacts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} [response] ListArtifactsResponse */ - StreamDirectPredictRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a StreamDirectPredictRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); - if (error) - return "parameters." + error; - } - return null; - }; + Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { + return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse, request, callback); + }, "name", { value: "ListArtifacts" }); /** - * Creates a StreamDirectPredictRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.inputs) { - if (!Array.isArray(object.inputs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.inputs: array expected"); - message.inputs = []; - for (var i = 0; i < object.inputs.length; ++i) { - if (typeof object.inputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.inputs: object expected"); - message.inputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.inputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); - } - return message; - }; /** - * Creates a plain object from a StreamDirectPredictRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} message StreamDirectPredictRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef UpdateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact */ - StreamDirectPredictRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.inputs = []; - if (options.defaults) { - object.endpoint = ""; - object.parameters = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.inputs && message.inputs.length) { - object.inputs = []; - for (var j = 0; j < message.inputs.length; ++j) - object.inputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.inputs[j], options); - } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); - return object; - }; /** - * Converts this StreamDirectPredictRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { + return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); + }, "name", { value: "UpdateArtifact" }); /** - * Gets the default type url for StreamDirectPredictRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest"; - }; - return StreamDirectPredictRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - v1beta1.StreamDirectPredictResponse = (function() { + /** + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { + return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteArtifact" }); /** - * Properties of a StreamDirectPredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamDirectPredictResponse - * @property {Array.|null} [outputs] StreamDirectPredictResponse outputs - * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamDirectPredictResponse parameters + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new StreamDirectPredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamDirectPredictResponse. - * @implements IStreamDirectPredictResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeArtifacts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef PurgeArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function StreamDirectPredictResponse(properties) { - this.outputs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * StreamDirectPredictResponse outputs. - * @member {Array.} outputs - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictResponse.prototype.outputs = $util.emptyArray; + Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { + return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeArtifacts" }); /** - * StreamDirectPredictResponse parameters. - * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictResponse.prototype.parameters = null; /** - * Creates a new StreamDirectPredictResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context */ - StreamDirectPredictResponse.create = function create(properties) { - return new StreamDirectPredictResponse(properties); - }; /** - * Encodes the specified StreamDirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse} message StreamDirectPredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { + return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1beta1.CreateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); + }, "name", { value: "CreateContext" }); /** - * Encodes the specified StreamDirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse} message StreamDirectPredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a StreamDirectPredictResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context */ - StreamDirectPredictResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); - break; - } - case 2: { - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a StreamDirectPredictResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { + return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1beta1.GetContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); + }, "name", { value: "GetContext" }); /** - * Verifies a StreamDirectPredictResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); - if (error) - return "parameters." + error; - } - return null; - }; /** - * Creates a StreamDirectPredictResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listContexts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} [response] ListContextsResponse */ - StreamDirectPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse(); - if (object.outputs) { - if (!Array.isArray(object.outputs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.outputs: array expected"); - message.outputs = []; - for (var i = 0; i < object.outputs.length; ++i) { - if (typeof object.outputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.outputs: object expected"); - message.outputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.outputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); - } - return message; - }; /** - * Creates a plain object from a StreamDirectPredictResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} message StreamDirectPredictResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse + * @returns {undefined} + * @variation 1 */ - StreamDirectPredictResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.outputs = []; - if (options.defaults) - object.parameters = null; - if (message.outputs && message.outputs.length) { - object.outputs = []; - for (var j = 0; j < message.outputs.length; ++j) - object.outputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.outputs[j], options); - } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); - return object; - }; + Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { + return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1beta1.ListContextsRequest, $root.google.cloud.aiplatform.v1beta1.ListContextsResponse, request, callback); + }, "name", { value: "ListContexts" }); /** - * Converts this StreamDirectPredictResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectPredictResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for StreamDirectPredictResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse - * @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.MetadataService|updateContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef UpdateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context */ - StreamDirectPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse"; - }; - - return StreamDirectPredictResponse; - })(); - - v1beta1.StreamDirectRawPredictRequest = (function() { /** - * Properties of a StreamDirectRawPredictRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamDirectRawPredictRequest - * @property {string|null} [endpoint] StreamDirectRawPredictRequest endpoint - * @property {string|null} [methodName] StreamDirectRawPredictRequest methodName - * @property {Uint8Array|null} [input] StreamDirectRawPredictRequest input + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { + return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); + }, "name", { value: "UpdateContext" }); /** - * Constructs a new StreamDirectRawPredictRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamDirectRawPredictRequest. - * @implements IStreamDirectRawPredictRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest=} [properties] Properties to set + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function StreamDirectRawPredictRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * StreamDirectRawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - StreamDirectRawPredictRequest.prototype.endpoint = ""; /** - * StreamDirectRawPredictRequest methodName. - * @member {string} methodName - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictRequest.prototype.methodName = ""; + Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { + return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteContext" }); /** - * StreamDirectRawPredictRequest input. - * @member {Uint8Array} input - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictRequest.prototype.input = $util.newBuffer([]); /** - * Creates a new StreamDirectRawPredictRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeContexts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef PurgeContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - StreamDirectRawPredictRequest.create = function create(properties) { - return new StreamDirectRawPredictRequest(properties); - }; /** - * Encodes the specified StreamDirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} message StreamDirectRawPredictRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.methodName != null && Object.hasOwnProperty.call(message, "methodName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.methodName); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.input); - return writer; - }; + Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { + return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeContexts" }); /** - * Encodes the specified StreamDirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} message StreamDirectRawPredictRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextArtifactsAndExecutions}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef AddContextArtifactsAndExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse */ - StreamDirectRawPredictRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.methodName = reader.string(); - break; - } - case 3: { - message.input = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { + return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, request, callback); + }, "name", { value: "AddContextArtifactsAndExecutions" }); /** - * Verifies a StreamDirectRawPredictRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.methodName != null && message.hasOwnProperty("methodName")) - if (!$util.isString(message.methodName)) - return "methodName: string expected"; - if (message.input != null && message.hasOwnProperty("input")) - if (!(message.input && typeof message.input.length === "number" || $util.isString(message.input))) - return "input: buffer expected"; - return null; - }; /** - * Creates a StreamDirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextChildren}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef AddContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} [response] AddContextChildrenResponse */ - StreamDirectRawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.methodName != null) - message.methodName = String(object.methodName); - if (object.input != null) - if (typeof object.input === "string") - $util.base64.decode(object.input, message.input = $util.newBuffer($util.base64.length(object.input)), 0); - else if (object.input.length >= 0) - message.input = object.input; - return message; - }; /** - * Creates a plain object from a StreamDirectRawPredictRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} message StreamDirectRawPredictRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.methodName = ""; - if (options.bytes === String) - object.input = ""; - else { - object.input = []; - if (options.bytes !== Array) - object.input = $util.newBuffer(object.input); - } - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.methodName != null && message.hasOwnProperty("methodName")) - object.methodName = message.methodName; - if (message.input != null && message.hasOwnProperty("input")) - object.input = options.bytes === String ? $util.base64.encode(message.input, 0, message.input.length) : options.bytes === Array ? Array.prototype.slice.call(message.input) : message.input; - return object; - }; + Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { + return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, request, callback); + }, "name", { value: "AddContextChildren" }); /** - * Converts this StreamDirectRawPredictRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for StreamDirectRawPredictRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest - * @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.MetadataService|removeContextChildren}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef RemoveContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse */ - StreamDirectRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest"; - }; - return StreamDirectRawPredictRequest; - })(); - - v1beta1.StreamDirectRawPredictResponse = (function() { + /** + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { + return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse, request, callback); + }, "name", { value: "RemoveContextChildren" }); /** - * Properties of a StreamDirectRawPredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamDirectRawPredictResponse - * @property {Uint8Array|null} [output] StreamDirectRawPredictResponse output + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new StreamDirectRawPredictResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamDirectRawPredictResponse. - * @implements IStreamDirectRawPredictResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryContextLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef QueryContextLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph */ - function StreamDirectRawPredictResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * StreamDirectRawPredictResponse output. - * @member {Uint8Array} output - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictResponse.prototype.output = $util.newBuffer([]); + Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { + return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); + }, "name", { value: "QueryContextLineageSubgraph" }); /** - * Creates a new StreamDirectRawPredictResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse instance + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictResponse.create = function create(properties) { - return new StreamDirectRawPredictResponse(properties); - }; /** - * Encodes the specified StreamDirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse} message StreamDirectRawPredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution */ - StreamDirectRawPredictResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.output != null && Object.hasOwnProperty.call(message, "output")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.output); - return writer; - }; /** - * Encodes the specified StreamDirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse} message StreamDirectRawPredictResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); + }, "name", { value: "CreateExecution" }); /** - * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.output = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution */ - StreamDirectRawPredictResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a StreamDirectRawPredictResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.output != null && message.hasOwnProperty("output")) - if (!(message.output && typeof message.output.length === "number" || $util.isString(message.output))) - return "output: buffer expected"; - return null; - }; + Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); + }, "name", { value: "GetExecution" }); /** - * Creates a StreamDirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse(); - if (object.output != null) - if (typeof object.output === "string") - $util.base64.decode(object.output, message.output = $util.newBuffer($util.base64.length(object.output)), 0); - else if (object.output.length >= 0) - message.output = object.output; - return message; - }; /** - * Creates a plain object from a StreamDirectRawPredictResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} message StreamDirectRawPredictResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listExecutions}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} [response] ListExecutionsResponse */ - StreamDirectRawPredictResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.output = ""; - else { - object.output = []; - if (options.bytes !== Array) - object.output = $util.newBuffer(object.output); - } - if (message.output != null && message.hasOwnProperty("output")) - object.output = options.bytes === String ? $util.base64.encode(message.output, 0, message.output.length) : options.bytes === Array ? Array.prototype.slice.call(message.output) : message.output; - return object; - }; /** - * Converts this StreamDirectRawPredictResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse + * @returns {undefined} + * @variation 1 */ - StreamDirectRawPredictResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse, request, callback); + }, "name", { value: "ListExecutions" }); /** - * Gets the default type url for StreamDirectRawPredictResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - StreamDirectRawPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse"; - }; - return StreamDirectRawPredictResponse; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef UpdateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + */ + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { + return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); + }, "name", { value: "UpdateExecution" }); + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { + return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteExecution" }); + + /** + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeExecutions}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef PurgeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { + return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeExecutions" }); + + /** + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addExecutionEvents}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef AddExecutionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse + */ + + /** + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { + return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, request, callback); + }, "name", { value: "AddExecutionEvents" }); + + /** + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryExecutionInputsAndOutputs}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef QueryExecutionInputsAndOutputsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph + */ + + /** + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { + return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); + }, "name", { value: "QueryExecutionInputsAndOutputs" }); + + /** + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataSchema}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema + */ + + /** + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { + return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); + }, "name", { value: "CreateMetadataSchema" }); + + /** + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataSchema}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema + */ + + /** + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { + return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); + }, "name", { value: "GetMetadataSchema" }); + + /** + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataSchemas}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListMetadataSchemasCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse + */ + + /** + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { + return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, request, callback); + }, "name", { value: "ListMetadataSchemas" }); + + /** + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryArtifactLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef QueryArtifactLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph + */ + + /** + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { + return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); + }, "name", { value: "QueryArtifactLineageSubgraph" }); + + /** + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MetadataService; })(); - v1beta1.StreamingPredictRequest = (function() { + v1beta1.CreateMetadataStoreRequest = (function() { /** - * Properties of a StreamingPredictRequest. + * Properties of a CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamingPredictRequest - * @property {string|null} [endpoint] StreamingPredictRequest endpoint - * @property {Array.|null} [inputs] StreamingPredictRequest inputs - * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamingPredictRequest parameters + * @interface ICreateMetadataStoreRequest + * @property {string|null} [parent] CreateMetadataStoreRequest parent + * @property {google.cloud.aiplatform.v1beta1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore + * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId */ /** - * Constructs a new StreamingPredictRequest. + * Constructs a new CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamingPredictRequest. - * @implements IStreamingPredictRequest + * @classdesc Represents a CreateMetadataStoreRequest. + * @implements ICreateMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set */ - function StreamingPredictRequest(properties) { - this.inputs = []; + function CreateMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -367141,106 +370559,103 @@ } /** - * StreamingPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * CreateMetadataStoreRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance */ - StreamingPredictRequest.prototype.endpoint = ""; + CreateMetadataStoreRequest.prototype.parent = ""; /** - * StreamingPredictRequest inputs. - * @member {Array.} inputs - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * CreateMetadataStoreRequest metadataStore. + * @member {google.cloud.aiplatform.v1beta1.IMetadataStore|null|undefined} metadataStore + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance */ - StreamingPredictRequest.prototype.inputs = $util.emptyArray; + CreateMetadataStoreRequest.prototype.metadataStore = null; /** - * StreamingPredictRequest parameters. - * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * CreateMetadataStoreRequest metadataStoreId. + * @member {string} metadataStoreId + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance */ - StreamingPredictRequest.prototype.parameters = null; + CreateMetadataStoreRequest.prototype.metadataStoreId = ""; /** - * Creates a new StreamingPredictRequest instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance */ - StreamingPredictRequest.create = function create(properties) { - return new StreamingPredictRequest(properties); + CreateMetadataStoreRequest.create = function create(properties) { + return new CreateMetadataStoreRequest(properties); }; /** - * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictRequest.encode = function encode(message, writer) { + CreateMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) + $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); return writer; }; /** - * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictRequest.decode = function decode(reader, length) { + CreateMetadataStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32()); break; } case 3: { - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); + message.metadataStoreId = reader.string(); break; } default: @@ -367252,164 +370667,144 @@ }; /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictRequest.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingPredictRequest message. + * Verifies a CreateMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingPredictRequest.verify = function verify(message) { + CreateMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStore); if (error) - return "parameters." + error; + return "metadataStore." + error; } + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + if (!$util.isString(message.metadataStoreId)) + return "metadataStoreId: string expected"; return null; }; /** - * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest */ - StreamingPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest) + CreateMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.inputs) { - if (!Array.isArray(object.inputs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictRequest.inputs: array expected"); - message.inputs = []; - for (var i = 0; i < object.inputs.length; ++i) { - if (typeof object.inputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictRequest.inputs: object expected"); - message.inputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.inputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictRequest.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.metadataStore != null) { + if (typeof object.metadataStore !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.metadataStore: object expected"); + message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStore); } + if (object.metadataStoreId != null) + message.metadataStoreId = String(object.metadataStoreId); return message; }; /** - * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} message StreamingPredictRequest + * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingPredictRequest.toObject = function toObject(message, options) { + CreateMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.inputs = []; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.inputs && message.inputs.length) { - object.inputs = []; - for (var j = 0; j < message.inputs.length; ++j) - object.inputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.inputs[j], options); + object.parent = ""; + object.metadataStore = null; + object.metadataStoreId = ""; } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) + object.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStore, options); + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + object.metadataStoreId = message.metadataStoreId; return object; }; /** - * Converts this StreamingPredictRequest to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - StreamingPredictRequest.prototype.toJSON = function toJSON() { + CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingPredictRequest + * Gets the default type url for CreateMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest"; }; - return StreamingPredictRequest; + return CreateMetadataStoreRequest; })(); - v1beta1.StreamingPredictResponse = (function() { + v1beta1.CreateMetadataStoreOperationMetadata = (function() { /** - * Properties of a StreamingPredictResponse. + * Properties of a CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamingPredictResponse - * @property {Array.|null} [outputs] StreamingPredictResponse outputs - * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamingPredictResponse parameters + * @interface ICreateMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new StreamingPredictResponse. + * Constructs a new CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamingPredictResponse. - * @implements IStreamingPredictResponse + * @classdesc Represents a CreateMetadataStoreOperationMetadata. + * @implements ICreateMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set */ - function StreamingPredictResponse(properties) { - this.outputs = []; + function CreateMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -367417,92 +370812,75 @@ } /** - * StreamingPredictResponse outputs. - * @member {Array.} outputs - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse - * @instance - */ - StreamingPredictResponse.prototype.outputs = $util.emptyArray; - - /** - * StreamingPredictResponse parameters. - * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * CreateMetadataStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @instance */ - StreamingPredictResponse.prototype.parameters = null; + CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new StreamingPredictResponse instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance */ - StreamingPredictResponse.create = function create(properties) { - return new StreamingPredictResponse(properties); + CreateMetadataStoreOperationMetadata.create = function create(properties) { + return new CreateMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictResponse.encode = function encode(message, writer) { + CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictResponse.decode = function decode(reader, length) { + CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); - break; - } - case 2: { - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -367514,155 +370892,127 @@ }; /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictResponse.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingPredictResponse message. + * Verifies a CreateMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingPredictResponse.verify = function verify(message) { + CreateMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "parameters." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata */ - StreamingPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse) + CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse(); - if (object.outputs) { - if (!Array.isArray(object.outputs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictResponse.outputs: array expected"); - message.outputs = []; - for (var i = 0; i < object.outputs.length; ++i) { - if (typeof object.outputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictResponse.outputs: object expected"); - message.outputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.outputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictResponse.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} message StreamingPredictResponse + * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingPredictResponse.toObject = function toObject(message, options) { + CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.outputs = []; if (options.defaults) - object.parameters = null; - if (message.outputs && message.outputs.length) { - object.outputs = []; - for (var j = 0; j < message.outputs.length; ++j) - object.outputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.outputs[j], options); - } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this StreamingPredictResponse to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - StreamingPredictResponse.prototype.toJSON = function toJSON() { + CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingPredictResponse + * Gets the default type url for CreateMetadataStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingPredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata"; }; - return StreamingPredictResponse; + return CreateMetadataStoreOperationMetadata; })(); - v1beta1.StreamingRawPredictRequest = (function() { + v1beta1.GetMetadataStoreRequest = (function() { /** - * Properties of a StreamingRawPredictRequest. + * Properties of a GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamingRawPredictRequest - * @property {string|null} [endpoint] StreamingRawPredictRequest endpoint - * @property {string|null} [methodName] StreamingRawPredictRequest methodName - * @property {Uint8Array|null} [input] StreamingRawPredictRequest input + * @interface IGetMetadataStoreRequest + * @property {string|null} [name] GetMetadataStoreRequest name */ /** - * Constructs a new StreamingRawPredictRequest. + * Constructs a new GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamingRawPredictRequest. - * @implements IStreamingRawPredictRequest + * @classdesc Represents a GetMetadataStoreRequest. + * @implements IGetMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set */ - function StreamingRawPredictRequest(properties) { + function GetMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -367670,103 +371020,75 @@ } /** - * StreamingRawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest - * @instance - */ - StreamingRawPredictRequest.prototype.endpoint = ""; - - /** - * StreamingRawPredictRequest methodName. - * @member {string} methodName - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest - * @instance - */ - StreamingRawPredictRequest.prototype.methodName = ""; - - /** - * StreamingRawPredictRequest input. - * @member {Uint8Array} input - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * GetMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @instance */ - StreamingRawPredictRequest.prototype.input = $util.newBuffer([]); + GetMetadataStoreRequest.prototype.name = ""; /** - * Creates a new StreamingRawPredictRequest instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest instance */ - StreamingRawPredictRequest.create = function create(properties) { - return new StreamingRawPredictRequest(properties); + GetMetadataStoreRequest.create = function create(properties) { + return new GetMetadataStoreRequest(properties); }; /** - * Encodes the specified StreamingRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} message StreamingRawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRawPredictRequest.encode = function encode(message, writer) { + GetMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.methodName != null && Object.hasOwnProperty.call(message, "methodName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.methodName); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.input); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified StreamingRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} message StreamingRawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRawPredictRequest message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRawPredictRequest.decode = function decode(reader, length) { + GetMetadataStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.methodName = reader.string(); - break; - } - case 3: { - message.input = reader.bytes(); + message.name = reader.string(); break; } default: @@ -367778,148 +371100,124 @@ }; /** - * Decodes a StreamingRawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingRawPredictRequest message. + * Verifies a GetMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingRawPredictRequest.verify = function verify(message) { + GetMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.methodName != null && message.hasOwnProperty("methodName")) - if (!$util.isString(message.methodName)) - return "methodName: string expected"; - if (message.input != null && message.hasOwnProperty("input")) - if (!(message.input && typeof message.input.length === "number" || $util.isString(message.input))) - return "input: buffer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a StreamingRawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest */ - StreamingRawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest) + GetMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.methodName != null) - message.methodName = String(object.methodName); - if (object.input != null) - if (typeof object.input === "string") - $util.base64.decode(object.input, message.input = $util.newBuffer($util.base64.length(object.input)), 0); - else if (object.input.length >= 0) - message.input = object.input; + var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a StreamingRawPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} message StreamingRawPredictRequest + * @param {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} message GetMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRawPredictRequest.toObject = function toObject(message, options) { + GetMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.methodName = ""; - if (options.bytes === String) - object.input = ""; - else { - object.input = []; - if (options.bytes !== Array) - object.input = $util.newBuffer(object.input); - } - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.methodName != null && message.hasOwnProperty("methodName")) - object.methodName = message.methodName; - if (message.input != null && message.hasOwnProperty("input")) - object.input = options.bytes === String ? $util.base64.encode(message.input, 0, message.input.length) : options.bytes === Array ? Array.prototype.slice.call(message.input) : message.input; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this StreamingRawPredictRequest to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - StreamingRawPredictRequest.prototype.toJSON = function toJSON() { + GetMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingRawPredictRequest + * Gets the default type url for GetMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest"; }; - return StreamingRawPredictRequest; + return GetMetadataStoreRequest; })(); - v1beta1.StreamingRawPredictResponse = (function() { + v1beta1.ListMetadataStoresRequest = (function() { /** - * Properties of a StreamingRawPredictResponse. + * Properties of a ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamingRawPredictResponse - * @property {Uint8Array|null} [output] StreamingRawPredictResponse output + * @interface IListMetadataStoresRequest + * @property {string|null} [parent] ListMetadataStoresRequest parent + * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize + * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken */ /** - * Constructs a new StreamingRawPredictResponse. + * Constructs a new ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamingRawPredictResponse. - * @implements IStreamingRawPredictResponse + * @classdesc Represents a ListMetadataStoresRequest. + * @implements IListMetadataStoresRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set */ - function StreamingRawPredictResponse(properties) { + function ListMetadataStoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -367927,75 +371225,103 @@ } /** - * StreamingRawPredictResponse output. - * @member {Uint8Array} output - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * ListMetadataStoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @instance */ - StreamingRawPredictResponse.prototype.output = $util.newBuffer([]); + ListMetadataStoresRequest.prototype.parent = ""; /** - * Creates a new StreamingRawPredictResponse instance using the specified properties. + * ListMetadataStoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @instance + */ + ListMetadataStoresRequest.prototype.pageSize = 0; + + /** + * ListMetadataStoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @instance + */ + ListMetadataStoresRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest instance */ - StreamingRawPredictResponse.create = function create(properties) { - return new StreamingRawPredictResponse(properties); + ListMetadataStoresRequest.create = function create(properties) { + return new ListMetadataStoresRequest(properties); }; /** - * Encodes the specified StreamingRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse} message StreamingRawPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRawPredictResponse.encode = function encode(message, writer) { + ListMetadataStoresRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.output != null && Object.hasOwnProperty.call(message, "output")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.output); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified StreamingRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse} message StreamingRawPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRawPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRawPredictResponse message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRawPredictResponse.decode = function decode(reader, length) { + ListMetadataStoresRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.output = reader.bytes(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -368007,138 +371333,141 @@ }; /** - * Decodes a StreamingRawPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRawPredictResponse.decodeDelimited = function decodeDelimited(reader) { + ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingRawPredictResponse message. + * Verifies a ListMetadataStoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingRawPredictResponse.verify = function verify(message) { + ListMetadataStoresRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.output != null && message.hasOwnProperty("output")) - if (!(message.output && typeof message.output.length === "number" || $util.isString(message.output))) - return "output: buffer expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a StreamingRawPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest */ - StreamingRawPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse) + ListMetadataStoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse(); - if (object.output != null) - if (typeof object.output === "string") - $util.base64.decode(object.output, message.output = $util.newBuffer($util.base64.length(object.output)), 0); - else if (object.output.length >= 0) - message.output = object.output; + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a StreamingRawPredictResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} message StreamingRawPredictResponse + * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} message ListMetadataStoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRawPredictResponse.toObject = function toObject(message, options) { + ListMetadataStoresRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if (options.bytes === String) - object.output = ""; - else { - object.output = []; - if (options.bytes !== Array) - object.output = $util.newBuffer(object.output); - } - if (message.output != null && message.hasOwnProperty("output")) - object.output = options.bytes === String ? $util.base64.encode(message.output, 0, message.output.length) : options.bytes === Array ? Array.prototype.slice.call(message.output) : message.output; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this StreamingRawPredictResponse to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @instance * @returns {Object.} JSON object */ - StreamingRawPredictResponse.prototype.toJSON = function toJSON() { + ListMetadataStoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingRawPredictResponse + * Gets the default type url for ListMetadataStoresRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingRawPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest"; }; - return StreamingRawPredictResponse; + return ListMetadataStoresRequest; })(); - v1beta1.ExplainRequest = (function() { + v1beta1.ListMetadataStoresResponse = (function() { /** - * Properties of an ExplainRequest. + * Properties of a ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExplainRequest - * @property {string|null} [endpoint] ExplainRequest endpoint - * @property {Array.|null} [instances] ExplainRequest instances - * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters - * @property {google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride - * @property {Object.|null} [concurrentExplanationSpecOverride] ExplainRequest concurrentExplanationSpecOverride - * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + * @interface IListMetadataStoresResponse + * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores + * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken */ /** - * Constructs a new ExplainRequest. + * Constructs a new ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExplainRequest. - * @implements IExplainRequest + * @classdesc Represents a ListMetadataStoresResponse. + * @implements IListMetadataStoresResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExplainRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set */ - function ExplainRequest(properties) { - this.instances = []; - this.concurrentExplanationSpecOverride = {}; + function ListMetadataStoresResponse(properties) { + this.metadataStores = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -368146,170 +371475,92 @@ } /** - * ExplainRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.endpoint = ""; - - /** - * ExplainRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.instances = $util.emptyArray; - - /** - * ExplainRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.parameters = null; - - /** - * ExplainRequest explanationSpecOverride. - * @member {google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null|undefined} explanationSpecOverride - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.explanationSpecOverride = null; - - /** - * ExplainRequest concurrentExplanationSpecOverride. - * @member {Object.} concurrentExplanationSpecOverride - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * ListMetadataStoresResponse metadataStores. + * @member {Array.} metadataStores + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @instance */ - ExplainRequest.prototype.concurrentExplanationSpecOverride = $util.emptyObject; + ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; /** - * ExplainRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * ListMetadataStoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @instance */ - ExplainRequest.prototype.deployedModelId = ""; + ListMetadataStoresResponse.prototype.nextPageToken = ""; /** - * Creates a new ExplainRequest instance using the specified properties. + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExplainRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse instance */ - ExplainRequest.create = function create(properties) { - return new ExplainRequest(properties); + ListMetadataStoresResponse.create = function create(properties) { + return new ListMetadataStoresResponse(properties); }; /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encode = function encode(message, writer) { + ListMetadataStoresResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) - $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.concurrentExplanationSpecOverride != null && Object.hasOwnProperty.call(message, "concurrentExplanationSpecOverride")) - for (var keys = Object.keys(message.concurrentExplanationSpecOverride), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.encode(message.concurrentExplanationSpecOverride[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.metadataStores != null && message.metadataStores.length) + for (var i = 0; i < message.metadataStores.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decode = function decode(reader, length) { + ListMetadataStoresResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExplainRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + if (!(message.metadataStores && message.metadataStores.length)) + message.metadataStores = []; + message.metadataStores.push($root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - } - case 4: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 5: { - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.decode(reader, reader.uint32()); - break; - } - case 6: { - if (message.concurrentExplanationSpecOverride === $util.emptyObject) - message.concurrentExplanationSpecOverride = {}; - 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.ExplanationSpecOverride.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.concurrentExplanationSpecOverride[key] = value; - break; - } - case 3: { - message.deployedModelId = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -368321,217 +371572,149 @@ }; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainRequest message. + * Verifies a ListMetadataStoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainRequest.verify = function verify(message) { + ListMetadataStoresResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Value.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify(message.explanationSpecOverride); - if (error) - return "explanationSpecOverride." + error; - } - if (message.concurrentExplanationSpecOverride != null && message.hasOwnProperty("concurrentExplanationSpecOverride")) { - if (!$util.isObject(message.concurrentExplanationSpecOverride)) - return "concurrentExplanationSpecOverride: object expected"; - var key = Object.keys(message.concurrentExplanationSpecOverride); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify(message.concurrentExplanationSpecOverride[key[i]]); + if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { + if (!Array.isArray(message.metadataStores)) + return "metadataStores: array expected"; + for (var i = 0; i < message.metadataStores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStores[i]); if (error) - return "concurrentExplanationSpecOverride." + error; + return "metadataStores." + error; } } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse */ - ExplainRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExplainRequest) + ListMetadataStoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExplainRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.parameters: object expected"); - message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); - } - if (object.explanationSpecOverride != null) { - if (typeof object.explanationSpecOverride !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.explanationSpecOverride: object expected"); - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); - } - if (object.concurrentExplanationSpecOverride) { - if (typeof object.concurrentExplanationSpecOverride !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.concurrentExplanationSpecOverride: object expected"); - message.concurrentExplanationSpecOverride = {}; - for (var keys = Object.keys(object.concurrentExplanationSpecOverride), i = 0; i < keys.length; ++i) { - if (typeof object.concurrentExplanationSpecOverride[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.concurrentExplanationSpecOverride: object expected"); - message.concurrentExplanationSpecOverride[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.fromObject(object.concurrentExplanationSpecOverride[keys[i]]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); + if (object.metadataStores) { + if (!Array.isArray(object.metadataStores)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: array expected"); + message.metadataStores = []; + for (var i = 0; i < object.metadataStores.length; ++i) { + if (typeof object.metadataStores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: object expected"); + message.metadataStores[i] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStores[i]); } } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ExplainRequest} message ExplainRequest + * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} message ListMetadataStoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainRequest.toObject = function toObject(message, options) { + ListMetadataStoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.instances = []; - if (options.objects || options.defaults) - object.concurrentExplanationSpecOverride = {}; - if (options.defaults) { - object.endpoint = ""; - object.deployedModelId = ""; - object.parameters = null; - object.explanationSpecOverride = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) - object.explanationSpecOverride = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); - var keys2; - if (message.concurrentExplanationSpecOverride && (keys2 = Object.keys(message.concurrentExplanationSpecOverride)).length) { - object.concurrentExplanationSpecOverride = {}; - for (var j = 0; j < keys2.length; ++j) - object.concurrentExplanationSpecOverride[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.toObject(message.concurrentExplanationSpecOverride[keys2[j]], options); + object.metadataStores = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.metadataStores && message.metadataStores.length) { + object.metadataStores = []; + for (var j = 0; j < message.metadataStores.length; ++j) + object.metadataStores[j] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStores[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExplainRequest to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @instance * @returns {Object.} JSON object */ - ExplainRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplainRequest + * Gets the default type url for ListMetadataStoresResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExplainRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse"; }; - return ExplainRequest; + return ListMetadataStoresResponse; })(); - v1beta1.ExplainResponse = (function() { + v1beta1.DeleteMetadataStoreRequest = (function() { /** - * Properties of an ExplainResponse. + * Properties of a DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExplainResponse - * @property {Array.|null} [explanations] ExplainResponse explanations - * @property {Object.|null} [concurrentExplanations] ExplainResponse concurrentExplanations - * @property {string|null} [deployedModelId] ExplainResponse deployedModelId - * @property {Array.|null} [predictions] ExplainResponse predictions + * @interface IDeleteMetadataStoreRequest + * @property {string|null} [name] DeleteMetadataStoreRequest name + * @property {boolean|null} [force] DeleteMetadataStoreRequest force */ /** - * Constructs a new ExplainResponse. + * Constructs a new DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExplainResponse. - * @implements IExplainResponse + * @classdesc Represents a DeleteMetadataStoreRequest. + * @implements IDeleteMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExplainResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set */ - function ExplainResponse(properties) { - this.explanations = []; - this.concurrentExplanations = {}; - this.predictions = []; + function DeleteMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -368539,145 +371722,89 @@ } /** - * ExplainResponse explanations. - * @member {Array.} explanations - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse - * @instance - */ - ExplainResponse.prototype.explanations = $util.emptyArray; - - /** - * ExplainResponse concurrentExplanations. - * @member {Object.} concurrentExplanations - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse - * @instance - */ - ExplainResponse.prototype.concurrentExplanations = $util.emptyObject; - - /** - * ExplainResponse deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * DeleteMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @instance */ - ExplainResponse.prototype.deployedModelId = ""; + DeleteMetadataStoreRequest.prototype.name = ""; /** - * ExplainResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * DeleteMetadataStoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @instance */ - ExplainResponse.prototype.predictions = $util.emptyArray; + DeleteMetadataStoreRequest.prototype.force = false; /** - * Creates a new ExplainResponse instance using the specified properties. + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExplainResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance */ - ExplainResponse.create = function create(properties) { - return new ExplainResponse(properties); + DeleteMetadataStoreRequest.create = function create(properties) { + return new DeleteMetadataStoreRequest(properties); }; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encode = function encode(message, writer) { + DeleteMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.explanations != null && message.explanations.length) - for (var i = 0; i < message.explanations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.predictions != null && message.predictions.length) - for (var i = 0; i < message.predictions.length; ++i) - $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.concurrentExplanations != null && Object.hasOwnProperty.call(message, "concurrentExplanations")) - for (var keys = Object.keys(message.concurrentExplanations), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.encode(message.concurrentExplanations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decode = function decode(reader, length) { + DeleteMetadataStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.explanations && message.explanations.length)) - message.explanations = []; - message.explanations.push($root.google.cloud.aiplatform.v1beta1.Explanation.decode(reader, reader.uint32())); - break; - } - case 4: { - if (message.concurrentExplanations === $util.emptyObject) - message.concurrentExplanations = {}; - 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.ExplainResponse.ConcurrentExplanation.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.concurrentExplanations[key] = value; + message.name = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.force = reader.bool(); break; } default: @@ -368689,555 +371816,207 @@ }; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainResponse message. + * Verifies a DeleteMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainResponse.verify = function verify(message) { + DeleteMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.explanations != null && message.hasOwnProperty("explanations")) { - if (!Array.isArray(message.explanations)) - return "explanations: array expected"; - for (var i = 0; i < message.explanations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Explanation.verify(message.explanations[i]); - if (error) - return "explanations." + error; - } - } - if (message.concurrentExplanations != null && message.hasOwnProperty("concurrentExplanations")) { - if (!$util.isObject(message.concurrentExplanations)) - return "concurrentExplanations: object expected"; - var key = Object.keys(message.concurrentExplanations); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify(message.concurrentExplanations[key[i]]); - if (error) - return "concurrentExplanations." + error; - } - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.predictions != null && message.hasOwnProperty("predictions")) { - if (!Array.isArray(message.predictions)) - return "predictions: array expected"; - for (var i = 0; i < message.predictions.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.predictions[i]); - if (error) - return "predictions." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest */ - ExplainResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExplainResponse) + DeleteMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse(); - if (object.explanations) { - if (!Array.isArray(object.explanations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.explanations: array expected"); - message.explanations = []; - for (var i = 0; i < object.explanations.length; ++i) { - if (typeof object.explanations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.explanations: object expected"); - message.explanations[i] = $root.google.cloud.aiplatform.v1beta1.Explanation.fromObject(object.explanations[i]); - } - } - if (object.concurrentExplanations) { - if (typeof object.concurrentExplanations !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.concurrentExplanations: object expected"); - message.concurrentExplanations = {}; - for (var keys = Object.keys(object.concurrentExplanations), i = 0; i < keys.length; ++i) { - if (typeof object.concurrentExplanations[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.concurrentExplanations: object expected"); - message.concurrentExplanations[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.fromObject(object.concurrentExplanations[keys[i]]); - } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.predictions) { - if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.predictions: array expected"); - message.predictions = []; - for (var i = 0; i < object.predictions.length; ++i) { - if (typeof object.predictions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.predictions: object expected"); - message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse} message ExplainResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainResponse.toObject = function toObject(message, options) { + DeleteMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.explanations = []; - object.predictions = []; - } - if (options.objects || options.defaults) - object.concurrentExplanations = {}; - if (options.defaults) - object.deployedModelId = ""; - if (message.explanations && message.explanations.length) { - object.explanations = []; - for (var j = 0; j < message.explanations.length; ++j) - object.explanations[j] = $root.google.cloud.aiplatform.v1beta1.Explanation.toObject(message.explanations[j], options); - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.predictions && message.predictions.length) { - object.predictions = []; - for (var j = 0; j < message.predictions.length; ++j) - object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); - } - var keys2; - if (message.concurrentExplanations && (keys2 = Object.keys(message.concurrentExplanations)).length) { - object.concurrentExplanations = {}; - for (var j = 0; j < keys2.length; ++j) - object.concurrentExplanations[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.toObject(message.concurrentExplanations[keys2[j]], options); + if (options.defaults) { + object.name = ""; + object.force = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ExplainResponse to JSON. + * Converts this DeleteMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - ExplainResponse.prototype.toJSON = function toJSON() { + DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplainResponse + * Gets the default type url for DeleteMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplainResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExplainResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest"; }; - ExplainResponse.ConcurrentExplanation = (function() { - - /** - * Properties of a ConcurrentExplanation. - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse - * @interface IConcurrentExplanation - * @property {Array.|null} [explanations] ConcurrentExplanation explanations - */ + return DeleteMetadataStoreRequest; + })(); - /** - * Constructs a new ConcurrentExplanation. - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse - * @classdesc Represents a ConcurrentExplanation. - * @implements IConcurrentExplanation - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation=} [properties] Properties to set - */ - function ConcurrentExplanation(properties) { - this.explanations = []; - if (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.DeleteMetadataStoreOperationMetadata = (function() { - /** - * ConcurrentExplanation explanations. - * @member {Array.} explanations - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @instance - */ - ConcurrentExplanation.prototype.explanations = $util.emptyArray; + /** + * Properties of a DeleteMetadataStoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata + */ - /** - * Creates a new ConcurrentExplanation instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation instance - */ - ConcurrentExplanation.create = function create(properties) { - return new ConcurrentExplanation(properties); - }; + /** + * Constructs a new DeleteMetadataStoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteMetadataStoreOperationMetadata. + * @implements IDeleteMetadataStoreOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + */ + function DeleteMetadataStoreOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ConcurrentExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation} message ConcurrentExplanation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConcurrentExplanation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.explanations != null && message.explanations.length) - for (var i = 0; i < message.explanations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * DeleteMetadataStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @instance + */ + DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; - /** - * Encodes the specified ConcurrentExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation} message ConcurrentExplanation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConcurrentExplanation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ConcurrentExplanation message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConcurrentExplanation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.explanations && message.explanations.length)) - message.explanations = []; - message.explanations.push($root.google.cloud.aiplatform.v1beta1.Explanation.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ConcurrentExplanation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConcurrentExplanation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConcurrentExplanation message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConcurrentExplanation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.explanations != null && message.hasOwnProperty("explanations")) { - if (!Array.isArray(message.explanations)) - return "explanations: array expected"; - for (var i = 0; i < message.explanations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Explanation.verify(message.explanations[i]); - if (error) - return "explanations." + error; - } - } - return null; - }; - - /** - * Creates a ConcurrentExplanation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation - */ - ConcurrentExplanation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation(); - if (object.explanations) { - if (!Array.isArray(object.explanations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.explanations: array expected"); - message.explanations = []; - for (var i = 0; i < object.explanations.length; ++i) { - if (typeof object.explanations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.explanations: object expected"); - message.explanations[i] = $root.google.cloud.aiplatform.v1beta1.Explanation.fromObject(object.explanations[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ConcurrentExplanation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} message ConcurrentExplanation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConcurrentExplanation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.explanations = []; - if (message.explanations && message.explanations.length) { - object.explanations = []; - for (var j = 0; j < message.explanations.length; ++j) - object.explanations[j] = $root.google.cloud.aiplatform.v1beta1.Explanation.toObject(message.explanations[j], options); - } - return object; - }; - - /** - * Converts this ConcurrentExplanation to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @instance - * @returns {Object.} JSON object - */ - ConcurrentExplanation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ConcurrentExplanation - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConcurrentExplanation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation"; - }; - - return ConcurrentExplanation; - })(); - - return ExplainResponse; - })(); - - v1beta1.CountTokensRequest = (function() { - - /** - * Properties of a CountTokensRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICountTokensRequest - * @property {string|null} [endpoint] CountTokensRequest endpoint - * @property {string|null} [model] CountTokensRequest model - * @property {Array.|null} [instances] CountTokensRequest instances - * @property {Array.|null} [contents] CountTokensRequest contents - */ - - /** - * Constructs a new CountTokensRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CountTokensRequest. - * @implements ICountTokensRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest=} [properties] Properties to set - */ - function CountTokensRequest(properties) { - this.instances = []; - this.contents = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CountTokensRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest - * @instance - */ - CountTokensRequest.prototype.endpoint = ""; - - /** - * CountTokensRequest model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest - * @instance - */ - CountTokensRequest.prototype.model = ""; - - /** - * CountTokensRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest - * @instance - */ - CountTokensRequest.prototype.instances = $util.emptyArray; - - /** - * CountTokensRequest contents. - * @member {Array.} contents - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest - * @instance - */ - CountTokensRequest.prototype.contents = $util.emptyArray; - - /** - * Creates a new CountTokensRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest instance - */ - CountTokensRequest.create = function create(properties) { - return new CountTokensRequest(properties); - }; + /** + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance + */ + DeleteMetadataStoreOperationMetadata.create = function create(properties) { + return new DeleteMetadataStoreOperationMetadata(properties); + }; /** - * Encodes the specified CountTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} message CountTokensRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CountTokensRequest.encode = function encode(message, writer) { + DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.contents != null && message.contents.length) - for (var i = 0; i < message.contents.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Content.encode(message.contents[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 CountTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} message CountTokensRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CountTokensRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CountTokensRequest message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CountTokensRequest.decode = function decode(reader, length) { + DeleteMetadataStoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CountTokensRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 3: { - message.model = reader.string(); - break; - } - case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.contents && message.contents.length)) - message.contents = []; - message.contents.push($root.google.cloud.aiplatform.v1beta1.Content.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -369249,184 +372028,129 @@ }; /** - * Decodes a CountTokensRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CountTokensRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CountTokensRequest message. + * Verifies a DeleteMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CountTokensRequest.verify = function verify(message) { + DeleteMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.contents != null && message.hasOwnProperty("contents")) { - if (!Array.isArray(message.contents)) - return "contents: array expected"; - for (var i = 0; i < message.contents.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Content.verify(message.contents[i]); - if (error) - return "contents." + 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 CountTokensRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata */ - CountTokensRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CountTokensRequest) + DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CountTokensRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.model != null) - message.model = String(object.model); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); - } - } - if (object.contents) { - if (!Array.isArray(object.contents)) - throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.contents: array expected"); - message.contents = []; - for (var i = 0; i < object.contents.length; ++i) { - if (typeof object.contents[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.contents: object expected"); - message.contents[i] = $root.google.cloud.aiplatform.v1beta1.Content.fromObject(object.contents[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a CountTokensRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.CountTokensRequest} message CountTokensRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CountTokensRequest.toObject = function toObject(message, options) { + DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.instances = []; - object.contents = []; - } - if (options.defaults) { - object.endpoint = ""; - object.model = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); - } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.contents && message.contents.length) { - object.contents = []; - for (var j = 0; j < message.contents.length; ++j) - object.contents[j] = $root.google.cloud.aiplatform.v1beta1.Content.toObject(message.contents[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 CountTokensRequest to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - CountTokensRequest.prototype.toJSON = function toJSON() { + DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CountTokensRequest + * Gets the default type url for DeleteMetadataStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CountTokensRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CountTokensRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata"; }; - return CountTokensRequest; + return DeleteMetadataStoreOperationMetadata; })(); - v1beta1.CountTokensResponse = (function() { + v1beta1.CreateArtifactRequest = (function() { /** - * Properties of a CountTokensResponse. + * Properties of a CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICountTokensResponse - * @property {number|null} [totalTokens] CountTokensResponse totalTokens - * @property {number|null} [totalBillableCharacters] CountTokensResponse totalBillableCharacters + * @interface ICreateArtifactRequest + * @property {string|null} [parent] CreateArtifactRequest parent + * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] CreateArtifactRequest artifact + * @property {string|null} [artifactId] CreateArtifactRequest artifactId */ /** - * Constructs a new CountTokensResponse. + * Constructs a new CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CountTokensResponse. - * @implements ICountTokensResponse + * @classdesc Represents a CreateArtifactRequest. + * @implements ICreateArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set */ - function CountTokensResponse(properties) { + function CreateArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -369434,89 +372158,103 @@ } /** - * CountTokensResponse totalTokens. - * @member {number} totalTokens - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * CreateArtifactRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance */ - CountTokensResponse.prototype.totalTokens = 0; + CreateArtifactRequest.prototype.parent = ""; /** - * CountTokensResponse totalBillableCharacters. - * @member {number} totalBillableCharacters - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * CreateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance */ - CountTokensResponse.prototype.totalBillableCharacters = 0; + CreateArtifactRequest.prototype.artifact = null; /** - * Creates a new CountTokensResponse instance using the specified properties. + * CreateArtifactRequest artifactId. + * @member {string} artifactId + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @instance + */ + CreateArtifactRequest.prototype.artifactId = ""; + + /** + * Creates a new CreateArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest instance */ - CountTokensResponse.create = function create(properties) { - return new CountTokensResponse(properties); + CreateArtifactRequest.create = function create(properties) { + return new CreateArtifactRequest(properties); }; /** - * Encodes the specified CountTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse} message CountTokensResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CountTokensResponse.encode = function encode(message, writer) { + CreateArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.totalTokens != null && Object.hasOwnProperty.call(message, "totalTokens")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.totalTokens); - if (message.totalBillableCharacters != null && Object.hasOwnProperty.call(message, "totalBillableCharacters")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalBillableCharacters); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); return writer; }; /** - * Encodes the specified CountTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse} message CountTokensResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CountTokensResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CountTokensResponse message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CountTokensResponse.decode = function decode(reader, length) { + CreateArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CountTokensResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.totalTokens = reader.int32(); + message.parent = reader.string(); break; } case 2: { - message.totalBillableCharacters = reader.int32(); + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); + break; + } + case 3: { + message.artifactId = reader.string(); break; } default: @@ -369528,138 +372266,144 @@ }; /** - * Decodes a CountTokensResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CountTokensResponse.decodeDelimited = function decodeDelimited(reader) { + CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CountTokensResponse message. + * Verifies a CreateArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CountTokensResponse.verify = function verify(message) { + CreateArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.totalTokens != null && message.hasOwnProperty("totalTokens")) - if (!$util.isInteger(message.totalTokens)) - return "totalTokens: integer expected"; - if (message.totalBillableCharacters != null && message.hasOwnProperty("totalBillableCharacters")) - if (!$util.isInteger(message.totalBillableCharacters)) - return "totalBillableCharacters: integer expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); + if (error) + return "artifact." + error; + } + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; return null; }; /** - * Creates a CountTokensResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest */ - CountTokensResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CountTokensResponse) + CreateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CountTokensResponse(); - if (object.totalTokens != null) - message.totalTokens = object.totalTokens | 0; - if (object.totalBillableCharacters != null) - message.totalBillableCharacters = object.totalBillableCharacters | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); + } + if (object.artifactId != null) + message.artifactId = String(object.artifactId); return message; }; /** - * Creates a plain object from a CountTokensResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CountTokensResponse} message CountTokensResponse + * @param {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} message CreateArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CountTokensResponse.toObject = function toObject(message, options) { + CreateArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.totalTokens = 0; - object.totalBillableCharacters = 0; + object.parent = ""; + object.artifact = null; + object.artifactId = ""; } - if (message.totalTokens != null && message.hasOwnProperty("totalTokens")) - object.totalTokens = message.totalTokens; - if (message.totalBillableCharacters != null && message.hasOwnProperty("totalBillableCharacters")) - object.totalBillableCharacters = message.totalBillableCharacters; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + object.artifactId = message.artifactId; return object; }; /** - * Converts this CountTokensResponse to JSON. + * Converts this CreateArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance * @returns {Object.} JSON object */ - CountTokensResponse.prototype.toJSON = function toJSON() { + CreateArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CountTokensResponse + * Gets the default type url for CreateArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CountTokensResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CountTokensResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateArtifactRequest"; }; - return CountTokensResponse; + return CreateArtifactRequest; })(); - v1beta1.GenerateContentRequest = (function() { + v1beta1.GetArtifactRequest = (function() { /** - * Properties of a GenerateContentRequest. + * Properties of a GetArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGenerateContentRequest - * @property {string|null} [model] GenerateContentRequest model - * @property {Array.|null} [contents] GenerateContentRequest contents - * @property {Array.|null} [tools] GenerateContentRequest tools - * @property {Array.|null} [safetySettings] GenerateContentRequest safetySettings - * @property {google.cloud.aiplatform.v1beta1.IGenerationConfig|null} [generationConfig] GenerateContentRequest generationConfig + * @interface IGetArtifactRequest + * @property {string|null} [name] GetArtifactRequest name */ /** - * Constructs a new GenerateContentRequest. + * Constructs a new GetArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GenerateContentRequest. - * @implements IGenerateContentRequest + * @classdesc Represents a GetArtifactRequest. + * @implements IGetArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set */ - function GenerateContentRequest(properties) { - this.contents = []; - this.tools = []; - this.safetySettings = []; + function GetArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -369667,140 +372411,75 @@ } /** - * GenerateContentRequest model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest - * @instance - */ - GenerateContentRequest.prototype.model = ""; - - /** - * GenerateContentRequest contents. - * @member {Array.} contents - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest - * @instance - */ - GenerateContentRequest.prototype.contents = $util.emptyArray; - - /** - * GenerateContentRequest tools. - * @member {Array.} tools - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest - * @instance - */ - GenerateContentRequest.prototype.tools = $util.emptyArray; - - /** - * GenerateContentRequest safetySettings. - * @member {Array.} safetySettings - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest - * @instance - */ - GenerateContentRequest.prototype.safetySettings = $util.emptyArray; - - /** - * GenerateContentRequest generationConfig. - * @member {google.cloud.aiplatform.v1beta1.IGenerationConfig|null|undefined} generationConfig - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * GetArtifactRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @instance */ - GenerateContentRequest.prototype.generationConfig = null; + GetArtifactRequest.prototype.name = ""; /** - * Creates a new GenerateContentRequest instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest instance */ - GenerateContentRequest.create = function create(properties) { - return new GenerateContentRequest(properties); + GetArtifactRequest.create = function create(properties) { + return new GetArtifactRequest(properties); }; /** - * Encodes the specified GenerateContentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} message GenerateContentRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateContentRequest.encode = function encode(message, writer) { + GetArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contents != null && message.contents.length) - for (var i = 0; i < message.contents.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Content.encode(message.contents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.safetySettings != null && message.safetySettings.length) - for (var i = 0; i < message.safetySettings.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SafetySetting.encode(message.safetySettings[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.generationConfig != null && Object.hasOwnProperty.call(message, "generationConfig")) - $root.google.cloud.aiplatform.v1beta1.GenerationConfig.encode(message.generationConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.model); - if (message.tools != null && message.tools.length) - for (var i = 0; i < message.tools.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Tool.encode(message.tools[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified GenerateContentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} message GenerateContentRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateContentRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenerateContentRequest message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateContentRequest.decode = function decode(reader, length) { + GetArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: { - message.model = reader.string(); - break; - } - case 2: { - if (!(message.contents && message.contents.length)) - message.contents = []; - message.contents.push($root.google.cloud.aiplatform.v1beta1.Content.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.tools && message.tools.length)) - message.tools = []; - message.tools.push($root.google.cloud.aiplatform.v1beta1.Tool.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.safetySettings && message.safetySettings.length)) - message.safetySettings = []; - message.safetySettings.push($root.google.cloud.aiplatform.v1beta1.SafetySetting.decode(reader, reader.uint32())); - break; - } - case 4: { - message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.decode(reader, reader.uint32()); + case 1: { + message.name = reader.string(); break; } default: @@ -369812,216 +372491,126 @@ }; /** - * Decodes a GenerateContentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateContentRequest.decodeDelimited = function decodeDelimited(reader) { + GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenerateContentRequest message. + * Verifies a GetArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenerateContentRequest.verify = function verify(message) { + GetArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.contents != null && message.hasOwnProperty("contents")) { - if (!Array.isArray(message.contents)) - return "contents: array expected"; - for (var i = 0; i < message.contents.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Content.verify(message.contents[i]); - if (error) - return "contents." + error; - } - } - if (message.tools != null && message.hasOwnProperty("tools")) { - if (!Array.isArray(message.tools)) - return "tools: array expected"; - for (var i = 0; i < message.tools.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Tool.verify(message.tools[i]); - if (error) - return "tools." + error; - } - } - if (message.safetySettings != null && message.hasOwnProperty("safetySettings")) { - if (!Array.isArray(message.safetySettings)) - return "safetySettings: array expected"; - for (var i = 0; i < message.safetySettings.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SafetySetting.verify(message.safetySettings[i]); - if (error) - return "safetySettings." + error; - } - } - if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.verify(message.generationConfig); - if (error) - return "generationConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a GenerateContentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest */ - GenerateContentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest) + GetArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest(); - if (object.model != null) - message.model = String(object.model); - if (object.contents) { - if (!Array.isArray(object.contents)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.contents: array expected"); - message.contents = []; - for (var i = 0; i < object.contents.length; ++i) { - if (typeof object.contents[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.contents: object expected"); - message.contents[i] = $root.google.cloud.aiplatform.v1beta1.Content.fromObject(object.contents[i]); - } - } - if (object.tools) { - if (!Array.isArray(object.tools)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.tools: array expected"); - message.tools = []; - for (var i = 0; i < object.tools.length; ++i) { - if (typeof object.tools[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.tools: object expected"); - message.tools[i] = $root.google.cloud.aiplatform.v1beta1.Tool.fromObject(object.tools[i]); - } - } - if (object.safetySettings) { - if (!Array.isArray(object.safetySettings)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.safetySettings: array expected"); - message.safetySettings = []; - for (var i = 0; i < object.safetySettings.length; ++i) { - if (typeof object.safetySettings[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.safetySettings: object expected"); - message.safetySettings[i] = $root.google.cloud.aiplatform.v1beta1.SafetySetting.fromObject(object.safetySettings[i]); - } - } - if (object.generationConfig != null) { - if (typeof object.generationConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.generationConfig: object expected"); - message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.fromObject(object.generationConfig); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a GenerateContentRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentRequest} message GenerateContentRequest + * @param {google.cloud.aiplatform.v1beta1.GetArtifactRequest} message GetArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenerateContentRequest.toObject = function toObject(message, options) { + GetArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.contents = []; - object.safetySettings = []; - object.tools = []; - } - if (options.defaults) { - object.generationConfig = null; - object.model = ""; - } - if (message.contents && message.contents.length) { - object.contents = []; - for (var j = 0; j < message.contents.length; ++j) - object.contents[j] = $root.google.cloud.aiplatform.v1beta1.Content.toObject(message.contents[j], options); - } - if (message.safetySettings && message.safetySettings.length) { - object.safetySettings = []; - for (var j = 0; j < message.safetySettings.length; ++j) - object.safetySettings[j] = $root.google.cloud.aiplatform.v1beta1.SafetySetting.toObject(message.safetySettings[j], options); - } - if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) - object.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.toObject(message.generationConfig, options); - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.tools && message.tools.length) { - object.tools = []; - for (var j = 0; j < message.tools.length; ++j) - object.tools[j] = $root.google.cloud.aiplatform.v1beta1.Tool.toObject(message.tools[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this GenerateContentRequest to JSON. + * Converts this GetArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @instance * @returns {Object.} JSON object */ - GenerateContentRequest.prototype.toJSON = function toJSON() { + GetArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GenerateContentRequest + * Gets the default type url for GetArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GenerateContentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetArtifactRequest"; }; - return GenerateContentRequest; + return GetArtifactRequest; })(); - v1beta1.GenerateContentResponse = (function() { + v1beta1.ListArtifactsRequest = (function() { /** - * Properties of a GenerateContentResponse. + * Properties of a ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGenerateContentResponse - * @property {Array.|null} [candidates] GenerateContentResponse candidates - * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null} [promptFeedback] GenerateContentResponse promptFeedback - * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null} [usageMetadata] GenerateContentResponse usageMetadata + * @interface IListArtifactsRequest + * @property {string|null} [parent] ListArtifactsRequest parent + * @property {number|null} [pageSize] ListArtifactsRequest pageSize + * @property {string|null} [pageToken] ListArtifactsRequest pageToken + * @property {string|null} [filter] ListArtifactsRequest filter + * @property {string|null} [orderBy] ListArtifactsRequest orderBy */ /** - * Constructs a new GenerateContentResponse. + * Constructs a new ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GenerateContentResponse. - * @implements IGenerateContentResponse + * @classdesc Represents a ListArtifactsRequest. + * @implements IListArtifactsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set */ - function GenerateContentResponse(properties) { - this.candidates = []; + function ListArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -370029,106 +372618,131 @@ } /** - * GenerateContentResponse candidates. - * @member {Array.} candidates - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * ListArtifactsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance */ - GenerateContentResponse.prototype.candidates = $util.emptyArray; + ListArtifactsRequest.prototype.parent = ""; /** - * GenerateContentResponse promptFeedback. - * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null|undefined} promptFeedback - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * ListArtifactsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance */ - GenerateContentResponse.prototype.promptFeedback = null; + ListArtifactsRequest.prototype.pageSize = 0; /** - * GenerateContentResponse usageMetadata. - * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null|undefined} usageMetadata - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * ListArtifactsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance */ - GenerateContentResponse.prototype.usageMetadata = null; + ListArtifactsRequest.prototype.pageToken = ""; /** - * Creates a new GenerateContentResponse instance using the specified properties. + * ListArtifactsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @instance + */ + ListArtifactsRequest.prototype.filter = ""; + + /** + * ListArtifactsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @instance + */ + ListArtifactsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListArtifactsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest instance */ - GenerateContentResponse.create = function create(properties) { - return new GenerateContentResponse(properties); + ListArtifactsRequest.create = function create(properties) { + return new ListArtifactsRequest(properties); }; /** - * Encodes the specified GenerateContentResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse} message GenerateContentResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateContentResponse.encode = function encode(message, writer) { + ListArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.candidates != null && message.candidates.length) - for (var i = 0; i < message.candidates.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Candidate.encode(message.candidates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.promptFeedback != null && Object.hasOwnProperty.call(message, "promptFeedback")) - $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.encode(message.promptFeedback, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.usageMetadata != null && Object.hasOwnProperty.call(message, "usageMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.encode(message.usageMetadata, 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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified GenerateContentResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse} message GenerateContentResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateContentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenerateContentResponse message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateContentResponse.decode = function decode(reader, length) { + ListArtifactsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } case 2: { - if (!(message.candidates && message.candidates.length)) - message.candidates = []; - message.candidates.push($root.google.cloud.aiplatform.v1beta1.Candidate.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); break; } case 3: { - message.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; } case 4: { - message.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -370140,834 +372754,157 @@ }; /** - * Decodes a GenerateContentResponse message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateContentResponse.decodeDelimited = function decodeDelimited(reader) { + ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenerateContentResponse message. + * Verifies a ListArtifactsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenerateContentResponse.verify = function verify(message) { + ListArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.candidates != null && message.hasOwnProperty("candidates")) { - if (!Array.isArray(message.candidates)) - return "candidates: array expected"; - for (var i = 0; i < message.candidates.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Candidate.verify(message.candidates[i]); - if (error) - return "candidates." + error; - } - } - if (message.promptFeedback != null && message.hasOwnProperty("promptFeedback")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify(message.promptFeedback); - if (error) - return "promptFeedback." + error; - } - if (message.usageMetadata != null && message.hasOwnProperty("usageMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify(message.usageMetadata); - if (error) - return "usageMetadata." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a GenerateContentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest */ - GenerateContentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse) + ListArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse(); - if (object.candidates) { - if (!Array.isArray(object.candidates)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.candidates: array expected"); - message.candidates = []; - for (var i = 0; i < object.candidates.length; ++i) { - if (typeof object.candidates[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.candidates: object expected"); - message.candidates[i] = $root.google.cloud.aiplatform.v1beta1.Candidate.fromObject(object.candidates[i]); - } - } - if (object.promptFeedback != null) { - if (typeof object.promptFeedback !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.promptFeedback: object expected"); - message.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.fromObject(object.promptFeedback); - } - if (object.usageMetadata != null) { - if (typeof object.usageMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.usageMetadata: object expected"); - message.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.fromObject(object.usageMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a GenerateContentResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse} message GenerateContentResponse + * @param {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} message ListArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenerateContentResponse.toObject = function toObject(message, options) { + ListArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.candidates = []; if (options.defaults) { - object.promptFeedback = null; - object.usageMetadata = null; - } - if (message.candidates && message.candidates.length) { - object.candidates = []; - for (var j = 0; j < message.candidates.length; ++j) - object.candidates[j] = $root.google.cloud.aiplatform.v1beta1.Candidate.toObject(message.candidates[j], options); + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } - if (message.promptFeedback != null && message.hasOwnProperty("promptFeedback")) - object.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.toObject(message.promptFeedback, options); - if (message.usageMetadata != null && message.hasOwnProperty("usageMetadata")) - object.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.toObject(message.usageMetadata, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this GenerateContentResponse to JSON. + * Converts this ListArtifactsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance * @returns {Object.} JSON object */ - GenerateContentResponse.prototype.toJSON = function toJSON() { + ListArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GenerateContentResponse + * Gets the default type url for ListArtifactsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GenerateContentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentResponse"; - }; - - GenerateContentResponse.PromptFeedback = (function() { - - /** - * Properties of a PromptFeedback. - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse - * @interface IPromptFeedback - * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|null} [blockReason] PromptFeedback blockReason - * @property {Array.|null} [safetyRatings] PromptFeedback safetyRatings - * @property {string|null} [blockReasonMessage] PromptFeedback blockReasonMessage - */ - - /** - * Constructs a new PromptFeedback. - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse - * @classdesc Represents a PromptFeedback. - * @implements IPromptFeedback - * @constructor - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback=} [properties] Properties to set - */ - function PromptFeedback(properties) { - this.safetyRatings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PromptFeedback blockReason. - * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason} blockReason - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @instance - */ - PromptFeedback.prototype.blockReason = 0; - - /** - * PromptFeedback safetyRatings. - * @member {Array.} safetyRatings - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @instance - */ - PromptFeedback.prototype.safetyRatings = $util.emptyArray; - - /** - * PromptFeedback blockReasonMessage. - * @member {string} blockReasonMessage - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @instance - */ - PromptFeedback.prototype.blockReasonMessage = ""; - - /** - * Creates a new PromptFeedback instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback instance - */ - PromptFeedback.create = function create(properties) { - return new PromptFeedback(properties); - }; - - /** - * Encodes the specified PromptFeedback message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback} message PromptFeedback message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PromptFeedback.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.blockReason != null && Object.hasOwnProperty.call(message, "blockReason")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.blockReason); - if (message.safetyRatings != null && message.safetyRatings.length) - for (var i = 0; i < message.safetyRatings.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SafetyRating.encode(message.safetyRatings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.blockReasonMessage != null && Object.hasOwnProperty.call(message, "blockReasonMessage")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.blockReasonMessage); - return writer; - }; - - /** - * Encodes the specified PromptFeedback message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback} message PromptFeedback message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PromptFeedback.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PromptFeedback message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PromptFeedback.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.blockReason = reader.int32(); - break; - } - case 2: { - if (!(message.safetyRatings && message.safetyRatings.length)) - message.safetyRatings = []; - message.safetyRatings.push($root.google.cloud.aiplatform.v1beta1.SafetyRating.decode(reader, reader.uint32())); - break; - } - case 3: { - message.blockReasonMessage = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PromptFeedback message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PromptFeedback.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PromptFeedback message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PromptFeedback.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.blockReason != null && message.hasOwnProperty("blockReason")) - switch (message.blockReason) { - default: - return "blockReason: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.safetyRatings != null && message.hasOwnProperty("safetyRatings")) { - if (!Array.isArray(message.safetyRatings)) - return "safetyRatings: array expected"; - for (var i = 0; i < message.safetyRatings.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SafetyRating.verify(message.safetyRatings[i]); - if (error) - return "safetyRatings." + error; - } - } - if (message.blockReasonMessage != null && message.hasOwnProperty("blockReasonMessage")) - if (!$util.isString(message.blockReasonMessage)) - return "blockReasonMessage: string expected"; - return null; - }; - - /** - * Creates a PromptFeedback message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback - */ - PromptFeedback.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback(); - switch (object.blockReason) { - default: - if (typeof object.blockReason === "number") { - message.blockReason = object.blockReason; - break; - } - break; - case "BLOCKED_REASON_UNSPECIFIED": - case 0: - message.blockReason = 0; - break; - case "SAFETY": - case 1: - message.blockReason = 1; - break; - case "OTHER": - case 2: - message.blockReason = 2; - break; - } - if (object.safetyRatings) { - if (!Array.isArray(object.safetyRatings)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.safetyRatings: array expected"); - message.safetyRatings = []; - for (var i = 0; i < object.safetyRatings.length; ++i) { - if (typeof object.safetyRatings[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.safetyRatings: object expected"); - message.safetyRatings[i] = $root.google.cloud.aiplatform.v1beta1.SafetyRating.fromObject(object.safetyRatings[i]); - } - } - if (object.blockReasonMessage != null) - message.blockReasonMessage = String(object.blockReasonMessage); - return message; - }; - - /** - * Creates a plain object from a PromptFeedback message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} message PromptFeedback - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PromptFeedback.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.safetyRatings = []; - if (options.defaults) { - object.blockReason = options.enums === String ? "BLOCKED_REASON_UNSPECIFIED" : 0; - object.blockReasonMessage = ""; - } - if (message.blockReason != null && message.hasOwnProperty("blockReason")) - object.blockReason = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason[message.blockReason] === undefined ? message.blockReason : $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason[message.blockReason] : message.blockReason; - if (message.safetyRatings && message.safetyRatings.length) { - object.safetyRatings = []; - for (var j = 0; j < message.safetyRatings.length; ++j) - object.safetyRatings[j] = $root.google.cloud.aiplatform.v1beta1.SafetyRating.toObject(message.safetyRatings[j], options); - } - if (message.blockReasonMessage != null && message.hasOwnProperty("blockReasonMessage")) - object.blockReasonMessage = message.blockReasonMessage; - return object; - }; - - /** - * Converts this PromptFeedback to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @instance - * @returns {Object.} JSON object - */ - PromptFeedback.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PromptFeedback - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PromptFeedback.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback"; - }; - - /** - * BlockedReason enum. - * @name google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason - * @enum {number} - * @property {number} BLOCKED_REASON_UNSPECIFIED=0 BLOCKED_REASON_UNSPECIFIED value - * @property {number} SAFETY=1 SAFETY value - * @property {number} OTHER=2 OTHER value - */ - PromptFeedback.BlockedReason = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BLOCKED_REASON_UNSPECIFIED"] = 0; - values[valuesById[1] = "SAFETY"] = 1; - values[valuesById[2] = "OTHER"] = 2; - return values; - })(); - - return PromptFeedback; - })(); - - GenerateContentResponse.UsageMetadata = (function() { - - /** - * Properties of a UsageMetadata. - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse - * @interface IUsageMetadata - * @property {number|null} [promptTokenCount] UsageMetadata promptTokenCount - * @property {number|null} [candidatesTokenCount] UsageMetadata candidatesTokenCount - * @property {number|null} [totalTokenCount] UsageMetadata totalTokenCount - */ - - /** - * Constructs a new UsageMetadata. - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse - * @classdesc Represents a UsageMetadata. - * @implements IUsageMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata=} [properties] Properties to set - */ - function UsageMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UsageMetadata promptTokenCount. - * @member {number} promptTokenCount - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @instance - */ - UsageMetadata.prototype.promptTokenCount = 0; - - /** - * UsageMetadata candidatesTokenCount. - * @member {number} candidatesTokenCount - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @instance - */ - UsageMetadata.prototype.candidatesTokenCount = 0; - - /** - * UsageMetadata totalTokenCount. - * @member {number} totalTokenCount - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @instance - */ - UsageMetadata.prototype.totalTokenCount = 0; - - /** - * Creates a new UsageMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata instance - */ - UsageMetadata.create = function create(properties) { - return new UsageMetadata(properties); - }; - - /** - * Encodes the specified UsageMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata} message UsageMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UsageMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.promptTokenCount != null && Object.hasOwnProperty.call(message, "promptTokenCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.promptTokenCount); - if (message.candidatesTokenCount != null && Object.hasOwnProperty.call(message, "candidatesTokenCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.candidatesTokenCount); - if (message.totalTokenCount != null && Object.hasOwnProperty.call(message, "totalTokenCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.totalTokenCount); - return writer; - }; - - /** - * Encodes the specified UsageMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata} message UsageMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UsageMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a UsageMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UsageMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.promptTokenCount = reader.int32(); - break; - } - case 2: { - message.candidatesTokenCount = reader.int32(); - break; - } - case 3: { - message.totalTokenCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a UsageMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UsageMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UsageMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UsageMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.promptTokenCount != null && message.hasOwnProperty("promptTokenCount")) - if (!$util.isInteger(message.promptTokenCount)) - return "promptTokenCount: integer expected"; - if (message.candidatesTokenCount != null && message.hasOwnProperty("candidatesTokenCount")) - if (!$util.isInteger(message.candidatesTokenCount)) - return "candidatesTokenCount: integer expected"; - if (message.totalTokenCount != null && message.hasOwnProperty("totalTokenCount")) - if (!$util.isInteger(message.totalTokenCount)) - return "totalTokenCount: integer expected"; - return null; - }; - - /** - * Creates a UsageMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata - */ - UsageMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata(); - if (object.promptTokenCount != null) - message.promptTokenCount = object.promptTokenCount | 0; - if (object.candidatesTokenCount != null) - message.candidatesTokenCount = object.candidatesTokenCount | 0; - if (object.totalTokenCount != null) - message.totalTokenCount = object.totalTokenCount | 0; - return message; - }; - - /** - * Creates a plain object from a UsageMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} message UsageMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UsageMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.promptTokenCount = 0; - object.candidatesTokenCount = 0; - object.totalTokenCount = 0; - } - if (message.promptTokenCount != null && message.hasOwnProperty("promptTokenCount")) - object.promptTokenCount = message.promptTokenCount; - if (message.candidatesTokenCount != null && message.hasOwnProperty("candidatesTokenCount")) - object.candidatesTokenCount = message.candidatesTokenCount; - if (message.totalTokenCount != null && message.hasOwnProperty("totalTokenCount")) - object.totalTokenCount = message.totalTokenCount; - return object; - }; - - /** - * Converts this UsageMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @instance - * @returns {Object.} JSON object - */ - UsageMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UsageMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UsageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata"; - }; - - return UsageMetadata; - })(); - - return GenerateContentResponse; - })(); - - v1beta1.MatchService = (function() { - - /** - * Constructs a new MatchService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MatchService - * @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 MatchService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (MatchService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MatchService; - - /** - * Creates new MatchService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @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 {MatchService} RPC service. Useful where requests and/or responses are streamed. - */ - MatchService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListArtifactsRequest"; }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|findNeighbors}. - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @typedef FindNeighborsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} [response] FindNeighborsResponse - */ - - /** - * Calls FindNeighbors. - * @function findNeighbors - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} request FindNeighborsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MatchService.FindNeighborsCallback} callback Node-style callback called with the error, if any, and FindNeighborsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MatchService.prototype.findNeighbors = function findNeighbors(request, callback) { - return this.rpcCall(findNeighbors, $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest, $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse, request, callback); - }, "name", { value: "FindNeighbors" }); - - /** - * Calls FindNeighbors. - * @function findNeighbors - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} request FindNeighborsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MatchService|readIndexDatapoints}. - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @typedef ReadIndexDatapointsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} [response] ReadIndexDatapointsResponse - */ - - /** - * Calls ReadIndexDatapoints. - * @function readIndexDatapoints - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} request ReadIndexDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MatchService.ReadIndexDatapointsCallback} callback Node-style callback called with the error, if any, and ReadIndexDatapointsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MatchService.prototype.readIndexDatapoints = function readIndexDatapoints(request, callback) { - return this.rpcCall(readIndexDatapoints, $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse, request, callback); - }, "name", { value: "ReadIndexDatapoints" }); - - /** - * Calls ReadIndexDatapoints. - * @function readIndexDatapoints - * @memberof google.cloud.aiplatform.v1beta1.MatchService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} request ReadIndexDatapointsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return MatchService; + return ListArtifactsRequest; })(); - v1beta1.FindNeighborsRequest = (function() { + v1beta1.ListArtifactsResponse = (function() { /** - * Properties of a FindNeighborsRequest. + * Properties of a ListArtifactsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFindNeighborsRequest - * @property {string|null} [indexEndpoint] FindNeighborsRequest indexEndpoint - * @property {string|null} [deployedIndexId] FindNeighborsRequest deployedIndexId - * @property {Array.|null} [queries] FindNeighborsRequest queries - * @property {boolean|null} [returnFullDatapoint] FindNeighborsRequest returnFullDatapoint + * @interface IListArtifactsResponse + * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts + * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken */ /** - * Constructs a new FindNeighborsRequest. + * Constructs a new ListArtifactsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FindNeighborsRequest. - * @implements IFindNeighborsRequest + * @classdesc Represents a ListArtifactsResponse. + * @implements IListArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set */ - function FindNeighborsRequest(properties) { - this.queries = []; + function ListArtifactsResponse(properties) { + this.artifacts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -370975,120 +372912,92 @@ } /** - * FindNeighborsRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest - * @instance - */ - FindNeighborsRequest.prototype.indexEndpoint = ""; - - /** - * FindNeighborsRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest - * @instance - */ - FindNeighborsRequest.prototype.deployedIndexId = ""; - - /** - * FindNeighborsRequest queries. - * @member {Array.} queries - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * ListArtifactsResponse artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @instance */ - FindNeighborsRequest.prototype.queries = $util.emptyArray; + ListArtifactsResponse.prototype.artifacts = $util.emptyArray; /** - * FindNeighborsRequest returnFullDatapoint. - * @member {boolean} returnFullDatapoint - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * ListArtifactsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @instance */ - FindNeighborsRequest.prototype.returnFullDatapoint = false; + ListArtifactsResponse.prototype.nextPageToken = ""; /** - * Creates a new FindNeighborsRequest instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse instance */ - FindNeighborsRequest.create = function create(properties) { - return new FindNeighborsRequest(properties); + ListArtifactsResponse.create = function create(properties) { + return new ListArtifactsResponse(properties); }; /** - * Encodes the specified FindNeighborsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} message FindNeighborsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindNeighborsRequest.encode = function encode(message, writer) { + ListArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); - if (message.queries != null && message.queries.length) - for (var i = 0; i < message.queries.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.encode(message.queries[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.returnFullDatapoint != null && Object.hasOwnProperty.call(message, "returnFullDatapoint")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.returnFullDatapoint); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified FindNeighborsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.verify|verify} messages. + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsRequest} message FindNeighborsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindNeighborsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindNeighborsRequest message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindNeighborsRequest.decode = function decode(reader, length) { + ListArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = reader.string(); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); break; } case 2: { - message.deployedIndexId = reader.string(); - break; - } - case 3: { - if (!(message.queries && message.queries.length)) - message.queries = []; - message.queries.push($root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.decode(reader, reader.uint32())); - break; - } - case 4: { - message.returnFullDatapoint = reader.bool(); + message.nextPageToken = reader.string(); break; } default: @@ -371100,467 +373009,409 @@ }; /** - * Decodes a FindNeighborsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindNeighborsRequest.decodeDelimited = function decodeDelimited(reader) { + ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindNeighborsRequest message. + * Verifies a ListArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FindNeighborsRequest.verify = function verify(message) { + ListArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; - if (message.queries != null && message.hasOwnProperty("queries")) { - if (!Array.isArray(message.queries)) - return "queries: array expected"; - for (var i = 0; i < message.queries.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify(message.queries[i]); + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); if (error) - return "queries." + error; + return "artifacts." + error; } } - if (message.returnFullDatapoint != null && message.hasOwnProperty("returnFullDatapoint")) - if (typeof message.returnFullDatapoint !== "boolean") - return "returnFullDatapoint: boolean expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FindNeighborsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} FindNeighborsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse */ - FindNeighborsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest) + ListArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - if (object.queries) { - if (!Array.isArray(object.queries)) - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsRequest.queries: array expected"); - message.queries = []; - for (var i = 0; i < object.queries.length; ++i) { - if (typeof object.queries[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsRequest.queries: object expected"); - message.queries[i] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.fromObject(object.queries[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); } } - if (object.returnFullDatapoint != null) - message.returnFullDatapoint = Boolean(object.returnFullDatapoint); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a FindNeighborsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest} message FindNeighborsRequest + * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} message ListArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindNeighborsRequest.toObject = function toObject(message, options) { + ListArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.queries = []; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; - object.returnFullDatapoint = false; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - if (message.queries && message.queries.length) { - object.queries = []; - for (var j = 0; j < message.queries.length; ++j) - object.queries[j] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.toObject(message.queries[j], options); + object.artifacts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); } - if (message.returnFullDatapoint != null && message.hasOwnProperty("returnFullDatapoint")) - object.returnFullDatapoint = message.returnFullDatapoint; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FindNeighborsRequest to JSON. + * Converts this ListArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @instance * @returns {Object.} JSON object */ - FindNeighborsRequest.prototype.toJSON = function toJSON() { + ListArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FindNeighborsRequest + * Gets the default type url for ListArtifactsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FindNeighborsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListArtifactsResponse"; }; - FindNeighborsRequest.Query = (function() { - - /** - * Properties of a Query. - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest - * @interface IQuery - * @property {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null} [datapoint] Query datapoint - * @property {number|null} [neighborCount] Query neighborCount - * @property {number|null} [perCrowdingAttributeNeighborCount] Query perCrowdingAttributeNeighborCount - * @property {number|null} [approximateNeighborCount] Query approximateNeighborCount - * @property {number|null} [fractionLeafNodesToSearchOverride] Query fractionLeafNodesToSearchOverride - */ + return ListArtifactsResponse; + })(); - /** - * Constructs a new Query. - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest - * @classdesc Represents a Query. - * @implements IQuery - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery=} [properties] Properties to set - */ - function Query(properties) { - if (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.UpdateArtifactRequest = (function() { - /** - * Query datapoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null|undefined} datapoint - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @instance - */ - Query.prototype.datapoint = null; + /** + * Properties of an UpdateArtifactRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateArtifactRequest + * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] UpdateArtifactRequest artifact + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask + * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing + */ - /** - * Query neighborCount. - * @member {number} neighborCount - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @instance - */ - Query.prototype.neighborCount = 0; + /** + * Constructs a new UpdateArtifactRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateArtifactRequest. + * @implements IUpdateArtifactRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set + */ + function UpdateArtifactRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Query perCrowdingAttributeNeighborCount. - * @member {number} perCrowdingAttributeNeighborCount - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @instance - */ - Query.prototype.perCrowdingAttributeNeighborCount = 0; + /** + * UpdateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @instance + */ + UpdateArtifactRequest.prototype.artifact = null; - /** - * Query approximateNeighborCount. - * @member {number} approximateNeighborCount - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @instance - */ - Query.prototype.approximateNeighborCount = 0; + /** + * UpdateArtifactRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @instance + */ + UpdateArtifactRequest.prototype.updateMask = null; - /** - * Query fractionLeafNodesToSearchOverride. - * @member {number} fractionLeafNodesToSearchOverride - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @instance - */ - Query.prototype.fractionLeafNodesToSearchOverride = 0; + /** + * UpdateArtifactRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @instance + */ + UpdateArtifactRequest.prototype.allowMissing = false; - /** - * Creates a new Query instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query instance - */ - Query.create = function create(properties) { - return new Query(properties); - }; + /** + * Creates a new UpdateArtifactRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest instance + */ + UpdateArtifactRequest.create = function create(properties) { + return new UpdateArtifactRequest(properties); + }; - /** - * Encodes the specified Query message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery} message Query message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Query.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.datapoint != null && Object.hasOwnProperty.call(message, "datapoint")) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.neighborCount != null && Object.hasOwnProperty.call(message, "neighborCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.neighborCount); - if (message.perCrowdingAttributeNeighborCount != null && Object.hasOwnProperty.call(message, "perCrowdingAttributeNeighborCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.perCrowdingAttributeNeighborCount); - if (message.approximateNeighborCount != null && Object.hasOwnProperty.call(message, "approximateNeighborCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.approximateNeighborCount); - if (message.fractionLeafNodesToSearchOverride != null && Object.hasOwnProperty.call(message, "fractionLeafNodesToSearchOverride")) - writer.uint32(/* id 5, wireType 1 =*/41).double(message.fractionLeafNodesToSearchOverride); - return writer; - }; + /** + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateArtifactRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + return writer; + }; - /** - * Encodes the specified Query message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.IQuery} message Query message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Query.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Query message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Query.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32()); - break; - } - case 2: { - message.neighborCount = reader.int32(); - break; - } - case 3: { - message.perCrowdingAttributeNeighborCount = reader.int32(); - break; - } - case 4: { - message.approximateNeighborCount = reader.int32(); - break; - } - case 5: { - message.fractionLeafNodesToSearchOverride = reader.double(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateArtifactRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allowMissing = reader.bool(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Query message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Query.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Query message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Query.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.datapoint != null && message.hasOwnProperty("datapoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoint); - if (error) - return "datapoint." + error; - } - if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) - if (!$util.isInteger(message.neighborCount)) - return "neighborCount: integer expected"; - if (message.perCrowdingAttributeNeighborCount != null && message.hasOwnProperty("perCrowdingAttributeNeighborCount")) - if (!$util.isInteger(message.perCrowdingAttributeNeighborCount)) - return "perCrowdingAttributeNeighborCount: integer expected"; - if (message.approximateNeighborCount != null && message.hasOwnProperty("approximateNeighborCount")) - if (!$util.isInteger(message.approximateNeighborCount)) - return "approximateNeighborCount: integer expected"; - if (message.fractionLeafNodesToSearchOverride != null && message.hasOwnProperty("fractionLeafNodesToSearchOverride")) - if (typeof message.fractionLeafNodesToSearchOverride !== "number") - return "fractionLeafNodesToSearchOverride: number expected"; - return null; - }; + /** + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Query message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} Query - */ - Query.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query(); - if (object.datapoint != null) { - if (typeof object.datapoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query.datapoint: object expected"); - message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoint); - } - if (object.neighborCount != null) - message.neighborCount = object.neighborCount | 0; - if (object.perCrowdingAttributeNeighborCount != null) - message.perCrowdingAttributeNeighborCount = object.perCrowdingAttributeNeighborCount | 0; - if (object.approximateNeighborCount != null) - message.approximateNeighborCount = object.approximateNeighborCount | 0; - if (object.fractionLeafNodesToSearchOverride != null) - message.fractionLeafNodesToSearchOverride = Number(object.fractionLeafNodesToSearchOverride); - return message; - }; + /** + * Verifies an UpdateArtifactRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateArtifactRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); + if (error) + return "artifact." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; + return null; + }; - /** - * Creates a plain object from a Query message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query} message Query - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Query.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.datapoint = null; - object.neighborCount = 0; - object.perCrowdingAttributeNeighborCount = 0; - object.approximateNeighborCount = 0; - object.fractionLeafNodesToSearchOverride = 0; - } - if (message.datapoint != null && message.hasOwnProperty("datapoint")) - object.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoint, options); - if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) - object.neighborCount = message.neighborCount; - if (message.perCrowdingAttributeNeighborCount != null && message.hasOwnProperty("perCrowdingAttributeNeighborCount")) - object.perCrowdingAttributeNeighborCount = message.perCrowdingAttributeNeighborCount; - if (message.approximateNeighborCount != null && message.hasOwnProperty("approximateNeighborCount")) - object.approximateNeighborCount = message.approximateNeighborCount; - if (message.fractionLeafNodesToSearchOverride != null && message.hasOwnProperty("fractionLeafNodesToSearchOverride")) - object.fractionLeafNodesToSearchOverride = options.json && !isFinite(message.fractionLeafNodesToSearchOverride) ? String(message.fractionLeafNodesToSearchOverride) : message.fractionLeafNodesToSearchOverride; + /** + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + */ + UpdateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); + return message; + }; - /** - * Converts this Query to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @instance - * @returns {Object.} JSON object - */ - Query.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} message UpdateArtifactRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateArtifactRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.artifact = null; + object.updateMask = null; + object.allowMissing = false; + } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; + return object; + }; - /** - * Gets the default type url for Query - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Query.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsRequest.Query"; - }; + /** + * Converts this UpdateArtifactRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateArtifactRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; - })(); + /** + * Gets the default type url for UpdateArtifactRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateArtifactRequest"; + }; - return FindNeighborsRequest; + return UpdateArtifactRequest; })(); - v1beta1.FindNeighborsResponse = (function() { + v1beta1.DeleteArtifactRequest = (function() { /** - * Properties of a FindNeighborsResponse. + * Properties of a DeleteArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFindNeighborsResponse - * @property {Array.|null} [nearestNeighbors] FindNeighborsResponse nearestNeighbors + * @interface IDeleteArtifactRequest + * @property {string|null} [name] DeleteArtifactRequest name + * @property {string|null} [etag] DeleteArtifactRequest etag */ /** - * Constructs a new FindNeighborsResponse. + * Constructs a new DeleteArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FindNeighborsResponse. - * @implements IFindNeighborsResponse + * @classdesc Represents a DeleteArtifactRequest. + * @implements IDeleteArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set */ - function FindNeighborsResponse(properties) { - this.nearestNeighbors = []; + function DeleteArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -371568,78 +373419,89 @@ } /** - * FindNeighborsResponse nearestNeighbors. - * @member {Array.} nearestNeighbors - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * DeleteArtifactRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @instance */ - FindNeighborsResponse.prototype.nearestNeighbors = $util.emptyArray; + DeleteArtifactRequest.prototype.name = ""; /** - * Creates a new FindNeighborsResponse instance using the specified properties. + * DeleteArtifactRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @instance + */ + DeleteArtifactRequest.prototype.etag = ""; + + /** + * Creates a new DeleteArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest instance */ - FindNeighborsResponse.create = function create(properties) { - return new FindNeighborsResponse(properties); + DeleteArtifactRequest.create = function create(properties) { + return new DeleteArtifactRequest(properties); }; /** - * Encodes the specified FindNeighborsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse} message FindNeighborsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindNeighborsResponse.encode = function encode(message, writer) { + DeleteArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nearestNeighbors != null && message.nearestNeighbors.length) - for (var i = 0; i < message.nearestNeighbors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.encode(message.nearestNeighbors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified FindNeighborsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.verify|verify} messages. + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFindNeighborsResponse} message FindNeighborsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindNeighborsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindNeighborsResponse message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindNeighborsResponse.decode = function decode(reader, length) { + DeleteArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.nearestNeighbors && message.nearestNeighbors.length)) - message.nearestNeighbors = []; - message.nearestNeighbors.push($root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + message.etag = reader.string(); break; } default: @@ -371651,622 +373513,383 @@ }; /** - * Decodes a FindNeighborsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindNeighborsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindNeighborsResponse message. + * Verifies a DeleteArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FindNeighborsResponse.verify = function verify(message) { + DeleteArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nearestNeighbors != null && message.hasOwnProperty("nearestNeighbors")) { - if (!Array.isArray(message.nearestNeighbors)) - return "nearestNeighbors: array expected"; - for (var i = 0; i < message.nearestNeighbors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify(message.nearestNeighbors[i]); - if (error) - return "nearestNeighbors." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a FindNeighborsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} FindNeighborsResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest */ - FindNeighborsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse) + DeleteArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse(); - if (object.nearestNeighbors) { - if (!Array.isArray(object.nearestNeighbors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.nearestNeighbors: array expected"); - message.nearestNeighbors = []; - for (var i = 0; i < object.nearestNeighbors.length; ++i) { - if (typeof object.nearestNeighbors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.nearestNeighbors: object expected"); - message.nearestNeighbors[i] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.fromObject(object.nearestNeighbors[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a FindNeighborsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse} message FindNeighborsResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} message DeleteArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindNeighborsResponse.toObject = function toObject(message, options) { + DeleteArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.nearestNeighbors = []; - if (message.nearestNeighbors && message.nearestNeighbors.length) { - object.nearestNeighbors = []; - for (var j = 0; j < message.nearestNeighbors.length; ++j) - object.nearestNeighbors[j] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.toObject(message.nearestNeighbors[j], options); + if (options.defaults) { + object.name = ""; + object.etag = ""; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this FindNeighborsResponse to JSON. + * Converts this DeleteArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @instance * @returns {Object.} JSON object */ - FindNeighborsResponse.prototype.toJSON = function toJSON() { + DeleteArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FindNeighborsResponse + * Gets the default type url for DeleteArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FindNeighborsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteArtifactRequest"; }; - FindNeighborsResponse.Neighbor = (function() { + return DeleteArtifactRequest; + })(); - /** - * Properties of a Neighbor. - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse - * @interface INeighbor - * @property {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null} [datapoint] Neighbor datapoint - * @property {number|null} [distance] Neighbor distance - */ + v1beta1.PurgeArtifactsRequest = (function() { - /** - * Constructs a new Neighbor. - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse - * @classdesc Represents a Neighbor. - * @implements INeighbor - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor=} [properties] Properties to set - */ - function Neighbor(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a PurgeArtifactsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPurgeArtifactsRequest + * @property {string|null} [parent] PurgeArtifactsRequest parent + * @property {string|null} [filter] PurgeArtifactsRequest filter + * @property {boolean|null} [force] PurgeArtifactsRequest force + */ - /** - * Neighbor datapoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexDatapoint|null|undefined} datapoint - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @instance - */ - Neighbor.prototype.datapoint = null; + /** + * Constructs a new PurgeArtifactsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PurgeArtifactsRequest. + * @implements IPurgeArtifactsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set + */ + function PurgeArtifactsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Neighbor distance. - * @member {number} distance - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @instance - */ - Neighbor.prototype.distance = 0; + /** + * PurgeArtifactsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @instance + */ + PurgeArtifactsRequest.prototype.parent = ""; - /** - * Creates a new Neighbor instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor instance - */ - Neighbor.create = function create(properties) { - return new Neighbor(properties); - }; + /** + * PurgeArtifactsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @instance + */ + PurgeArtifactsRequest.prototype.filter = ""; - /** - * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor} message Neighbor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Neighbor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.datapoint != null && Object.hasOwnProperty.call(message, "datapoint")) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.distance != null && Object.hasOwnProperty.call(message, "distance")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.distance); - return writer; - }; + /** + * PurgeArtifactsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @instance + */ + PurgeArtifactsRequest.prototype.force = false; - /** - * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INeighbor} message Neighbor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Neighbor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new PurgeArtifactsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest instance + */ + PurgeArtifactsRequest.create = function create(properties) { + return new PurgeArtifactsRequest(properties); + }; - /** - * Decodes a Neighbor message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Neighbor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32()); - break; - } - case 2: { - message.distance = reader.double(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PurgeArtifactsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + return writer; + }; + + /** + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PurgeArtifactsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Neighbor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Neighbor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Neighbor message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Neighbor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.datapoint != null && message.hasOwnProperty("datapoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoint); - if (error) - return "datapoint." + error; - } - if (message.distance != null && message.hasOwnProperty("distance")) - if (typeof message.distance !== "number") - return "distance: number expected"; - return null; - }; - - /** - * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} Neighbor - */ - Neighbor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor(); - if (object.datapoint != null) { - if (typeof object.datapoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.datapoint: object expected"); - message.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoint); - } - if (object.distance != null) - message.distance = Number(object.distance); - return message; - }; + /** + * Verifies a PurgeArtifactsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PurgeArtifactsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; - /** - * Creates a plain object from a Neighbor message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor} message Neighbor - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Neighbor.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.datapoint = null; - object.distance = 0; - } - if (message.datapoint != null && message.hasOwnProperty("datapoint")) - object.datapoint = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoint, options); - if (message.distance != null && message.hasOwnProperty("distance")) - object.distance = options.json && !isFinite(message.distance) ? String(message.distance) : message.distance; + /** + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + */ + PurgeArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) return object; - }; - - /** - * Converts this Neighbor to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @instance - * @returns {Object.} JSON object - */ - Neighbor.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Neighbor - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Neighbor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor"; - }; - - return Neighbor; - })(); - - FindNeighborsResponse.NearestNeighbors = (function() { - - /** - * Properties of a NearestNeighbors. - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse - * @interface INearestNeighbors - * @property {string|null} [id] NearestNeighbors id - * @property {Array.|null} [neighbors] NearestNeighbors neighbors - */ + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; - /** - * Constructs a new NearestNeighbors. - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse - * @classdesc Represents a NearestNeighbors. - * @implements INearestNeighbors - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors=} [properties] Properties to set - */ - function NearestNeighbors(properties) { - this.neighbors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} message PurgeArtifactsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PurgeArtifactsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.force = false; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; - /** - * NearestNeighbors id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @instance - */ - NearestNeighbors.prototype.id = ""; - - /** - * NearestNeighbors neighbors. - * @member {Array.} neighbors - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @instance - */ - NearestNeighbors.prototype.neighbors = $util.emptyArray; - - /** - * Creates a new NearestNeighbors instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors instance - */ - NearestNeighbors.create = function create(properties) { - return new NearestNeighbors(properties); - }; - - /** - * Encodes the specified NearestNeighbors message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors} message NearestNeighbors message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NearestNeighbors.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.neighbors != null && message.neighbors.length) - for (var i = 0; i < message.neighbors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.encode(message.neighbors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NearestNeighbors message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.INearestNeighbors} message NearestNeighbors message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NearestNeighbors.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NearestNeighbors message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NearestNeighbors.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.id = reader.string(); - break; - } - case 2: { - if (!(message.neighbors && message.neighbors.length)) - message.neighbors = []; - message.neighbors.push($root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NearestNeighbors message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NearestNeighbors.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NearestNeighbors message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NearestNeighbors.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.neighbors != null && message.hasOwnProperty("neighbors")) { - if (!Array.isArray(message.neighbors)) - return "neighbors: array expected"; - for (var i = 0; i < message.neighbors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.verify(message.neighbors[i]); - if (error) - return "neighbors." + error; - } - } - return null; - }; - - /** - * Creates a NearestNeighbors message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} NearestNeighbors - */ - NearestNeighbors.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors(); - if (object.id != null) - message.id = String(object.id); - if (object.neighbors) { - if (!Array.isArray(object.neighbors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.neighbors: array expected"); - message.neighbors = []; - for (var i = 0; i < object.neighbors.length; ++i) { - if (typeof object.neighbors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors.neighbors: object expected"); - message.neighbors[i] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.fromObject(object.neighbors[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a NearestNeighbors message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors} message NearestNeighbors - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NearestNeighbors.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.neighbors = []; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.neighbors && message.neighbors.length) { - object.neighbors = []; - for (var j = 0; j < message.neighbors.length; ++j) - object.neighbors[j] = $root.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor.toObject(message.neighbors[j], options); - } - return object; - }; - - /** - * Converts this NearestNeighbors to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @instance - * @returns {Object.} JSON object - */ - NearestNeighbors.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for NearestNeighbors - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NearestNeighbors.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors"; - }; + /** + * Converts this PurgeArtifactsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @instance + * @returns {Object.} JSON object + */ + PurgeArtifactsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return NearestNeighbors; - })(); + /** + * Gets the default type url for PurgeArtifactsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PurgeArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest"; + }; - return FindNeighborsResponse; + return PurgeArtifactsRequest; })(); - v1beta1.ReadIndexDatapointsRequest = (function() { + v1beta1.PurgeArtifactsResponse = (function() { /** - * Properties of a ReadIndexDatapointsRequest. + * Properties of a PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IReadIndexDatapointsRequest - * @property {string|null} [indexEndpoint] ReadIndexDatapointsRequest indexEndpoint - * @property {string|null} [deployedIndexId] ReadIndexDatapointsRequest deployedIndexId - * @property {Array.|null} [ids] ReadIndexDatapointsRequest ids + * @interface IPurgeArtifactsResponse + * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample */ /** - * Constructs a new ReadIndexDatapointsRequest. + * Constructs a new PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ReadIndexDatapointsRequest. - * @implements IReadIndexDatapointsRequest + * @classdesc Represents a PurgeArtifactsResponse. + * @implements IPurgeArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set */ - function ReadIndexDatapointsRequest(properties) { - this.ids = []; + function PurgeArtifactsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -372274,106 +373897,92 @@ } /** - * ReadIndexDatapointsRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest - * @instance - */ - ReadIndexDatapointsRequest.prototype.indexEndpoint = ""; - - /** - * ReadIndexDatapointsRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * PurgeArtifactsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @instance */ - ReadIndexDatapointsRequest.prototype.deployedIndexId = ""; + PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReadIndexDatapointsRequest ids. - * @member {Array.} ids - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * PurgeArtifactsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @instance */ - ReadIndexDatapointsRequest.prototype.ids = $util.emptyArray; + PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new ReadIndexDatapointsRequest instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse instance */ - ReadIndexDatapointsRequest.create = function create(properties) { - return new ReadIndexDatapointsRequest(properties); + PurgeArtifactsResponse.create = function create(properties) { + return new PurgeArtifactsResponse(properties); }; /** - * Encodes the specified ReadIndexDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} message ReadIndexDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadIndexDatapointsRequest.encode = function encode(message, writer) { + PurgeArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ids[i]); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified ReadIndexDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsRequest} message ReadIndexDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadIndexDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadIndexDatapointsRequest.decode = function decode(reader, length) { + PurgeArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = reader.string(); + message.purgeCount = reader.int64(); break; } case 2: { - message.deployedIndexId = reader.string(); - break; - } - case 3: { - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -372385,153 +373994,157 @@ }; /** - * Decodes a ReadIndexDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadIndexDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadIndexDatapointsRequest message. + * Verifies a PurgeArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadIndexDatapointsRequest.verify = function verify(message) { + PurgeArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) - if (!$util.isString(message.ids[i])) - return "ids: string[] expected"; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; } return null; }; /** - * Creates a ReadIndexDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} ReadIndexDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse */ - ReadIndexDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest) + PurgeArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - if (object.ids) { - if (!Array.isArray(object.ids)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest.ids: array expected"); - message.ids = []; - for (var i = 0; i < object.ids.length; ++i) - message.ids[i] = String(object.ids[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); } return message; }; /** - * Creates a plain object from a ReadIndexDatapointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest} message ReadIndexDatapointsRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} message PurgeArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadIndexDatapointsRequest.toObject = function toObject(message, options) { + PurgeArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.ids = []; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - if (message.ids && message.ids.length) { - object.ids = []; - for (var j = 0; j < message.ids.length; ++j) - object.ids[j] = message.ids[j]; + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } return object; }; /** - * Converts this ReadIndexDatapointsRequest to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @instance * @returns {Object.} JSON object */ - ReadIndexDatapointsRequest.prototype.toJSON = function toJSON() { + PurgeArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadIndexDatapointsRequest + * Gets the default type url for PurgeArtifactsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadIndexDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse"; }; - return ReadIndexDatapointsRequest; + return PurgeArtifactsResponse; })(); - v1beta1.ReadIndexDatapointsResponse = (function() { + v1beta1.PurgeArtifactsMetadata = (function() { /** - * Properties of a ReadIndexDatapointsResponse. + * Properties of a PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IReadIndexDatapointsResponse - * @property {Array.|null} [datapoints] ReadIndexDatapointsResponse datapoints + * @interface IPurgeArtifactsMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata */ /** - * Constructs a new ReadIndexDatapointsResponse. + * Constructs a new PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ReadIndexDatapointsResponse. - * @implements IReadIndexDatapointsResponse + * @classdesc Represents a PurgeArtifactsMetadata. + * @implements IPurgeArtifactsMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set */ - function ReadIndexDatapointsResponse(properties) { - this.datapoints = []; + function PurgeArtifactsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -372539,78 +374152,75 @@ } /** - * ReadIndexDatapointsResponse datapoints. - * @member {Array.} datapoints - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * PurgeArtifactsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @instance */ - ReadIndexDatapointsResponse.prototype.datapoints = $util.emptyArray; + PurgeArtifactsMetadata.prototype.genericMetadata = null; /** - * Creates a new ReadIndexDatapointsResponse instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance */ - ReadIndexDatapointsResponse.create = function create(properties) { - return new ReadIndexDatapointsResponse(properties); + PurgeArtifactsMetadata.create = function create(properties) { + return new PurgeArtifactsMetadata(properties); }; /** - * Encodes the specified ReadIndexDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse} message ReadIndexDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadIndexDatapointsResponse.encode = function encode(message, writer) { + PurgeArtifactsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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 1, wireType 2 =*/10).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 ReadIndexDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IReadIndexDatapointsResponse} message ReadIndexDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadIndexDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadIndexDatapointsResponse.decode = function decode(reader, length) { + PurgeArtifactsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.datapoints && message.datapoints.length)) - message.datapoints = []; - message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -372622,144 +374232,129 @@ }; /** - * Decodes a ReadIndexDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadIndexDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadIndexDatapointsResponse message. + * Verifies a PurgeArtifactsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadIndexDatapointsResponse.verify = function verify(message) { + PurgeArtifactsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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; - } + 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 ReadIndexDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} ReadIndexDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata */ - ReadIndexDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse) + PurgeArtifactsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse(); - if (object.datapoints) { - if (!Array.isArray(object.datapoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse.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.ReadIndexDatapointsResponse.datapoints: object expected"); - message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a ReadIndexDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse} message ReadIndexDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadIndexDatapointsResponse.toObject = function toObject(message, options) { + PurgeArtifactsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.datapoints = []; - 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); - } + 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 ReadIndexDatapointsResponse to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @instance * @returns {Object.} JSON object */ - ReadIndexDatapointsResponse.prototype.toJSON = function toJSON() { + PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadIndexDatapointsResponse + * Gets the default type url for PurgeArtifactsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadIndexDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata"; }; - return ReadIndexDatapointsResponse; + return PurgeArtifactsMetadata; })(); - v1beta1.MetadataSchema = (function() { + v1beta1.CreateContextRequest = (function() { /** - * Properties of a MetadataSchema. + * Properties of a CreateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMetadataSchema - * @property {string|null} [name] MetadataSchema name - * @property {string|null} [schemaVersion] MetadataSchema schemaVersion - * @property {string|null} [schema] MetadataSchema schema - * @property {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime - * @property {string|null} [description] MetadataSchema description + * @interface ICreateContextRequest + * @property {string|null} [parent] CreateContextRequest parent + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] CreateContextRequest context + * @property {string|null} [contextId] CreateContextRequest contextId */ /** - * Constructs a new MetadataSchema. + * Constructs a new CreateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MetadataSchema. - * @implements IMetadataSchema + * @classdesc Represents a CreateContextRequest. + * @implements ICreateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set */ - function MetadataSchema(properties) { + function CreateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -372767,145 +374362,103 @@ } /** - * MetadataSchema name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.name = ""; - - /** - * MetadataSchema schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schemaVersion = ""; - - /** - * MetadataSchema schema. - * @member {string} schema - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schema = ""; - - /** - * MetadataSchema schemaType. - * @member {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType} schemaType - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * CreateContextRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance */ - MetadataSchema.prototype.schemaType = 0; + CreateContextRequest.prototype.parent = ""; /** - * MetadataSchema createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * CreateContextRequest context. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance */ - MetadataSchema.prototype.createTime = null; + CreateContextRequest.prototype.context = null; /** - * MetadataSchema description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * CreateContextRequest contextId. + * @member {string} contextId + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance */ - MetadataSchema.prototype.description = ""; + CreateContextRequest.prototype.contextId = ""; /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema instance + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest instance */ - MetadataSchema.create = function create(properties) { - return new MetadataSchema(properties); + CreateContextRequest.create = function create(properties) { + return new CreateContextRequest(properties); }; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encode = function encode(message, writer) { + CreateContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); - if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); return writer; }; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { + CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decode = function decode(reader, length) { + CreateContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.schemaVersion = reader.string(); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); break; } case 3: { - message.schema = reader.string(); - break; - } - case 4: { - message.schemaType = reader.int32(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.description = reader.string(); + message.contextId = reader.string(); break; } default: @@ -372917,1308 +374470,893 @@ }; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decodeDelimited = function decodeDelimited(reader) { + CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataSchema message. + * Verifies a CreateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataSchema.verify = function verify(message) { + CreateContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - switch (message.schemaType) { - default: - return "schemaType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); if (error) - return "createTime." + error; + return "context." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.contextId != null && message.hasOwnProperty("contextId")) + if (!$util.isString(message.contextId)) + return "contextId: string expected"; return null; }; /** - * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest */ - MetadataSchema.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataSchema) + CreateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); - if (object.name != null) - message.name = String(object.name); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.schema != null) - message.schema = String(object.schema); - switch (object.schemaType) { - default: - if (typeof object.schemaType === "number") { - message.schemaType = object.schemaType; - break; - } - break; - case "METADATA_SCHEMA_TYPE_UNSPECIFIED": - case 0: - message.schemaType = 0; - break; - case "ARTIFACT_TYPE": - case 1: - message.schemaType = 1; - break; - case "EXECUTION_TYPE": - case 2: - message.schemaType = 2; - break; - case "CONTEXT_TYPE": - case 3: - message.schemaType = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataSchema.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); } - if (object.description != null) - message.description = String(object.description); + if (object.contextId != null) + message.contextId = String(object.contextId); return message; }; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} message MetadataSchema + * @param {google.cloud.aiplatform.v1beta1.CreateContextRequest} message CreateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataSchema.toObject = function toObject(message, options) { + CreateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.schemaVersion = ""; - object.schema = ""; - object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; - object.createTime = null; - object.description = ""; + object.parent = ""; + object.context = null; + object.contextId = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType[message.schemaType] === undefined ? message.schemaType : $root.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.context != null && message.hasOwnProperty("context")) + object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); + if (message.contextId != null && message.hasOwnProperty("contextId")) + object.contextId = message.contextId; return object; }; /** - * Converts this MetadataSchema to JSON. + * Converts this CreateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance * @returns {Object.} JSON object */ - MetadataSchema.prototype.toJSON = function toJSON() { + CreateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetadataSchema + * Gets the default type url for CreateContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetadataSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetadataSchema"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateContextRequest"; }; - /** - * MetadataSchemaType enum. - * @name google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType - * @enum {number} - * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value - * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value - * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value - * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value - */ - MetadataSchema.MetadataSchemaType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ARTIFACT_TYPE"] = 1; - values[valuesById[2] = "EXECUTION_TYPE"] = 2; - values[valuesById[3] = "CONTEXT_TYPE"] = 3; - return values; - })(); - - return MetadataSchema; + return CreateContextRequest; })(); - v1beta1.MetadataService = (function() { + v1beta1.GetContextRequest = (function() { /** - * Constructs a new MetadataService service. + * Properties of a GetContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MetadataService - * @extends $protobuf.rpc.Service + * @interface IGetContextRequest + * @property {string|null} [name] GetContextRequest name + */ + + /** + * Constructs a new GetContextRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetContextRequest. + * @implements IGetContextRequest * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set */ - function MetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function GetContextRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; + /** + * GetContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @instance + */ + GetContextRequest.prototype.name = ""; /** - * Creates new MetadataService service using the specified rpc implementation. + * Creates a new GetContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MetadataService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest instance */ - MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + GetContextRequest.create = function create(properties) { + return new GetContextRequest(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataStore}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetContextRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { - return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateMetadataStore" }); + GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a GetContextRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetContextRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataStore}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.MetadataStore} [response] MetadataStore + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetContextRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore - * @returns {undefined} - * @variation 1 + * Verifies a GetContextRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { - return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1beta1.MetadataStore, request, callback); - }, "name", { value: "GetMetadataStore" }); + GetContextRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest */ + GetContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetContextRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataStores}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListMetadataStoresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetContextRequest} message GetContextRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + GetContextRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this GetContextRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { - return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, request, callback); - }, "name", { value: "ListMetadataStores" }); + GetContextRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for GetContextRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetContextRequest"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteMetadataStore}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + return GetContextRequest; + })(); - /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { - return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteMetadataStore" }); + v1beta1.ListContextsRequest = (function() { /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ListContextsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListContextsRequest + * @property {string|null} [parent] ListContextsRequest parent + * @property {number|null} [pageSize] ListContextsRequest pageSize + * @property {string|null} [pageToken] ListContextsRequest pageToken + * @property {string|null} [filter] ListContextsRequest filter + * @property {string|null} [orderBy] ListContextsRequest orderBy */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact + * Constructs a new ListContextsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListContextsRequest. + * @implements IListContextsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set */ + function ListContextsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { - return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); - }, "name", { value: "CreateArtifact" }); + ListContextsRequest.prototype.parent = ""; /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListContextsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListContextsRequest.prototype.pageSize = 0; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact + * ListContextsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @instance */ + ListContextsRequest.prototype.pageToken = ""; /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { - return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); - }, "name", { value: "GetArtifact" }); + ListContextsRequest.prototype.filter = ""; /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListContextsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListContextsRequest.prototype.orderBy = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listArtifacts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} [response] ListArtifactsResponse + * Creates a new ListContextsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest instance */ + ListContextsRequest.create = function create(properties) { + return new ListContextsRequest(properties); + }; /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { - return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse, request, callback); - }, "name", { value: "ListArtifacts" }); + ListContextsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef UpdateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact + * Decodes a ListContextsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListContextsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { - return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); - }, "name", { value: "UpdateArtifact" }); + ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListContextsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListContextsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest */ + ListContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListContextsRequest} message ListContextsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { - return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteArtifact" }); + ListContextsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this ListContextsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListContextsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeArtifacts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef PurgeArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Gets the default type url for ListContextsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListContextsRequest"; + }; - /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { - return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeArtifacts" }); + return ListContextsRequest; + })(); + + v1beta1.ListContextsResponse = (function() { /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ListContextsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListContextsResponse + * @property {Array.|null} [contexts] ListContextsResponse contexts + * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context + * Constructs a new ListContextsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListContextsResponse. + * @implements IListContextsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set */ + function ListContextsResponse(properties) { + this.contexts = []; + if (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 CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListContextsResponse contexts. + * @member {Array.} contexts + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { - return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1beta1.CreateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); - }, "name", { value: "CreateContext" }); + ListContextsResponse.prototype.contexts = $util.emptyArray; /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListContextsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListContextsResponse.prototype.nextPageToken = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context + * Creates a new ListContextsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse instance */ + ListContextsResponse.create = function create(properties) { + return new ListContextsResponse(properties); + }; /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { - return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1beta1.GetContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); - }, "name", { value: "GetContext" }); + ListContextsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.contexts != null && message.contexts.length) + for (var i = 0; i < message.contexts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listContexts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} [response] ListContextsResponse + * Decodes a ListContextsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListContextsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.contexts && message.contexts.length)) + message.contexts = []; + message.contexts.push($root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse - * @returns {undefined} - * @variation 1 + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { - return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1beta1.ListContextsRequest, $root.google.cloud.aiplatform.v1beta1.ListContextsResponse, request, callback); - }, "name", { value: "ListContexts" }); + ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListContextsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListContextsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.contexts != null && message.hasOwnProperty("contexts")) { + if (!Array.isArray(message.contexts)) + return "contexts: array expected"; + for (var i = 0; i < message.contexts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.contexts[i]); + if (error) + return "contexts." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef UpdateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse */ + ListContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); + if (object.contexts) { + if (!Array.isArray(object.contexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: array expected"); + message.contexts = []; + for (var i = 0; i < object.contexts.length; ++i) { + if (typeof object.contexts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: object expected"); + message.contexts[i] = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.contexts[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} message ListContextsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { - return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); - }, "name", { value: "UpdateContext" }); + ListContextsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.contexts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.contexts && message.contexts.length) { + object.contexts = []; + for (var j = 0; j < message.contexts.length; ++j) + object.contexts[j] = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.contexts[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { - return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteContext" }); - - /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeContexts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef PurgeContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { - return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeContexts" }); - - /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextArtifactsAndExecutions}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef AddContextArtifactsAndExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse - */ - - /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { - return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, request, callback); - }, "name", { value: "AddContextArtifactsAndExecutions" }); - - /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addContextChildren}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef AddContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} [response] AddContextChildrenResponse - */ - - /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { - return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, request, callback); - }, "name", { value: "AddContextChildren" }); - - /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|removeContextChildren}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef RemoveContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse - */ - - /** - * Calls RemoveContextChildren. - * @function removeContextChildren - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { - return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse, request, callback); - }, "name", { value: "RemoveContextChildren" }); - - /** - * Calls RemoveContextChildren. - * @function removeContextChildren - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryContextLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef QueryContextLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph - */ - - /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { - return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); - }, "name", { value: "QueryContextLineageSubgraph" }); - - /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution - */ - - /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); - }, "name", { value: "CreateExecution" }); - - /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution - */ - - /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); - }, "name", { value: "GetExecution" }); - - /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listExecutions}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} [response] ListExecutionsResponse - */ - - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse, request, callback); - }, "name", { value: "ListExecutions" }); - - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|updateExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef UpdateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution - */ - - /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); - }, "name", { value: "UpdateExecution" }); - - /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|deleteExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { - return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteExecution" }); - - /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|purgeExecutions}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef PurgeExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { - return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeExecutions" }); - - /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|addExecutionEvents}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef AddExecutionEventsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse - */ - - /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { - return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, request, callback); - }, "name", { value: "AddExecutionEvents" }); - - /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryExecutionInputsAndOutputs}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef QueryExecutionInputsAndOutputsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph - */ - - /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { - return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); - }, "name", { value: "QueryExecutionInputsAndOutputs" }); - - /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|createMetadataSchema}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema - */ - - /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { - return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); - }, "name", { value: "CreateMetadataSchema" }); - - /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|getMetadataSchema}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema - */ - - /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { - return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); - }, "name", { value: "GetMetadataSchema" }); - - /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|listMetadataSchemas}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListMetadataSchemasCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse - */ - - /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { - return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, request, callback); - }, "name", { value: "ListMetadataSchemas" }); - - /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryArtifactLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef QueryArtifactLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph - */ - - /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this ListContextsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { - return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); - }, "name", { value: "QueryArtifactLineageSubgraph" }); + ListContextsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ListContextsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListContextsResponse"; + }; - return MetadataService; + return ListContextsResponse; })(); - v1beta1.CreateMetadataStoreRequest = (function() { + v1beta1.UpdateContextRequest = (function() { /** - * Properties of a CreateMetadataStoreRequest. + * Properties of an UpdateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateMetadataStoreRequest - * @property {string|null} [parent] CreateMetadataStoreRequest parent - * @property {google.cloud.aiplatform.v1beta1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore - * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId + * @interface IUpdateContextRequest + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] UpdateContextRequest context + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask + * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing */ /** - * Constructs a new CreateMetadataStoreRequest. + * Constructs a new UpdateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateMetadataStoreRequest. - * @implements ICreateMetadataStoreRequest + * @classdesc Represents an UpdateContextRequest. + * @implements IUpdateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set */ - function CreateMetadataStoreRequest(properties) { + function UpdateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -374226,103 +375364,103 @@ } /** - * CreateMetadataStoreRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * UpdateContextRequest context. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @instance */ - CreateMetadataStoreRequest.prototype.parent = ""; + UpdateContextRequest.prototype.context = null; /** - * CreateMetadataStoreRequest metadataStore. - * @member {google.cloud.aiplatform.v1beta1.IMetadataStore|null|undefined} metadataStore - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * UpdateContextRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @instance */ - CreateMetadataStoreRequest.prototype.metadataStore = null; + UpdateContextRequest.prototype.updateMask = null; /** - * CreateMetadataStoreRequest metadataStoreId. - * @member {string} metadataStoreId - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * UpdateContextRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @instance */ - CreateMetadataStoreRequest.prototype.metadataStoreId = ""; + UpdateContextRequest.prototype.allowMissing = false; /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * Creates a new UpdateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest instance */ - CreateMetadataStoreRequest.create = function create(properties) { - return new CreateMetadataStoreRequest(properties); + UpdateContextRequest.create = function create(properties) { + return new UpdateContextRequest(properties); }; /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encode = function encode(message, writer) { + UpdateContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) - $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decode = function decode(reader, length) { + UpdateContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); break; } case 2: { - message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.metadataStoreId = reader.string(); + message.allowMissing = reader.bool(); break; } default: @@ -374334,144 +375472,151 @@ }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreRequest message. + * Verifies an UpdateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreRequest.verify = function verify(message) { + UpdateContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStore); + if (message.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); if (error) - return "metadataStore." + error; + return "context." + error; } - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - if (!$util.isString(message.metadataStoreId)) - return "metadataStoreId: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest */ - CreateMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + UpdateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.metadataStore != null) { - if (typeof object.metadataStore !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.metadataStore: object expected"); - message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStore); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); } - if (object.metadataStoreId != null) - message.metadataStoreId = String(object.metadataStoreId); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateContextRequest} message UpdateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreRequest.toObject = function toObject(message, options) { + UpdateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.metadataStore = null; - object.metadataStoreId = ""; + object.context = null; + object.updateMask = null; + object.allowMissing = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) - object.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStore, options); - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - object.metadataStoreId = message.metadataStoreId; + if (message.context != null && message.hasOwnProperty("context")) + object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this CreateMetadataStoreRequest to JSON. + * Converts this UpdateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { + UpdateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataStoreRequest + * Gets the default type url for UpdateContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateContextRequest"; }; - return CreateMetadataStoreRequest; + return UpdateContextRequest; })(); - v1beta1.CreateMetadataStoreOperationMetadata = (function() { + v1beta1.DeleteContextRequest = (function() { /** - * Properties of a CreateMetadataStoreOperationMetadata. + * Properties of a DeleteContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata + * @interface IDeleteContextRequest + * @property {string|null} [name] DeleteContextRequest name + * @property {boolean|null} [force] DeleteContextRequest force + * @property {string|null} [etag] DeleteContextRequest etag */ /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new DeleteContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateMetadataStoreOperationMetadata. - * @implements ICreateMetadataStoreOperationMetadata + * @classdesc Represents a DeleteContextRequest. + * @implements IDeleteContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set */ - function CreateMetadataStoreOperationMetadata(properties) { + function DeleteContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -374479,75 +375624,103 @@ } /** - * CreateMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * DeleteContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @instance */ - CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; + DeleteContextRequest.prototype.name = ""; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * DeleteContextRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.force = false; + + /** + * DeleteContextRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.etag = ""; + + /** + * Creates a new DeleteContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest instance */ - CreateMetadataStoreOperationMetadata.create = function create(properties) { - return new CreateMetadataStoreOperationMetadata(properties); + DeleteContextRequest.create = function create(properties) { + return new DeleteContextRequest(properties); }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { + DeleteContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { + DeleteContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); + break; + } + case 3: { + message.etag = reader.string(); break; } default: @@ -374559,127 +375732,141 @@ }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a DeleteContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreOperationMetadata.verify = function verify(message) { + DeleteContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest */ - CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + DeleteContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeleteContextRequest} message DeleteContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { + DeleteContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.name = ""; + object.force = false; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this DeleteContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { + DeleteContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataStoreOperationMetadata + * Gets the default type url for DeleteContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteContextRequest"; }; - return CreateMetadataStoreOperationMetadata; + return DeleteContextRequest; })(); - v1beta1.GetMetadataStoreRequest = (function() { + v1beta1.PurgeContextsRequest = (function() { /** - * Properties of a GetMetadataStoreRequest. + * Properties of a PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetMetadataStoreRequest - * @property {string|null} [name] GetMetadataStoreRequest name - */ + * @interface IPurgeContextsRequest + * @property {string|null} [parent] PurgeContextsRequest parent + * @property {string|null} [filter] PurgeContextsRequest filter + * @property {boolean|null} [force] PurgeContextsRequest force + */ /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetMetadataStoreRequest. - * @implements IGetMetadataStoreRequest + * @classdesc Represents a PurgeContextsRequest. + * @implements IPurgeContextsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set */ - function GetMetadataStoreRequest(properties) { + function PurgeContextsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -374687,75 +375874,103 @@ } /** - * GetMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * PurgeContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @instance */ - GetMetadataStoreRequest.prototype.name = ""; + PurgeContextsRequest.prototype.parent = ""; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * PurgeContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.filter = ""; + + /** + * PurgeContextsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.force = false; + + /** + * Creates a new PurgeContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest instance */ - GetMetadataStoreRequest.create = function create(properties) { - return new GetMetadataStoreRequest(properties); + PurgeContextsRequest.create = function create(properties) { + return new PurgeContextsRequest(properties); }; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encode = function encode(message, writer) { + PurgeContextsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decode = function decode(reader, length) { + PurgeContextsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); break; } default: @@ -374767,124 +375982,141 @@ }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a PurgeContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataStoreRequest.verify = function verify(message) { + PurgeContextsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest */ - GetMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) + PurgeContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} message GetMetadataStoreRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} message PurgeContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataStoreRequest.toObject = function toObject(message, options) { + PurgeContextsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.force = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this PurgeContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @instance * @returns {Object.} JSON object */ - GetMetadataStoreRequest.prototype.toJSON = function toJSON() { + PurgeContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetMetadataStoreRequest + * Gets the default type url for PurgeContextsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeContextsRequest"; }; - return GetMetadataStoreRequest; + return PurgeContextsRequest; })(); - v1beta1.ListMetadataStoresRequest = (function() { + v1beta1.PurgeContextsResponse = (function() { /** - * Properties of a ListMetadataStoresRequest. + * Properties of a PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataStoresRequest - * @property {string|null} [parent] ListMetadataStoresRequest parent - * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize - * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken + * @interface IPurgeContextsResponse + * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample */ /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataStoresRequest. - * @implements IListMetadataStoresRequest + * @classdesc Represents a PurgeContextsResponse. + * @implements IPurgeContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set */ - function ListMetadataStoresRequest(properties) { + function PurgeContextsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -374892,103 +376124,92 @@ } /** - * ListMetadataStoresRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest - * @instance - */ - ListMetadataStoresRequest.prototype.parent = ""; - - /** - * ListMetadataStoresRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * PurgeContextsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @instance */ - ListMetadataStoresRequest.prototype.pageSize = 0; + PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ListMetadataStoresRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * PurgeContextsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @instance */ - ListMetadataStoresRequest.prototype.pageToken = ""; + PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse instance */ - ListMetadataStoresRequest.create = function create(properties) { - return new ListMetadataStoresRequest(properties); + PurgeContextsResponse.create = function create(properties) { + return new PurgeContextsResponse(properties); }; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encode = function encode(message, writer) { + PurgeContextsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decode = function decode(reader, length) { + PurgeContextsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.purgeCount = reader.int64(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -375000,141 +376221,157 @@ }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a PurgeContextsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataStoresRequest.verify = function verify(message) { + PurgeContextsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; + } return null; }; /** - * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse */ - ListMetadataStoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + PurgeContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); + } return message; }; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} message ListMetadataStoresRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} message PurgeContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataStoresRequest.toObject = function toObject(message, options) { + PurgeContextsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @instance * @returns {Object.} JSON object */ - ListMetadataStoresRequest.prototype.toJSON = function toJSON() { + PurgeContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataStoresRequest + * Gets the default type url for PurgeContextsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeContextsResponse"; }; - return ListMetadataStoresRequest; + return PurgeContextsResponse; })(); - v1beta1.ListMetadataStoresResponse = (function() { + v1beta1.PurgeContextsMetadata = (function() { /** - * Properties of a ListMetadataStoresResponse. + * Properties of a PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataStoresResponse - * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores - * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken + * @interface IPurgeContextsMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata */ /** - * Constructs a new ListMetadataStoresResponse. + * Constructs a new PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataStoresResponse. - * @implements IListMetadataStoresResponse + * @classdesc Represents a PurgeContextsMetadata. + * @implements IPurgeContextsMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set */ - function ListMetadataStoresResponse(properties) { - this.metadataStores = []; + function PurgeContextsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -375142,92 +376379,75 @@ } /** - * ListMetadataStoresResponse metadataStores. - * @member {Array.} metadataStores - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse - * @instance - */ - ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; - - /** - * ListMetadataStoresResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * PurgeContextsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @instance */ - ListMetadataStoresResponse.prototype.nextPageToken = ""; + PurgeContextsMetadata.prototype.genericMetadata = null; /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata instance */ - ListMetadataStoresResponse.create = function create(properties) { - return new ListMetadataStoresResponse(properties); + PurgeContextsMetadata.create = function create(properties) { + return new PurgeContextsMetadata(properties); }; /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresResponse.encode = function encode(message, writer) { + PurgeContextsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadataStores != null && message.metadataStores.length) - for (var i = 0; i < message.metadataStores.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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 ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresResponse.decode = function decode(reader, length) { + PurgeContextsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.metadataStores && message.metadataStores.length)) - message.metadataStores = []; - message.metadataStores.push($root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -375239,149 +376459,131 @@ }; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataStoresResponse message. + * Verifies a PurgeContextsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataStoresResponse.verify = function verify(message) { + PurgeContextsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { - if (!Array.isArray(message.metadataStores)) - return "metadataStores: array expected"; - for (var i = 0; i < message.metadataStores.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStores[i]); - if (error) - return "metadataStores." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata */ - ListMetadataStoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + PurgeContextsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); - if (object.metadataStores) { - if (!Array.isArray(object.metadataStores)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: array expected"); - message.metadataStores = []; - for (var i = 0; i < object.metadataStores.length; ++i) { - if (typeof object.metadataStores[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: object expected"); - message.metadataStores[i] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStores[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} message ListMetadataStoresResponse + * @param {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} message PurgeContextsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataStoresResponse.toObject = function toObject(message, options) { + PurgeContextsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metadataStores = []; if (options.defaults) - object.nextPageToken = ""; - if (message.metadataStores && message.metadataStores.length) { - object.metadataStores = []; - for (var j = 0; j < message.metadataStores.length; ++j) - object.metadataStores[j] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStores[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ListMetadataStoresResponse to JSON. + * Converts this PurgeContextsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @instance * @returns {Object.} JSON object */ - ListMetadataStoresResponse.prototype.toJSON = function toJSON() { + PurgeContextsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataStoresResponse + * Gets the default type url for PurgeContextsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeContextsMetadata"; }; - return ListMetadataStoresResponse; + return PurgeContextsMetadata; })(); - v1beta1.DeleteMetadataStoreRequest = (function() { + v1beta1.AddContextArtifactsAndExecutionsRequest = (function() { /** - * Properties of a DeleteMetadataStoreRequest. + * Properties of an AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteMetadataStoreRequest - * @property {string|null} [name] DeleteMetadataStoreRequest name - * @property {boolean|null} [force] DeleteMetadataStoreRequest force + * @interface IAddContextArtifactsAndExecutionsRequest + * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context + * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts + * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions */ /** - * Constructs a new DeleteMetadataStoreRequest. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteMetadataStoreRequest. - * @implements IDeleteMetadataStoreRequest + * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. + * @implements IAddContextArtifactsAndExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set */ - function DeleteMetadataStoreRequest(properties) { + function AddContextArtifactsAndExecutionsRequest(properties) { + this.artifacts = []; + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -375389,89 +376591,109 @@ } /** - * DeleteMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * AddContextArtifactsAndExecutionsRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance */ - DeleteMetadataStoreRequest.prototype.name = ""; + AddContextArtifactsAndExecutionsRequest.prototype.context = ""; /** - * DeleteMetadataStoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * AddContextArtifactsAndExecutionsRequest artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance */ - DeleteMetadataStoreRequest.prototype.force = false; + AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. + * AddContextArtifactsAndExecutionsRequest executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @instance + */ + AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; + + /** + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance */ - DeleteMetadataStoreRequest.create = function create(properties) { - return new DeleteMetadataStoreRequest(properties); + AddContextArtifactsAndExecutionsRequest.create = function create(properties) { + return new AddContextArtifactsAndExecutionsRequest(properties); }; /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreRequest.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); return writer; }; /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreRequest.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.context = reader.string(); break; } case 2: { - message.force = reader.bool(); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push(reader.string()); + break; + } + case 3: { + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push(reader.string()); break; } default: @@ -375483,131 +376705,163 @@ }; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMetadataStoreRequest message. + * Verifies an AddContextArtifactsAndExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMetadataStoreRequest.verify = function verify(message) { + AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) + if (!$util.isString(message.artifacts[i])) + return "artifacts: string[] expected"; + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) + if (!$util.isString(message.executions[i])) + return "executions: string[] expected"; + } return null; }; /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest */ - DeleteMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) + message.artifacts[i] = String(object.artifacts[i]); + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) + message.executions[i] = String(object.executions[i]); + } return message; }; /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest + * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMetadataStoreRequest.toObject = function toObject(message, options) { + AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + } + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = message.artifacts[j]; + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = message.executions[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteMetadataStoreRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance * @returns {Object.} JSON object */ - DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteMetadataStoreRequest + * Gets the default type url for AddContextArtifactsAndExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextArtifactsAndExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest"; }; - return DeleteMetadataStoreRequest; + return AddContextArtifactsAndExecutionsRequest; })(); - v1beta1.DeleteMetadataStoreOperationMetadata = (function() { + v1beta1.AddContextArtifactsAndExecutionsResponse = (function() { /** - * Properties of a DeleteMetadataStoreOperationMetadata. + * Properties of an AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata + * @interface IAddContextArtifactsAndExecutionsResponse */ /** - * Constructs a new DeleteMetadataStoreOperationMetadata. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteMetadataStoreOperationMetadata. - * @implements IDeleteMetadataStoreOperationMetadata + * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. + * @implements IAddContextArtifactsAndExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set */ - function DeleteMetadataStoreOperationMetadata(properties) { + function AddContextArtifactsAndExecutionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -375615,77 +376869,63 @@ } /** - * DeleteMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata - * @instance - */ - DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; - - /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance */ - DeleteMetadataStoreOperationMetadata.create = function create(properties) { - return new DeleteMetadataStoreOperationMetadata(properties); + AddContextArtifactsAndExecutionsResponse.create = function create(properties) { + return new AddContextArtifactsAndExecutionsResponse(properties); }; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreOperationMetadata.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -375695,129 +376935,111 @@ }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMetadataStoreOperationMetadata message. + * Verifies an AddContextArtifactsAndExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMetadataStoreOperationMetadata.verify = function verify(message) { + AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } return null; }; /** - * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse */ - DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); }; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; + AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @instance * @returns {Object.} JSON object */ - DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteMetadataStoreOperationMetadata + * Gets the default type url for AddContextArtifactsAndExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextArtifactsAndExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse"; }; - return DeleteMetadataStoreOperationMetadata; + return AddContextArtifactsAndExecutionsResponse; })(); - v1beta1.CreateArtifactRequest = (function() { + v1beta1.AddContextChildrenRequest = (function() { /** - * Properties of a CreateArtifactRequest. + * Properties of an AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateArtifactRequest - * @property {string|null} [parent] CreateArtifactRequest parent - * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] CreateArtifactRequest artifact - * @property {string|null} [artifactId] CreateArtifactRequest artifactId + * @interface IAddContextChildrenRequest + * @property {string|null} [context] AddContextChildrenRequest context + * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts */ /** - * Constructs a new CreateArtifactRequest. + * Constructs a new AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateArtifactRequest. - * @implements ICreateArtifactRequest + * @classdesc Represents an AddContextChildrenRequest. + * @implements IAddContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set */ - function CreateArtifactRequest(properties) { + function AddContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -375825,103 +377047,92 @@ } /** - * CreateArtifactRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest - * @instance - */ - CreateArtifactRequest.prototype.parent = ""; - - /** - * CreateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * AddContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @instance */ - CreateArtifactRequest.prototype.artifact = null; + AddContextChildrenRequest.prototype.context = ""; /** - * CreateArtifactRequest artifactId. - * @member {string} artifactId - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * AddContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @instance */ - CreateArtifactRequest.prototype.artifactId = ""; + AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new CreateArtifactRequest instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest instance */ - CreateArtifactRequest.create = function create(properties) { - return new CreateArtifactRequest(properties); + AddContextChildrenRequest.create = function create(properties) { + return new AddContextChildrenRequest(properties); }; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateArtifactRequest.encode = function encode(message, writer) { + AddContextChildrenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); - return writer; - }; + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + return writer; + }; /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateArtifactRequest.decode = function decode(reader, length) { + AddContextChildrenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = reader.string(); break; } case 2: { - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); - break; - } - case 3: { - message.artifactId = reader.string(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; } default: @@ -375933,144 +377144,142 @@ }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateArtifactRequest message. + * Verifies an AddContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateArtifactRequest.verify = function verify(message) { + AddContextChildrenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; return null; }; /** - * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest */ - CreateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) + AddContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); + var message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); } - if (object.artifactId != null) - message.artifactId = String(object.artifactId); return message; }; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} message CreateArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} message AddContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateArtifactRequest.toObject = function toObject(message, options) { + AddContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.artifact = null; - object.artifactId = ""; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - object.artifactId = message.artifactId; return object; }; /** - * Converts this CreateArtifactRequest to JSON. + * Converts this AddContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @instance * @returns {Object.} JSON object */ - CreateArtifactRequest.prototype.toJSON = function toJSON() { + AddContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateArtifactRequest + * Gets the default type url for AddContextChildrenRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextChildrenRequest"; }; - return CreateArtifactRequest; + return AddContextChildrenRequest; })(); - v1beta1.GetArtifactRequest = (function() { + v1beta1.AddContextChildrenResponse = (function() { /** - * Properties of a GetArtifactRequest. + * Properties of an AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetArtifactRequest - * @property {string|null} [name] GetArtifactRequest name + * @interface IAddContextChildrenResponse */ /** - * Constructs a new GetArtifactRequest. + * Constructs a new AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetArtifactRequest. - * @implements IGetArtifactRequest + * @classdesc Represents an AddContextChildrenResponse. + * @implements IAddContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set */ - function GetArtifactRequest(properties) { + function AddContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -376078,77 +377287,63 @@ } /** - * GetArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest - * @instance - */ - GetArtifactRequest.prototype.name = ""; - - /** - * Creates a new GetArtifactRequest instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse instance */ - GetArtifactRequest.create = function create(properties) { - return new GetArtifactRequest(properties); + AddContextChildrenResponse.create = function create(properties) { + return new AddContextChildrenResponse(properties); }; /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetArtifactRequest.encode = function encode(message, writer) { + AddContextChildrenResponse.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 GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetArtifactRequest.decode = function decode(reader, length) { + AddContextChildrenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -376158,126 +377353,111 @@ }; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetArtifactRequest message. + * Verifies an AddContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetArtifactRequest.verify = function verify(message) { + AddContextChildrenResponse.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 GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse */ - GetArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest) + AddContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - return message; + return new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); }; /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetArtifactRequest} message GetArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} message AddContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetArtifactRequest.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; + AddContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetArtifactRequest to JSON. + * Converts this AddContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @instance * @returns {Object.} JSON object */ - GetArtifactRequest.prototype.toJSON = function toJSON() { + AddContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetArtifactRequest + * Gets the default type url for AddContextChildrenResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextChildrenResponse"; }; - return GetArtifactRequest; + return AddContextChildrenResponse; })(); - v1beta1.ListArtifactsRequest = (function() { + v1beta1.RemoveContextChildrenRequest = (function() { /** - * Properties of a ListArtifactsRequest. + * Properties of a RemoveContextChildrenRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListArtifactsRequest - * @property {string|null} [parent] ListArtifactsRequest parent - * @property {number|null} [pageSize] ListArtifactsRequest pageSize - * @property {string|null} [pageToken] ListArtifactsRequest pageToken - * @property {string|null} [filter] ListArtifactsRequest filter - * @property {string|null} [orderBy] ListArtifactsRequest orderBy + * @interface IRemoveContextChildrenRequest + * @property {string|null} [context] RemoveContextChildrenRequest context + * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts */ /** - * Constructs a new ListArtifactsRequest. + * Constructs a new RemoveContextChildrenRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListArtifactsRequest. - * @implements IListArtifactsRequest + * @classdesc Represents a RemoveContextChildrenRequest. + * @implements IRemoveContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest=} [properties] Properties to set */ - function ListArtifactsRequest(properties) { + function RemoveContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -376285,131 +377465,92 @@ } /** - * ListArtifactsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.parent = ""; - - /** - * ListArtifactsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.pageSize = 0; - - /** - * ListArtifactsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.pageToken = ""; - - /** - * ListArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * RemoveContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @instance */ - ListArtifactsRequest.prototype.filter = ""; + RemoveContextChildrenRequest.prototype.context = ""; /** - * ListArtifactsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * RemoveContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @instance */ - ListArtifactsRequest.prototype.orderBy = ""; + RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new RemoveContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance */ - ListArtifactsRequest.create = function create(properties) { - return new ListArtifactsRequest(properties); + RemoveContextChildrenRequest.create = function create(properties) { + return new RemoveContextChildrenRequest(properties); }; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encode = function encode(message, writer) { + RemoveContextChildrenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); return writer; }; /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decode = function decode(reader, length) { + RemoveContextChildrenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; } default: @@ -376421,157 +377562,142 @@ }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsRequest message. + * Verifies a RemoveContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsRequest.verify = function verify(message) { + RemoveContextChildrenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; + } return null; }; /** - * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest */ - ListArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + RemoveContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); + } return message; }; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} message ListArtifactsRequest + * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsRequest.toObject = function toObject(message, options) { + RemoveContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this RemoveContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @instance * @returns {Object.} JSON object */ - ListArtifactsRequest.prototype.toJSON = function toJSON() { + RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListArtifactsRequest + * Gets the default type url for RemoveContextChildrenRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListArtifactsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest"; }; - return ListArtifactsRequest; + return RemoveContextChildrenRequest; })(); - v1beta1.ListArtifactsResponse = (function() { + v1beta1.RemoveContextChildrenResponse = (function() { /** - * Properties of a ListArtifactsResponse. + * Properties of a RemoveContextChildrenResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListArtifactsResponse - * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts - * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken + * @interface IRemoveContextChildrenResponse */ /** - * Constructs a new ListArtifactsResponse. + * Constructs a new RemoveContextChildrenResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListArtifactsResponse. - * @implements IListArtifactsResponse + * @classdesc Represents a RemoveContextChildrenResponse. + * @implements IRemoveContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse=} [properties] Properties to set */ - function ListArtifactsResponse(properties) { - this.artifacts = []; + function RemoveContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -376579,94 +377705,63 @@ } /** - * ListArtifactsResponse artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse - * @instance - */ - ListArtifactsResponse.prototype.artifacts = $util.emptyArray; - - /** - * ListArtifactsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse - * @instance - */ - ListArtifactsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new RemoveContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance */ - ListArtifactsResponse.create = function create(properties) { - return new ListArtifactsResponse(properties); + RemoveContextChildrenResponse.create = function create(properties) { + return new RemoveContextChildrenResponse(properties); }; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encode = function encode(message, writer) { + RemoveContextChildrenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decode = function decode(reader, length) { + RemoveContextChildrenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -376676,150 +377771,109 @@ }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsResponse message. + * Verifies a RemoveContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsResponse.verify = function verify(message) { + RemoveContextChildrenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse */ - ListArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + RemoveContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; + return new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse(); }; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} message ListArtifactsResponse + * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + RemoveContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListArtifactsResponse to JSON. + * Converts this RemoveContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @instance * @returns {Object.} JSON object */ - ListArtifactsResponse.prototype.toJSON = function toJSON() { + RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListArtifactsResponse + * Gets the default type url for RemoveContextChildrenResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListArtifactsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse"; }; - return ListArtifactsResponse; + return RemoveContextChildrenResponse; })(); - v1beta1.UpdateArtifactRequest = (function() { + v1beta1.QueryContextLineageSubgraphRequest = (function() { /** - * Properties of an UpdateArtifactRequest. + * Properties of a QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateArtifactRequest - * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] UpdateArtifactRequest artifact - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask - * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing + * @interface IQueryContextLineageSubgraphRequest + * @property {string|null} [context] QueryContextLineageSubgraphRequest context */ /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateArtifactRequest. - * @implements IUpdateArtifactRequest + * @classdesc Represents a QueryContextLineageSubgraphRequest. + * @implements IQueryContextLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set */ - function UpdateArtifactRequest(properties) { + function QueryContextLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -376827,103 +377881,75 @@ } /** - * UpdateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest - * @instance - */ - UpdateArtifactRequest.prototype.artifact = null; - - /** - * UpdateArtifactRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest - * @instance - */ - UpdateArtifactRequest.prototype.updateMask = null; - - /** - * UpdateArtifactRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * QueryContextLineageSubgraphRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @instance */ - UpdateArtifactRequest.prototype.allowMissing = false; + QueryContextLineageSubgraphRequest.prototype.context = ""; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance */ - UpdateArtifactRequest.create = function create(properties) { - return new UpdateArtifactRequest(properties); + QueryContextLineageSubgraphRequest.create = function create(properties) { + return new QueryContextLineageSubgraphRequest(properties); }; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encode = function encode(message, writer) { + QueryContextLineageSubgraphRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); return writer; }; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decode = function decode(reader, length) { + QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + message.context = reader.string(); break; } default: @@ -376935,150 +377961,124 @@ }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateArtifactRequest message. + * Verifies a QueryContextLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateArtifactRequest.verify = function verify(message) { + QueryContextLineageSubgraphRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; return null; }; /** - * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest */ - UpdateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); + var message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); + if (object.context != null) + message.context = String(object.context); return message; }; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} message UpdateArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateArtifactRequest.toObject = function toObject(message, options) { + QueryContextLineageSubgraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = null; - object.updateMask = null; - object.allowMissing = false; - } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; return object; }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this QueryContextLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - UpdateArtifactRequest.prototype.toJSON = function toJSON() { + QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateArtifactRequest + * Gets the default type url for QueryContextLineageSubgraphRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryContextLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest"; }; - return UpdateArtifactRequest; + return QueryContextLineageSubgraphRequest; })(); - v1beta1.DeleteArtifactRequest = (function() { + v1beta1.CreateExecutionRequest = (function() { /** - * Properties of a DeleteArtifactRequest. + * Properties of a CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteArtifactRequest - * @property {string|null} [name] DeleteArtifactRequest name - * @property {string|null} [etag] DeleteArtifactRequest etag + * @interface ICreateExecutionRequest + * @property {string|null} [parent] CreateExecutionRequest parent + * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] CreateExecutionRequest execution + * @property {string|null} [executionId] CreateExecutionRequest executionId */ /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteArtifactRequest. - * @implements IDeleteArtifactRequest + * @classdesc Represents a CreateExecutionRequest. + * @implements ICreateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set */ - function DeleteArtifactRequest(properties) { + function CreateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -377086,89 +378086,103 @@ } /** - * DeleteArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * CreateExecutionRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance */ - DeleteArtifactRequest.prototype.name = ""; + CreateExecutionRequest.prototype.parent = ""; /** - * DeleteArtifactRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * CreateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance */ - DeleteArtifactRequest.prototype.etag = ""; + CreateExecutionRequest.prototype.execution = null; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * CreateExecutionRequest executionId. + * @member {string} executionId + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @instance + */ + CreateExecutionRequest.prototype.executionId = ""; + + /** + * Creates a new CreateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest instance */ - DeleteArtifactRequest.create = function create(properties) { - return new DeleteArtifactRequest(properties); + CreateExecutionRequest.create = function create(properties) { + return new CreateExecutionRequest(properties); }; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encode = function encode(message, writer) { + CreateExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); return writer; }; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a CreateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decode = function decode(reader, length) { + CreateExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.etag = reader.string(); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); + break; + } + case 3: { + message.executionId = reader.string(); break; } default: @@ -377180,133 +378194,144 @@ }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a CreateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteArtifactRequest.verify = function verify(message) { + CreateExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; return null; }; /** - * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest */ - DeleteArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + CreateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); + } + if (object.executionId != null) + message.executionId = String(object.executionId); return message; }; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} message DeleteArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} message CreateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteArtifactRequest.toObject = function toObject(message, options) { + CreateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.etag = ""; + object.parent = ""; + object.execution = null; + object.executionId = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; return object; }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this CreateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance * @returns {Object.} JSON object */ - DeleteArtifactRequest.prototype.toJSON = function toJSON() { + CreateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteArtifactRequest + * Gets the default type url for CreateExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateExecutionRequest"; }; - return DeleteArtifactRequest; + return CreateExecutionRequest; })(); - v1beta1.PurgeArtifactsRequest = (function() { + v1beta1.GetExecutionRequest = (function() { /** - * Properties of a PurgeArtifactsRequest. + * Properties of a GetExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeArtifactsRequest - * @property {string|null} [parent] PurgeArtifactsRequest parent - * @property {string|null} [filter] PurgeArtifactsRequest filter - * @property {boolean|null} [force] PurgeArtifactsRequest force + * @interface IGetExecutionRequest + * @property {string|null} [name] GetExecutionRequest name */ /** - * Constructs a new PurgeArtifactsRequest. + * Constructs a new GetExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeArtifactsRequest. - * @implements IPurgeArtifactsRequest + * @classdesc Represents a GetExecutionRequest. + * @implements IGetExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set */ - function PurgeArtifactsRequest(properties) { + function GetExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -377314,103 +378339,75 @@ } /** - * PurgeArtifactsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest - * @instance - */ - PurgeArtifactsRequest.prototype.parent = ""; - - /** - * PurgeArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest - * @instance - */ - PurgeArtifactsRequest.prototype.filter = ""; - - /** - * PurgeArtifactsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * GetExecutionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @instance */ - PurgeArtifactsRequest.prototype.force = false; + GetExecutionRequest.prototype.name = ""; /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. + * Creates a new GetExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest instance */ - PurgeArtifactsRequest.create = function create(properties) { - return new PurgeArtifactsRequest(properties); + GetExecutionRequest.create = function create(properties) { + return new GetExecutionRequest(properties); }; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encode = function encode(message, writer) { + GetExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decode = function decode(reader, length) { + GetExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.force = reader.bool(); + message.name = reader.string(); break; } default: @@ -377422,141 +378419,126 @@ }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsRequest message. + * Verifies a GetExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsRequest.verify = function verify(message) { + GetExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest */ - PurgeArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) + GetExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} message PurgeArtifactsRequest + * @param {google.cloud.aiplatform.v1beta1.GetExecutionRequest} message GetExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsRequest.toObject = function toObject(message, options) { + GetExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PurgeArtifactsRequest to JSON. + * Converts this GetExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @instance * @returns {Object.} JSON object */ - PurgeArtifactsRequest.prototype.toJSON = function toJSON() { + GetExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsRequest + * Gets the default type url for GetExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetExecutionRequest"; }; - return PurgeArtifactsRequest; + return GetExecutionRequest; })(); - v1beta1.PurgeArtifactsResponse = (function() { + v1beta1.ListExecutionsRequest = (function() { /** - * Properties of a PurgeArtifactsResponse. + * Properties of a ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeArtifactsResponse - * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample + * @interface IListExecutionsRequest + * @property {string|null} [parent] ListExecutionsRequest parent + * @property {number|null} [pageSize] ListExecutionsRequest pageSize + * @property {string|null} [pageToken] ListExecutionsRequest pageToken + * @property {string|null} [filter] ListExecutionsRequest filter + * @property {string|null} [orderBy] ListExecutionsRequest orderBy */ /** - * Constructs a new PurgeArtifactsResponse. + * Constructs a new ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeArtifactsResponse. - * @implements IPurgeArtifactsResponse + * @classdesc Represents a ListExecutionsRequest. + * @implements IListExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set */ - function PurgeArtifactsResponse(properties) { - this.purgeSample = []; + function ListExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -377564,92 +378546,131 @@ } /** - * PurgeArtifactsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * ListExecutionsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance */ - PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListExecutionsRequest.prototype.parent = ""; /** - * PurgeArtifactsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * ListExecutionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance */ - PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; + ListExecutionsRequest.prototype.pageSize = 0; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. + * ListExecutionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.pageToken = ""; + + /** + * ListExecutionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.filter = ""; + + /** + * ListExecutionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest instance */ - PurgeArtifactsResponse.create = function create(properties) { - return new PurgeArtifactsResponse(properties); + ListExecutionsRequest.create = function create(properties) { + return new ListExecutionsRequest(properties); }; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encode = function encode(message, writer) { + ListExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decode = function decode(reader, length) { + ListExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.purgeCount = reader.int64(); + message.parent = reader.string(); break; } case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -377661,157 +378682,157 @@ }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsResponse message. + * Verifies a ListExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsResponse.verify = function verify(message) { + ListExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest */ - PurgeArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) + ListExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} message PurgeArtifactsResponse + * @param {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} message ListExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsResponse.toObject = function toObject(message, options) { + ListExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this PurgeArtifactsResponse to JSON. + * Converts this ListExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance * @returns {Object.} JSON object */ - PurgeArtifactsResponse.prototype.toJSON = function toJSON() { + ListExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsResponse + * Gets the default type url for ListExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListExecutionsRequest"; }; - return PurgeArtifactsResponse; + return ListExecutionsRequest; })(); - v1beta1.PurgeArtifactsMetadata = (function() { + v1beta1.ListExecutionsResponse = (function() { /** - * Properties of a PurgeArtifactsMetadata. + * Properties of a ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeArtifactsMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata + * @interface IListExecutionsResponse + * @property {Array.|null} [executions] ListExecutionsResponse executions + * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken */ /** - * Constructs a new PurgeArtifactsMetadata. + * Constructs a new ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeArtifactsMetadata. - * @implements IPurgeArtifactsMetadata + * @classdesc Represents a ListExecutionsResponse. + * @implements IListExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set */ - function PurgeArtifactsMetadata(properties) { + function ListExecutionsResponse(properties) { + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -377819,75 +378840,92 @@ } /** - * PurgeArtifactsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * ListExecutionsResponse executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @instance */ - PurgeArtifactsMetadata.prototype.genericMetadata = null; + ListExecutionsResponse.prototype.executions = $util.emptyArray; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. + * ListExecutionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @instance + */ + ListExecutionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse instance */ - PurgeArtifactsMetadata.create = function create(properties) { - return new PurgeArtifactsMetadata(properties); + ListExecutionsResponse.create = function create(properties) { + return new ListExecutionsResponse(properties); }; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encode = function encode(message, writer) { + ListExecutionsResponse.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.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decode = function decode(reader, length) { + ListExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -377899,129 +378937,150 @@ }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsMetadata message. + * Verifies a ListExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsMetadata.verify = function verify(message) { + ListExecutionsResponse.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.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse */ - PurgeArtifactsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) + ListExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.executions[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata + * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} message ListExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsMetadata.toObject = function toObject(message, options) { + ListExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.executions = []; 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.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.executions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PurgeArtifactsMetadata to JSON. + * Converts this ListExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @instance * @returns {Object.} JSON object */ - PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { + ListExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsMetadata + * Gets the default type url for ListExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListExecutionsResponse"; }; - return PurgeArtifactsMetadata; + return ListExecutionsResponse; })(); - v1beta1.CreateContextRequest = (function() { + v1beta1.UpdateExecutionRequest = (function() { /** - * Properties of a CreateContextRequest. + * Properties of an UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateContextRequest - * @property {string|null} [parent] CreateContextRequest parent - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] CreateContextRequest context - * @property {string|null} [contextId] CreateContextRequest contextId + * @interface IUpdateExecutionRequest + * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] UpdateExecutionRequest execution + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask + * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing */ /** - * Constructs a new CreateContextRequest. + * Constructs a new UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateContextRequest. - * @implements ICreateContextRequest + * @classdesc Represents an UpdateExecutionRequest. + * @implements IUpdateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set */ - function CreateContextRequest(properties) { + function UpdateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -378029,103 +379088,103 @@ } /** - * CreateContextRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * UpdateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance */ - CreateContextRequest.prototype.parent = ""; + UpdateExecutionRequest.prototype.execution = null; /** - * CreateContextRequest context. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * UpdateExecutionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance */ - CreateContextRequest.prototype.context = null; + UpdateExecutionRequest.prototype.updateMask = null; /** - * CreateContextRequest contextId. - * @member {string} contextId - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * UpdateExecutionRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance */ - CreateContextRequest.prototype.contextId = ""; + UpdateExecutionRequest.prototype.allowMissing = false; /** - * Creates a new CreateContextRequest instance using the specified properties. + * Creates a new UpdateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest instance */ - CreateContextRequest.create = function create(properties) { - return new CreateContextRequest(properties); + UpdateExecutionRequest.create = function create(properties) { + return new UpdateExecutionRequest(properties); }; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encode = function encode(message, writer) { + UpdateExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decode = function decode(reader, length) { + UpdateExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); break; } case 2: { - message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.contextId = reader.string(); + message.allowMissing = reader.bool(); break; } default: @@ -378137,144 +379196,150 @@ }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateContextRequest message. + * Verifies an UpdateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateContextRequest.verify = function verify(message) { + UpdateExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); if (error) - return "context." + error; + return "execution." + error; } - if (message.contextId != null && message.hasOwnProperty("contextId")) - if (!$util.isString(message.contextId)) - return "contextId: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest */ - CreateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateContextRequest) + UpdateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); } - if (object.contextId != null) - message.contextId = String(object.contextId); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateContextRequest} message CreateContextRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} message UpdateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateContextRequest.toObject = function toObject(message, options) { + UpdateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.context = null; - object.contextId = ""; + object.execution = null; + object.updateMask = null; + object.allowMissing = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); - if (message.contextId != null && message.hasOwnProperty("contextId")) - object.contextId = message.contextId; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this CreateContextRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance * @returns {Object.} JSON object */ - CreateContextRequest.prototype.toJSON = function toJSON() { + UpdateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateContextRequest + * Gets the default type url for UpdateExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExecutionRequest"; }; - return CreateContextRequest; + return UpdateExecutionRequest; })(); - v1beta1.GetContextRequest = (function() { + v1beta1.DeleteExecutionRequest = (function() { /** - * Properties of a GetContextRequest. + * Properties of a DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetContextRequest - * @property {string|null} [name] GetContextRequest name + * @interface IDeleteExecutionRequest + * @property {string|null} [name] DeleteExecutionRequest name + * @property {string|null} [etag] DeleteExecutionRequest etag */ /** - * Constructs a new GetContextRequest. + * Constructs a new DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetContextRequest. - * @implements IGetContextRequest + * @classdesc Represents a DeleteExecutionRequest. + * @implements IDeleteExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set */ - function GetContextRequest(properties) { + function DeleteExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -378282,70 +379347,80 @@ } /** - * GetContextRequest name. + * DeleteExecutionRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @instance */ - GetContextRequest.prototype.name = ""; + DeleteExecutionRequest.prototype.name = ""; /** - * Creates a new GetContextRequest instance using the specified properties. + * DeleteExecutionRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest + * @instance + */ + DeleteExecutionRequest.prototype.etag = ""; + + /** + * Creates a new DeleteExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest instance */ - GetContextRequest.create = function create(properties) { - return new GetContextRequest(properties); + DeleteExecutionRequest.create = function create(properties) { + return new DeleteExecutionRequest(properties); }; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encode = function encode(message, writer) { + DeleteExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetContextRequest message from the specified reader or buffer. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decode = function decode(reader, length) { + DeleteExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -378353,6 +379428,10 @@ message.name = reader.string(); break; } + case 2: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -378362,126 +379441,133 @@ }; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetContextRequest message. + * Verifies a DeleteExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetContextRequest.verify = function verify(message) { + DeleteExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest */ - GetContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetContextRequest) + DeleteExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); if (object.name != null) message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetContextRequest} message GetContextRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} message DeleteExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetContextRequest.toObject = function toObject(message, options) { + DeleteExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.etag = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this GetContextRequest to JSON. + * Converts this DeleteExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @instance * @returns {Object.} JSON object */ - GetContextRequest.prototype.toJSON = function toJSON() { + DeleteExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetContextRequest + * Gets the default type url for DeleteExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteExecutionRequest"; }; - return GetContextRequest; + return DeleteExecutionRequest; })(); - v1beta1.ListContextsRequest = (function() { + v1beta1.PurgeExecutionsRequest = (function() { /** - * Properties of a ListContextsRequest. + * Properties of a PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListContextsRequest - * @property {string|null} [parent] ListContextsRequest parent - * @property {number|null} [pageSize] ListContextsRequest pageSize - * @property {string|null} [pageToken] ListContextsRequest pageToken - * @property {string|null} [filter] ListContextsRequest filter - * @property {string|null} [orderBy] ListContextsRequest orderBy + * @interface IPurgeExecutionsRequest + * @property {string|null} [parent] PurgeExecutionsRequest parent + * @property {string|null} [filter] PurgeExecutionsRequest filter + * @property {boolean|null} [force] PurgeExecutionsRequest force */ /** - * Constructs a new ListContextsRequest. + * Constructs a new PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListContextsRequest. - * @implements IListContextsRequest + * @classdesc Represents a PurgeExecutionsRequest. + * @implements IPurgeExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set */ - function ListContextsRequest(properties) { + function PurgeExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -378489,110 +379575,90 @@ } /** - * ListContextsRequest parent. + * PurgeExecutionsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest - * @instance - */ - ListContextsRequest.prototype.parent = ""; - - /** - * ListContextsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest - * @instance - */ - ListContextsRequest.prototype.pageSize = 0; - - /** - * ListContextsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance */ - ListContextsRequest.prototype.pageToken = ""; + PurgeExecutionsRequest.prototype.parent = ""; /** - * ListContextsRequest filter. + * PurgeExecutionsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance */ - ListContextsRequest.prototype.filter = ""; + PurgeExecutionsRequest.prototype.filter = ""; /** - * ListContextsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * PurgeExecutionsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance */ - ListContextsRequest.prototype.orderBy = ""; + PurgeExecutionsRequest.prototype.force = false; /** - * Creates a new ListContextsRequest instance using the specified properties. + * Creates a new PurgeExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest instance */ - ListContextsRequest.create = function create(properties) { - return new ListContextsRequest(properties); + PurgeExecutionsRequest.create = function create(properties) { + return new PurgeExecutionsRequest(properties); }; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encode = function encode(message, writer) { + PurgeExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decode = function decode(reader, length) { + PurgeExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -378601,19 +379667,11 @@ break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { message.filter = reader.string(); break; } - case 5: { - message.orderBy = reader.string(); + case 3: { + message.force = reader.bool(); break; } default: @@ -378625,157 +379683,141 @@ }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsRequest message. + * Verifies a PurgeExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsRequest.verify = function verify(message) { + PurgeExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest */ - ListContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsRequest) + PurgeExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListContextsRequest} message ListContextsRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} message PurgeExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsRequest.toObject = function toObject(message, options) { + PurgeExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; object.filter = ""; - object.orderBy = ""; + object.force = false; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ListContextsRequest to JSON. + * Converts this PurgeExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance * @returns {Object.} JSON object */ - ListContextsRequest.prototype.toJSON = function toJSON() { + PurgeExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContextsRequest + * Gets the default type url for PurgeExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListContextsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest"; }; - return ListContextsRequest; + return PurgeExecutionsRequest; })(); - v1beta1.ListContextsResponse = (function() { + v1beta1.PurgeExecutionsResponse = (function() { /** - * Properties of a ListContextsResponse. + * Properties of a PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListContextsResponse - * @property {Array.|null} [contexts] ListContextsResponse contexts - * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken + * @interface IPurgeExecutionsResponse + * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample */ /** - * Constructs a new ListContextsResponse. + * Constructs a new PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListContextsResponse. - * @implements IListContextsResponse + * @classdesc Represents a PurgeExecutionsResponse. + * @implements IPurgeExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set */ - function ListContextsResponse(properties) { - this.contexts = []; + function PurgeExecutionsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -378783,92 +379825,92 @@ } /** - * ListContextsResponse contexts. - * @member {Array.} contexts - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * PurgeExecutionsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @instance */ - ListContextsResponse.prototype.contexts = $util.emptyArray; + PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ListContextsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * PurgeExecutionsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @instance */ - ListContextsResponse.prototype.nextPageToken = ""; + PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new ListContextsResponse instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse instance */ - ListContextsResponse.create = function create(properties) { - return new ListContextsResponse(properties); + PurgeExecutionsResponse.create = function create(properties) { + return new PurgeExecutionsResponse(properties); }; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encode = function encode(message, writer) { + PurgeExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contexts != null && message.contexts.length) - for (var i = 0; i < message.contexts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decode = function decode(reader, length) { + PurgeExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.contexts && message.contexts.length)) - message.contexts = []; - message.contexts.push($root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32())); + message.purgeCount = reader.int64(); break; } case 2: { - message.nextPageToken = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -378880,150 +379922,157 @@ }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsResponse message. + * Verifies a PurgeExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsResponse.verify = function verify(message) { + PurgeExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contexts != null && message.hasOwnProperty("contexts")) { - if (!Array.isArray(message.contexts)) - return "contexts: array expected"; - for (var i = 0; i < message.contexts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.contexts[i]); - if (error) - return "contexts." + error; - } + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse */ - ListContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsResponse) + PurgeExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); - if (object.contexts) { - if (!Array.isArray(object.contexts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: array expected"); - message.contexts = []; - for (var i = 0; i < object.contexts.length; ++i) { - if (typeof object.contexts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: object expected"); - message.contexts[i] = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.contexts[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} message ListContextsResponse + * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} message PurgeExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsResponse.toObject = function toObject(message, options) { + PurgeExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.contexts = []; + object.purgeSample = []; if (options.defaults) - object.nextPageToken = ""; - if (message.contexts && message.contexts.length) { - object.contexts = []; - for (var j = 0; j < message.contexts.length; ++j) - object.contexts[j] = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.contexts[j], options); + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListContextsResponse to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @instance * @returns {Object.} JSON object */ - ListContextsResponse.prototype.toJSON = function toJSON() { + PurgeExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContextsResponse + * Gets the default type url for PurgeExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListContextsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse"; }; - return ListContextsResponse; + return PurgeExecutionsResponse; })(); - v1beta1.UpdateContextRequest = (function() { + v1beta1.PurgeExecutionsMetadata = (function() { /** - * Properties of an UpdateContextRequest. + * Properties of a PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateContextRequest - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] UpdateContextRequest context - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask - * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing + * @interface IPurgeExecutionsMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata */ /** - * Constructs a new UpdateContextRequest. + * Constructs a new PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateContextRequest. - * @implements IUpdateContextRequest + * @classdesc Represents a PurgeExecutionsMetadata. + * @implements IPurgeExecutionsMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set */ - function UpdateContextRequest(properties) { + function PurgeExecutionsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -379031,103 +380080,75 @@ } /** - * UpdateContextRequest context. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest - * @instance - */ - UpdateContextRequest.prototype.context = null; - - /** - * UpdateContextRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest - * @instance - */ - UpdateContextRequest.prototype.updateMask = null; - - /** - * UpdateContextRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * PurgeExecutionsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @instance */ - UpdateContextRequest.prototype.allowMissing = false; + PurgeExecutionsMetadata.prototype.genericMetadata = null; /** - * Creates a new UpdateContextRequest instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance */ - UpdateContextRequest.create = function create(properties) { - return new UpdateContextRequest(properties); + PurgeExecutionsMetadata.create = function create(properties) { + return new PurgeExecutionsMetadata(properties); }; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encode = function encode(message, writer) { + PurgeExecutionsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.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 UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decode = function decode(reader, length) { + PurgeExecutionsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -379139,151 +380160,129 @@ }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateContextRequest message. + * Verifies a PurgeExecutionsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateContextRequest.verify = function verify(message) { + PurgeExecutionsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); - if (error) - return "context." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "updateMask." + error; + return "genericMetadata." + error; } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; return null; }; /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata */ - UpdateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest) + PurgeExecutionsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateContextRequest} message UpdateContextRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateContextRequest.toObject = function toObject(message, options) { + PurgeExecutionsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.context = null; - object.updateMask = null; - object.allowMissing = false; - } - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; + 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 UpdateContextRequest to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @instance * @returns {Object.} JSON object */ - UpdateContextRequest.prototype.toJSON = function toJSON() { + PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateContextRequest + * Gets the default type url for PurgeExecutionsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata"; }; - return UpdateContextRequest; + return PurgeExecutionsMetadata; })(); - v1beta1.DeleteContextRequest = (function() { + v1beta1.AddExecutionEventsRequest = (function() { /** - * Properties of a DeleteContextRequest. + * Properties of an AddExecutionEventsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteContextRequest - * @property {string|null} [name] DeleteContextRequest name - * @property {boolean|null} [force] DeleteContextRequest force - * @property {string|null} [etag] DeleteContextRequest etag + * @interface IAddExecutionEventsRequest + * @property {string|null} [execution] AddExecutionEventsRequest execution + * @property {Array.|null} [events] AddExecutionEventsRequest events */ /** - * Constructs a new DeleteContextRequest. + * Constructs a new AddExecutionEventsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteContextRequest. - * @implements IDeleteContextRequest + * @classdesc Represents an AddExecutionEventsRequest. + * @implements IAddExecutionEventsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set */ - function DeleteContextRequest(properties) { + function AddExecutionEventsRequest(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -379291,103 +380290,92 @@ } /** - * DeleteContextRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest - * @instance - */ - DeleteContextRequest.prototype.name = ""; - - /** - * DeleteContextRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * AddExecutionEventsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @instance */ - DeleteContextRequest.prototype.force = false; + AddExecutionEventsRequest.prototype.execution = ""; /** - * DeleteContextRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * AddExecutionEventsRequest events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @instance */ - DeleteContextRequest.prototype.etag = ""; + AddExecutionEventsRequest.prototype.events = $util.emptyArray; /** - * Creates a new DeleteContextRequest instance using the specified properties. + * Creates a new AddExecutionEventsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest instance */ - DeleteContextRequest.create = function create(properties) { - return new DeleteContextRequest(properties); + AddExecutionEventsRequest.create = function create(properties) { + return new AddExecutionEventsRequest(properties); }; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encode = function encode(message, writer) { + AddExecutionEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decode = function decode(reader, length) { + AddExecutionEventsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.execution = reader.string(); break; } case 2: { - message.force = reader.bool(); - break; - } - case 3: { - message.etag = reader.string(); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1beta1.Event.decode(reader, reader.uint32())); break; } default: @@ -379399,141 +380387,147 @@ }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { + AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteContextRequest message. + * Verifies an AddExecutionEventsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteContextRequest.verify = function verify(message) { + AddExecutionEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest */ - DeleteContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest) + AddExecutionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - if (object.etag != null) - message.etag = String(object.etag); + var message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); + if (object.execution != null) + message.execution = String(object.execution); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1beta1.Event.fromObject(object.events[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteContextRequest} message DeleteContextRequest + * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} message AddExecutionEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteContextRequest.toObject = function toObject(message, options) { + AddExecutionEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - object.etag = ""; + if (options.arrays || options.defaults) + object.events = []; + if (options.defaults) + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1beta1.Event.toObject(message.events[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; return object; }; /** - * Converts this DeleteContextRequest to JSON. + * Converts this AddExecutionEventsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @instance * @returns {Object.} JSON object */ - DeleteContextRequest.prototype.toJSON = function toJSON() { + AddExecutionEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteContextRequest + * Gets the default type url for AddExecutionEventsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddExecutionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest"; }; - return DeleteContextRequest; + return AddExecutionEventsRequest; })(); - v1beta1.PurgeContextsRequest = (function() { + v1beta1.AddExecutionEventsResponse = (function() { /** - * Properties of a PurgeContextsRequest. + * Properties of an AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeContextsRequest - * @property {string|null} [parent] PurgeContextsRequest parent - * @property {string|null} [filter] PurgeContextsRequest filter - * @property {boolean|null} [force] PurgeContextsRequest force + * @interface IAddExecutionEventsResponse */ /** - * Constructs a new PurgeContextsRequest. + * Constructs a new AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeContextsRequest. - * @implements IPurgeContextsRequest + * @classdesc Represents an AddExecutionEventsResponse. + * @implements IAddExecutionEventsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set */ - function PurgeContextsRequest(properties) { + function AddExecutionEventsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -379541,105 +380535,63 @@ } /** - * PurgeContextsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest - * @instance - */ - PurgeContextsRequest.prototype.parent = ""; - - /** - * PurgeContextsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest - * @instance - */ - PurgeContextsRequest.prototype.filter = ""; - - /** - * PurgeContextsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest - * @instance - */ - PurgeContextsRequest.prototype.force = false; - - /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new AddExecutionEventsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse instance */ - PurgeContextsRequest.create = function create(properties) { - return new PurgeContextsRequest(properties); + AddExecutionEventsResponse.create = function create(properties) { + return new AddExecutionEventsResponse(properties); }; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encode = function encode(message, writer) { + AddExecutionEventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decode = function decode(reader, length) { + AddExecutionEventsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.force = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -379649,141 +380601,109 @@ }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { + AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsRequest message. + * Verifies an AddExecutionEventsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsRequest.verify = function verify(message) { + AddExecutionEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; return null; }; /** - * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse */ - PurgeContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) + AddExecutionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); - return message; + return new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); }; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} message PurgeContextsRequest + * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} message AddExecutionEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; + AddExecutionEventsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this AddExecutionEventsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @instance * @returns {Object.} JSON object */ - PurgeContextsRequest.prototype.toJSON = function toJSON() { + AddExecutionEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsRequest + * Gets the default type url for AddExecutionEventsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddExecutionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeContextsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse"; }; - return PurgeContextsRequest; + return AddExecutionEventsResponse; })(); - v1beta1.PurgeContextsResponse = (function() { + v1beta1.QueryExecutionInputsAndOutputsRequest = (function() { /** - * Properties of a PurgeContextsResponse. + * Properties of a QueryExecutionInputsAndOutputsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeContextsResponse - * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample + * @interface IQueryExecutionInputsAndOutputsRequest + * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution */ /** - * Constructs a new PurgeContextsResponse. + * Constructs a new QueryExecutionInputsAndOutputsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeContextsResponse. - * @implements IPurgeContextsResponse + * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. + * @implements IQueryExecutionInputsAndOutputsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set */ - function PurgeContextsResponse(properties) { - this.purgeSample = []; + function QueryExecutionInputsAndOutputsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -379791,92 +380711,75 @@ } /** - * PurgeContextsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse - * @instance - */ - PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PurgeContextsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * QueryExecutionInputsAndOutputsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @instance */ - PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; + QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance */ - PurgeContextsResponse.create = function create(properties) { - return new PurgeContextsResponse(properties); + QueryExecutionInputsAndOutputsRequest.create = function create(properties) { + return new QueryExecutionInputsAndOutputsRequest(properties); }; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encode = function encode(message, writer) { + QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); return writer; }; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decode = function decode(reader, length) { + QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.purgeCount = reader.int64(); - break; - } - case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); + message.execution = reader.string(); break; } default: @@ -379888,157 +380791,124 @@ }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsResponse message. + * Verifies a QueryExecutionInputsAndOutputsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsResponse.verify = function verify(message) { + QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; return null; }; /** - * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest */ - PurgeContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) + QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); + if (object.execution != null) + message.execution = String(object.execution); return message; }; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} message PurgeContextsResponse + * @param {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsResponse.toObject = function toObject(message, options) { + QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; - } + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; return object; }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @instance * @returns {Object.} JSON object */ - PurgeContextsResponse.prototype.toJSON = function toJSON() { + QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsResponse + * Gets the default type url for QueryExecutionInputsAndOutputsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryExecutionInputsAndOutputsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeContextsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest"; }; - return PurgeContextsResponse; + return QueryExecutionInputsAndOutputsRequest; })(); - v1beta1.PurgeContextsMetadata = (function() { + v1beta1.CreateMetadataSchemaRequest = (function() { /** - * Properties of a PurgeContextsMetadata. + * Properties of a CreateMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeContextsMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata + * @interface ICreateMetadataSchemaRequest + * @property {string|null} [parent] CreateMetadataSchemaRequest parent + * @property {google.cloud.aiplatform.v1beta1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema + * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId */ /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new CreateMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeContextsMetadata. - * @implements IPurgeContextsMetadata + * @classdesc Represents a CreateMetadataSchemaRequest. + * @implements ICreateMetadataSchemaRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set */ - function PurgeContextsMetadata(properties) { + function CreateMetadataSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -380046,75 +380916,103 @@ } /** - * PurgeContextsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * CreateMetadataSchemaRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @instance */ - PurgeContextsMetadata.prototype.genericMetadata = null; + CreateMetadataSchemaRequest.prototype.parent = ""; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * CreateMetadataSchemaRequest metadataSchema. + * @member {google.cloud.aiplatform.v1beta1.IMetadataSchema|null|undefined} metadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchema = null; + + /** + * CreateMetadataSchemaRequest metadataSchemaId. + * @member {string} metadataSchemaId + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; + + /** + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance */ - PurgeContextsMetadata.create = function create(properties) { - return new PurgeContextsMetadata(properties); + CreateMetadataSchemaRequest.create = function create(properties) { + return new CreateMetadataSchemaRequest(properties); }; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encode = function encode(message, writer) { + CreateMetadataSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) + $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); return writer; }; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decode = function decode(reader, length) { + CreateMetadataSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32()); + break; + } + case 3: { + message.metadataSchemaId = reader.string(); break; } default: @@ -380126,131 +381024,144 @@ }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a CreateMetadataSchemaRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsMetadata.verify = function verify(message) { + CreateMetadataSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchema); if (error) - return "genericMetadata." + error; + return "metadataSchema." + error; } + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + if (!$util.isString(message.metadataSchemaId)) + return "metadataSchemaId: string expected"; return null; }; /** - * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest */ - PurgeContextsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) + CreateMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.metadataSchema != null) { + if (typeof object.metadataSchema !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.metadataSchema: object expected"); + message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchema); } + if (object.metadataSchemaId != null) + message.metadataSchemaId = String(object.metadataSchemaId); return message; }; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} message PurgeContextsMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsMetadata.toObject = function toObject(message, options) { + CreateMetadataSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.parent = ""; + object.metadataSchema = null; + object.metadataSchemaId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) + object.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchema, options); + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + object.metadataSchemaId = message.metadataSchemaId; return object; }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this CreateMetadataSchemaRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @instance * @returns {Object.} JSON object */ - PurgeContextsMetadata.prototype.toJSON = function toJSON() { + CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsMetadata + * Gets the default type url for CreateMetadataSchemaRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeContextsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest"; }; - return PurgeContextsMetadata; + return CreateMetadataSchemaRequest; })(); - v1beta1.AddContextArtifactsAndExecutionsRequest = (function() { + v1beta1.GetMetadataSchemaRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsRequest. + * Properties of a GetMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextArtifactsAndExecutionsRequest - * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context - * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts - * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions + * @interface IGetMetadataSchemaRequest + * @property {string|null} [name] GetMetadataSchemaRequest name */ /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new GetMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. - * @implements IAddContextArtifactsAndExecutionsRequest + * @classdesc Represents a GetMetadataSchemaRequest. + * @implements IGetMetadataSchemaRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsRequest(properties) { - this.artifacts = []; - this.executions = []; + function GetMetadataSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -380258,109 +381169,75 @@ } /** - * AddContextArtifactsAndExecutionsRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest - * @instance - */ - AddContextArtifactsAndExecutionsRequest.prototype.context = ""; - - /** - * AddContextArtifactsAndExecutionsRequest artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest - * @instance - */ - AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; - - /** - * AddContextArtifactsAndExecutionsRequest executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * GetMetadataSchemaRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; + GetMetadataSchemaRequest.prototype.name = ""; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new GetMetadataSchemaRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance */ - AddContextArtifactsAndExecutionsRequest.create = function create(properties) { - return new AddContextArtifactsAndExecutionsRequest(properties); + GetMetadataSchemaRequest.create = function create(properties) { + return new GetMetadataSchemaRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { + GetMetadataSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { + GetMetadataSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); - break; - } - case 2: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push(reader.string()); - break; - } - case 3: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push(reader.string()); + message.name = reader.string(); break; } default: @@ -380372,163 +381249,125 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a GetMetadataSchemaRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { + GetMetadataSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) - if (!$util.isString(message.artifacts[i])) - return "artifacts: string[] expected"; - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) - if (!$util.isString(message.executions[i])) - return "executions: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest */ - AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest) + GetMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) - message.artifacts[i] = String(object.artifacts[i]); - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) - message.executions[i] = String(object.executions[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest + * @param {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { + GetMetadataSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; - } if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = message.artifacts[j]; - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = message.executions[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this GetMetadataSchemaRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { + GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsRequest + * Gets the default type url for GetMetadataSchemaRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextArtifactsAndExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest"; }; - return AddContextArtifactsAndExecutionsRequest; + return GetMetadataSchemaRequest; })(); - v1beta1.AddContextArtifactsAndExecutionsResponse = (function() { + v1beta1.ListMetadataSchemasRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsResponse. + * Properties of a ListMetadataSchemasRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextArtifactsAndExecutionsResponse + * @interface IListMetadataSchemasRequest + * @property {string|null} [parent] ListMetadataSchemasRequest parent + * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize + * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken + * @property {string|null} [filter] ListMetadataSchemasRequest filter */ /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new ListMetadataSchemasRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. - * @implements IAddContextArtifactsAndExecutionsResponse + * @classdesc Represents a ListMetadataSchemasRequest. + * @implements IListMetadataSchemasRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsResponse(properties) { + function ListMetadataSchemasRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -380536,63 +381375,119 @@ } /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * ListMetadataSchemasRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.parent = ""; + + /** + * ListMetadataSchemasRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.pageSize = 0; + + /** + * ListMetadataSchemasRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.pageToken = ""; + + /** + * ListMetadataSchemasRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.filter = ""; + + /** + * Creates a new ListMetadataSchemasRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance */ - AddContextArtifactsAndExecutionsResponse.create = function create(properties) { - return new AddContextArtifactsAndExecutionsResponse(properties); + ListMetadataSchemasRequest.create = function create(properties) { + return new ListMetadataSchemasRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { + ListMetadataSchemasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { + ListMetadataSchemasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -380602,111 +381497,149 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies a ListMetadataSchemasRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { + ListMetadataSchemasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest */ - AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) + ListMetadataSchemasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse + * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { - return {}; + ListMetadataSchemasRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; }; /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this ListMetadataSchemasRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { + ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsResponse + * Gets the default type url for ListMetadataSchemasRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextArtifactsAndExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest"; }; - return AddContextArtifactsAndExecutionsResponse; + return ListMetadataSchemasRequest; })(); - v1beta1.AddContextChildrenRequest = (function() { + v1beta1.ListMetadataSchemasResponse = (function() { /** - * Properties of an AddContextChildrenRequest. + * Properties of a ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextChildrenRequest - * @property {string|null} [context] AddContextChildrenRequest context - * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts + * @interface IListMetadataSchemasResponse + * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas + * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken */ /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextChildrenRequest. - * @implements IAddContextChildrenRequest + * @classdesc Represents a ListMetadataSchemasResponse. + * @implements IListMetadataSchemasResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set */ - function AddContextChildrenRequest(properties) { - this.childContexts = []; + function ListMetadataSchemasResponse(properties) { + this.metadataSchemas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -380714,92 +381647,92 @@ } /** - * AddContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * ListMetadataSchemasResponse metadataSchemas. + * @member {Array.} metadataSchemas + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @instance */ - AddContextChildrenRequest.prototype.context = ""; + ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; /** - * AddContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * ListMetadataSchemasResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @instance */ - AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; + ListMetadataSchemasResponse.prototype.nextPageToken = ""; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * Creates a new ListMetadataSchemasResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance */ - AddContextChildrenRequest.create = function create(properties) { - return new AddContextChildrenRequest(properties); + ListMetadataSchemasResponse.create = function create(properties) { + return new ListMetadataSchemasResponse(properties); }; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encode = function encode(message, writer) { + ListMetadataSchemasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + if (message.metadataSchemas != null && message.metadataSchemas.length) + for (var i = 0; i < message.metadataSchemas.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decode = function decode(reader, length) { + ListMetadataSchemasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + if (!(message.metadataSchemas && message.metadataSchemas.length)) + message.metadataSchemas = []; + message.metadataSchemas.push($root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + message.nextPageToken = reader.string(); break; } default: @@ -380811,142 +381744,150 @@ }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenRequest message. + * Verifies a ListMetadataSchemasResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenRequest.verify = function verify(message) { + ListMetadataSchemasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; + if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { + if (!Array.isArray(message.metadataSchemas)) + return "metadataSchemas: array expected"; + for (var i = 0; i < message.metadataSchemas.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchemas[i]); + if (error) + return "metadataSchemas." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse */ - AddContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest) + ListMetadataSchemasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); + if (object.metadataSchemas) { + if (!Array.isArray(object.metadataSchemas)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: array expected"); + message.metadataSchemas = []; + for (var i = 0; i < object.metadataSchemas.length; ++i) { + if (typeof object.metadataSchemas[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: object expected"); + message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchemas[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} message AddContextChildrenRequest + * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenRequest.toObject = function toObject(message, options) { + ListMetadataSchemasResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.childContexts = []; + object.metadataSchemas = []; if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; + object.nextPageToken = ""; + if (message.metadataSchemas && message.metadataSchemas.length) { + object.metadataSchemas = []; + for (var j = 0; j < message.metadataSchemas.length; ++j) + object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchemas[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this ListMetadataSchemasResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @instance * @returns {Object.} JSON object */ - AddContextChildrenRequest.prototype.toJSON = function toJSON() { + ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextChildrenRequest + * Gets the default type url for ListMetadataSchemasResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextChildrenRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse"; }; - return AddContextChildrenRequest; + return ListMetadataSchemasResponse; })(); - v1beta1.AddContextChildrenResponse = (function() { + v1beta1.QueryArtifactLineageSubgraphRequest = (function() { /** - * Properties of an AddContextChildrenResponse. + * Properties of a QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextChildrenResponse + * @interface IQueryArtifactLineageSubgraphRequest + * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact + * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops + * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter */ /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextChildrenResponse. - * @implements IAddContextChildrenResponse + * @classdesc Represents a QueryArtifactLineageSubgraphRequest. + * @implements IQueryArtifactLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set */ - function AddContextChildrenResponse(properties) { + function QueryArtifactLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -380954,63 +381895,105 @@ } /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * QueryArtifactLineageSubgraphRequest artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @instance + */ + QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; + + /** + * QueryArtifactLineageSubgraphRequest maxHops. + * @member {number} maxHops + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @instance + */ + QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; + + /** + * QueryArtifactLineageSubgraphRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @instance + */ + QueryArtifactLineageSubgraphRequest.prototype.filter = ""; + + /** + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance */ - AddContextChildrenResponse.create = function create(properties) { - return new AddContextChildrenResponse(properties); + QueryArtifactLineageSubgraphRequest.create = function create(properties) { + return new QueryArtifactLineageSubgraphRequest(properties); }; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encode = function encode(message, writer) { + QueryArtifactLineageSubgraphRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); + if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); return writer; }; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decode = function decode(reader, length) { + QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.artifact = reader.string(); + break; + } + case 2: { + message.maxHops = reader.int32(); + break; + } + case 3: { + message.filter = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -381020,111 +382003,144 @@ }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a QueryArtifactLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenResponse.verify = function verify(message) { + QueryArtifactLineageSubgraphRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.artifact != null && message.hasOwnProperty("artifact")) + if (!$util.isString(message.artifact)) + return "artifact: string expected"; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + if (!$util.isInteger(message.maxHops)) + return "maxHops: integer expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest */ - AddContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) + QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); + if (object.artifact != null) + message.artifact = String(object.artifact); + if (object.maxHops != null) + message.maxHops = object.maxHops | 0; + if (object.filter != null) + message.filter = String(object.filter); + return message; }; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} message AddContextChildrenResponse + * @param {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenResponse.toObject = function toObject() { - return {}; + QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.artifact = ""; + object.maxHops = 0; + object.filter = ""; + } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = message.artifact; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + object.maxHops = message.maxHops; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - AddContextChildrenResponse.prototype.toJSON = function toJSON() { + QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextChildrenResponse + * Gets the default type url for QueryArtifactLineageSubgraphRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryArtifactLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddContextChildrenResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest"; }; - return AddContextChildrenResponse; + return QueryArtifactLineageSubgraphRequest; })(); - v1beta1.RemoveContextChildrenRequest = (function() { + v1beta1.MetadataStore = (function() { /** - * Properties of a RemoveContextChildrenRequest. + * Properties of a MetadataStore. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRemoveContextChildrenRequest - * @property {string|null} [context] RemoveContextChildrenRequest context - * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts + * @interface IMetadataStore + * @property {string|null} [name] MetadataStore name + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec + * @property {string|null} [description] MetadataStore description + * @property {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state */ /** - * Constructs a new RemoveContextChildrenRequest. + * Constructs a new MetadataStore. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RemoveContextChildrenRequest. - * @implements IRemoveContextChildrenRequest + * @classdesc Represents a MetadataStore. + * @implements IMetadataStore * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set */ - function RemoveContextChildrenRequest(properties) { - this.childContexts = []; + function MetadataStore(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -381132,92 +382148,145 @@ } /** - * RemoveContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * MetadataStore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @instance */ - RemoveContextChildrenRequest.prototype.context = ""; + MetadataStore.prototype.name = ""; /** - * RemoveContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * MetadataStore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @instance */ - RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; + MetadataStore.prototype.createTime = null; /** - * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * MetadataStore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.updateTime = null; + + /** + * MetadataStore encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.encryptionSpec = null; + + /** + * MetadataStore description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.description = ""; + + /** + * MetadataStore state. + * @member {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null|undefined} state + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.state = null; + + /** + * Creates a new MetadataStore instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore instance */ - RemoveContextChildrenRequest.create = function create(properties) { - return new RemoveContextChildrenRequest(properties); + MetadataStore.create = function create(properties) { + return new MetadataStore(properties); }; /** - * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenRequest.encode = function encode(message, writer) { + MetadataStore.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenRequest.decode = function decode(reader, length) { + MetadataStore.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.name = reader.string(); break; } - case 2: { - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 6: { + message.description = reader.string(); + break; + } + case 7: { + message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); break; } default: @@ -381229,142 +382298,405 @@ }; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + MetadataStore.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveContextChildrenRequest message. + * Verifies a MetadataStore message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveContextChildrenRequest.verify = function verify(message) { + MetadataStore.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify(message.state); + if (error) + return "state." + error; } return null; }; /** - * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore */ - RemoveContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest) + MetadataStore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.description != null) + message.description = String(object.description); + if (object.state != null) { + if (typeof object.state !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.state: object expected"); + message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.fromObject(object.state); } return message; }; /** - * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest + * @param {google.cloud.aiplatform.v1beta1.MetadataStore} message MetadataStore * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveContextChildrenRequest.toObject = function toObject(message, options) { + MetadataStore.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.childContexts = []; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.description = ""; + object.state = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.toObject(message.state, options); return object; }; /** - * Converts this RemoveContextChildrenRequest to JSON. + * Converts this MetadataStore to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @instance * @returns {Object.} JSON object */ - RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { + MetadataStore.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveContextChildrenRequest + * Gets the default type url for MetadataStore * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetadataStore"; }; - return RemoveContextChildrenRequest; + MetadataStore.MetadataStoreState = (function() { + + /** + * Properties of a MetadataStoreState. + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @interface IMetadataStoreState + * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes + */ + + /** + * Constructs a new MetadataStoreState. + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @classdesc Represents a MetadataStoreState. + * @implements IMetadataStoreState + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set + */ + function MetadataStoreState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MetadataStoreState diskUtilizationBytes. + * @member {number|Long} diskUtilizationBytes + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @instance + */ + MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new MetadataStoreState instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState instance + */ + MetadataStoreState.create = function create(properties) { + return new MetadataStoreState(properties); + }; + + /** + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetadataStoreState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); + return writer; + }; + + /** + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetadataStoreState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.diskUtilizationBytes = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetadataStoreState message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetadataStoreState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) + return "diskUtilizationBytes: integer|Long expected"; + return null; + }; + + /** + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + */ + MetadataStoreState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); + if (object.diskUtilizationBytes != null) + if ($util.Long) + (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; + else if (typeof object.diskUtilizationBytes === "string") + message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); + else if (typeof object.diskUtilizationBytes === "number") + message.diskUtilizationBytes = object.diskUtilizationBytes; + else if (typeof object.diskUtilizationBytes === "object") + message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} message MetadataStoreState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetadataStoreState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.diskUtilizationBytes = options.longs === String ? "0" : 0; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (typeof message.diskUtilizationBytes === "number") + object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; + else + object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; + return object; + }; + + /** + * Converts this MetadataStoreState to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @instance + * @returns {Object.} JSON object + */ + MetadataStoreState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetadataStoreState + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetadataStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState"; + }; + + return MetadataStoreState; + })(); + + return MetadataStore; })(); - v1beta1.RemoveContextChildrenResponse = (function() { + v1beta1.MigratableResource = (function() { /** - * Properties of a RemoveContextChildrenResponse. + * Properties of a MigratableResource. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRemoveContextChildrenResponse + * @interface IMigratableResource + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset + * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime */ /** - * Constructs a new RemoveContextChildrenResponse. + * Constructs a new MigratableResource. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RemoveContextChildrenResponse. - * @implements IRemoveContextChildrenResponse + * @classdesc Represents a MigratableResource. + * @implements IMigratableResource * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set */ - function RemoveContextChildrenResponse(properties) { + function MigratableResource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -381372,63 +382704,161 @@ } /** - * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * MigratableResource mlEngineModelVersion. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.mlEngineModelVersion = null; + + /** + * MigratableResource automlModel. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null|undefined} automlModel + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.automlModel = null; + + /** + * MigratableResource automlDataset. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null|undefined} automlDataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.automlDataset = null; + + /** + * MigratableResource dataLabelingDataset. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.dataLabelingDataset = null; + + /** + * MigratableResource lastMigrateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastMigrateTime = null; + + /** + * MigratableResource lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastUpdateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MigratableResource resource. + * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + Object.defineProperty(MigratableResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MigratableResource instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource instance */ - RemoveContextChildrenResponse.create = function create(properties) { - return new RemoveContextChildrenResponse(properties); + MigratableResource.create = function create(properties) { + return new MigratableResource(properties); }; /** - * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenResponse.encode = function encode(message, writer) { + MigratableResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) + $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * Decodes a MigratableResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenResponse.decode = function decode(reader, length) { + MigratableResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); + break; + } + case 2: { + message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); + break; + } + case 3: { + message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); + break; + } + case 4: { + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); + break; + } + case 5: { + message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -381438,774 +382868,1504 @@ }; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + MigratableResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveContextChildrenResponse message. + * Verifies a MigratableResource message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveContextChildrenResponse.verify = function verify(message) { + MigratableResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); + if (error) + return "mlEngineModelVersion." + error; + } + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify(message.automlModel); + if (error) + return "automlModel." + error; + } + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify(message.automlDataset); + if (error) + return "automlDataset." + error; + } + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); + if (error) + return "dataLabelingDataset." + error; + } + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); + if (error) + return "lastMigrateTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } return null; }; /** - * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource */ - RemoveContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse) + MigratableResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource) return object; - return new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); + if (object.mlEngineModelVersion != null) { + if (typeof object.mlEngineModelVersion !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.mlEngineModelVersion: object expected"); + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); + } + if (object.automlModel != null) { + if (typeof object.automlModel !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlModel: object expected"); + message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.fromObject(object.automlModel); + } + if (object.automlDataset != null) { + if (typeof object.automlDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlDataset: object expected"); + message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); + } + if (object.dataLabelingDataset != null) { + if (typeof object.dataLabelingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.dataLabelingDataset: object expected"); + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); + } + if (object.lastMigrateTime != null) { + if (typeof object.lastMigrateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastMigrateTime: object expected"); + message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + return message; }; /** - * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse + * @param {google.cloud.aiplatform.v1beta1.MigratableResource} message MigratableResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveContextChildrenResponse.toObject = function toObject() { - return {}; + MigratableResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.lastMigrateTime = null; + object.lastUpdateTime = null; + } + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); + if (options.oneofs) + object.resource = "mlEngineModelVersion"; + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + object.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.toObject(message.automlModel, options); + if (options.oneofs) + object.resource = "automlModel"; + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + object.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); + if (options.oneofs) + object.resource = "automlDataset"; + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + object.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); + if (options.oneofs) + object.resource = "dataLabelingDataset"; + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) + object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; }; /** - * Converts this RemoveContextChildrenResponse to JSON. + * Converts this MigratableResource to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @instance * @returns {Object.} JSON object */ - RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { + MigratableResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveContextChildrenResponse + * Gets the default type url for MigratableResource * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigratableResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource"; }; - return RemoveContextChildrenResponse; - })(); - - v1beta1.QueryContextLineageSubgraphRequest = (function() { + MigratableResource.MlEngineModelVersion = (function() { - /** - * Properties of a QueryContextLineageSubgraphRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQueryContextLineageSubgraphRequest - * @property {string|null} [context] QueryContextLineageSubgraphRequest context - */ + /** + * Properties of a MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IMlEngineModelVersion + * @property {string|null} [endpoint] MlEngineModelVersion endpoint + * @property {string|null} [version] MlEngineModelVersion version + */ - /** - * Constructs a new QueryContextLineageSubgraphRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QueryContextLineageSubgraphRequest. - * @implements IQueryContextLineageSubgraphRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set - */ - function QueryContextLineageSubgraphRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents a MlEngineModelVersion. + * @implements IMlEngineModelVersion + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + */ + function MlEngineModelVersion(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * QueryContextLineageSubgraphRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @instance - */ - QueryContextLineageSubgraphRequest.prototype.context = ""; + /** + * MlEngineModelVersion endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.endpoint = ""; - /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance - */ - QueryContextLineageSubgraphRequest.create = function create(properties) { - return new QueryContextLineageSubgraphRequest(properties); - }; + /** + * MlEngineModelVersion version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.version = ""; - /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryContextLineageSubgraphRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - return writer; - }; + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance + */ + MlEngineModelVersion.create = function create(properties) { + return new MlEngineModelVersion(properties); + }; - /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + return writer; + }; - /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.context = reader.string(); + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a QueryContextLineageSubgraphRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryContextLineageSubgraphRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - return null; - }; + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest - */ - QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); - if (object.context != null) - message.context = String(object.context); - return message; - }; + /** + * Verifies a MlEngineModelVersion message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MlEngineModelVersion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; - /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryContextLineageSubgraphRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - return object; - }; + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + */ + MlEngineModelVersion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.version != null) + message.version = String(object.version); + return message; + }; - /** - * Converts this QueryContextLineageSubgraphRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @instance - * @returns {Object.} JSON object - */ - QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MlEngineModelVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.version = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; - /** - * Gets the default type url for QueryContextLineageSubgraphRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - QueryContextLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest"; - }; + /** + * Converts this MlEngineModelVersion to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @instance + * @returns {Object.} JSON object + */ + MlEngineModelVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return QueryContextLineageSubgraphRequest; - })(); + /** + * Gets the default type url for MlEngineModelVersion + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MlEngineModelVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion"; + }; - v1beta1.CreateExecutionRequest = (function() { + return MlEngineModelVersion; + })(); - /** - * Properties of a CreateExecutionRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateExecutionRequest - * @property {string|null} [parent] CreateExecutionRequest parent - * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] CreateExecutionRequest execution - * @property {string|null} [executionId] CreateExecutionRequest executionId - */ + MigratableResource.AutomlModel = (function() { - /** - * Constructs a new CreateExecutionRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateExecutionRequest. - * @implements ICreateExecutionRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set - */ - function CreateExecutionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an AutomlModel. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IAutomlModel + * @property {string|null} [model] AutomlModel model + * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName + */ - /** - * CreateExecutionRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @instance - */ - CreateExecutionRequest.prototype.parent = ""; + /** + * Constructs a new AutomlModel. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents an AutomlModel. + * @implements IAutomlModel + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set + */ + function AutomlModel(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @instance - */ - CreateExecutionRequest.prototype.execution = null; + /** + * AutomlModel model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.model = ""; - /** - * CreateExecutionRequest executionId. - * @member {string} executionId - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @instance - */ - CreateExecutionRequest.prototype.executionId = ""; + /** + * AutomlModel modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.modelDisplayName = ""; - /** - * Creates a new CreateExecutionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest instance - */ - CreateExecutionRequest.create = function create(properties) { - return new CreateExecutionRequest(properties); - }; + /** + * Creates a new AutomlModel instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel instance + */ + AutomlModel.create = function create(properties) { + return new AutomlModel(properties); + }; - /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateExecutionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); - return writer; - }; + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + return writer; + }; - /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateExecutionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); - break; - } - case 3: { - message.executionId = reader.string(); + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 3: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CreateExecutionRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateExecutionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: string expected"; - return null; - }; + /** + * Verifies an AutomlModel message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomlModel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; - /** - * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest - */ - CreateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + */ + AutomlModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} message AutomlModel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomlModel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); - } - if (object.executionId != null) - message.executionId = String(object.executionId); - return message; - }; + }; - /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} message CreateExecutionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateExecutionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.execution = null; - object.executionId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; - return object; - }; + /** + * Converts this AutomlModel to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @instance + * @returns {Object.} JSON object + */ + AutomlModel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CreateExecutionRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @instance - * @returns {Object.} JSON object - */ - CreateExecutionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for AutomlModel + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutomlModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel"; + }; - /** - * Gets the default type url for CreateExecutionRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CreateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateExecutionRequest"; - }; + return AutomlModel; + })(); - return CreateExecutionRequest; - })(); + MigratableResource.AutomlDataset = (function() { - v1beta1.GetExecutionRequest = (function() { + /** + * Properties of an AutomlDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IAutomlDataset + * @property {string|null} [dataset] AutomlDataset dataset + * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName + */ - /** - * Properties of a GetExecutionRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetExecutionRequest - * @property {string|null} [name] GetExecutionRequest name - */ + /** + * Constructs a new AutomlDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents an AutomlDataset. + * @implements IAutomlDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set + */ + function AutomlDataset(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetExecutionRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetExecutionRequest. - * @implements IGetExecutionRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set - */ - function GetExecutionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * AutomlDataset dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @instance + */ + AutomlDataset.prototype.dataset = ""; - /** - * GetExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @instance - */ - GetExecutionRequest.prototype.name = ""; + /** + * AutomlDataset datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @instance + */ + AutomlDataset.prototype.datasetDisplayName = ""; - /** - * Creates a new GetExecutionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest instance - */ - GetExecutionRequest.create = function create(properties) { - return new GetExecutionRequest(properties); - }; + /** + * Creates a new AutomlDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset instance + */ + AutomlDataset.create = function create(properties) { + return new AutomlDataset(properties); + }; - /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExecutionRequest.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 AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); + return writer; + }; - /** - * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExecutionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes an AutomlDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = reader.string(); + break; + } + case 4: { + message.datasetDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + /** + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutomlDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomlDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + return null; + }; + + /** + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + */ + AutomlDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + return message; + }; + + /** + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} message AutomlDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomlDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + return object; + }; + + /** + * Converts this AutomlDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @instance + * @returns {Object.} JSON object + */ + AutomlDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutomlDataset + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutomlDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset"; + }; + + return AutomlDataset; + })(); + + MigratableResource.DataLabelingDataset = (function() { + + /** + * Properties of a DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IDataLabelingDataset + * @property {string|null} [dataset] DataLabelingDataset dataset + * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName + * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets + */ + + /** + * Constructs a new DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents a DataLabelingDataset. + * @implements IDataLabelingDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + */ + function DataLabelingDataset(properties) { + this.dataLabelingAnnotatedDatasets = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataLabelingDataset dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + */ + DataLabelingDataset.prototype.dataset = ""; + + /** + * DataLabelingDataset datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + */ + DataLabelingDataset.prototype.datasetDisplayName = ""; + + /** + * DataLabelingDataset dataLabelingAnnotatedDatasets. + * @member {Array.} dataLabelingAnnotatedDatasets + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + */ + DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; + + /** + * Creates a new DataLabelingDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance + */ + DataLabelingDataset.create = function create(properties) { + return new DataLabelingDataset(properties); + }; + + /** + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); + return writer; + }; + + /** + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = reader.string(); + break; + } + case 4: { + message.datasetDisplayName = reader.string(); + break; + } + case 3: { + if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) + message.dataLabelingAnnotatedDatasets = []; + message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataLabelingDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataLabelingDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { + if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) + return "dataLabelingAnnotatedDatasets: array expected"; + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); + if (error) + return "dataLabelingAnnotatedDatasets." + error; + } + } + return null; + }; + + /** + * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + */ + DataLabelingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + if (object.dataLabelingAnnotatedDatasets) { + if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); + message.dataLabelingAnnotatedDatasets = []; + for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { + if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); + message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} message DataLabelingDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataLabelingDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataLabelingAnnotatedDatasets = []; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { + object.dataLabelingAnnotatedDatasets = []; + for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) + object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); + } + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + return object; + }; + + /** + * Converts this DataLabelingDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + * @returns {Object.} JSON object + */ + DataLabelingDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataLabelingDataset + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataLabelingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset"; + }; + + DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { + + /** + * Properties of a DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @interface IDataLabelingAnnotatedDataset + * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset + * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName + */ + + /** + * Constructs a new DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @classdesc Represents a DataLabelingAnnotatedDataset. + * @implements IDataLabelingAnnotatedDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set + */ + function DataLabelingAnnotatedDataset(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataLabelingAnnotatedDataset annotatedDataset. + * @member {string} annotatedDataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + */ + DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; + + /** + * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. + * @member {string} annotatedDatasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + */ + DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; + + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance + */ + DataLabelingAnnotatedDataset.create = function create(properties) { + return new DataLabelingAnnotatedDataset(properties); + }; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingAnnotatedDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); + return writer; + }; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingAnnotatedDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.annotatedDataset = reader.string(); + break; + } + case 3: { + message.annotatedDatasetDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataLabelingAnnotatedDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataLabelingAnnotatedDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + if (!$util.isString(message.annotatedDataset)) + return "annotatedDataset: string expected"; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + if (!$util.isString(message.annotatedDatasetDisplayName)) + return "annotatedDatasetDisplayName: string expected"; + return null; + }; + + /** + * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset + */ + DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); + if (object.annotatedDataset != null) + message.annotatedDataset = String(object.annotatedDataset); + if (object.annotatedDatasetDisplayName != null) + message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); + return message; + }; + + /** + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.annotatedDataset = ""; + object.annotatedDatasetDisplayName = ""; + } + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + object.annotatedDataset = message.annotatedDataset; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; + return object; + }; + + /** + * Converts this DataLabelingAnnotatedDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + * @returns {Object.} JSON object + */ + DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataLabelingAnnotatedDataset + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataLabelingAnnotatedDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset"; + }; + + return DataLabelingAnnotatedDataset; + })(); + + return DataLabelingDataset; + })(); + + return MigratableResource; + })(); + + v1beta1.MigrationService = (function() { + + /** + * Constructs a new MigrationService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MigrationService + * @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 */ - GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + function MigrationService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; /** - * Verifies a GetExecutionRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * Creates new MigrationService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrationService * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MigrationService} RPC service. Useful where requests and/or responses are streamed. */ - GetExecutionRequest.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; + MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|searchMigratableResources}. + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @typedef SearchMigratableResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse */ - GetExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetExecutionRequest} message GetExecutionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * @returns {undefined} + * @variation 1 */ - GetExecutionRequest.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(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { + return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, request, callback); + }, "name", { value: "SearchMigratableResources" }); /** - * Converts this GetExecutionRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetExecutionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for GetExecutionRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest - * @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.MigrationService|batchMigrateResources}. + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @typedef BatchMigrateResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - GetExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetExecutionRequest"; - }; - return GetExecutionRequest; + /** + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { + return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchMigrateResources" }); + + /** + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MigrationService; })(); - v1beta1.ListExecutionsRequest = (function() { + v1beta1.SearchMigratableResourcesRequest = (function() { /** - * Properties of a ListExecutionsRequest. + * Properties of a SearchMigratableResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListExecutionsRequest - * @property {string|null} [parent] ListExecutionsRequest parent - * @property {number|null} [pageSize] ListExecutionsRequest pageSize - * @property {string|null} [pageToken] ListExecutionsRequest pageToken - * @property {string|null} [filter] ListExecutionsRequest filter - * @property {string|null} [orderBy] ListExecutionsRequest orderBy + * @interface ISearchMigratableResourcesRequest + * @property {string|null} [parent] SearchMigratableResourcesRequest parent + * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize + * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken + * @property {string|null} [filter] SearchMigratableResourcesRequest filter */ /** - * Constructs a new ListExecutionsRequest. + * Constructs a new SearchMigratableResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListExecutionsRequest. - * @implements IListExecutionsRequest + * @classdesc Represents a SearchMigratableResourcesRequest. + * @implements ISearchMigratableResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set */ - function ListExecutionsRequest(properties) { + function SearchMigratableResourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -382213,67 +384373,59 @@ } /** - * ListExecutionsRequest parent. + * SearchMigratableResourcesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance */ - ListExecutionsRequest.prototype.parent = ""; + SearchMigratableResourcesRequest.prototype.parent = ""; /** - * ListExecutionsRequest pageSize. + * SearchMigratableResourcesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance */ - ListExecutionsRequest.prototype.pageSize = 0; + SearchMigratableResourcesRequest.prototype.pageSize = 0; /** - * ListExecutionsRequest pageToken. + * SearchMigratableResourcesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance */ - ListExecutionsRequest.prototype.pageToken = ""; + SearchMigratableResourcesRequest.prototype.pageToken = ""; /** - * ListExecutionsRequest filter. + * SearchMigratableResourcesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest - * @instance - */ - ListExecutionsRequest.prototype.filter = ""; - - /** - * ListExecutionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance */ - ListExecutionsRequest.prototype.orderBy = ""; + SearchMigratableResourcesRequest.prototype.filter = ""; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance */ - ListExecutionsRequest.create = function create(properties) { - return new ListExecutionsRequest(properties); + SearchMigratableResourcesRequest.create = function create(properties) { + return new SearchMigratableResourcesRequest(properties); }; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encode = function encode(message, writer) { + SearchMigratableResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -382284,39 +384436,37 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decode = function decode(reader, length) { + SearchMigratableResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -382336,10 +384486,6 @@ message.filter = reader.string(); break; } - case 5: { - message.orderBy = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -382349,30 +384495,30 @@ }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsRequest message. + * Verifies a SearchMigratableResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsRequest.verify = function verify(message) { + SearchMigratableResourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -382387,24 +384533,21 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest */ - ListExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) + SearchMigratableResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -382413,21 +384556,19 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} message ListExecutionsRequest + * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsRequest.toObject = function toObject(message, options) { + SearchMigratableResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -382436,7 +384577,6 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; - object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -382446,60 +384586,58 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance * @returns {Object.} JSON object */ - ListExecutionsRequest.prototype.toJSON = function toJSON() { + SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListExecutionsRequest + * Gets the default type url for SearchMigratableResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchMigratableResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest"; }; - return ListExecutionsRequest; + return SearchMigratableResourcesRequest; })(); - v1beta1.ListExecutionsResponse = (function() { + v1beta1.SearchMigratableResourcesResponse = (function() { /** - * Properties of a ListExecutionsResponse. + * Properties of a SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListExecutionsResponse - * @property {Array.|null} [executions] ListExecutionsResponse executions - * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken + * @interface ISearchMigratableResourcesResponse + * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources + * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken */ /** - * Constructs a new ListExecutionsResponse. + * Constructs a new SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListExecutionsResponse. - * @implements IListExecutionsResponse + * @classdesc Represents a SearchMigratableResourcesResponse. + * @implements ISearchMigratableResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set */ - function ListExecutionsResponse(properties) { - this.executions = []; + function SearchMigratableResourcesResponse(properties) { + this.migratableResources = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -382507,88 +384645,88 @@ } /** - * ListExecutionsResponse executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * SearchMigratableResourcesResponse migratableResources. + * @member {Array.} migratableResources + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @instance */ - ListExecutionsResponse.prototype.executions = $util.emptyArray; + SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; /** - * ListExecutionsResponse nextPageToken. + * SearchMigratableResourcesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @instance */ - ListExecutionsResponse.prototype.nextPageToken = ""; + SearchMigratableResourcesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance */ - ListExecutionsResponse.create = function create(properties) { - return new ListExecutionsResponse(properties); + SearchMigratableResourcesResponse.create = function create(properties) { + return new SearchMigratableResourcesResponse(properties); }; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encode = function encode(message, writer) { + SearchMigratableResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.migratableResources != null && message.migratableResources.length) + for (var i = 0; i < message.migratableResources.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decode = function decode(reader, length) { + SearchMigratableResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32())); + if (!(message.migratableResources && message.migratableResources.length)) + message.migratableResources = []; + message.migratableResources.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32())); break; } case 2: { @@ -382604,39 +384742,39 @@ }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsResponse message. + * Verifies a SearchMigratableResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsResponse.verify = function verify(message) { + SearchMigratableResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; + if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { + if (!Array.isArray(message.migratableResources)) + return "migratableResources: array expected"; + for (var i = 0; i < message.migratableResources.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResources[i]); + if (error) + return "migratableResources." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -382646,25 +384784,25 @@ }; /** - * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse */ - ListExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) + SearchMigratableResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.executions[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); + if (object.migratableResources) { + if (!Array.isArray(object.migratableResources)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: array expected"); + message.migratableResources = []; + for (var i = 0; i < object.migratableResources.length; ++i) { + if (typeof object.migratableResources[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: object expected"); + message.migratableResources[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResources[i]); } } if (object.nextPageToken != null) @@ -382673,26 +384811,26 @@ }; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} message ListExecutionsResponse + * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsResponse.toObject = function toObject(message, options) { + SearchMigratableResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.executions = []; + object.migratableResources = []; if (options.defaults) object.nextPageToken = ""; - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.executions[j], options); + if (message.migratableResources && message.migratableResources.length) { + object.migratableResources = []; + for (var j = 0; j < message.migratableResources.length; ++j) + object.migratableResources[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResources[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -382700,54 +384838,54 @@ }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @instance * @returns {Object.} JSON object */ - ListExecutionsResponse.prototype.toJSON = function toJSON() { + SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListExecutionsResponse + * Gets the default type url for SearchMigratableResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchMigratableResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse"; }; - return ListExecutionsResponse; + return SearchMigratableResourcesResponse; })(); - v1beta1.UpdateExecutionRequest = (function() { + v1beta1.BatchMigrateResourcesRequest = (function() { /** - * Properties of an UpdateExecutionRequest. + * Properties of a BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateExecutionRequest - * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] UpdateExecutionRequest execution - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask - * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing + * @interface IBatchMigrateResourcesRequest + * @property {string|null} [parent] BatchMigrateResourcesRequest parent + * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests */ /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateExecutionRequest. - * @implements IUpdateExecutionRequest + * @classdesc Represents a BatchMigrateResourcesRequest. + * @implements IBatchMigrateResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set */ - function UpdateExecutionRequest(properties) { + function BatchMigrateResourcesRequest(properties) { + this.migrateResourceRequests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -382755,103 +384893,92 @@ } /** - * UpdateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest - * @instance - */ - UpdateExecutionRequest.prototype.execution = null; - - /** - * UpdateExecutionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * BatchMigrateResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @instance */ - UpdateExecutionRequest.prototype.updateMask = null; + BatchMigrateResourcesRequest.prototype.parent = ""; /** - * UpdateExecutionRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * BatchMigrateResourcesRequest migrateResourceRequests. + * @member {Array.} migrateResourceRequests + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @instance */ - UpdateExecutionRequest.prototype.allowMissing = false; + BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance */ - UpdateExecutionRequest.create = function create(properties) { - return new UpdateExecutionRequest(properties); + BatchMigrateResourcesRequest.create = function create(properties) { + return new BatchMigrateResourcesRequest(properties); }; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encode = function encode(message, writer) { + BatchMigrateResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.migrateResourceRequests != null && message.migrateResourceRequests.length) + for (var i = 0; i < message.migrateResourceRequests.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decode = function decode(reader, length) { + BatchMigrateResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) + message.migrateResourceRequests = []; + message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32())); break; } default: @@ -382863,150 +384990,151 @@ }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExecutionRequest message. + * Verifies a BatchMigrateResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExecutionRequest.verify = function verify(message) { + BatchMigrateResourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { + if (!Array.isArray(message.migrateResourceRequests)) + return "migrateResourceRequests: array expected"; + for (var i = 0; i < message.migrateResourceRequests.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); + if (error) + return "migrateResourceRequests." + error; + } } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; return null; }; /** - * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest */ - UpdateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) + BatchMigrateResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.migrateResourceRequests) { + if (!Array.isArray(object.migrateResourceRequests)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); + message.migrateResourceRequests = []; + for (var i = 0; i < object.migrateResourceRequests.length; ++i) { + if (typeof object.migrateResourceRequests[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); + message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); + } } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} message UpdateExecutionRequest + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExecutionRequest.toObject = function toObject(message, options) { + BatchMigrateResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.execution = null; - object.updateMask = null; - object.allowMissing = false; + if (options.arrays || options.defaults) + object.migrateResourceRequests = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.migrateResourceRequests && message.migrateResourceRequests.length) { + object.migrateResourceRequests = []; + for (var j = 0; j < message.migrateResourceRequests.length; ++j) + object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); } - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; return object; }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @instance * @returns {Object.} JSON object */ - UpdateExecutionRequest.prototype.toJSON = function toJSON() { + BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExecutionRequest + * Gets the default type url for BatchMigrateResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest"; }; - return UpdateExecutionRequest; + return BatchMigrateResourcesRequest; })(); - v1beta1.DeleteExecutionRequest = (function() { + v1beta1.MigrateResourceRequest = (function() { /** - * Properties of a DeleteExecutionRequest. + * Properties of a MigrateResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteExecutionRequest - * @property {string|null} [name] DeleteExecutionRequest name - * @property {string|null} [etag] DeleteExecutionRequest etag + * @interface IMigrateResourceRequest + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig */ /** - * Constructs a new DeleteExecutionRequest. + * Constructs a new MigrateResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteExecutionRequest. - * @implements IDeleteExecutionRequest + * @classdesc Represents a MigrateResourceRequest. + * @implements IMigrateResourceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set */ - function DeleteExecutionRequest(properties) { + function MigrateResourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -383014,331 +385142,131 @@ } /** - * DeleteExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest + * MigrateResourceRequest migrateMlEngineModelVersionConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance */ - DeleteExecutionRequest.prototype.name = ""; + MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; /** - * DeleteExecutionRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest + * MigrateResourceRequest migrateAutomlModelConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance */ - DeleteExecutionRequest.prototype.etag = ""; - - /** - * Creates a new DeleteExecutionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest instance - */ - DeleteExecutionRequest.create = function create(properties) { - return new DeleteExecutionRequest(properties); - }; - - /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExecutionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); - return writer; - }; - - /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExecutionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.etag = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteExecutionRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteExecutionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - return null; - }; - - /** - * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest - */ - DeleteExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); - return message; - }; - - /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} message DeleteExecutionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteExecutionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - return object; - }; + MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; /** - * Converts this DeleteExecutionRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest + * MigrateResourceRequest migrateAutomlDatasetConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance - * @returns {Object.} JSON object - */ - DeleteExecutionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DeleteExecutionRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteExecutionRequest"; - }; - - return DeleteExecutionRequest; - })(); - - v1beta1.PurgeExecutionsRequest = (function() { - - /** - * Properties of a PurgeExecutionsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeExecutionsRequest - * @property {string|null} [parent] PurgeExecutionsRequest parent - * @property {string|null} [filter] PurgeExecutionsRequest filter - * @property {boolean|null} [force] PurgeExecutionsRequest force - */ - - /** - * Constructs a new PurgeExecutionsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeExecutionsRequest. - * @implements IPurgeExecutionsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set */ - function PurgeExecutionsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; /** - * PurgeExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * MigrateResourceRequest migrateDataLabelingDatasetConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance */ - PurgeExecutionsRequest.prototype.parent = ""; + MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; - /** - * PurgeExecutionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @instance - */ - PurgeExecutionsRequest.prototype.filter = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * PurgeExecutionsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * MigrateResourceRequest request. + * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance */ - PurgeExecutionsRequest.prototype.force = false; + Object.defineProperty(MigrateResourceRequest.prototype, "request", { + get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest instance */ - PurgeExecutionsRequest.create = function create(properties) { - return new PurgeExecutionsRequest(properties); + MigrateResourceRequest.create = function create(properties) { + return new MigrateResourceRequest(properties); }; /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsRequest.encode = function encode(message, writer) { + MigrateResourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsRequest.decode = function decode(reader, length) { + MigrateResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); break; } case 2: { - message.filter = reader.string(); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); break; } case 3: { - message.force = reader.bool(); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); break; } default: @@ -383350,851 +385278,1372 @@ }; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsRequest message. + * Verifies a MigrateResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsRequest.verify = function verify(message) { + MigrateResourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + var properties = {}; + if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); + if (error) + return "migrateMlEngineModelVersionConfig." + error; + } + } + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); + if (error) + return "migrateAutomlModelConfig." + error; + } + } + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); + if (error) + return "migrateAutomlDatasetConfig." + error; + } + } + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); + if (error) + return "migrateDataLabelingDatasetConfig." + error; + } + } return null; }; /** - * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest */ - PurgeExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) + MigrateResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); + if (object.migrateMlEngineModelVersionConfig != null) { + if (typeof object.migrateMlEngineModelVersionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); + } + if (object.migrateAutomlModelConfig != null) { + if (typeof object.migrateAutomlModelConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); + } + if (object.migrateAutomlDatasetConfig != null) { + if (typeof object.migrateAutomlDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); + } + if (object.migrateDataLabelingDatasetConfig != null) { + if (typeof object.migrateDataLabelingDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); + } return message; }; /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} message PurgeExecutionsRequest + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} message MigrateResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsRequest.toObject = function toObject(message, options) { + MigrateResourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; + if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); + if (options.oneofs) + object.request = "migrateMlEngineModelVersionConfig"; + } + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); + if (options.oneofs) + object.request = "migrateAutomlModelConfig"; + } + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); + if (options.oneofs) + object.request = "migrateAutomlDatasetConfig"; + } + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); + if (options.oneofs) + object.request = "migrateDataLabelingDatasetConfig"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this PurgeExecutionsRequest to JSON. + * Converts this MigrateResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance * @returns {Object.} JSON object */ - PurgeExecutionsRequest.prototype.toJSON = function toJSON() { + MigrateResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsRequest + * Gets the default type url for MigrateResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest"; }; - return PurgeExecutionsRequest; - })(); + MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { - v1beta1.PurgeExecutionsResponse = (function() { + /** + * Properties of a MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateMlEngineModelVersionConfig + * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint + * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion + * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName + */ - /** - * Properties of a PurgeExecutionsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeExecutionsResponse - * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample - */ + /** + * Constructs a new MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateMlEngineModelVersionConfig. + * @implements IMigrateMlEngineModelVersionConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + */ + function MigrateMlEngineModelVersionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new PurgeExecutionsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeExecutionsResponse. - * @implements IPurgeExecutionsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set - */ - function PurgeExecutionsResponse(properties) { - this.purgeSample = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MigrateMlEngineModelVersionConfig endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; - /** - * PurgeExecutionsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * MigrateMlEngineModelVersionConfig modelVersion. + * @member {string} modelVersion + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; - /** - * PurgeExecutionsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; + /** + * MigrateMlEngineModelVersionConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; - /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse instance - */ - PurgeExecutionsResponse.create = function create(properties) { - return new PurgeExecutionsResponse(properties); - }; + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance + */ + MigrateMlEngineModelVersionConfig.create = function create(properties) { + return new MigrateMlEngineModelVersionConfig(properties); + }; - /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); - return writer; - }; + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateMlEngineModelVersionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + return writer; + }; - /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.purgeCount = reader.int64(); - break; - } - case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.modelVersion = reader.string(); + break; + } + case 3: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PurgeExecutionsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PurgeExecutionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } - return null; - }; + /** + * Verifies a MigrateMlEngineModelVersionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateMlEngineModelVersionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + if (!$util.isString(message.modelVersion)) + return "modelVersion: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; - /** - * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse - */ - PurgeExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) + /** + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + */ + MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.modelVersion != null) + message.modelVersion = String(object.modelVersion); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.modelVersion = ""; + object.modelDisplayName = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + object.modelVersion = message.modelVersion; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } - return message; - }; + }; - /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} message PurgeExecutionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PurgeExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; - } - return object; - }; + /** + * Converts this MigrateMlEngineModelVersionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PurgeExecutionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @instance - * @returns {Object.} JSON object - */ - PurgeExecutionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MigrateMlEngineModelVersionConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateMlEngineModelVersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig"; + }; - /** - * Gets the default type url for PurgeExecutionsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PurgeExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse"; - }; + return MigrateMlEngineModelVersionConfig; + })(); - return PurgeExecutionsResponse; - })(); + MigrateResourceRequest.MigrateAutomlModelConfig = (function() { - v1beta1.PurgeExecutionsMetadata = (function() { + /** + * Properties of a MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateAutomlModelConfig + * @property {string|null} [model] MigrateAutomlModelConfig model + * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName + */ - /** - * Properties of a PurgeExecutionsMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeExecutionsMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata - */ + /** + * Constructs a new MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlModelConfig. + * @implements IMigrateAutomlModelConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + */ + function MigrateAutomlModelConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new PurgeExecutionsMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeExecutionsMetadata. - * @implements IPurgeExecutionsMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set - */ - function PurgeExecutionsMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MigrateAutomlModelConfig model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.model = ""; - /** - * PurgeExecutionsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @instance - */ - PurgeExecutionsMetadata.prototype.genericMetadata = null; + /** + * MigrateAutomlModelConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.modelDisplayName = ""; - /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance - */ - PurgeExecutionsMetadata.create = function create(properties) { - return new PurgeExecutionsMetadata(properties); - }; + /** + * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance + */ + MigrateAutomlModelConfig.create = function create(properties) { + return new MigrateAutomlModelConfig(properties); + }; - /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); + return writer; + }; - /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PurgeExecutionsMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PurgeExecutionsMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; + /** + * Verifies a MigrateAutomlModelConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateAutomlModelConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; - /** - * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata - */ - PurgeExecutionsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; + /** + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + */ + MigrateAutomlModelConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; - /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PurgeExecutionsMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + /** + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateAutomlModelConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + return object; + }; - /** - * Converts this PurgeExecutionsMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @instance - * @returns {Object.} JSON object - */ - PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this MigrateAutomlModelConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for PurgeExecutionsMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PurgeExecutionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata"; - }; + /** + * Gets the default type url for MigrateAutomlModelConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateAutomlModelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig"; + }; - return PurgeExecutionsMetadata; - })(); + return MigrateAutomlModelConfig; + })(); - v1beta1.AddExecutionEventsRequest = (function() { + MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { - /** - * Properties of an AddExecutionEventsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddExecutionEventsRequest - * @property {string|null} [execution] AddExecutionEventsRequest execution - * @property {Array.|null} [events] AddExecutionEventsRequest events - */ + /** + * Properties of a MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateAutomlDatasetConfig + * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName + */ - /** - * Constructs a new AddExecutionEventsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddExecutionEventsRequest. - * @implements IAddExecutionEventsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set - */ - function AddExecutionEventsRequest(properties) { - this.events = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlDatasetConfig. + * @implements IMigrateAutomlDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + */ + function MigrateAutomlDatasetConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * AddExecutionEventsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @instance - */ - AddExecutionEventsRequest.prototype.execution = ""; + /** + * MigrateAutomlDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @instance + */ + MigrateAutomlDatasetConfig.prototype.dataset = ""; - /** - * AddExecutionEventsRequest events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @instance - */ - AddExecutionEventsRequest.prototype.events = $util.emptyArray; + /** + * MigrateAutomlDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @instance + */ + MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; - /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest instance - */ - AddExecutionEventsRequest.create = function create(properties) { - return new AddExecutionEventsRequest(properties); - }; + /** + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance + */ + MigrateAutomlDatasetConfig.create = function create(properties) { + return new MigrateAutomlDatasetConfig(properties); + }; - /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddExecutionEventsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + return writer; + }; - /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddExecutionEventsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.execution = reader.string(); - break; - } - case 2: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1beta1.Event.decode(reader, reader.uint32())); + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = reader.string(); + break; + } + case 2: { + message.datasetDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an AddExecutionEventsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AddExecutionEventsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } - return null; - }; + /** + * Verifies a MigrateAutomlDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateAutomlDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + return null; + }; - /** - * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest - */ - AddExecutionEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); - if (object.execution != null) - message.execution = String(object.execution); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1beta1.Event.fromObject(object.events[i]); + /** + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + */ + MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; } - } - return message; - }; + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + return object; + }; - /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} message AddExecutionEventsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AddExecutionEventsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1beta1.Event.toObject(message.events[j], options); - } - return object; - }; + /** + * Converts this MigrateAutomlDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this AddExecutionEventsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @instance - * @returns {Object.} JSON object - */ - AddExecutionEventsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MigrateAutomlDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateAutomlDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig"; + }; - /** - * Gets the default type url for AddExecutionEventsRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AddExecutionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + return MigrateAutomlDatasetConfig; + })(); + + MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { + + /** + * Properties of a MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateDataLabelingDatasetConfig + * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName + * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + */ + + /** + * Constructs a new MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateDataLabelingDatasetConfig. + * @implements IMigrateDataLabelingDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingDatasetConfig(properties) { + this.migrateDataLabelingAnnotatedDatasetConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest"; - }; - return AddExecutionEventsRequest; + /** + * MigrateDataLabelingDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.dataset = ""; + + /** + * MigrateDataLabelingDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; + + /** + * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. + * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; + + /** + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + */ + MigrateDataLabelingDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingDatasetConfig(properties); + }; + + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = reader.string(); + break; + } + case 2: { + message.datasetDisplayName = reader.string(); + break; + } + case 3: { + if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigrateDataLabelingDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { + if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) + return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (error) + return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + } + } + return null; + }; + + /** + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + */ + MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + if (object.migrateDataLabelingAnnotatedDatasetConfigs) { + if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) + object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); + } + return object; + }; + + /** + * Converts this MigrateDataLabelingDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MigrateDataLabelingDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateDataLabelingDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig"; + }; + + MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { + + /** + * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @interface IMigrateDataLabelingAnnotatedDatasetConfig + * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + */ + + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. + * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingAnnotatedDatasetConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. + * @member {string} annotatedDataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; + + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + }; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + return writer; + }; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.annotatedDataset = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + if (!$util.isString(message.annotatedDataset)) + return "annotatedDataset: string expected"; + return null; + }; + + /** + * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + */ + MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + if (object.annotatedDataset != null) + message.annotatedDataset = String(object.annotatedDataset); + return message; + }; + + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.annotatedDataset = ""; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + object.annotatedDataset = message.annotatedDataset; + return object; + }; + + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateDataLabelingAnnotatedDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig"; + }; + + return MigrateDataLabelingAnnotatedDatasetConfig; + })(); + + return MigrateDataLabelingDatasetConfig; + })(); + + return MigrateResourceRequest; })(); - v1beta1.AddExecutionEventsResponse = (function() { + v1beta1.BatchMigrateResourcesResponse = (function() { /** - * Properties of an AddExecutionEventsResponse. + * Properties of a BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddExecutionEventsResponse + * @interface IBatchMigrateResourcesResponse + * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses */ /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddExecutionEventsResponse. - * @implements IAddExecutionEventsResponse + * @classdesc Represents a BatchMigrateResourcesResponse. + * @implements IBatchMigrateResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set */ - function AddExecutionEventsResponse(properties) { + function BatchMigrateResourcesResponse(properties) { + this.migrateResourceResponses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -384202,63 +386651,80 @@ } /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. + * BatchMigrateResourcesResponse migrateResourceResponses. + * @member {Array.} migrateResourceResponses + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @instance + */ + BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; + + /** + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance */ - AddExecutionEventsResponse.create = function create(properties) { - return new AddExecutionEventsResponse(properties); + BatchMigrateResourcesResponse.create = function create(properties) { + return new BatchMigrateResourcesResponse(properties); }; /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsResponse.encode = function encode(message, writer) { + BatchMigrateResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) + for (var i = 0; i < message.migrateResourceResponses.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsResponse.decode = function decode(reader, length) { + BatchMigrateResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) + message.migrateResourceResponses = []; + message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -384268,109 +386734,141 @@ }; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddExecutionEventsResponse message. + * Verifies a BatchMigrateResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExecutionEventsResponse.verify = function verify(message) { + BatchMigrateResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { + if (!Array.isArray(message.migrateResourceResponses)) + return "migrateResourceResponses: array expected"; + for (var i = 0; i < message.migrateResourceResponses.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); + if (error) + return "migrateResourceResponses." + error; + } + } return null; }; /** - * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse */ - AddExecutionEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) + BatchMigrateResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse) return object; - return new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); + if (object.migrateResourceResponses) { + if (!Array.isArray(object.migrateResourceResponses)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); + message.migrateResourceResponses = []; + for (var i = 0; i < object.migrateResourceResponses.length; ++i) { + if (typeof object.migrateResourceResponses[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); + message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); + } + } + return message; }; /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} message AddExecutionEventsResponse + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExecutionEventsResponse.toObject = function toObject() { - return {}; + BatchMigrateResourcesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.migrateResourceResponses = []; + if (message.migrateResourceResponses && message.migrateResourceResponses.length) { + object.migrateResourceResponses = []; + for (var j = 0; j < message.migrateResourceResponses.length; ++j) + object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); + } + return object; }; /** - * Converts this AddExecutionEventsResponse to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @instance * @returns {Object.} JSON object */ - AddExecutionEventsResponse.prototype.toJSON = function toJSON() { + BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddExecutionEventsResponse + * Gets the default type url for BatchMigrateResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddExecutionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse"; }; - return AddExecutionEventsResponse; + return BatchMigrateResourcesResponse; })(); - v1beta1.QueryExecutionInputsAndOutputsRequest = (function() { + v1beta1.MigrateResourceResponse = (function() { /** - * Properties of a QueryExecutionInputsAndOutputsRequest. + * Properties of a MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQueryExecutionInputsAndOutputsRequest - * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution + * @interface IMigrateResourceResponse + * @property {string|null} [dataset] MigrateResourceResponse dataset + * @property {string|null} [model] MigrateResourceResponse model + * @property {google.cloud.aiplatform.v1beta1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource */ /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. + * Constructs a new MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. - * @implements IQueryExecutionInputsAndOutputsRequest + * @classdesc Represents a MigrateResourceResponse. + * @implements IMigrateResourceResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set */ - function QueryExecutionInputsAndOutputsRequest(properties) { + function MigrateResourceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -384378,75 +386876,117 @@ } /** - * QueryExecutionInputsAndOutputsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * MigrateResourceResponse dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance */ - QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; + MigrateResourceResponse.prototype.dataset = null; /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * MigrateResourceResponse model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @instance + */ + MigrateResourceResponse.prototype.model = null; + + /** + * MigrateResourceResponse migratableResource. + * @member {google.cloud.aiplatform.v1beta1.IMigratableResource|null|undefined} migratableResource + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @instance + */ + MigrateResourceResponse.prototype.migratableResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MigrateResourceResponse migratedResource. + * @member {"dataset"|"model"|undefined} migratedResource + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @instance + */ + Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MigrateResourceResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse instance */ - QueryExecutionInputsAndOutputsRequest.create = function create(properties) { - return new QueryExecutionInputsAndOutputsRequest(properties); + MigrateResourceResponse.create = function create(properties) { + return new MigrateResourceResponse(properties); }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { + MigrateResourceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); + if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { + MigrateResourceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = reader.string(); + message.dataset = reader.string(); + break; + } + case 2: { + message.model = reader.string(); + break; + } + case 3: { + message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32()); break; } default: @@ -384458,124 +386998,156 @@ }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a MigrateResourceResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { + MigrateResourceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.migratedResource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.migratedResource === 1) + return "migratedResource: multiple values"; + properties.migratedResource = 1; + if (!$util.isString(message.model)) + return "model: string expected"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResource); + if (error) + return "migratableResource." + error; + } return null; }; /** - * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse */ - QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + MigrateResourceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); - if (object.execution != null) - message.execution = String(object.execution); + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.model != null) + message.model = String(object.model); + if (object.migratableResource != null) { + if (typeof object.migratableResource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceResponse.migratableResource: object expected"); + message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResource); + } return message; }; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} message MigrateResourceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { + MigrateResourceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; + object.migratableResource = null; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.migratedResource = "dataset"; + } + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.migratedResource = "model"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) + object.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResource, options); return object; }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this MigrateResourceResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance * @returns {Object.} JSON object */ - QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { + MigrateResourceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryExecutionInputsAndOutputsRequest + * Gets the default type url for MigrateResourceResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryExecutionInputsAndOutputsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateResourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceResponse"; }; - return QueryExecutionInputsAndOutputsRequest; + return MigrateResourceResponse; })(); - v1beta1.CreateMetadataSchemaRequest = (function() { + v1beta1.BatchMigrateResourcesOperationMetadata = (function() { /** - * Properties of a CreateMetadataSchemaRequest. + * Properties of a BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateMetadataSchemaRequest - * @property {string|null} [parent] CreateMetadataSchemaRequest parent - * @property {google.cloud.aiplatform.v1beta1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema - * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId + * @interface IBatchMigrateResourcesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata + * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults */ /** - * Constructs a new CreateMetadataSchemaRequest. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateMetadataSchemaRequest. - * @implements ICreateMetadataSchemaRequest + * @classdesc Represents a BatchMigrateResourcesOperationMetadata. + * @implements IBatchMigrateResourcesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set */ - function CreateMetadataSchemaRequest(properties) { + function BatchMigrateResourcesOperationMetadata(properties) { + this.partialResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -384583,103 +387155,92 @@ } /** - * CreateMetadataSchemaRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest - * @instance - */ - CreateMetadataSchemaRequest.prototype.parent = ""; - - /** - * CreateMetadataSchemaRequest metadataSchema. - * @member {google.cloud.aiplatform.v1beta1.IMetadataSchema|null|undefined} metadataSchema - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * BatchMigrateResourcesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchema = null; + BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; /** - * CreateMetadataSchemaRequest metadataSchemaId. - * @member {string} metadataSchemaId - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * BatchMigrateResourcesOperationMetadata partialResults. + * @member {Array.} partialResults + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; + BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance */ - CreateMetadataSchemaRequest.create = function create(properties) { - return new CreateMetadataSchemaRequest(properties); + BatchMigrateResourcesOperationMetadata.create = function create(properties) { + return new BatchMigrateResourcesOperationMetadata(properties); }; /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encode = function encode(message, writer) { + BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) - $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.partialResults != null && message.partialResults.length) + for (var i = 0; i < message.partialResults.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decode = function decode(reader, length) { + BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metadataSchemaId = reader.string(); + if (!(message.partialResults && message.partialResults.length)) + message.partialResults = []; + message.partialResults.push($root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); break; } default: @@ -384691,144 +387252,478 @@ }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataSchemaRequest message. + * Verifies a BatchMigrateResourcesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataSchemaRequest.verify = function verify(message) { + BatchMigrateResourcesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchema); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "metadataSchema." + error; + return "genericMetadata." + error; + } + if (message.partialResults != null && message.hasOwnProperty("partialResults")) { + if (!Array.isArray(message.partialResults)) + return "partialResults: array expected"; + for (var i = 0; i < message.partialResults.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); + if (error) + return "partialResults." + error; + } } - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - if (!$util.isString(message.metadataSchemaId)) - return "metadataSchemaId: string expected"; return null; }; /** - * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata */ - CreateMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.metadataSchema != null) { - if (typeof object.metadataSchema !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.metadataSchema: object expected"); - message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchema); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.partialResults) { + if (!Array.isArray(object.partialResults)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); + message.partialResults = []; + for (var i = 0; i < object.partialResults.length; ++i) { + if (typeof object.partialResults[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); + message.partialResults[i] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); + } } - if (object.metadataSchemaId != null) - message.metadataSchemaId = String(object.metadataSchemaId); return message; }; /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.metadataSchema = null; - object.metadataSchemaId = ""; + if (options.arrays || options.defaults) + object.partialResults = []; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.partialResults && message.partialResults.length) { + object.partialResults = []; + for (var j = 0; j < message.partialResults.length; ++j) + object.partialResults[j] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) - object.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchema, options); - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - object.metadataSchemaId = message.metadataSchemaId; return object; }; /** - * Converts this CreateMetadataSchemaRequest to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { + BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataSchemaRequest + * Gets the default type url for BatchMigrateResourcesOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata"; }; - return CreateMetadataSchemaRequest; + BatchMigrateResourcesOperationMetadata.PartialResult = (function() { + + /** + * Properties of a PartialResult. + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @interface IPartialResult + * @property {google.rpc.IStatus|null} [error] PartialResult error + * @property {string|null} [model] PartialResult model + * @property {string|null} [dataset] PartialResult dataset + * @property {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null} [request] PartialResult request + */ + + /** + * Constructs a new PartialResult. + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @classdesc Represents a PartialResult. + * @implements IPartialResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + */ + function PartialResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PartialResult error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.error = null; + + /** + * PartialResult model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.model = null; + + /** + * PartialResult dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.dataset = null; + + /** + * PartialResult request. + * @member {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null|undefined} request + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.request = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PartialResult result. + * @member {"error"|"model"|"dataset"|undefined} result + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + Object.defineProperty(PartialResult.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PartialResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance + */ + PartialResult.create = function create(properties) { + return new PartialResult(properties); + }; + + /** + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); + return writer; + }; + + /** + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PartialResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 3: { + message.model = reader.string(); + break; + } + case 4: { + message.dataset = reader.string(); + break; + } + case 1: { + message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PartialResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PartialResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PartialResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.model)) + return "model: string expected"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.request != null && message.hasOwnProperty("request")) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.request); + if (error) + return "request." + error; + } + return null; + }; + + /** + * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + */ + PartialResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.model != null) + message.model = String(object.model); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); + message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.request); + } + return message; + }; + + /** + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PartialResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.request = null; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.request, options); + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object.result = "error"; + } + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.result = "model"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.result = "dataset"; + } + return object; + }; + + /** + * Converts this PartialResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + * @returns {Object.} JSON object + */ + PartialResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PartialResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PartialResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult"; + }; + + return PartialResult; + })(); + + return BatchMigrateResourcesOperationMetadata; })(); - v1beta1.GetMetadataSchemaRequest = (function() { + v1beta1.ModelEvaluation = (function() { /** - * Properties of a GetMetadataSchemaRequest. + * Properties of a ModelEvaluation. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetMetadataSchemaRequest - * @property {string|null} [name] GetMetadataSchemaRequest name + * @interface IModelEvaluation + * @property {string|null} [name] ModelEvaluation name + * @property {string|null} [displayName] ModelEvaluation displayName + * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime + * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions + * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation + * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs + * @property {google.protobuf.IValue|null} [metadata] ModelEvaluation metadata + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null} [biasConfigs] ModelEvaluation biasConfigs */ /** - * Constructs a new GetMetadataSchemaRequest. + * Constructs a new ModelEvaluation. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetMetadataSchemaRequest. - * @implements IGetMetadataSchemaRequest + * @classdesc Represents a ModelEvaluation. + * @implements IModelEvaluation * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set */ - function GetMetadataSchemaRequest(properties) { + function ModelEvaluation(properties) { + this.sliceDimensions = []; + this.explanationSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -384836,323 +387731,207 @@ } /** - * GetMetadataSchemaRequest name. + * ModelEvaluation name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance */ - GetMetadataSchemaRequest.prototype.name = ""; - - /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance - */ - GetMetadataSchemaRequest.create = function create(properties) { - return new GetMetadataSchemaRequest(properties); - }; - - /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetMetadataSchemaRequest.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 GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetMetadataSchemaRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); - 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 GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetMetadataSchemaRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetMetadataSchemaRequest.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 GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest - */ - GetMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + ModelEvaluation.prototype.name = ""; /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ModelEvaluation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance */ - GetMetadataSchemaRequest.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; - }; + ModelEvaluation.prototype.displayName = ""; /** - * Converts this GetMetadataSchemaRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * ModelEvaluation metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance - * @returns {Object.} JSON object */ - GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + ModelEvaluation.prototype.metricsSchemaUri = ""; /** - * Gets the default type url for GetMetadataSchemaRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * ModelEvaluation metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance */ - GetMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest"; - }; - - return GetMetadataSchemaRequest; - })(); - - v1beta1.ListMetadataSchemasRequest = (function() { + ModelEvaluation.prototype.metrics = null; /** - * Properties of a ListMetadataSchemasRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataSchemasRequest - * @property {string|null} [parent] ListMetadataSchemasRequest parent - * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize - * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken - * @property {string|null} [filter] ListMetadataSchemasRequest filter + * ModelEvaluation createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance */ + ModelEvaluation.prototype.createTime = null; /** - * Constructs a new ListMetadataSchemasRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataSchemasRequest. - * @implements IListMetadataSchemasRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set + * ModelEvaluation sliceDimensions. + * @member {Array.} sliceDimensions + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance */ - function ListMetadataSchemasRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; /** - * ListMetadataSchemasRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * ModelEvaluation modelExplanation. + * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance */ - ListMetadataSchemasRequest.prototype.parent = ""; + ModelEvaluation.prototype.modelExplanation = null; /** - * ListMetadataSchemasRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * ModelEvaluation explanationSpecs. + * @member {Array.} explanationSpecs + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance */ - ListMetadataSchemasRequest.prototype.pageSize = 0; + ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; /** - * ListMetadataSchemasRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * ModelEvaluation metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance */ - ListMetadataSchemasRequest.prototype.pageToken = ""; + ModelEvaluation.prototype.metadata = null; /** - * ListMetadataSchemasRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * ModelEvaluation biasConfigs. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null|undefined} biasConfigs + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance */ - ListMetadataSchemasRequest.prototype.filter = ""; + ModelEvaluation.prototype.biasConfigs = null; /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * Creates a new ModelEvaluation instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation instance */ - ListMetadataSchemasRequest.create = function create(properties) { - return new ListMetadataSchemasRequest(properties); + ModelEvaluation.create = function create(properties) { + return new ModelEvaluation(properties); }; /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasRequest.encode = function encode(message, writer) { + ModelEvaluation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sliceDimensions != null && message.sliceDimensions.length) + for (var i = 0; i < message.sliceDimensions.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.explanationSpecs != null && message.explanationSpecs.length) + for (var i = 0; i < message.explanationSpecs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.biasConfigs != null && Object.hasOwnProperty.call(message, "biasConfigs")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.encode(message.biasConfigs, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * Decodes a ModelEvaluation message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasRequest.decode = function decode(reader, length) { + ModelEvaluation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); + break; + } + case 10: { + message.displayName = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.metricsSchemaUri = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 4: { - message.filter = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.sliceDimensions && message.sliceDimensions.length)) + message.sliceDimensions = []; + message.sliceDimensions.push(reader.string()); + break; + } + case 8: { + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.explanationSpecs && message.explanationSpecs.length)) + message.explanationSpecs = []; + message.explanationSpecs.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); + break; + } + case 11: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 12: { + message.biasConfigs = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.decode(reader, reader.uint32()); break; } default: @@ -385164,397 +387943,736 @@ }; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataSchemasRequest message. + * Verifies a ModelEvaluation message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataSchemasRequest.verify = function verify(message) { + ModelEvaluation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + 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.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); + if (error) + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { + if (!Array.isArray(message.sliceDimensions)) + return "sliceDimensions: array expected"; + for (var i = 0; i < message.sliceDimensions.length; ++i) + if (!$util.isString(message.sliceDimensions[i])) + return "sliceDimensions: string[] expected"; + } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } + if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { + if (!Array.isArray(message.explanationSpecs)) + return "explanationSpecs: array expected"; + for (var i = 0; i < message.explanationSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); + if (error) + return "explanationSpecs." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.biasConfigs != null && message.hasOwnProperty("biasConfigs")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify(message.biasConfigs); + if (error) + return "biasConfigs." + error; + } return null; }; /** - * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation */ - ListMetadataSchemasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) + ModelEvaluation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.sliceDimensions) { + if (!Array.isArray(object.sliceDimensions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.sliceDimensions: array expected"); + message.sliceDimensions = []; + for (var i = 0; i < object.sliceDimensions.length; ++i) + message.sliceDimensions[i] = String(object.sliceDimensions[i]); + } + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); + } + if (object.explanationSpecs) { + if (!Array.isArray(object.explanationSpecs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: array expected"); + message.explanationSpecs = []; + for (var i = 0; i < object.explanationSpecs.length; ++i) { + if (typeof object.explanationSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: object expected"); + message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); + } + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.biasConfigs != null) { + if (typeof object.biasConfigs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.biasConfigs: object expected"); + message.biasConfigs = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.fromObject(object.biasConfigs); + } return message; }; /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} message ModelEvaluation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataSchemasRequest.toObject = function toObject(message, options) { + ModelEvaluation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.sliceDimensions = []; + object.explanationSpecs = []; + } if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.name = ""; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; + object.modelExplanation = null; + object.displayName = ""; + object.metadata = null; + object.biasConfigs = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.sliceDimensions && message.sliceDimensions.length) { + object.sliceDimensions = []; + for (var j = 0; j < message.sliceDimensions.length; ++j) + object.sliceDimensions[j] = message.sliceDimensions[j]; + } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); + if (message.explanationSpecs && message.explanationSpecs.length) { + object.explanationSpecs = []; + for (var j = 0; j < message.explanationSpecs.length; ++j) + object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.biasConfigs != null && message.hasOwnProperty("biasConfigs")) + object.biasConfigs = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.toObject(message.biasConfigs, options); return object; }; /** - * Converts this ListMetadataSchemasRequest to JSON. + * Converts this ModelEvaluation to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @instance * @returns {Object.} JSON object */ - ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { + ModelEvaluation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataSchemasRequest + * Gets the default type url for ModelEvaluation * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelEvaluation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluation"; }; - return ListMetadataSchemasRequest; - })(); + ModelEvaluation.ModelEvaluationExplanationSpec = (function() { - v1beta1.ListMetadataSchemasResponse = (function() { + /** + * Properties of a ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @interface IModelEvaluationExplanationSpec + * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType + * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec + */ - /** - * Properties of a ListMetadataSchemasResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataSchemasResponse - * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas - * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken - */ + /** + * Constructs a new ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @classdesc Represents a ModelEvaluationExplanationSpec. + * @implements IModelEvaluationExplanationSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + */ + function ModelEvaluationExplanationSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ListMetadataSchemasResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataSchemasResponse. - * @implements IListMetadataSchemasResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set - */ - function ListMetadataSchemasResponse(properties) { - this.metadataSchemas = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListMetadataSchemasResponse metadataSchemas. - * @member {Array.} metadataSchemas - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @instance - */ - ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; + /** + * ModelEvaluationExplanationSpec explanationType. + * @member {string} explanationType + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + */ + ModelEvaluationExplanationSpec.prototype.explanationType = ""; - /** - * ListMetadataSchemasResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @instance - */ - ListMetadataSchemasResponse.prototype.nextPageToken = ""; + /** + * ModelEvaluationExplanationSpec explanationSpec. + * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + */ + ModelEvaluationExplanationSpec.prototype.explanationSpec = null; - /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance - */ - ListMetadataSchemasResponse.create = function create(properties) { - return new ListMetadataSchemasResponse(properties); - }; + /** + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance + */ + ModelEvaluationExplanationSpec.create = function create(properties) { + return new ModelEvaluationExplanationSpec(properties); + }; - /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMetadataSchemasResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadataSchemas != null && message.metadataSchemas.length) - for (var i = 0; i < message.metadataSchemas.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationExplanationSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); + if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) + $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMetadataSchemasResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.metadataSchemas && message.metadataSchemas.length)) - message.metadataSchemas = []; - message.metadataSchemas.push($root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationExplanationSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.explanationType = reader.string(); + break; + } + case 2: { + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListMetadataSchemasResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMetadataSchemasResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { - if (!Array.isArray(message.metadataSchemas)) - return "metadataSchemas: array expected"; - for (var i = 0; i < message.metadataSchemas.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchemas[i]); + /** + * Verifies a ModelEvaluationExplanationSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelEvaluationExplanationSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + if (!$util.isString(message.explanationType)) + return "explanationType: string expected"; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); if (error) - return "metadataSchemas." + error; + return "explanationSpec." + error; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return null; + }; - /** - * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse - */ - ListMetadataSchemasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) + /** + * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + */ + ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); + if (object.explanationType != null) + message.explanationType = String(object.explanationType); + if (object.explanationSpec != null) { + if (typeof object.explanationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); + } + return message; + }; + + /** + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.explanationType = ""; + object.explanationSpec = null; + } + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + object.explanationType = message.explanationType; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) + object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); - if (object.metadataSchemas) { - if (!Array.isArray(object.metadataSchemas)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: array expected"); - message.metadataSchemas = []; - for (var i = 0; i < object.metadataSchemas.length; ++i) { - if (typeof object.metadataSchemas[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: object expected"); - message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchemas[i]); + }; + + /** + * Converts this ModelEvaluationExplanationSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + * @returns {Object.} JSON object + */ + ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelEvaluationExplanationSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelEvaluationExplanationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec"; + }; - /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListMetadataSchemasResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metadataSchemas = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataSchemas && message.metadataSchemas.length) { - object.metadataSchemas = []; - for (var j = 0; j < message.metadataSchemas.length; ++j) - object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchemas[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + return ModelEvaluationExplanationSpec; + })(); - /** - * Converts this ListMetadataSchemasResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @instance - * @returns {Object.} JSON object - */ - ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + ModelEvaluation.BiasConfig = (function() { - /** - * Gets the default type url for ListMetadataSchemasResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListMetadataSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Properties of a BiasConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @interface IBiasConfig + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null} [biasSlices] BiasConfig biasSlices + * @property {Array.|null} [labels] BiasConfig labels + */ + + /** + * Constructs a new BiasConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @classdesc Represents a BiasConfig. + * @implements IBiasConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig=} [properties] Properties to set + */ + function BiasConfig(properties) { + this.labels = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse"; - }; - return ListMetadataSchemasResponse; + /** + * BiasConfig biasSlices. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null|undefined} biasSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @instance + */ + BiasConfig.prototype.biasSlices = null; + + /** + * BiasConfig labels. + * @member {Array.} labels + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @instance + */ + BiasConfig.prototype.labels = $util.emptyArray; + + /** + * Creates a new BiasConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig instance + */ + BiasConfig.create = function create(properties) { + return new BiasConfig(properties); + }; + + /** + * Encodes the specified BiasConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig} message BiasConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BiasConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.biasSlices != null && Object.hasOwnProperty.call(message, "biasSlices")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.encode(message.biasSlices, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.labels != null && message.labels.length) + for (var i = 0; i < message.labels.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.labels[i]); + return writer; + }; + + /** + * Encodes the specified BiasConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig} message BiasConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BiasConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BiasConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BiasConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.biasSlices = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.labels && message.labels.length)) + message.labels = []; + message.labels.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BiasConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BiasConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BiasConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BiasConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.biasSlices != null && message.hasOwnProperty("biasSlices")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify(message.biasSlices); + if (error) + return "biasSlices." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!Array.isArray(message.labels)) + return "labels: array expected"; + for (var i = 0; i < message.labels.length; ++i) + if (!$util.isString(message.labels[i])) + return "labels: string[] expected"; + } + return null; + }; + + /** + * Creates a BiasConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig + */ + BiasConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig(); + if (object.biasSlices != null) { + if (typeof object.biasSlices !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.biasSlices: object expected"); + message.biasSlices = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.fromObject(object.biasSlices); + } + if (object.labels) { + if (!Array.isArray(object.labels)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.labels: array expected"); + message.labels = []; + for (var i = 0; i < object.labels.length; ++i) + message.labels[i] = String(object.labels[i]); + } + return message; + }; + + /** + * Creates a plain object from a BiasConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} message BiasConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BiasConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.labels = []; + if (options.defaults) + object.biasSlices = null; + if (message.biasSlices != null && message.hasOwnProperty("biasSlices")) + object.biasSlices = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.toObject(message.biasSlices, options); + if (message.labels && message.labels.length) { + object.labels = []; + for (var j = 0; j < message.labels.length; ++j) + object.labels[j] = message.labels[j]; + } + return object; + }; + + /** + * Converts this BiasConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @instance + * @returns {Object.} JSON object + */ + BiasConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BiasConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BiasConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig"; + }; + + return BiasConfig; + })(); + + return ModelEvaluation; })(); - v1beta1.QueryArtifactLineageSubgraphRequest = (function() { + v1beta1.ModelEvaluationSlice = (function() { /** - * Properties of a QueryArtifactLineageSubgraphRequest. + * Properties of a ModelEvaluationSlice. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQueryArtifactLineageSubgraphRequest - * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact - * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops - * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter + * @interface IModelEvaluationSlice + * @property {string|null} [name] ModelEvaluationSlice name + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice + * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime + * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluationSlice modelExplanation */ /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new ModelEvaluationSlice. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QueryArtifactLineageSubgraphRequest. - * @implements IQueryArtifactLineageSubgraphRequest + * @classdesc Represents a ModelEvaluationSlice. + * @implements IModelEvaluationSlice * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set */ - function QueryArtifactLineageSubgraphRequest(properties) { + function ModelEvaluationSlice(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -385562,103 +388680,145 @@ } /** - * QueryArtifactLineageSubgraphRequest artifact. - * @member {string} artifact - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * ModelEvaluationSlice name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; + ModelEvaluationSlice.prototype.name = ""; /** - * QueryArtifactLineageSubgraphRequest maxHops. - * @member {number} maxHops - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * ModelEvaluationSlice slice. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null|undefined} slice + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; + ModelEvaluationSlice.prototype.slice = null; /** - * QueryArtifactLineageSubgraphRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * ModelEvaluationSlice metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.filter = ""; + ModelEvaluationSlice.prototype.metricsSchemaUri = ""; /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * ModelEvaluationSlice metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.metrics = null; + + /** + * ModelEvaluationSlice createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.createTime = null; + + /** + * ModelEvaluationSlice modelExplanation. + * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.modelExplanation = null; + + /** + * Creates a new ModelEvaluationSlice instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice instance */ - QueryArtifactLineageSubgraphRequest.create = function create(properties) { - return new QueryArtifactLineageSubgraphRequest(properties); + ModelEvaluationSlice.create = function create(properties) { + return new ModelEvaluationSlice(properties); }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encode = function encode(message, writer) { + ModelEvaluationSlice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); - if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.slice != null && Object.hasOwnProperty.call(message, "slice")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { + ModelEvaluationSlice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.artifact = reader.string(); + message.name = reader.string(); break; } case 2: { - message.maxHops = reader.int32(); + message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); break; } case 3: { - message.filter = reader.string(); + message.metricsSchemaUri = reader.string(); + break; + } + case 4: { + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); break; } default: @@ -385670,551 +388830,286 @@ }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies a ModelEvaluationSlice message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryArtifactLineageSubgraphRequest.verify = function verify(message) { + ModelEvaluationSlice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) - if (!$util.isString(message.artifact)) - return "artifact: string expected"; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - if (!$util.isInteger(message.maxHops)) - return "maxHops: integer expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.slice != null && message.hasOwnProperty("slice")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify(message.slice); + if (error) + return "slice." + error; + } + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); + if (error) + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } return null; }; /** - * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice */ - QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + ModelEvaluationSlice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); - if (object.artifact != null) - message.artifact = String(object.artifact); - if (object.maxHops != null) - message.maxHops = object.maxHops | 0; - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); + if (object.name != null) + message.name = String(object.name); + if (object.slice != null) { + if (typeof object.slice !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.slice: object expected"); + message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.fromObject(object.slice); + } + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); + } return message; }; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} message ModelEvaluationSlice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { + ModelEvaluationSlice.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.artifact = ""; - object.maxHops = 0; - object.filter = ""; + object.name = ""; + object.slice = null; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; + object.modelExplanation = null; } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = message.artifact; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - object.maxHops = message.maxHops; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.slice != null && message.hasOwnProperty("slice")) + object.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.toObject(message.slice, options); + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); return object; }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this ModelEvaluationSlice to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @instance * @returns {Object.} JSON object */ - QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { + ModelEvaluationSlice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryArtifactLineageSubgraphRequest + * Gets the default type url for ModelEvaluationSlice * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryArtifactLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelEvaluationSlice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice"; }; - return QueryArtifactLineageSubgraphRequest; - })(); - - v1beta1.MetadataStore = (function() { + ModelEvaluationSlice.Slice = (function() { - /** - * Properties of a MetadataStore. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMetadataStore - * @property {string|null} [name] MetadataStore name - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec - * @property {string|null} [description] MetadataStore description - * @property {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state - */ + /** + * Properties of a Slice. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @interface ISlice + * @property {string|null} [dimension] Slice dimension + * @property {string|null} [value] Slice value + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null} [sliceSpec] Slice sliceSpec + */ - /** - * Constructs a new MetadataStore. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MetadataStore. - * @implements IMetadataStore - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set - */ - function MetadataStore(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Slice. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @classdesc Represents a Slice. + * @implements ISlice + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + */ + function Slice(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MetadataStore name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.name = ""; + /** + * Slice dimension. + * @member {string} dimension + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.dimension = ""; - /** - * MetadataStore createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.createTime = null; + /** + * Slice value. + * @member {string} value + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.value = ""; - /** - * MetadataStore updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.updateTime = null; - - /** - * MetadataStore encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.encryptionSpec = null; - - /** - * MetadataStore description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.description = ""; - - /** - * MetadataStore state. - * @member {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null|undefined} state - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.state = null; - - /** - * Creates a new MetadataStore instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore instance - */ - MetadataStore.create = function create(properties) { - return new MetadataStore(properties); - }; - - /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStore.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetadataStore message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStore.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 6: { - message.description = reader.string(); - break; - } - case 7: { - message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStore.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetadataStore message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataStore.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify(message.state); - if (error) - return "state." + error; - } - return null; - }; - - /** - * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore - */ - MetadataStore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.description != null) - message.description = String(object.description); - if (object.state != null) { - if (typeof object.state !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.state: object expected"); - message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.fromObject(object.state); - } - return message; - }; - - /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore} message MetadataStore - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataStore.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.description = ""; - object.state = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.toObject(message.state, options); - return object; - }; - - /** - * Converts this MetadataStore to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - * @returns {Object.} JSON object - */ - MetadataStore.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MetadataStore - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetadataStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetadataStore"; - }; - - MetadataStore.MetadataStoreState = (function() { - - /** - * Properties of a MetadataStoreState. - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @interface IMetadataStoreState - * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes - */ - - /** - * Constructs a new MetadataStoreState. - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @classdesc Represents a MetadataStoreState. - * @implements IMetadataStoreState - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - */ - function MetadataStoreState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetadataStoreState diskUtilizationBytes. - * @member {number|Long} diskUtilizationBytes - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @instance - */ - MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Slice sliceSpec. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null|undefined} sliceSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.sliceSpec = null; /** - * Creates a new MetadataStoreState instance using the specified properties. + * Creates a new Slice instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState instance + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice instance */ - MetadataStoreState.create = function create(properties) { - return new MetadataStoreState(properties); + Slice.create = function create(properties) { + return new Slice(properties); }; /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStoreState.encode = function encode(message, writer) { + Slice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); + if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.sliceSpec != null && Object.hasOwnProperty.call(message, "sliceSpec")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.encode(message.sliceSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { + Slice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataStoreState message from the specified reader or buffer. + * Decodes a Slice message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStoreState.decode = function decode(reader, length) { + Slice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.diskUtilizationBytes = reader.int64(); + message.dimension = reader.string(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.decode(reader, reader.uint32()); break; } default: @@ -386226,1813 +389121,1287 @@ }; /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * Decodes a Slice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { + Slice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataStoreState message. + * Verifies a Slice message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataStoreState.verify = function verify(message) { + Slice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) - return "diskUtilizationBytes: integer|Long expected"; + if (message.dimension != null && message.hasOwnProperty("dimension")) + if (!$util.isString(message.dimension)) + return "dimension: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify(message.sliceSpec); + if (error) + return "sliceSpec." + error; + } return null; }; /** - * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * Creates a Slice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice */ - MetadataStoreState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + Slice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); - if (object.diskUtilizationBytes != null) - if ($util.Long) - (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; - else if (typeof object.diskUtilizationBytes === "string") - message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); - else if (typeof object.diskUtilizationBytes === "number") - message.diskUtilizationBytes = object.diskUtilizationBytes; - else if (typeof object.diskUtilizationBytes === "object") - message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); + if (object.dimension != null) + message.dimension = String(object.dimension); + if (object.value != null) + message.value = String(object.value); + if (object.sliceSpec != null) { + if (typeof object.sliceSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.sliceSpec: object expected"); + message.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.fromObject(object.sliceSpec); + } return message; }; /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * Creates a plain object from a Slice message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} message MetadataStoreState + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} message Slice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataStoreState.toObject = function toObject(message, options) { + Slice.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.diskUtilizationBytes = options.longs === String ? "0" : 0; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (typeof message.diskUtilizationBytes === "number") - object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; - else - object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; + if (options.defaults) { + object.dimension = ""; + object.value = ""; + object.sliceSpec = null; + } + if (message.dimension != null && message.hasOwnProperty("dimension")) + object.dimension = message.dimension; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) + object.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.toObject(message.sliceSpec, options); return object; }; /** - * Converts this MetadataStoreState to JSON. + * Converts this Slice to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @instance * @returns {Object.} JSON object */ - MetadataStoreState.prototype.toJSON = function toJSON() { + Slice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetadataStoreState + * Gets the default type url for Slice * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetadataStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Slice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice"; }; - return MetadataStoreState; - })(); + Slice.SliceSpec = (function() { - return MetadataStore; - })(); + /** + * Properties of a SliceSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @interface ISliceSpec + * @property {Object.|null} [configs] SliceSpec configs + */ - v1beta1.MigratableResource = (function() { + /** + * Constructs a new SliceSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @classdesc Represents a SliceSpec. + * @implements ISliceSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set + */ + function SliceSpec(properties) { + this.configs = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a MigratableResource. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMigratableResource - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset - * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime - */ + /** + * SliceSpec configs. + * @member {Object.} configs + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @instance + */ + SliceSpec.prototype.configs = $util.emptyObject; - /** - * Constructs a new MigratableResource. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigratableResource. - * @implements IMigratableResource - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set - */ - function MigratableResource(properties) { - if (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 SliceSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec instance + */ + SliceSpec.create = function create(properties) { + return new SliceSpec(properties); + }; - /** - * MigratableResource mlEngineModelVersion. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.mlEngineModelVersion = null; + /** + * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.configs != null && Object.hasOwnProperty.call(message, "configs")) + for (var keys = Object.keys(message.configs), 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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.encode(message.configs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; - /** - * MigratableResource automlModel. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null|undefined} automlModel - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.automlModel = null; + /** + * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * MigratableResource automlDataset. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null|undefined} automlDataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.automlDataset = null; + /** + * Decodes a SliceSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.configs === $util.emptyObject) + message.configs = {}; + 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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.configs[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * MigratableResource dataLabelingDataset. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.dataLabelingDataset = null; + /** + * Decodes a SliceSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * MigratableResource lastMigrateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.lastMigrateTime = null; + /** + * Verifies a SliceSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SliceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.configs != null && message.hasOwnProperty("configs")) { + if (!$util.isObject(message.configs)) + return "configs: object expected"; + var key = Object.keys(message.configs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify(message.configs[key[i]]); + if (error) + return "configs." + error; + } + } + return null; + }; - /** - * MigratableResource lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.lastUpdateTime = null; + /** + * Creates a SliceSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec + */ + SliceSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec(); + if (object.configs) { + if (typeof object.configs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); + message.configs = {}; + for (var keys = Object.keys(object.configs), i = 0; i < keys.length; ++i) { + if (typeof object.configs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); + message.configs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.fromObject(object.configs[keys[i]]); + } + } + return message; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} message SliceSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SliceSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.configs = {}; + var keys2; + if (message.configs && (keys2 = Object.keys(message.configs)).length) { + object.configs = {}; + for (var j = 0; j < keys2.length; ++j) + object.configs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.toObject(message.configs[keys2[j]], options); + } + return object; + }; - /** - * MigratableResource resource. - * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - Object.defineProperty(MigratableResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Converts this SliceSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @instance + * @returns {Object.} JSON object + */ + SliceSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new MigratableResource instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource instance - */ - MigratableResource.create = function create(properties) { - return new MigratableResource(properties); - }; + /** + * Gets the default type url for SliceSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SliceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec"; + }; - /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigratableResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) - $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + SliceSpec.SliceConfig = (function() { - /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a SliceConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @interface ISliceConfig + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null} [value] SliceConfig value + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null} [range] SliceConfig range + * @property {google.protobuf.IBoolValue|null} [allValues] SliceConfig allValues + */ - /** - * Decodes a MigratableResource message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigratableResource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); - break; - } - case 2: { - message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); - break; - } - case 3: { - message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); - break; - } - case 4: { - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); - break; - } - case 5: { - message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + /** + * Constructs a new SliceConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a SliceConfig. + * @implements ISliceConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set + */ + function SliceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigratableResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SliceConfig value. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.value = null; - /** - * Verifies a MigratableResource message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigratableResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); - if (error) - return "mlEngineModelVersion." + error; - } - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify(message.automlModel); - if (error) - return "automlModel." + error; - } - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify(message.automlDataset); - if (error) - return "automlDataset." + error; - } - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); - if (error) - return "dataLabelingDataset." + error; - } - } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); - if (error) - return "lastMigrateTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } - return null; - }; + /** + * SliceConfig range. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null|undefined} range + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.range = null; - /** - * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource - */ - MigratableResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); - if (object.mlEngineModelVersion != null) { - if (typeof object.mlEngineModelVersion !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.mlEngineModelVersion: object expected"); - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); - } - if (object.automlModel != null) { - if (typeof object.automlModel !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlModel: object expected"); - message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.fromObject(object.automlModel); - } - if (object.automlDataset != null) { - if (typeof object.automlDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlDataset: object expected"); - message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); - } - if (object.dataLabelingDataset != null) { - if (typeof object.dataLabelingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.dataLabelingDataset: object expected"); - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); - } - if (object.lastMigrateTime != null) { - if (typeof object.lastMigrateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastMigrateTime: object expected"); - message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } - return message; - }; - - /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource} message MigratableResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigratableResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.lastMigrateTime = null; - object.lastUpdateTime = null; - } - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); - if (options.oneofs) - object.resource = "mlEngineModelVersion"; - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - object.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.toObject(message.automlModel, options); - if (options.oneofs) - object.resource = "automlModel"; - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - object.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); - if (options.oneofs) - object.resource = "automlDataset"; - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - object.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); - if (options.oneofs) - object.resource = "dataLabelingDataset"; - } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) - object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); - return object; - }; - - /** - * Converts this MigratableResource to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - * @returns {Object.} JSON object - */ - MigratableResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * SliceConfig allValues. + * @member {google.protobuf.IBoolValue|null|undefined} allValues + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + SliceConfig.prototype.allValues = null; - /** - * Gets the default type url for MigratableResource - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MigratableResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource"; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - MigratableResource.MlEngineModelVersion = (function() { + /** + * SliceConfig kind. + * @member {"value"|"range"|"allValues"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + */ + Object.defineProperty(SliceConfig.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["value", "range", "allValues"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Properties of a MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IMlEngineModelVersion - * @property {string|null} [endpoint] MlEngineModelVersion endpoint - * @property {string|null} [version] MlEngineModelVersion version - */ + /** + * Creates a new SliceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig instance + */ + SliceConfig.create = function create(properties) { + return new SliceConfig(properties); + }; - /** - * Constructs a new MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents a MlEngineModelVersion. - * @implements IMlEngineModelVersion - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - */ - function MlEngineModelVersion(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.range != null && Object.hasOwnProperty.call(message, "range")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.encode(message.range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allValues != null && Object.hasOwnProperty.call(message, "allValues")) + $root.google.protobuf.BoolValue.encode(message.allValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * MlEngineModelVersion endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.endpoint = ""; + /** + * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SliceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * MlEngineModelVersion version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.version = ""; + /** + * Decodes a SliceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.decode(reader, reader.uint32()); + break; + } + case 2: { + message.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allValues = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance - */ - MlEngineModelVersion.create = function create(properties) { - return new MlEngineModelVersion(properties); - }; + /** + * Decodes a SliceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SliceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - return writer; - }; + /** + * Verifies a SliceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SliceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.kind = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.range != null && message.hasOwnProperty("range")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify(message.range); + if (error) + return "range." + error; + } + } + if (message.allValues != null && message.hasOwnProperty("allValues")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.BoolValue.verify(message.allValues); + if (error) + return "allValues." + error; + } + } + return null; + }; - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a SliceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig + */ + SliceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.value: object expected"); + message.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.fromObject(object.value); + } + if (object.range != null) { + if (typeof object.range !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.range: object expected"); + message.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.fromObject(object.range); + } + if (object.allValues != null) { + if (typeof object.allValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.allValues: object expected"); + message.allValues = $root.google.protobuf.BoolValue.fromObject(object.allValues); + } + return message; + }; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.endpoint = reader.string(); - break; + /** + * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} message SliceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SliceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.toObject(message.value, options); + if (options.oneofs) + object.kind = "value"; } - case 2: { - message.version = reader.string(); - break; + if (message.range != null && message.hasOwnProperty("range")) { + object.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.toObject(message.range, options); + if (options.oneofs) + object.kind = "range"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + if (message.allValues != null && message.hasOwnProperty("allValues")) { + object.allValues = $root.google.protobuf.BoolValue.toObject(message.allValues, options); + if (options.oneofs) + object.kind = "allValues"; + } + return object; + }; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this SliceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @instance + * @returns {Object.} JSON object + */ + SliceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a MlEngineModelVersion message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MlEngineModelVersion.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; + /** + * Gets the default type url for SliceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SliceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig"; + }; - /** - * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - */ - MlEngineModelVersion.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.version != null) - message.version = String(object.version); - return message; - }; + return SliceConfig; + })(); - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MlEngineModelVersion.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.version = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; + SliceSpec.Range = (function() { - /** - * Converts this MlEngineModelVersion to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @instance - * @returns {Object.} JSON object - */ - MlEngineModelVersion.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a Range. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @interface IRange + * @property {number|null} [low] Range low + * @property {number|null} [high] Range high + */ - /** - * Gets the default type url for MlEngineModelVersion - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MlEngineModelVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion"; - }; + /** + * Constructs a new Range. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a Range. + * @implements IRange + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set + */ + function Range(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return MlEngineModelVersion; - })(); + /** + * Range low. + * @member {number} low + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + */ + Range.prototype.low = 0; - MigratableResource.AutomlModel = (function() { + /** + * Range high. + * @member {number} high + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + */ + Range.prototype.high = 0; - /** - * Properties of an AutomlModel. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IAutomlModel - * @property {string|null} [model] AutomlModel model - * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName - */ + /** + * Creates a new Range instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range instance + */ + Range.create = function create(properties) { + return new Range(properties); + }; - /** - * Constructs a new AutomlModel. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents an AutomlModel. - * @implements IAutomlModel - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set - */ - function AutomlModel(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Range.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.low != null && Object.hasOwnProperty.call(message, "low")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.low); + if (message.high != null && Object.hasOwnProperty.call(message, "high")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.high); + return writer; + }; - /** - * AutomlModel model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @instance - */ - AutomlModel.prototype.model = ""; + /** + * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Range.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * AutomlModel modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @instance - */ - AutomlModel.prototype.modelDisplayName = ""; + /** + * Decodes a Range message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Range.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.low = reader.float(); + break; + } + case 2: { + message.high = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new AutomlModel instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel instance - */ - AutomlModel.create = function create(properties) { - return new AutomlModel(properties); - }; + /** + * Decodes a Range message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Range.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlModel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); - return writer; - }; + /** + * Verifies a Range message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Range.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.low != null && message.hasOwnProperty("low")) + if (typeof message.low !== "number") + return "low: number expected"; + if (message.high != null && message.hasOwnProperty("high")) + if (typeof message.high !== "number") + return "high: number expected"; + return null; + }; - /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a Range message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range + */ + Range.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range(); + if (object.low != null) + message.low = Number(object.low); + if (object.high != null) + message.high = Number(object.high); + return message; + }; - /** - * Decodes an AutomlModel message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlModel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.model = reader.string(); - break; - } - case 3: { - message.modelDisplayName = reader.string(); - break; + /** + * Creates a plain object from a Range message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} message Range + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Range.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.low = 0; + object.high = 0; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlModel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.low != null && message.hasOwnProperty("low")) + object.low = options.json && !isFinite(message.low) ? String(message.low) : message.low; + if (message.high != null && message.hasOwnProperty("high")) + object.high = options.json && !isFinite(message.high) ? String(message.high) : message.high; + return object; + }; - /** - * Verifies an AutomlModel message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomlModel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; + /** + * Converts this Range to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @instance + * @returns {Object.} JSON object + */ + Range.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel - */ - AutomlModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; + /** + * Gets the default type url for Range + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Range.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range"; + }; - /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} message AutomlModel - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomlModel.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; - } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - return object; - }; + return Range; + })(); - /** - * Converts this AutomlModel to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @instance - * @returns {Object.} JSON object - */ - AutomlModel.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + SliceSpec.Value = (function() { - /** - * Gets the default type url for AutomlModel - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomlModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel"; - }; + /** + * Properties of a Value. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @interface IValue + * @property {string|null} [stringValue] Value stringValue + * @property {number|null} [floatValue] Value floatValue + */ - return AutomlModel; - })(); + /** + * Constructs a new Value. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - MigratableResource.AutomlDataset = (function() { + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Value.prototype.stringValue = null; - /** - * Properties of an AutomlDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IAutomlDataset - * @property {string|null} [dataset] AutomlDataset dataset - * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName - */ + /** + * Value floatValue. + * @member {number|null|undefined} floatValue + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Value.prototype.floatValue = null; - /** - * Constructs a new AutomlDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents an AutomlDataset. - * @implements IAutomlDataset - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set - */ - function AutomlDataset(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * AutomlDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @instance - */ - AutomlDataset.prototype.dataset = ""; + /** + * Value kind. + * @member {"stringValue"|"floatValue"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["stringValue", "floatValue"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * AutomlDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @instance - */ - AutomlDataset.prototype.datasetDisplayName = ""; - - /** - * Creates a new AutomlDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset instance - */ - AutomlDataset.create = function create(properties) { - return new AutomlDataset(properties); - }; + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; - /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); - return writer; - }; + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); + if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.floatValue); + return writer; + }; - /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an AutomlDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 4: { - message.datasetDisplayName = reader.string(); - break; + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.stringValue = reader.string(); + break; + } + case 2: { + message.floatValue = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutomlDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomlDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - return null; - }; - - /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset - */ - AutomlDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - return message; - }; - - /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} message AutomlDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomlDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; - - /** - * Converts this AutomlDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @instance - * @returns {Object.} JSON object - */ - AutomlDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AutomlDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomlDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset"; - }; - - return AutomlDataset; - })(); - - MigratableResource.DataLabelingDataset = (function() { - - /** - * Properties of a DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IDataLabelingDataset - * @property {string|null} [dataset] DataLabelingDataset dataset - * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName - * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets - */ - - /** - * Constructs a new DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents a DataLabelingDataset. - * @implements IDataLabelingDataset - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - */ - function DataLabelingDataset(properties) { - this.dataLabelingAnnotatedDatasets = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DataLabelingDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataset = ""; - - /** - * DataLabelingDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.datasetDisplayName = ""; - - /** - * DataLabelingDataset dataLabelingAnnotatedDatasets. - * @member {Array.} dataLabelingAnnotatedDatasets - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; - - /** - * Creates a new DataLabelingDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance - */ - DataLabelingDataset.create = function create(properties) { - return new DataLabelingDataset(properties); - }; - - /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); - return writer; - }; + return message; + }; - /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 4: { - message.datasetDisplayName = reader.string(); - break; + /** + * Verifies a Value message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; } - case 3: { - if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) - message.dataLabelingAnnotatedDatasets = []; - message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); - break; + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { - if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) - return "dataLabelingAnnotatedDatasets: array expected"; - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); - if (error) - return "dataLabelingAnnotatedDatasets." + error; - } - } - return null; - }; - - /** - * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset - */ - DataLabelingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - if (object.dataLabelingAnnotatedDatasets) { - if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); - message.dataLabelingAnnotatedDatasets = []; - for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { - if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); - message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} message DataLabelingDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.dataLabelingAnnotatedDatasets = []; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { - object.dataLabelingAnnotatedDatasets = []; - for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) - object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); - } - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; - - /** - * Converts this DataLabelingDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DataLabelingDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataLabelingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset"; - }; - - DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { - - /** - * Properties of a DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @interface IDataLabelingAnnotatedDataset - * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset - * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName - */ - - /** - * Constructs a new DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @classdesc Represents a DataLabelingAnnotatedDataset. - * @implements IDataLabelingAnnotatedDataset - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - */ - function DataLabelingAnnotatedDataset(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DataLabelingAnnotatedDataset annotatedDataset. - * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; - - /** - * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. - * @member {string} annotatedDatasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; - - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance - */ - DataLabelingAnnotatedDataset.create = function create(properties) { - return new DataLabelingAnnotatedDataset(properties); - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); - if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); - return writer; - }; + return null; + }; - /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value(); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.floatValue != null) + message.floatValue = Number(object.floatValue); + return message; + }; - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.annotatedDataset = reader.string(); - break; - } - case 3: { - message.annotatedDatasetDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue; + if (options.oneofs) + object.kind = "floatValue"; } - } - return message; - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingAnnotatedDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingAnnotatedDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - if (!$util.isString(message.annotatedDataset)) - return "annotatedDataset: string expected"; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - if (!$util.isString(message.annotatedDatasetDisplayName)) - return "annotatedDatasetDisplayName: string expected"; - return null; - }; - - /** - * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - */ - DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - if (object.annotatedDataset != null) - message.annotatedDataset = String(object.annotatedDataset); - if (object.annotatedDatasetDisplayName != null) - message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); - return message; - }; + }; - /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.annotatedDataset = ""; - object.annotatedDatasetDisplayName = ""; - } - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - object.annotatedDataset = message.annotatedDataset; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; - return object; - }; + /** + * Converts this Value to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DataLabelingAnnotatedDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value"; + }; - /** - * Gets the default type url for DataLabelingAnnotatedDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataLabelingAnnotatedDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset"; - }; + return Value; + })(); - return DataLabelingAnnotatedDataset; + return SliceSpec; })(); - return DataLabelingDataset; + return Slice; })(); - return MigratableResource; + return ModelEvaluationSlice; })(); - v1beta1.MigrationService = (function() { + v1beta1.ModelGardenService = (function() { /** - * Constructs a new MigrationService service. + * Constructs a new ModelGardenService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigrationService + * @classdesc Represents a ModelGardenService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function MigrationService(rpcImpl, requestDelimited, responseDelimited) { + function ModelGardenService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; + (ModelGardenService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelGardenService; /** - * Creates new MigrationService service using the specified rpc implementation. + * Creates new ModelGardenService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MigrationService} RPC service. Useful where requests and/or responses are streamed. + * @returns {ModelGardenService} RPC service. Useful where requests and/or responses are streamed. */ - MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + ModelGardenService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|searchMigratableResources}. - * @memberof google.cloud.aiplatform.v1beta1.MigrationService - * @typedef SearchMigratableResourcesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|getPublisherModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService + * @typedef GetPublisherModelCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.PublisherModel} [response] PublisherModel */ /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls GetPublisherModel. + * @function getPublisherModel + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} request GetPublisherModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelGardenService.GetPublisherModelCallback} callback Node-style callback called with the error, if any, and PublisherModel * @returns {undefined} * @variation 1 */ - Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { - return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, request, callback); - }, "name", { value: "SearchMigratableResources" }); + Object.defineProperty(ModelGardenService.prototype.getPublisherModel = function getPublisherModel(request, callback) { + return this.rpcCall(getPublisherModel, $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest, $root.google.cloud.aiplatform.v1beta1.PublisherModel, request, callback); + }, "name", { value: "GetPublisherModel" }); /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls GetPublisherModel. + * @function getPublisherModel + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} request GetPublisherModelRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService|batchMigrateResources}. - * @memberof google.cloud.aiplatform.v1beta1.MigrationService - * @typedef BatchMigrateResourcesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|listPublisherModels}. + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService + * @typedef ListPublisherModelsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} [response] ListPublisherModelsResponse */ /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls ListPublisherModels. + * @function listPublisherModels + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} request ListPublisherModelsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModelsCallback} callback Node-style callback called with the error, if any, and ListPublisherModelsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { - return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchMigrateResources" }); + Object.defineProperty(ModelGardenService.prototype.listPublisherModels = function listPublisherModels(request, callback) { + return this.rpcCall(listPublisherModels, $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse, request, callback); + }, "name", { value: "ListPublisherModels" }); /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls ListPublisherModels. + * @function listPublisherModels + * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} request ListPublisherModelsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return MigrationService; + return ModelGardenService; })(); - v1beta1.SearchMigratableResourcesRequest = (function() { + /** + * PublisherModelView enum. + * @name google.cloud.aiplatform.v1beta1.PublisherModelView + * @enum {number} + * @property {number} PUBLISHER_MODEL_VIEW_UNSPECIFIED=0 PUBLISHER_MODEL_VIEW_UNSPECIFIED value + * @property {number} PUBLISHER_MODEL_VIEW_BASIC=1 PUBLISHER_MODEL_VIEW_BASIC value + * @property {number} PUBLISHER_MODEL_VIEW_FULL=2 PUBLISHER_MODEL_VIEW_FULL value + * @property {number} PUBLISHER_MODEL_VERSION_VIEW_BASIC=3 PUBLISHER_MODEL_VERSION_VIEW_BASIC value + */ + v1beta1.PublisherModelView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PUBLISHER_MODEL_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "PUBLISHER_MODEL_VIEW_BASIC"] = 1; + values[valuesById[2] = "PUBLISHER_MODEL_VIEW_FULL"] = 2; + values[valuesById[3] = "PUBLISHER_MODEL_VERSION_VIEW_BASIC"] = 3; + return values; + })(); + + v1beta1.GetPublisherModelRequest = (function() { /** - * Properties of a SearchMigratableResourcesRequest. + * Properties of a GetPublisherModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchMigratableResourcesRequest - * @property {string|null} [parent] SearchMigratableResourcesRequest parent - * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize - * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken - * @property {string|null} [filter] SearchMigratableResourcesRequest filter + * @interface IGetPublisherModelRequest + * @property {string|null} [name] GetPublisherModelRequest name + * @property {string|null} [languageCode] GetPublisherModelRequest languageCode + * @property {google.cloud.aiplatform.v1beta1.PublisherModelView|null} [view] GetPublisherModelRequest view */ /** - * Constructs a new SearchMigratableResourcesRequest. + * Constructs a new GetPublisherModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchMigratableResourcesRequest. - * @implements ISearchMigratableResourcesRequest + * @classdesc Represents a GetPublisherModelRequest. + * @implements IGetPublisherModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest=} [properties] Properties to set */ - function SearchMigratableResourcesRequest(properties) { + function GetPublisherModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -388040,117 +390409,103 @@ } /** - * SearchMigratableResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * GetPublisherModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @instance */ - SearchMigratableResourcesRequest.prototype.parent = ""; + GetPublisherModelRequest.prototype.name = ""; /** - * SearchMigratableResourcesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * GetPublisherModelRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @instance */ - SearchMigratableResourcesRequest.prototype.pageSize = 0; + GetPublisherModelRequest.prototype.languageCode = ""; /** - * SearchMigratableResourcesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * GetPublisherModelRequest view. + * @member {google.cloud.aiplatform.v1beta1.PublisherModelView} view + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @instance */ - SearchMigratableResourcesRequest.prototype.pageToken = ""; + GetPublisherModelRequest.prototype.view = 0; /** - * SearchMigratableResourcesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @instance + * Creates a new GetPublisherModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest instance */ - SearchMigratableResourcesRequest.prototype.filter = ""; + GetPublisherModelRequest.create = function create(properties) { + return new GetPublisherModelRequest(properties); + }; /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance - */ - SearchMigratableResourcesRequest.create = function create(properties) { - return new SearchMigratableResourcesRequest(properties); - }; - - /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. + * Encodes the specified GetPublisherModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} message GetPublisherModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesRequest.encode = function encode(message, writer) { + GetPublisherModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.view); return writer; }; /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. + * Encodes the specified GetPublisherModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} message GetPublisherModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPublisherModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. + * Decodes a GetPublisherModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesRequest.decode = function decode(reader, length) { + GetPublisherModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.languageCode = reader.string(); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.view = reader.int32(); break; } default: @@ -388162,149 +390517,174 @@ }; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPublisherModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + GetPublisherModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesRequest message. + * Verifies a GetPublisherModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesRequest.verify = function verify(message) { + GetPublisherModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPublisherModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest */ - SearchMigratableResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest) + GetPublisherModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; + case "PUBLISHER_MODEL_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "PUBLISHER_MODEL_VIEW_BASIC": + case 1: + message.view = 1; + break; + case "PUBLISHER_MODEL_VIEW_FULL": + case 2: + message.view = 2; + break; + case "PUBLISHER_MODEL_VERSION_VIEW_BASIC": + case 3: + message.view = 3; + break; + } return message; }; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPublisherModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest + * @param {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} message GetPublisherModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesRequest.toObject = function toObject(message, options) { + GetPublisherModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.name = ""; + object.languageCode = ""; + object.view = options.enums === String ? "PUBLISHER_MODEL_VIEW_UNSPECIFIED" : 0; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] === undefined ? message.view : $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] : message.view; return object; }; /** - * Converts this SearchMigratableResourcesRequest to JSON. + * Converts this GetPublisherModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { + GetPublisherModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchMigratableResourcesRequest + * Gets the default type url for GetPublisherModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchMigratableResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPublisherModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetPublisherModelRequest"; }; - return SearchMigratableResourcesRequest; + return GetPublisherModelRequest; })(); - v1beta1.SearchMigratableResourcesResponse = (function() { + v1beta1.ListPublisherModelsRequest = (function() { /** - * Properties of a SearchMigratableResourcesResponse. + * Properties of a ListPublisherModelsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchMigratableResourcesResponse - * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources - * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken + * @interface IListPublisherModelsRequest + * @property {string|null} [parent] ListPublisherModelsRequest parent + * @property {string|null} [filter] ListPublisherModelsRequest filter + * @property {number|null} [pageSize] ListPublisherModelsRequest pageSize + * @property {string|null} [pageToken] ListPublisherModelsRequest pageToken + * @property {google.cloud.aiplatform.v1beta1.PublisherModelView|null} [view] ListPublisherModelsRequest view + * @property {string|null} [orderBy] ListPublisherModelsRequest orderBy + * @property {string|null} [languageCode] ListPublisherModelsRequest languageCode */ /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new ListPublisherModelsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchMigratableResourcesResponse. - * @implements ISearchMigratableResourcesResponse + * @classdesc Represents a ListPublisherModelsRequest. + * @implements IListPublisherModelsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest=} [properties] Properties to set */ - function SearchMigratableResourcesResponse(properties) { - this.migratableResources = []; + function ListPublisherModelsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -388312,92 +390692,159 @@ } /** - * SearchMigratableResourcesResponse migratableResources. - * @member {Array.} migratableResources - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * ListPublisherModelsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @instance */ - SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; + ListPublisherModelsRequest.prototype.parent = ""; /** - * SearchMigratableResourcesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * ListPublisherModelsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @instance */ - SearchMigratableResourcesResponse.prototype.nextPageToken = ""; + ListPublisherModelsRequest.prototype.filter = ""; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * ListPublisherModelsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @instance + */ + ListPublisherModelsRequest.prototype.pageSize = 0; + + /** + * ListPublisherModelsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @instance + */ + ListPublisherModelsRequest.prototype.pageToken = ""; + + /** + * ListPublisherModelsRequest view. + * @member {google.cloud.aiplatform.v1beta1.PublisherModelView} view + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @instance + */ + ListPublisherModelsRequest.prototype.view = 0; + + /** + * ListPublisherModelsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @instance + */ + ListPublisherModelsRequest.prototype.orderBy = ""; + + /** + * ListPublisherModelsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @instance + */ + ListPublisherModelsRequest.prototype.languageCode = ""; + + /** + * Creates a new ListPublisherModelsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest instance */ - SearchMigratableResourcesResponse.create = function create(properties) { - return new SearchMigratableResourcesResponse(properties); + ListPublisherModelsRequest.create = function create(properties) { + return new ListPublisherModelsRequest(properties); }; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified ListPublisherModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} message ListPublisherModelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encode = function encode(message, writer) { + ListPublisherModelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migratableResources != null && message.migratableResources.length) - for (var i = 0; i < message.migratableResources.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.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.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.view); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.languageCode); return writer; }; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified ListPublisherModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} message ListPublisherModelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListPublisherModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a ListPublisherModelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decode = function decode(reader, length) { + ListPublisherModelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.migratableResources && message.migratableResources.length)) - message.migratableResources = []; - message.migratableResources.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.view = reader.int32(); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } + case 7: { + message.languageCode = reader.string(); break; } default: @@ -388409,150 +390856,202 @@ }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPublisherModelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + ListPublisherModelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a ListPublisherModelsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesResponse.verify = function verify(message) { + ListPublisherModelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { - if (!Array.isArray(message.migratableResources)) - return "migratableResources: array expected"; - for (var i = 0; i < message.migratableResources.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResources[i]); - if (error) - return "migratableResources." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.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.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPublisherModelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest */ - SearchMigratableResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) + ListPublisherModelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); - if (object.migratableResources) { - if (!Array.isArray(object.migratableResources)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: array expected"); - message.migratableResources = []; - for (var i = 0; i < object.migratableResources.length; ++i) { - if (typeof object.migratableResources[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: object expected"); - message.migratableResources[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResources[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest(); + 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); + switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; } + break; + case "PUBLISHER_MODEL_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "PUBLISHER_MODEL_VIEW_BASIC": + case 1: + message.view = 1; + break; + case "PUBLISHER_MODEL_VIEW_FULL": + case 2: + message.view = 2; + break; + case "PUBLISHER_MODEL_VERSION_VIEW_BASIC": + case 3: + message.view = 3; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListPublisherModelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} message ListPublisherModelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesResponse.toObject = function toObject(message, options) { + ListPublisherModelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migratableResources = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.migratableResources && message.migratableResources.length) { - object.migratableResources = []; - for (var j = 0; j < message.migratableResources.length; ++j) - object.migratableResources[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResources[j], options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "PUBLISHER_MODEL_VIEW_UNSPECIFIED" : 0; + object.orderBy = ""; + object.languageCode = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] === undefined ? message.view : $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] : message.view; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this ListPublisherModelsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { + ListPublisherModelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchMigratableResourcesResponse + * Gets the default type url for ListPublisherModelsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchMigratableResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPublisherModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest"; }; - return SearchMigratableResourcesResponse; + return ListPublisherModelsRequest; })(); - v1beta1.BatchMigrateResourcesRequest = (function() { + v1beta1.ListPublisherModelsResponse = (function() { /** - * Properties of a BatchMigrateResourcesRequest. + * Properties of a ListPublisherModelsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchMigrateResourcesRequest - * @property {string|null} [parent] BatchMigrateResourcesRequest parent - * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests + * @interface IListPublisherModelsResponse + * @property {Array.|null} [publisherModels] ListPublisherModelsResponse publisherModels + * @property {string|null} [nextPageToken] ListPublisherModelsResponse nextPageToken */ /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new ListPublisherModelsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchMigrateResourcesRequest. - * @implements IBatchMigrateResourcesRequest + * @classdesc Represents a ListPublisherModelsResponse. + * @implements IListPublisherModelsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse=} [properties] Properties to set */ - function BatchMigrateResourcesRequest(properties) { - this.migrateResourceRequests = []; + function ListPublisherModelsResponse(properties) { + this.publisherModels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -388560,92 +391059,92 @@ } /** - * BatchMigrateResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * ListPublisherModelsResponse publisherModels. + * @member {Array.} publisherModels + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @instance */ - BatchMigrateResourcesRequest.prototype.parent = ""; + ListPublisherModelsResponse.prototype.publisherModels = $util.emptyArray; /** - * BatchMigrateResourcesRequest migrateResourceRequests. - * @member {Array.} migrateResourceRequests - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * ListPublisherModelsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @instance */ - BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; + ListPublisherModelsResponse.prototype.nextPageToken = ""; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. + * Creates a new ListPublisherModelsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse instance */ - BatchMigrateResourcesRequest.create = function create(properties) { - return new BatchMigrateResourcesRequest(properties); + ListPublisherModelsResponse.create = function create(properties) { + return new ListPublisherModelsResponse(properties); }; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * Encodes the specified ListPublisherModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse} message ListPublisherModelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encode = function encode(message, writer) { + ListPublisherModelsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.migrateResourceRequests != null && message.migrateResourceRequests.length) - for (var i = 0; i < message.migrateResourceRequests.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.publisherModels != null && message.publisherModels.length) + for (var i = 0; i < message.publisherModels.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.encode(message.publisherModels[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 BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * Encodes the specified ListPublisherModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse} message ListPublisherModelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPublisherModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a ListPublisherModelsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decode = function decode(reader, length) { + ListPublisherModelsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.publisherModels && message.publisherModels.length)) + message.publisherModels = []; + message.publisherModels.push($root.google.cloud.aiplatform.v1beta1.PublisherModel.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) - message.migrateResourceRequests = []; - message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32())); + message.nextPageToken = reader.string(); break; } default: @@ -388657,151 +391156,158 @@ }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPublisherModelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + ListPublisherModelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a ListPublisherModelsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesRequest.verify = function verify(message) { + ListPublisherModelsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { - if (!Array.isArray(message.migrateResourceRequests)) - return "migrateResourceRequests: array expected"; - for (var i = 0; i < message.migrateResourceRequests.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); + if (message.publisherModels != null && message.hasOwnProperty("publisherModels")) { + if (!Array.isArray(message.publisherModels)) + return "publisherModels: array expected"; + for (var i = 0; i < message.publisherModels.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.verify(message.publisherModels[i]); if (error) - return "migrateResourceRequests." + error; + return "publisherModels." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPublisherModelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse */ - BatchMigrateResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest) + ListPublisherModelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.migrateResourceRequests) { - if (!Array.isArray(object.migrateResourceRequests)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); - message.migrateResourceRequests = []; - for (var i = 0; i < object.migrateResourceRequests.length; ++i) { - if (typeof object.migrateResourceRequests[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); - message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse(); + if (object.publisherModels) { + if (!Array.isArray(object.publisherModels)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.publisherModels: array expected"); + message.publisherModels = []; + for (var i = 0; i < object.publisherModels.length; ++i) { + if (typeof object.publisherModels[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.publisherModels: object expected"); + message.publisherModels[i] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.fromObject(object.publisherModels[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPublisherModelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest + * @param {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} message ListPublisherModelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesRequest.toObject = function toObject(message, options) { + ListPublisherModelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.migrateResourceRequests = []; + object.publisherModels = []; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.migrateResourceRequests && message.migrateResourceRequests.length) { - object.migrateResourceRequests = []; - for (var j = 0; j < message.migrateResourceRequests.length; ++j) - object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); + object.nextPageToken = ""; + if (message.publisherModels && message.publisherModels.length) { + object.publisherModels = []; + for (var j = 0; j < message.publisherModels.length; ++j) + object.publisherModels[j] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.toObject(message.publisherModels[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this ListPublisherModelsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { + ListPublisherModelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesRequest + * Gets the default type url for ListPublisherModelsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPublisherModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse"; }; - return BatchMigrateResourcesRequest; + return ListPublisherModelsResponse; })(); - v1beta1.MigrateResourceRequest = (function() { + v1beta1.PublisherModel = (function() { /** - * Properties of a MigrateResourceRequest. + * Properties of a PublisherModel. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMigrateResourceRequest - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig + * @interface IPublisherModel + * @property {string|null} [name] PublisherModel name + * @property {string|null} [versionId] PublisherModel versionId + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|null} [openSourceCategory] PublisherModel openSourceCategory + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null} [parent] PublisherModel parent + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null} [supportedActions] PublisherModel supportedActions + * @property {Array.|null} [frameworks] PublisherModel frameworks + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|null} [launchStage] PublisherModel launchStage + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|null} [versionState] PublisherModel versionState + * @property {string|null} [publisherModelTemplate] PublisherModel publisherModelTemplate + * @property {google.cloud.aiplatform.v1beta1.IPredictSchemata|null} [predictSchemata] PublisherModel predictSchemata */ /** - * Constructs a new MigrateResourceRequest. + * Constructs a new PublisherModel. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigrateResourceRequest. - * @implements IMigrateResourceRequest + * @classdesc Represents a PublisherModel. + * @implements IPublisherModel * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPublisherModel=} [properties] Properties to set */ - function MigrateResourceRequest(properties) { + function PublisherModel(properties) { + this.frameworks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -388809,131 +391315,204 @@ } /** - * MigrateResourceRequest migrateMlEngineModelVersionConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * PublisherModel name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @instance */ - MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; + PublisherModel.prototype.name = ""; /** - * MigrateResourceRequest migrateAutomlModelConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * PublisherModel versionId. + * @member {string} versionId + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @instance */ - MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; + PublisherModel.prototype.versionId = ""; /** - * MigrateResourceRequest migrateAutomlDatasetConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * PublisherModel openSourceCategory. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory} openSourceCategory + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @instance */ - MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; + PublisherModel.prototype.openSourceCategory = 0; /** - * MigrateResourceRequest migrateDataLabelingDatasetConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * PublisherModel parent. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null|undefined} parent + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @instance */ - MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; + PublisherModel.prototype.parent = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * PublisherModel supportedActions. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null|undefined} supportedActions + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @instance + */ + PublisherModel.prototype.supportedActions = null; /** - * MigrateResourceRequest request. - * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * PublisherModel frameworks. + * @member {Array.} frameworks + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @instance */ - Object.defineProperty(MigrateResourceRequest.prototype, "request", { - get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + PublisherModel.prototype.frameworks = $util.emptyArray; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * PublisherModel launchStage. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage} launchStage + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @instance + */ + PublisherModel.prototype.launchStage = 0; + + /** + * PublisherModel versionState. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.VersionState} versionState + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @instance + */ + PublisherModel.prototype.versionState = 0; + + /** + * PublisherModel publisherModelTemplate. + * @member {string} publisherModelTemplate + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @instance + */ + PublisherModel.prototype.publisherModelTemplate = ""; + + /** + * PublisherModel predictSchemata. + * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @instance + */ + PublisherModel.prototype.predictSchemata = null; + + /** + * Creates a new PublisherModel instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPublisherModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel instance */ - MigrateResourceRequest.create = function create(properties) { - return new MigrateResourceRequest(properties); + PublisherModel.create = function create(properties) { + return new PublisherModel(properties); }; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified PublisherModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPublisherModel} message PublisherModel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encode = function encode(message, writer) { + PublisherModel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionId); + if (message.openSourceCategory != null && Object.hasOwnProperty.call(message, "openSourceCategory")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.openSourceCategory); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.encode(message.parent, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.supportedActions != null && Object.hasOwnProperty.call(message, "supportedActions")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.encode(message.supportedActions, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.frameworks != null && message.frameworks.length) + for (var i = 0; i < message.frameworks.length; ++i) + writer.uint32(/* id 23, wireType 2 =*/186).string(message.frameworks[i]); + if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) + writer.uint32(/* id 29, wireType 0 =*/232).int32(message.launchStage); + if (message.publisherModelTemplate != null && Object.hasOwnProperty.call(message, "publisherModelTemplate")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.publisherModelTemplate); + if (message.predictSchemata != null && Object.hasOwnProperty.call(message, "predictSchemata")) + $root.google.cloud.aiplatform.v1beta1.PredictSchemata.encode(message.predictSchemata, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.versionState != null && Object.hasOwnProperty.call(message, "versionState")) + writer.uint32(/* id 37, wireType 0 =*/296).int32(message.versionState); return writer; }; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified PublisherModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPublisherModel} message PublisherModel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + PublisherModel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes a PublisherModel message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decode = function decode(reader, length) { + PublisherModel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); + message.versionId = reader.string(); break; } - case 3: { - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); + case 7: { + message.openSourceCategory = reader.int32(); break; } - case 4: { - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); + case 14: { + message.parent = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.decode(reader, reader.uint32()); + break; + } + case 19: { + message.supportedActions = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.decode(reader, reader.uint32()); + break; + } + case 23: { + if (!(message.frameworks && message.frameworks.length)) + message.frameworks = []; + message.frameworks.push(reader.string()); + break; + } + case 29: { + message.launchStage = reader.int32(); + break; + } + case 37: { + message.versionState = reader.int32(); + break; + } + case 30: { + message.publisherModelTemplate = reader.string(); + break; + } + case 31: { + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.decode(reader, reader.uint32()); break; } default: @@ -388945,191 +391524,320 @@ }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a PublisherModel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { + PublisherModel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceRequest message. + * Verifies a PublisherModel message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceRequest.verify = function verify(message) { + PublisherModel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); - if (error) - return "migrateMlEngineModelVersionConfig." + error; - } - } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); - if (error) - return "migrateAutomlModelConfig." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.versionId != null && message.hasOwnProperty("versionId")) + if (!$util.isString(message.versionId)) + return "versionId: string expected"; + if (message.openSourceCategory != null && message.hasOwnProperty("openSourceCategory")) + switch (message.openSourceCategory) { + default: + return "openSourceCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } + if (message.parent != null && message.hasOwnProperty("parent")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify(message.parent); + if (error) + return "parent." + error; } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); - if (error) - return "migrateAutomlDatasetConfig." + error; - } + if (message.supportedActions != null && message.hasOwnProperty("supportedActions")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify(message.supportedActions); + if (error) + return "supportedActions." + error; } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); - if (error) - return "migrateDataLabelingDatasetConfig." + error; - } + if (message.frameworks != null && message.hasOwnProperty("frameworks")) { + if (!Array.isArray(message.frameworks)) + return "frameworks: array expected"; + for (var i = 0; i < message.frameworks.length; ++i) + if (!$util.isString(message.frameworks[i])) + return "frameworks: string[] expected"; } - return null; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + switch (message.launchStage) { + default: + return "launchStage: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.versionState != null && message.hasOwnProperty("versionState")) + switch (message.versionState) { + default: + return "versionState: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.publisherModelTemplate != null && message.hasOwnProperty("publisherModelTemplate")) + if (!$util.isString(message.publisherModelTemplate)) + return "publisherModelTemplate: string expected"; + if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { + var error = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.verify(message.predictSchemata); + if (error) + return "predictSchemata." + error; + } + return null; }; /** - * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PublisherModel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel */ - MigrateResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest) + PublisherModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); - if (object.migrateMlEngineModelVersionConfig != null) { - if (typeof object.migrateMlEngineModelVersionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel(); + if (object.name != null) + message.name = String(object.name); + if (object.versionId != null) + message.versionId = String(object.versionId); + switch (object.openSourceCategory) { + default: + if (typeof object.openSourceCategory === "number") { + message.openSourceCategory = object.openSourceCategory; + break; + } + break; + case "OPEN_SOURCE_CATEGORY_UNSPECIFIED": + case 0: + message.openSourceCategory = 0; + break; + case "PROPRIETARY": + case 1: + message.openSourceCategory = 1; + break; + case "GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT": + case 2: + message.openSourceCategory = 2; + break; + case "THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT": + case 3: + message.openSourceCategory = 3; + break; + case "GOOGLE_OWNED_OSS": + case 4: + message.openSourceCategory = 4; + break; + case "THIRD_PARTY_OWNED_OSS": + case 5: + message.openSourceCategory = 5; + break; } - if (object.migrateAutomlModelConfig != null) { - if (typeof object.migrateAutomlModelConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); + if (object.parent != null) { + if (typeof object.parent !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.parent: object expected"); + message.parent = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.fromObject(object.parent); } - if (object.migrateAutomlDatasetConfig != null) { - if (typeof object.migrateAutomlDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); + if (object.supportedActions != null) { + if (typeof object.supportedActions !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.supportedActions: object expected"); + message.supportedActions = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.fromObject(object.supportedActions); } - if (object.migrateDataLabelingDatasetConfig != null) { - if (typeof object.migrateDataLabelingDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); + if (object.frameworks) { + if (!Array.isArray(object.frameworks)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.frameworks: array expected"); + message.frameworks = []; + for (var i = 0; i < object.frameworks.length; ++i) + message.frameworks[i] = String(object.frameworks[i]); + } + switch (object.launchStage) { + default: + if (typeof object.launchStage === "number") { + message.launchStage = object.launchStage; + break; + } + break; + case "LAUNCH_STAGE_UNSPECIFIED": + case 0: + message.launchStage = 0; + break; + case "EXPERIMENTAL": + case 1: + message.launchStage = 1; + break; + case "PRIVATE_PREVIEW": + case 2: + message.launchStage = 2; + break; + case "PUBLIC_PREVIEW": + case 3: + message.launchStage = 3; + break; + case "GA": + case 4: + message.launchStage = 4; + break; + } + switch (object.versionState) { + default: + if (typeof object.versionState === "number") { + message.versionState = object.versionState; + break; + } + break; + case "VERSION_STATE_UNSPECIFIED": + case 0: + message.versionState = 0; + break; + case "VERSION_STATE_STABLE": + case 1: + message.versionState = 1; + break; + case "VERSION_STATE_UNSTABLE": + case 2: + message.versionState = 2; + break; + } + if (object.publisherModelTemplate != null) + message.publisherModelTemplate = String(object.publisherModelTemplate); + if (object.predictSchemata != null) { + if (typeof object.predictSchemata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.predictSchemata: object expected"); + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.fromObject(object.predictSchemata); } return message; }; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a PublisherModel message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} message MigrateResourceRequest + * @param {google.cloud.aiplatform.v1beta1.PublisherModel} message PublisherModel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceRequest.toObject = function toObject(message, options) { + PublisherModel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); - if (options.oneofs) - object.request = "migrateMlEngineModelVersionConfig"; - } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); - if (options.oneofs) - object.request = "migrateAutomlModelConfig"; - } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); - if (options.oneofs) - object.request = "migrateAutomlDatasetConfig"; + if (options.arrays || options.defaults) + object.frameworks = []; + if (options.defaults) { + object.name = ""; + object.versionId = ""; + object.openSourceCategory = options.enums === String ? "OPEN_SOURCE_CATEGORY_UNSPECIFIED" : 0; + object.parent = null; + object.supportedActions = null; + object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; + object.publisherModelTemplate = ""; + object.predictSchemata = null; + object.versionState = options.enums === String ? "VERSION_STATE_UNSPECIFIED" : 0; } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); - if (options.oneofs) - object.request = "migrateDataLabelingDatasetConfig"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.versionId != null && message.hasOwnProperty("versionId")) + object.versionId = message.versionId; + if (message.openSourceCategory != null && message.hasOwnProperty("openSourceCategory")) + object.openSourceCategory = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory[message.openSourceCategory] === undefined ? message.openSourceCategory : $root.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory[message.openSourceCategory] : message.openSourceCategory; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.toObject(message.parent, options); + if (message.supportedActions != null && message.hasOwnProperty("supportedActions")) + object.supportedActions = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.toObject(message.supportedActions, options); + if (message.frameworks && message.frameworks.length) { + object.frameworks = []; + for (var j = 0; j < message.frameworks.length; ++j) + object.frameworks[j] = message.frameworks[j]; } + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + object.launchStage = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage[message.launchStage] : message.launchStage; + if (message.publisherModelTemplate != null && message.hasOwnProperty("publisherModelTemplate")) + object.publisherModelTemplate = message.publisherModelTemplate; + if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) + object.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.toObject(message.predictSchemata, options); + if (message.versionState != null && message.hasOwnProperty("versionState")) + object.versionState = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModel.VersionState[message.versionState] === undefined ? message.versionState : $root.google.cloud.aiplatform.v1beta1.PublisherModel.VersionState[message.versionState] : message.versionState; return object; }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this PublisherModel to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @instance * @returns {Object.} JSON object */ - MigrateResourceRequest.prototype.toJSON = function toJSON() { + PublisherModel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateResourceRequest + * Gets the default type url for PublisherModel * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PublisherModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel"; }; - MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { + PublisherModel.ResourceReference = (function() { /** - * Properties of a MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateMlEngineModelVersionConfig - * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint - * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion - * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName + * Properties of a ResourceReference. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @interface IResourceReference + * @property {string|null} [uri] ResourceReference uri + * @property {string|null} [resourceName] ResourceReference resourceName + * @property {string|null} [useCase] ResourceReference useCase + * @property {string|null} [description] ResourceReference description */ /** - * Constructs a new MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateMlEngineModelVersionConfig. - * @implements IMigrateMlEngineModelVersionConfig + * Constructs a new ResourceReference. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @classdesc Represents a ResourceReference. + * @implements IResourceReference * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference=} [properties] Properties to set */ - function MigrateMlEngineModelVersionConfig(properties) { + function ResourceReference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -389137,103 +391845,131 @@ } /** - * MigrateMlEngineModelVersionConfig endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * ResourceReference uri. + * @member {string|null|undefined} uri + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @instance */ - MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; + ResourceReference.prototype.uri = null; /** - * MigrateMlEngineModelVersionConfig modelVersion. - * @member {string} modelVersion - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * ResourceReference resourceName. + * @member {string|null|undefined} resourceName + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @instance */ - MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; + ResourceReference.prototype.resourceName = null; /** - * MigrateMlEngineModelVersionConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * ResourceReference useCase. + * @member {string|null|undefined} useCase + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @instance */ - MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; + ResourceReference.prototype.useCase = null; /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * ResourceReference description. + * @member {string|null|undefined} description + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + * @instance + */ + ResourceReference.prototype.description = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResourceReference reference. + * @member {"uri"|"resourceName"|"useCase"|"description"|undefined} reference + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + * @instance + */ + Object.defineProperty(ResourceReference.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["uri", "resourceName", "useCase", "description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResourceReference instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference instance */ - MigrateMlEngineModelVersionConfig.create = function create(properties) { - return new MigrateMlEngineModelVersionConfig(properties); + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); }; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * Encodes the specified ResourceReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference} message ResourceReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateMlEngineModelVersionConfig.encode = function encode(message, writer) { + ResourceReference.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.resourceName != null && Object.hasOwnProperty.call(message, "resourceName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceName); + if (message.useCase != null && Object.hasOwnProperty.call(message, "useCase")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.useCase); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); return writer; }; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference} message ResourceReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * Decodes a ResourceReference message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { + ResourceReference.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.uri = reader.string(); break; } case 2: { - message.modelVersion = reader.string(); + message.resourceName = reader.string(); break; } case 3: { - message.modelDisplayName = reader.string(); + message.useCase = reader.string(); + break; + } + case 4: { + message.description = reader.string(); break; } default: @@ -389245,140 +391981,169 @@ }; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { + ResourceReference.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateMlEngineModelVersionConfig message. + * Verifies a ResourceReference message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateMlEngineModelVersionConfig.verify = function verify(message) { + ResourceReference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - if (!$util.isString(message.modelVersion)) - return "modelVersion: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + var properties = {}; + if (message.uri != null && message.hasOwnProperty("uri")) { + properties.reference = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.resourceName != null && message.hasOwnProperty("resourceName")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + if (!$util.isString(message.resourceName)) + return "resourceName: string expected"; + } + if (message.useCase != null && message.hasOwnProperty("useCase")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + if (!$util.isString(message.useCase)) + return "useCase: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } return null; }; /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference */ - MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.modelVersion != null) - message.modelVersion = String(object.modelVersion); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.resourceName != null) + message.resourceName = String(object.resourceName); + if (object.useCase != null) + message.useCase = String(object.useCase); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} message ResourceReference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { + ResourceReference.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.modelVersion = ""; - object.modelDisplayName = ""; + if (message.uri != null && message.hasOwnProperty("uri")) { + object.uri = message.uri; + if (options.oneofs) + object.reference = "uri"; + } + if (message.resourceName != null && message.hasOwnProperty("resourceName")) { + object.resourceName = message.resourceName; + if (options.oneofs) + object.reference = "resourceName"; + } + if (message.useCase != null && message.hasOwnProperty("useCase")) { + object.useCase = message.useCase; + if (options.oneofs) + object.reference = "useCase"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object.reference = "description"; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - object.modelVersion = message.modelVersion; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; return object; }; /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. + * Converts this ResourceReference to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @instance * @returns {Object.} JSON object */ - MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { + ResourceReference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateMlEngineModelVersionConfig + * Gets the default type url for ResourceReference * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateMlEngineModelVersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference"; }; - return MigrateMlEngineModelVersionConfig; + return ResourceReference; })(); - MigrateResourceRequest.MigrateAutomlModelConfig = (function() { + PublisherModel.Parent = (function() { /** - * Properties of a MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateAutomlModelConfig - * @property {string|null} [model] MigrateAutomlModelConfig model - * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName + * Properties of a Parent. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @interface IParent + * @property {string|null} [displayName] Parent displayName + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null} [reference] Parent reference */ /** - * Constructs a new MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlModelConfig. - * @implements IMigrateAutomlModelConfig + * Constructs a new Parent. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @classdesc Represents a Parent. + * @implements IParent * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent=} [properties] Properties to set */ - function MigrateAutomlModelConfig(properties) { + function Parent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -389386,89 +392151,89 @@ } /** - * MigrateAutomlModelConfig model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * Parent displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @instance */ - MigrateAutomlModelConfig.prototype.model = ""; + Parent.prototype.displayName = ""; /** - * MigrateAutomlModelConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * Parent reference. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null|undefined} reference + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @instance */ - MigrateAutomlModelConfig.prototype.modelDisplayName = ""; + Parent.prototype.reference = null; /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * Creates a new Parent instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent instance */ - MigrateAutomlModelConfig.create = function create(properties) { - return new MigrateAutomlModelConfig(properties); + Parent.create = function create(properties) { + return new Parent(properties); }; /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * Encodes the specified Parent message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent} message Parent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlModelConfig.encode = function encode(message, writer) { + Parent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.encode(message.reference, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * Encodes the specified Parent message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent} message Parent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { + Parent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * Decodes a Parent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlModelConfig.decode = function decode(reader, length) { + Parent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = reader.string(); + message.displayName = reader.string(); break; } case 2: { - message.modelDisplayName = reader.string(); + message.reference = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.decode(reader, reader.uint32()); break; } default: @@ -389480,132 +392245,137 @@ }; /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * Decodes a Parent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { + Parent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateAutomlModelConfig message. + * Verifies a Parent message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateAutomlModelConfig.verify = function verify(message) { + Parent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.reference != null && message.hasOwnProperty("reference")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify(message.reference); + if (error) + return "reference." + error; + } return null; }; /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Parent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent */ - MigrateAutomlModelConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig) + Parent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.reference != null) { + if (typeof object.reference !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.Parent.reference: object expected"); + message.reference = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.fromObject(object.reference); + } return message; }; /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * Creates a plain object from a Parent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} message Parent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateAutomlModelConfig.toObject = function toObject(message, options) { + Parent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; + object.displayName = ""; + object.reference = null; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.reference != null && message.hasOwnProperty("reference")) + object.reference = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.toObject(message.reference, options); return object; }; /** - * Converts this MigrateAutomlModelConfig to JSON. + * Converts this Parent to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @instance * @returns {Object.} JSON object */ - MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { + Parent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateAutomlModelConfig + * Gets the default type url for Parent * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateAutomlModelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Parent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.Parent"; }; - return MigrateAutomlModelConfig; + return Parent; })(); - MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { + PublisherModel.Documentation = (function() { /** - * Properties of a MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateAutomlDatasetConfig - * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName + * Properties of a Documentation. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @interface IDocumentation + * @property {string|null} [title] Documentation title + * @property {string|null} [content] Documentation content */ /** - * Constructs a new MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlDatasetConfig. - * @implements IMigrateAutomlDatasetConfig + * Constructs a new Documentation. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @classdesc Represents a Documentation. + * @implements IDocumentation * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation=} [properties] Properties to set */ - function MigrateAutomlDatasetConfig(properties) { + function Documentation(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -389613,89 +392383,89 @@ } /** - * MigrateAutomlDatasetConfig dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * Documentation title. + * @member {string} title + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @instance */ - MigrateAutomlDatasetConfig.prototype.dataset = ""; + Documentation.prototype.title = ""; /** - * MigrateAutomlDatasetConfig datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * Documentation content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @instance */ - MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; + Documentation.prototype.content = ""; /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * Creates a new Documentation instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation instance */ - MigrateAutomlDatasetConfig.create = function create(properties) { - return new MigrateAutomlDatasetConfig(properties); + Documentation.create = function create(properties) { + return new Documentation(properties); }; /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * Encodes the specified Documentation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation} message Documentation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlDatasetConfig.encode = function encode(message, writer) { + Documentation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); return writer; }; /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * Encodes the specified Documentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation} message Documentation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + Documentation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * Decodes a Documentation message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlDatasetConfig.decode = function decode(reader, length) { + Documentation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dataset = reader.string(); + message.title = reader.string(); break; } case 2: { - message.datasetDisplayName = reader.string(); + message.content = reader.string(); break; } default: @@ -389707,134 +392477,143 @@ }; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a Documentation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + Documentation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateAutomlDatasetConfig message. + * Verifies a Documentation message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateAutomlDatasetConfig.verify = function verify(message) { + Documentation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.content != null && message.hasOwnProperty("content")) + if (!$util.isString(message.content)) + return "content: string expected"; return null; }; /** - * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Documentation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation */ - MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig) + Documentation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation(); + if (object.title != null) + message.title = String(object.title); + if (object.content != null) + message.content = String(object.content); return message; }; /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a Documentation message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} message Documentation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { + Documentation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; + object.title = ""; + object.content = ""; } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; return object; }; /** - * Converts this MigrateAutomlDatasetConfig to JSON. + * Converts this Documentation to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @instance * @returns {Object.} JSON object */ - MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { + Documentation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateAutomlDatasetConfig + * Gets the default type url for Documentation * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateAutomlDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Documentation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.Documentation"; }; - return MigrateAutomlDatasetConfig; + return Documentation; })(); - MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { + PublisherModel.CallToAction = (function() { /** - * Properties of a MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateDataLabelingDatasetConfig - * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName - * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + * Properties of a CallToAction. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @interface ICallToAction + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null} [viewRestApi] CallToAction viewRestApi + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openNotebook] CallToAction openNotebook + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks|null} [openNotebooks] CallToAction openNotebooks + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [createApplication] CallToAction createApplication + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openFineTuningPipeline] CallToAction openFineTuningPipeline + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null} [openFineTuningPipelines] CallToAction openFineTuningPipelines + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openPromptTuningPipeline] CallToAction openPromptTuningPipeline + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openGenie] CallToAction openGenie + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null} [deploy] CallToAction deploy + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke|null} [deployGke] CallToAction deployGke + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openGenerationAiStudio] CallToAction openGenerationAiStudio + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [requestAccess] CallToAction requestAccess + * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openEvaluationPipeline] CallToAction openEvaluationPipeline */ /** - * Constructs a new MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateDataLabelingDatasetConfig. - * @implements IMigrateDataLabelingDatasetConfig + * Constructs a new CallToAction. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @classdesc Represents a CallToAction. + * @implements ICallToAction * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction=} [properties] Properties to set */ - function MigrateDataLabelingDatasetConfig(properties) { - this.migrateDataLabelingAnnotatedDatasetConfigs = []; + function CallToAction(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -389842,265 +392621,570 @@ } /** - * MigrateDataLabelingDatasetConfig dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * CallToAction viewRestApi. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null|undefined} viewRestApi + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @instance */ - MigrateDataLabelingDatasetConfig.prototype.dataset = ""; + CallToAction.prototype.viewRestApi = null; /** - * MigrateDataLabelingDatasetConfig datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * CallToAction openNotebook. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openNotebook + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @instance */ - MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; + CallToAction.prototype.openNotebook = null; /** - * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. - * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * CallToAction openNotebooks. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks|null|undefined} openNotebooks + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @instance */ - MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; + CallToAction.prototype.openNotebooks = null; /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + * CallToAction createApplication. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} createApplication + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance */ - MigrateDataLabelingDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingDatasetConfig(properties); - }; + CallToAction.prototype.createApplication = null; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * CallToAction openFineTuningPipeline. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openFineTuningPipeline + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance */ - MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + CallToAction.prototype.openFineTuningPipeline = null; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * CallToAction openFineTuningPipelines. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines|null|undefined} openFineTuningPipelines + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance */ - MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + CallToAction.prototype.openFineTuningPipelines = null; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * CallToAction openPromptTuningPipeline. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openPromptTuningPipeline + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance */ - MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 2: { - message.datasetDisplayName = reader.string(); - break; - } - case 3: { - if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + CallToAction.prototype.openPromptTuningPipeline = null; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * CallToAction openGenie. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openGenie + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance */ - MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + CallToAction.prototype.openGenie = null; /** - * Verifies a MigrateDataLabelingDatasetConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * CallToAction deploy. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null|undefined} deploy + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance */ - MigrateDataLabelingDatasetConfig.verify = function verify(message) { + CallToAction.prototype.deploy = null; + + /** + * CallToAction deployGke. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke|null|undefined} deployGke + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.deployGke = null; + + /** + * CallToAction openGenerationAiStudio. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openGenerationAiStudio + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.openGenerationAiStudio = null; + + /** + * CallToAction requestAccess. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} requestAccess + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.requestAccess = null; + + /** + * CallToAction openEvaluationPipeline. + * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openEvaluationPipeline + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance + */ + CallToAction.prototype.openEvaluationPipeline = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CallToAction _openNotebooks. + * @member {"openNotebooks"|undefined} _openNotebooks + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance + */ + Object.defineProperty(CallToAction.prototype, "_openNotebooks", { + get: $util.oneOfGetter($oneOfFields = ["openNotebooks"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * CallToAction _openFineTuningPipelines. + * @member {"openFineTuningPipelines"|undefined} _openFineTuningPipelines + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @instance + */ + Object.defineProperty(CallToAction.prototype, "_openFineTuningPipelines", { + get: $util.oneOfGetter($oneOfFields = ["openFineTuningPipelines"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CallToAction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction instance + */ + CallToAction.create = function create(properties) { + return new CallToAction(properties); + }; + + /** + * Encodes the specified CallToAction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction} message CallToAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CallToAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.viewRestApi != null && Object.hasOwnProperty.call(message, "viewRestApi")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.encode(message.viewRestApi, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.openNotebook != null && Object.hasOwnProperty.call(message, "openNotebook")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openNotebook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.createApplication != null && Object.hasOwnProperty.call(message, "createApplication")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.createApplication, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.openFineTuningPipeline != null && Object.hasOwnProperty.call(message, "openFineTuningPipeline")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openFineTuningPipeline, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.openPromptTuningPipeline != null && Object.hasOwnProperty.call(message, "openPromptTuningPipeline")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openPromptTuningPipeline, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.openGenie != null && Object.hasOwnProperty.call(message, "openGenie")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openGenie, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.deploy != null && Object.hasOwnProperty.call(message, "deploy")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.encode(message.deploy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.openGenerationAiStudio != null && Object.hasOwnProperty.call(message, "openGenerationAiStudio")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openGenerationAiStudio, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.requestAccess != null && Object.hasOwnProperty.call(message, "requestAccess")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.requestAccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.openEvaluationPipeline != null && Object.hasOwnProperty.call(message, "openEvaluationPipeline")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openEvaluationPipeline, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.openNotebooks != null && Object.hasOwnProperty.call(message, "openNotebooks")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.encode(message.openNotebooks, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.openFineTuningPipelines != null && Object.hasOwnProperty.call(message, "openFineTuningPipelines")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.encode(message.openFineTuningPipelines, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.deployGke != null && Object.hasOwnProperty.call(message, "deployGke")) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.encode(message.deployGke, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CallToAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction} message CallToAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CallToAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CallToAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CallToAction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.viewRestApi = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.decode(reader, reader.uint32()); + break; + } + case 2: { + message.openNotebook = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 12: { + message.openNotebooks = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.decode(reader, reader.uint32()); + break; + } + case 3: { + message.createApplication = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 4: { + message.openFineTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 13: { + message.openFineTuningPipelines = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.decode(reader, reader.uint32()); + break; + } + case 5: { + message.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 6: { + message.openGenie = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 7: { + message.deploy = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.decode(reader, reader.uint32()); + break; + } + case 14: { + message.deployGke = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.decode(reader, reader.uint32()); + break; + } + case 8: { + message.openGenerationAiStudio = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 9: { + message.requestAccess = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + case 11: { + message.openEvaluationPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CallToAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CallToAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CallToAction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CallToAction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { - if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) - return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + var properties = {}; + if (message.viewRestApi != null && message.hasOwnProperty("viewRestApi")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify(message.viewRestApi); + if (error) + return "viewRestApi." + error; + } + if (message.openNotebook != null && message.hasOwnProperty("openNotebook")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openNotebook); + if (error) + return "openNotebook." + error; + } + if (message.openNotebooks != null && message.hasOwnProperty("openNotebooks")) { + properties._openNotebooks = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.verify(message.openNotebooks); if (error) - return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + return "openNotebooks." + error; + } + } + if (message.createApplication != null && message.hasOwnProperty("createApplication")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.createApplication); + if (error) + return "createApplication." + error; + } + if (message.openFineTuningPipeline != null && message.hasOwnProperty("openFineTuningPipeline")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openFineTuningPipeline); + if (error) + return "openFineTuningPipeline." + error; + } + if (message.openFineTuningPipelines != null && message.hasOwnProperty("openFineTuningPipelines")) { + properties._openFineTuningPipelines = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify(message.openFineTuningPipelines); + if (error) + return "openFineTuningPipelines." + error; } } + if (message.openPromptTuningPipeline != null && message.hasOwnProperty("openPromptTuningPipeline")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openPromptTuningPipeline); + if (error) + return "openPromptTuningPipeline." + error; + } + if (message.openGenie != null && message.hasOwnProperty("openGenie")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openGenie); + if (error) + return "openGenie." + error; + } + if (message.deploy != null && message.hasOwnProperty("deploy")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify(message.deploy); + if (error) + return "deploy." + error; + } + if (message.deployGke != null && message.hasOwnProperty("deployGke")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.verify(message.deployGke); + if (error) + return "deployGke." + error; + } + if (message.openGenerationAiStudio != null && message.hasOwnProperty("openGenerationAiStudio")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openGenerationAiStudio); + if (error) + return "openGenerationAiStudio." + error; + } + if (message.requestAccess != null && message.hasOwnProperty("requestAccess")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.requestAccess); + if (error) + return "requestAccess." + error; + } + if (message.openEvaluationPipeline != null && message.hasOwnProperty("openEvaluationPipeline")) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openEvaluationPipeline); + if (error) + return "openEvaluationPipeline." + error; + } return null; }; /** - * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CallToAction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction */ - MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + CallToAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - if (object.migrateDataLabelingAnnotatedDatasetConfigs) { - if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction(); + if (object.viewRestApi != null) { + if (typeof object.viewRestApi !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.viewRestApi: object expected"); + message.viewRestApi = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.fromObject(object.viewRestApi); + } + if (object.openNotebook != null) { + if (typeof object.openNotebook !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openNotebook: object expected"); + message.openNotebook = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openNotebook); + } + if (object.openNotebooks != null) { + if (typeof object.openNotebooks !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openNotebooks: object expected"); + message.openNotebooks = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.fromObject(object.openNotebooks); + } + if (object.createApplication != null) { + if (typeof object.createApplication !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.createApplication: object expected"); + message.createApplication = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.createApplication); + } + if (object.openFineTuningPipeline != null) { + if (typeof object.openFineTuningPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openFineTuningPipeline: object expected"); + message.openFineTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openFineTuningPipeline); + } + if (object.openFineTuningPipelines != null) { + if (typeof object.openFineTuningPipelines !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openFineTuningPipelines: object expected"); + message.openFineTuningPipelines = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.fromObject(object.openFineTuningPipelines); + } + if (object.openPromptTuningPipeline != null) { + if (typeof object.openPromptTuningPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openPromptTuningPipeline: object expected"); + message.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openPromptTuningPipeline); + } + if (object.openGenie != null) { + if (typeof object.openGenie !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openGenie: object expected"); + message.openGenie = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openGenie); + } + if (object.deploy != null) { + if (typeof object.deploy !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.deploy: object expected"); + message.deploy = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.fromObject(object.deploy); + } + if (object.deployGke != null) { + if (typeof object.deployGke !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.deployGke: object expected"); + message.deployGke = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.fromObject(object.deployGke); + } + if (object.openGenerationAiStudio != null) { + if (typeof object.openGenerationAiStudio !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openGenerationAiStudio: object expected"); + message.openGenerationAiStudio = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openGenerationAiStudio); + } + if (object.requestAccess != null) { + if (typeof object.requestAccess !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.requestAccess: object expected"); + message.requestAccess = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.requestAccess); + } + if (object.openEvaluationPipeline != null) { + if (typeof object.openEvaluationPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openEvaluationPipeline: object expected"); + message.openEvaluationPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openEvaluationPipeline); } return message; }; /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a CallToAction message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} message CallToAction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + CallToAction.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migrateDataLabelingAnnotatedDatasetConfigs = []; if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; + object.viewRestApi = null; + object.openNotebook = null; + object.createApplication = null; + object.openFineTuningPipeline = null; + object.openPromptTuningPipeline = null; + object.openGenie = null; + object.deploy = null; + object.openGenerationAiStudio = null; + object.requestAccess = null; + object.openEvaluationPipeline = null; + object.deployGke = null; } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { - object.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) - object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); + if (message.viewRestApi != null && message.hasOwnProperty("viewRestApi")) + object.viewRestApi = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.toObject(message.viewRestApi, options); + if (message.openNotebook != null && message.hasOwnProperty("openNotebook")) + object.openNotebook = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openNotebook, options); + if (message.createApplication != null && message.hasOwnProperty("createApplication")) + object.createApplication = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.createApplication, options); + if (message.openFineTuningPipeline != null && message.hasOwnProperty("openFineTuningPipeline")) + object.openFineTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openFineTuningPipeline, options); + if (message.openPromptTuningPipeline != null && message.hasOwnProperty("openPromptTuningPipeline")) + object.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openPromptTuningPipeline, options); + if (message.openGenie != null && message.hasOwnProperty("openGenie")) + object.openGenie = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openGenie, options); + if (message.deploy != null && message.hasOwnProperty("deploy")) + object.deploy = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.toObject(message.deploy, options); + if (message.openGenerationAiStudio != null && message.hasOwnProperty("openGenerationAiStudio")) + object.openGenerationAiStudio = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openGenerationAiStudio, options); + if (message.requestAccess != null && message.hasOwnProperty("requestAccess")) + object.requestAccess = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.requestAccess, options); + if (message.openEvaluationPipeline != null && message.hasOwnProperty("openEvaluationPipeline")) + object.openEvaluationPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openEvaluationPipeline, options); + if (message.openNotebooks != null && message.hasOwnProperty("openNotebooks")) { + object.openNotebooks = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.toObject(message.openNotebooks, options); + if (options.oneofs) + object._openNotebooks = "openNotebooks"; } + if (message.openFineTuningPipelines != null && message.hasOwnProperty("openFineTuningPipelines")) { + object.openFineTuningPipelines = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.toObject(message.openFineTuningPipelines, options); + if (options.oneofs) + object._openFineTuningPipelines = "openFineTuningPipelines"; + } + if (message.deployGke != null && message.hasOwnProperty("deployGke")) + object.deployGke = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.toObject(message.deployGke, options); return object; }; /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. + * Converts this CallToAction to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @instance * @returns {Object.} JSON object */ - MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + CallToAction.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateDataLabelingDatasetConfig + * Gets the default type url for CallToAction * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateDataLabelingDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CallToAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction"; }; - MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { + CallToAction.RegionalResourceReferences = (function() { /** - * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @interface IMigrateDataLabelingAnnotatedDatasetConfig - * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + * Properties of a RegionalResourceReferences. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @interface IRegionalResourceReferences + * @property {Object.|null} [references] RegionalResourceReferences references + * @property {string|null} [title] RegionalResourceReferences title + * @property {string|null} [resourceTitle] RegionalResourceReferences resourceTitle + * @property {string|null} [resourceUseCase] RegionalResourceReferences resourceUseCase + * @property {string|null} [resourceDescription] RegionalResourceReferences resourceDescription */ /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. - * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * Constructs a new RegionalResourceReferences. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @classdesc Represents a RegionalResourceReferences. + * @implements IRegionalResourceReferences * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences=} [properties] Properties to set */ - function MigrateDataLabelingAnnotatedDatasetConfig(properties) { + function RegionalResourceReferences(properties) { + this.references = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -390108,75 +393192,189 @@ } /** - * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. - * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * RegionalResourceReferences references. + * @member {Object.} references + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @instance */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; + RegionalResourceReferences.prototype.references = $util.emptyObject; /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * RegionalResourceReferences title. + * @member {string} title + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.title = ""; + + /** + * RegionalResourceReferences resourceTitle. + * @member {string|null|undefined} resourceTitle + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.resourceTitle = null; + + /** + * RegionalResourceReferences resourceUseCase. + * @member {string|null|undefined} resourceUseCase + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.resourceUseCase = null; + + /** + * RegionalResourceReferences resourceDescription. + * @member {string|null|undefined} resourceDescription + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + RegionalResourceReferences.prototype.resourceDescription = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RegionalResourceReferences _resourceTitle. + * @member {"resourceTitle"|undefined} _resourceTitle + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + Object.defineProperty(RegionalResourceReferences.prototype, "_resourceTitle", { + get: $util.oneOfGetter($oneOfFields = ["resourceTitle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RegionalResourceReferences _resourceUseCase. + * @member {"resourceUseCase"|undefined} _resourceUseCase + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + Object.defineProperty(RegionalResourceReferences.prototype, "_resourceUseCase", { + get: $util.oneOfGetter($oneOfFields = ["resourceUseCase"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RegionalResourceReferences _resourceDescription. + * @member {"resourceDescription"|undefined} _resourceDescription + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + * @instance + */ + Object.defineProperty(RegionalResourceReferences.prototype, "_resourceDescription", { + get: $util.oneOfGetter($oneOfFields = ["resourceDescription"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RegionalResourceReferences instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences instance */ - MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + RegionalResourceReferences.create = function create(properties) { + return new RegionalResourceReferences(properties); }; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * Encodes the specified RegionalResourceReferences message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences} message RegionalResourceReferences message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + RegionalResourceReferences.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + if (message.references != null && Object.hasOwnProperty.call(message, "references")) + for (var keys = Object.keys(message.references), 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.PublisherModel.ResourceReference.encode(message.references[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + if (message.resourceTitle != null && Object.hasOwnProperty.call(message, "resourceTitle")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceTitle); + if (message.resourceUseCase != null && Object.hasOwnProperty.call(message, "resourceUseCase")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceUseCase); + if (message.resourceDescription != null && Object.hasOwnProperty.call(message, "resourceDescription")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.resourceDescription); return writer; }; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * Encodes the specified RegionalResourceReferences message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences} message RegionalResourceReferences message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + RegionalResourceReferences.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * Decodes a RegionalResourceReferences message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { + RegionalResourceReferences.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.annotatedDataset = reader.string(); + if (message.references === $util.emptyObject) + message.references = {}; + 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.PublisherModel.ResourceReference.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.references[key] = value; + break; + } + case 2: { + message.title = reader.string(); + break; + } + case 3: { + message.resourceTitle = reader.string(); + break; + } + case 4: { + message.resourceUseCase = reader.string(); + break; + } + case 5: { + message.resourceDescription = reader.string(); break; } default: @@ -390188,1417 +393386,2372 @@ }; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a RegionalResourceReferences message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + RegionalResourceReferences.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * Verifies a RegionalResourceReferences message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + RegionalResourceReferences.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - if (!$util.isString(message.annotatedDataset)) - return "annotatedDataset: string expected"; + var properties = {}; + if (message.references != null && message.hasOwnProperty("references")) { + if (!$util.isObject(message.references)) + return "references: object expected"; + var key = Object.keys(message.references); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify(message.references[key[i]]); + if (error) + return "references." + error; + } + } + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.resourceTitle != null && message.hasOwnProperty("resourceTitle")) { + properties._resourceTitle = 1; + if (!$util.isString(message.resourceTitle)) + return "resourceTitle: string expected"; + } + if (message.resourceUseCase != null && message.hasOwnProperty("resourceUseCase")) { + properties._resourceUseCase = 1; + if (!$util.isString(message.resourceUseCase)) + return "resourceUseCase: string expected"; + } + if (message.resourceDescription != null && message.hasOwnProperty("resourceDescription")) { + properties._resourceDescription = 1; + if (!$util.isString(message.resourceDescription)) + return "resourceDescription: string expected"; + } return null; }; /** - * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a RegionalResourceReferences message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences */ - MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + RegionalResourceReferences.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); - if (object.annotatedDataset != null) - message.annotatedDataset = String(object.annotatedDataset); + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences(); + if (object.references) { + if (typeof object.references !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.references: object expected"); + message.references = {}; + for (var keys = Object.keys(object.references), i = 0; i < keys.length; ++i) { + if (typeof object.references[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.references: object expected"); + message.references[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.fromObject(object.references[keys[i]]); + } + } + if (object.title != null) + message.title = String(object.title); + if (object.resourceTitle != null) + message.resourceTitle = String(object.resourceTitle); + if (object.resourceUseCase != null) + message.resourceUseCase = String(object.resourceUseCase); + if (object.resourceDescription != null) + message.resourceDescription = String(object.resourceDescription); return message; }; /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a RegionalResourceReferences message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} message RegionalResourceReferences * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + RegionalResourceReferences.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.references = {}; if (options.defaults) - object.annotatedDataset = ""; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - object.annotatedDataset = message.annotatedDataset; + object.title = ""; + var keys2; + if (message.references && (keys2 = Object.keys(message.references)).length) { + object.references = {}; + for (var j = 0; j < keys2.length; ++j) + object.references[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.toObject(message.references[keys2[j]], options); + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.resourceTitle != null && message.hasOwnProperty("resourceTitle")) { + object.resourceTitle = message.resourceTitle; + if (options.oneofs) + object._resourceTitle = "resourceTitle"; + } + if (message.resourceUseCase != null && message.hasOwnProperty("resourceUseCase")) { + object.resourceUseCase = message.resourceUseCase; + if (options.oneofs) + object._resourceUseCase = "resourceUseCase"; + } + if (message.resourceDescription != null && message.hasOwnProperty("resourceDescription")) { + object.resourceDescription = message.resourceDescription; + if (options.oneofs) + object._resourceDescription = "resourceDescription"; + } return object; }; /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * Converts this RegionalResourceReferences to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @instance * @returns {Object.} JSON object */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + RegionalResourceReferences.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * Gets the default type url for RegionalResourceReferences * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateDataLabelingAnnotatedDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RegionalResourceReferences.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences"; }; - return MigrateDataLabelingAnnotatedDatasetConfig; + return RegionalResourceReferences; })(); - return MigrateDataLabelingDatasetConfig; - })(); - - return MigrateResourceRequest; - })(); + CallToAction.ViewRestApi = (function() { - v1beta1.BatchMigrateResourcesResponse = (function() { + /** + * Properties of a ViewRestApi. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @interface IViewRestApi + * @property {Array.|null} [documentations] ViewRestApi documentations + * @property {string|null} [title] ViewRestApi title + */ - /** - * Properties of a BatchMigrateResourcesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchMigrateResourcesResponse - * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses - */ + /** + * Constructs a new ViewRestApi. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @classdesc Represents a ViewRestApi. + * @implements IViewRestApi + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi=} [properties] Properties to set + */ + function ViewRestApi(properties) { + this.documentations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new BatchMigrateResourcesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchMigrateResourcesResponse. - * @implements IBatchMigrateResourcesResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set - */ - function BatchMigrateResourcesResponse(properties) { - this.migrateResourceResponses = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ViewRestApi documentations. + * @member {Array.} documentations + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @instance + */ + ViewRestApi.prototype.documentations = $util.emptyArray; - /** - * BatchMigrateResourcesResponse migrateResourceResponses. - * @member {Array.} migrateResourceResponses - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @instance - */ - BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; + /** + * ViewRestApi title. + * @member {string} title + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @instance + */ + ViewRestApi.prototype.title = ""; - /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance - */ - BatchMigrateResourcesResponse.create = function create(properties) { - return new BatchMigrateResourcesResponse(properties); - }; + /** + * Creates a new ViewRestApi instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi instance + */ + ViewRestApi.create = function create(properties) { + return new ViewRestApi(properties); + }; - /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchMigrateResourcesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) - for (var i = 0; i < message.migrateResourceResponses.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ViewRestApi message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi} message ViewRestApi message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ViewRestApi.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.documentations != null && message.documentations.length) + for (var i = 0; i < message.documentations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.encode(message.documentations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + return writer; + }; - /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ViewRestApi message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi} message ViewRestApi message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ViewRestApi.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchMigrateResourcesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) - message.migrateResourceResponses = []; - message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.decode(reader, reader.uint32())); - break; + /** + * Decodes a ViewRestApi message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ViewRestApi.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.documentations && message.documentations.length)) + message.documentations = []; + message.documentations.push($root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.title = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a BatchMigrateResourcesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchMigrateResourcesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { - if (!Array.isArray(message.migrateResourceResponses)) - return "migrateResourceResponses: array expected"; - for (var i = 0; i < message.migrateResourceResponses.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); - if (error) - return "migrateResourceResponses." + error; - } - } - return null; - }; + /** + * Decodes a ViewRestApi message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ViewRestApi.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse - */ - BatchMigrateResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); - if (object.migrateResourceResponses) { - if (!Array.isArray(object.migrateResourceResponses)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); - message.migrateResourceResponses = []; - for (var i = 0; i < object.migrateResourceResponses.length; ++i) { - if (typeof object.migrateResourceResponses[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); - message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); - } - } - return message; - }; + /** + * Verifies a ViewRestApi message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ViewRestApi.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.documentations != null && message.hasOwnProperty("documentations")) { + if (!Array.isArray(message.documentations)) + return "documentations: array expected"; + for (var i = 0; i < message.documentations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify(message.documentations[i]); + if (error) + return "documentations." + error; + } + } + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + return null; + }; - /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchMigrateResourcesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.migrateResourceResponses = []; - if (message.migrateResourceResponses && message.migrateResourceResponses.length) { - object.migrateResourceResponses = []; - for (var j = 0; j < message.migrateResourceResponses.length; ++j) - object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); - } - return object; - }; - - /** - * Converts this BatchMigrateResourcesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @instance - * @returns {Object.} JSON object - */ - BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a ViewRestApi message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi + */ + ViewRestApi.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi(); + if (object.documentations) { + if (!Array.isArray(object.documentations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.documentations: array expected"); + message.documentations = []; + for (var i = 0; i < object.documentations.length; ++i) { + if (typeof object.documentations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.documentations: object expected"); + message.documentations[i] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.fromObject(object.documentations[i]); + } + } + if (object.title != null) + message.title = String(object.title); + return message; + }; - /** - * Gets the default type url for BatchMigrateResourcesResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BatchMigrateResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse"; - }; + /** + * Creates a plain object from a ViewRestApi message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} message ViewRestApi + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ViewRestApi.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.documentations = []; + if (options.defaults) + object.title = ""; + if (message.documentations && message.documentations.length) { + object.documentations = []; + for (var j = 0; j < message.documentations.length; ++j) + object.documentations[j] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.toObject(message.documentations[j], options); + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + return object; + }; - return BatchMigrateResourcesResponse; - })(); + /** + * Converts this ViewRestApi to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @instance + * @returns {Object.} JSON object + */ + ViewRestApi.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1beta1.MigrateResourceResponse = (function() { + /** + * Gets the default type url for ViewRestApi + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ViewRestApi.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi"; + }; - /** - * Properties of a MigrateResourceResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMigrateResourceResponse - * @property {string|null} [dataset] MigrateResourceResponse dataset - * @property {string|null} [model] MigrateResourceResponse model - * @property {google.cloud.aiplatform.v1beta1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource - */ + return ViewRestApi; + })(); - /** - * Constructs a new MigrateResourceResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigrateResourceResponse. - * @implements IMigrateResourceResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set - */ - function MigrateResourceResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + CallToAction.OpenNotebooks = (function() { - /** - * MigrateResourceResponse dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.dataset = null; + /** + * Properties of an OpenNotebooks. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @interface IOpenNotebooks + * @property {Array.|null} [notebooks] OpenNotebooks notebooks + */ - /** - * MigrateResourceResponse model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.model = null; + /** + * Constructs a new OpenNotebooks. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @classdesc Represents an OpenNotebooks. + * @implements IOpenNotebooks + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks=} [properties] Properties to set + */ + function OpenNotebooks(properties) { + this.notebooks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MigrateResourceResponse migratableResource. - * @member {google.cloud.aiplatform.v1beta1.IMigratableResource|null|undefined} migratableResource - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.migratableResource = null; + /** + * OpenNotebooks notebooks. + * @member {Array.} notebooks + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @instance + */ + OpenNotebooks.prototype.notebooks = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a new OpenNotebooks instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks instance + */ + OpenNotebooks.create = function create(properties) { + return new OpenNotebooks(properties); + }; - /** - * MigrateResourceResponse migratedResource. - * @member {"dataset"|"model"|undefined} migratedResource - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @instance - */ - Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified OpenNotebooks message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks} message OpenNotebooks message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenNotebooks.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notebooks != null && message.notebooks.length) + for (var i = 0; i < message.notebooks.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.notebooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Creates a new MigrateResourceResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse instance - */ - MigrateResourceResponse.create = function create(properties) { - return new MigrateResourceResponse(properties); - }; + /** + * Encodes the specified OpenNotebooks message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenNotebooks} message OpenNotebooks message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenNotebooks.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateResourceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); - if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Decodes an OpenNotebooks message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenNotebooks.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.notebooks && message.notebooks.length)) + message.notebooks = []; + message.notebooks.push($root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an OpenNotebooks message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenNotebooks.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateResourceResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 2: { - message.model = reader.string(); - break; - } - case 3: { - message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32()); - break; + /** + * Verifies an OpenNotebooks message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OpenNotebooks.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.notebooks != null && message.hasOwnProperty("notebooks")) { + if (!Array.isArray(message.notebooks)) + return "notebooks: array expected"; + for (var i = 0; i < message.notebooks.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.notebooks[i]); + if (error) + return "notebooks." + error; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return null; + }; - /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates an OpenNotebooks message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks} OpenNotebooks + */ + OpenNotebooks.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks(); + if (object.notebooks) { + if (!Array.isArray(object.notebooks)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.notebooks: array expected"); + message.notebooks = []; + for (var i = 0; i < object.notebooks.length; ++i) { + if (typeof object.notebooks[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks.notebooks: object expected"); + message.notebooks[i] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.notebooks[i]); + } + } + return message; + }; - /** - * Verifies a MigrateResourceResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateResourceResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.migratedResource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.migratedResource === 1) - return "migratedResource: multiple values"; - properties.migratedResource = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResource); - if (error) - return "migratableResource." + error; - } - return null; - }; + /** + * Creates a plain object from an OpenNotebooks message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks} message OpenNotebooks + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OpenNotebooks.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.notebooks = []; + if (message.notebooks && message.notebooks.length) { + object.notebooks = []; + for (var j = 0; j < message.notebooks.length; ++j) + object.notebooks[j] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.notebooks[j], options); + } + return object; + }; - /** - * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse - */ - MigrateResourceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.model != null) - message.model = String(object.model); - if (object.migratableResource != null) { - if (typeof object.migratableResource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceResponse.migratableResource: object expected"); - message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResource); - } - return message; - }; + /** + * Converts this OpenNotebooks to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @instance + * @returns {Object.} JSON object + */ + OpenNotebooks.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} message MigrateResourceResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateResourceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.migratableResource = null; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.migratedResource = "dataset"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.migratedResource = "model"; - } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) - object.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResource, options); - return object; - }; + /** + * Gets the default type url for OpenNotebooks + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OpenNotebooks.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenNotebooks"; + }; - /** - * Converts this MigrateResourceResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @instance - * @returns {Object.} JSON object - */ - MigrateResourceResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return OpenNotebooks; + })(); - /** - * Gets the default type url for MigrateResourceResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MigrateResourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MigrateResourceResponse"; - }; + CallToAction.OpenFineTuningPipelines = (function() { - return MigrateResourceResponse; - })(); + /** + * Properties of an OpenFineTuningPipelines. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @interface IOpenFineTuningPipelines + * @property {Array.|null} [fineTuningPipelines] OpenFineTuningPipelines fineTuningPipelines + */ - v1beta1.BatchMigrateResourcesOperationMetadata = (function() { + /** + * Constructs a new OpenFineTuningPipelines. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @classdesc Represents an OpenFineTuningPipelines. + * @implements IOpenFineTuningPipelines + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines=} [properties] Properties to set + */ + function OpenFineTuningPipelines(properties) { + this.fineTuningPipelines = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a BatchMigrateResourcesOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchMigrateResourcesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata - * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults - */ + /** + * OpenFineTuningPipelines fineTuningPipelines. + * @member {Array.} fineTuningPipelines + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @instance + */ + OpenFineTuningPipelines.prototype.fineTuningPipelines = $util.emptyArray; - /** - * Constructs a new BatchMigrateResourcesOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchMigrateResourcesOperationMetadata. - * @implements IBatchMigrateResourcesOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set - */ - function BatchMigrateResourcesOperationMetadata(properties) { - this.partialResults = []; - if (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 OpenFineTuningPipelines instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines instance + */ + OpenFineTuningPipelines.create = function create(properties) { + return new OpenFineTuningPipelines(properties); + }; - /** - * BatchMigrateResourcesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @instance - */ - BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; + /** + * Encodes the specified OpenFineTuningPipelines message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines} message OpenFineTuningPipelines message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenFineTuningPipelines.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fineTuningPipelines != null && message.fineTuningPipelines.length) + for (var i = 0; i < message.fineTuningPipelines.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.fineTuningPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * BatchMigrateResourcesOperationMetadata partialResults. - * @member {Array.} partialResults - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @instance - */ - BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; + /** + * Encodes the specified OpenFineTuningPipelines message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IOpenFineTuningPipelines} message OpenFineTuningPipelines message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpenFineTuningPipelines.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance - */ - BatchMigrateResourcesOperationMetadata.create = function create(properties) { - return new BatchMigrateResourcesOperationMetadata(properties); - }; + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenFineTuningPipelines.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.fineTuningPipelines && message.fineTuningPipelines.length)) + message.fineTuningPipelines = []; + message.fineTuningPipelines.push($root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.partialResults != null && message.partialResults.length) - for (var i = 0; i < message.partialResults.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Decodes an OpenFineTuningPipelines message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpenFineTuningPipelines.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies an OpenFineTuningPipelines message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OpenFineTuningPipelines.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fineTuningPipelines != null && message.hasOwnProperty("fineTuningPipelines")) { + if (!Array.isArray(message.fineTuningPipelines)) + return "fineTuningPipelines: array expected"; + for (var i = 0; i < message.fineTuningPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.fineTuningPipelines[i]); + if (error) + return "fineTuningPipelines." + error; + } + } + return null; + }; - /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); - 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; + /** + * Creates an OpenFineTuningPipelines message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines} OpenFineTuningPipelines + */ + OpenFineTuningPipelines.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines(); + if (object.fineTuningPipelines) { + if (!Array.isArray(object.fineTuningPipelines)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.fineTuningPipelines: array expected"); + message.fineTuningPipelines = []; + for (var i = 0; i < object.fineTuningPipelines.length; ++i) { + if (typeof object.fineTuningPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines.fineTuningPipelines: object expected"); + message.fineTuningPipelines[i] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.fineTuningPipelines[i]); + } } - case 2: { - if (!(message.partialResults && message.partialResults.length)) - message.partialResults = []; - message.partialResults.push($root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); - break; + return message; + }; + + /** + * Creates a plain object from an OpenFineTuningPipelines message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines} message OpenFineTuningPipelines + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OpenFineTuningPipelines.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.fineTuningPipelines = []; + if (message.fineTuningPipelines && message.fineTuningPipelines.length) { + object.fineTuningPipelines = []; + for (var j = 0; j < message.fineTuningPipelines.length; ++j) + object.fineTuningPipelines[j] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.fineTuningPipelines[j], options); } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return object; + }; - /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this OpenFineTuningPipelines to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @instance + * @returns {Object.} JSON object + */ + OpenFineTuningPipelines.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a BatchMigrateResourcesOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchMigrateResourcesOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.partialResults != null && message.hasOwnProperty("partialResults")) { - if (!Array.isArray(message.partialResults)) - return "partialResults: array expected"; - for (var i = 0; i < message.partialResults.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); - if (error) - return "partialResults." + error; - } - } - return null; - }; + /** + * Gets the default type url for OpenFineTuningPipelines + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OpenFineTuningPipelines.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.OpenFineTuningPipelines"; + }; - /** - * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata - */ - BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.partialResults) { - if (!Array.isArray(object.partialResults)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); - message.partialResults = []; - for (var i = 0; i < object.partialResults.length; ++i) { - if (typeof object.partialResults[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); - message.partialResults[i] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); - } - } - return message; - }; + return OpenFineTuningPipelines; + })(); - /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.partialResults = []; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.partialResults && message.partialResults.length) { - object.partialResults = []; - for (var j = 0; j < message.partialResults.length; ++j) - object.partialResults[j] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); - } - return object; - }; + CallToAction.Deploy = (function() { - /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a Deploy. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @interface IDeploy + * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] Deploy dedicatedResources + * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] Deploy automaticResources + * @property {string|null} [sharedResources] Deploy sharedResources + * @property {string|null} [modelDisplayName] Deploy modelDisplayName + * @property {google.cloud.aiplatform.v1beta1.ILargeModelReference|null} [largeModelReference] Deploy largeModelReference + * @property {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null} [containerSpec] Deploy containerSpec + * @property {string|null} [artifactUri] Deploy artifactUri + * @property {string|null} [title] Deploy title + * @property {string|null} [publicArtifactUri] Deploy publicArtifactUri + */ - /** - * Gets the default type url for BatchMigrateResourcesOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BatchMigrateResourcesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata"; - }; + /** + * Constructs a new Deploy. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @classdesc Represents a Deploy. + * @implements IDeploy + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy=} [properties] Properties to set + */ + function Deploy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - BatchMigrateResourcesOperationMetadata.PartialResult = (function() { + /** + * Deploy dedicatedResources. + * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.dedicatedResources = null; - /** - * Properties of a PartialResult. - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @interface IPartialResult - * @property {google.rpc.IStatus|null} [error] PartialResult error - * @property {string|null} [model] PartialResult model - * @property {string|null} [dataset] PartialResult dataset - * @property {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null} [request] PartialResult request - */ + /** + * Deploy automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.automaticResources = null; - /** - * Constructs a new PartialResult. - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @classdesc Represents a PartialResult. - * @implements IPartialResult - * @constructor - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - */ - function PartialResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Deploy sharedResources. + * @member {string|null|undefined} sharedResources + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.sharedResources = null; - /** - * PartialResult error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.error = null; + /** + * Deploy modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.modelDisplayName = ""; - /** - * PartialResult model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.model = null; + /** + * Deploy largeModelReference. + * @member {google.cloud.aiplatform.v1beta1.ILargeModelReference|null|undefined} largeModelReference + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.largeModelReference = null; - /** - * PartialResult dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.dataset = null; + /** + * Deploy containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.containerSpec = null; - /** - * PartialResult request. - * @member {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null|undefined} request - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.request = null; + /** + * Deploy artifactUri. + * @member {string} artifactUri + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.artifactUri = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Deploy title. + * @member {string} title + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.title = ""; - /** - * PartialResult result. - * @member {"error"|"model"|"dataset"|undefined} result - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - Object.defineProperty(PartialResult.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Deploy publicArtifactUri. + * @member {string} publicArtifactUri + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Deploy.prototype.publicArtifactUri = ""; - /** - * Creates a new PartialResult instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance - */ - PartialResult.create = function create(properties) { - return new PartialResult(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.request != null && Object.hasOwnProperty.call(message, "request")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); - return writer; - }; + /** + * Deploy predictionResources. + * @member {"dedicatedResources"|"automaticResources"|"sharedResources"|undefined} predictionResources + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + */ + Object.defineProperty(Deploy.prototype, "predictionResources", { + get: $util.oneOfGetter($oneOfFields = ["dedicatedResources", "automaticResources", "sharedResources"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Deploy instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy instance + */ + Deploy.create = function create(properties) { + return new Deploy(properties); + }; - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + /** + * Encodes the specified Deploy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy} message Deploy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Deploy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDisplayName); + if (message.largeModelReference != null && Object.hasOwnProperty.call(message, "largeModelReference")) + $root.google.cloud.aiplatform.v1beta1.LargeModelReference.encode(message.largeModelReference, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) + $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.encode(message.containerSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.artifactUri); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) + $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.sharedResources != null && Object.hasOwnProperty.call(message, "sharedResources")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.sharedResources); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.title); + if (message.publicArtifactUri != null && Object.hasOwnProperty.call(message, "publicArtifactUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.publicArtifactUri); + return writer; + }; + + /** + * Encodes the specified Deploy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy} message Deploy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Deploy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Deploy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Deploy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: { + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); + break; + } + case 6: { + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); + break; + } + case 7: { + message.sharedResources = reader.string(); + break; + } + case 1: { + message.modelDisplayName = reader.string(); + break; + } + case 2: { + message.largeModelReference = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.decode(reader, reader.uint32()); + break; + } + case 3: { + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.artifactUri = reader.string(); + break; + } + case 8: { + message.title = reader.string(); + break; + } + case 9: { + message.publicArtifactUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 3: { - message.model = reader.string(); - break; + } + return message; + }; + + /** + * Decodes a Deploy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Deploy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Deploy message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Deploy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + properties.predictionResources = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); + if (error) + return "dedicatedResources." + error; } - case 4: { - message.dataset = reader.string(); - break; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + if (properties.predictionResources === 1) + return "predictionResources: multiple values"; + properties.predictionResources = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; } - case 1: { - message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32()); + } + if (message.sharedResources != null && message.hasOwnProperty("sharedResources")) { + if (properties.predictionResources === 1) + return "predictionResources: multiple values"; + properties.predictionResources = 1; + if (!$util.isString(message.sharedResources)) + return "sharedResources: string expected"; + } + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + if (message.largeModelReference != null && message.hasOwnProperty("largeModelReference")) { + var error = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.verify(message.largeModelReference); + if (error) + return "largeModelReference." + error; + } + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); + if (error) + return "containerSpec." + error; + } + if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) + if (!$util.isString(message.artifactUri)) + return "artifactUri: string expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.publicArtifactUri != null && message.hasOwnProperty("publicArtifactUri")) + if (!$util.isString(message.publicArtifactUri)) + return "publicArtifactUri: string expected"; + return null; + }; + + /** + * Creates a Deploy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy + */ + Deploy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy(); + if (object.dedicatedResources != null) { + if (typeof object.dedicatedResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.dedicatedResources: object expected"); + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); + } + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); + } + if (object.sharedResources != null) + message.sharedResources = String(object.sharedResources); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + if (object.largeModelReference != null) { + if (typeof object.largeModelReference !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.largeModelReference: object expected"); + message.largeModelReference = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.fromObject(object.largeModelReference); + } + if (object.containerSpec != null) { + if (typeof object.containerSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.containerSpec: object expected"); + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.fromObject(object.containerSpec); + } + if (object.artifactUri != null) + message.artifactUri = String(object.artifactUri); + if (object.title != null) + message.title = String(object.title); + if (object.publicArtifactUri != null) + message.publicArtifactUri = String(object.publicArtifactUri); + return message; + }; + + /** + * Creates a plain object from a Deploy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} message Deploy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Deploy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.modelDisplayName = ""; + object.largeModelReference = null; + object.containerSpec = null; + object.artifactUri = ""; + object.title = ""; + object.publicArtifactUri = ""; + } + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + if (message.largeModelReference != null && message.hasOwnProperty("largeModelReference")) + object.largeModelReference = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.toObject(message.largeModelReference, options); + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) + object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.toObject(message.containerSpec, options); + if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) + object.artifactUri = message.artifactUri; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + if (options.oneofs) + object.predictionResources = "dedicatedResources"; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); + if (options.oneofs) + object.predictionResources = "automaticResources"; + } + if (message.sharedResources != null && message.hasOwnProperty("sharedResources")) { + object.sharedResources = message.sharedResources; + if (options.oneofs) + object.predictionResources = "sharedResources"; + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.publicArtifactUri != null && message.hasOwnProperty("publicArtifactUri")) + object.publicArtifactUri = message.publicArtifactUri; + return object; + }; + + /** + * Converts this Deploy to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @instance + * @returns {Object.} JSON object + */ + Deploy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Deploy + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Deploy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy"; + }; + + return Deploy; + })(); + + CallToAction.DeployGke = (function() { + + /** + * Properties of a DeployGke. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @interface IDeployGke + * @property {Array.|null} [gkeYamlConfigs] DeployGke gkeYamlConfigs + */ + + /** + * Constructs a new DeployGke. + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @classdesc Represents a DeployGke. + * @implements IDeployGke + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke=} [properties] Properties to set + */ + function DeployGke(properties) { + this.gkeYamlConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeployGke gkeYamlConfigs. + * @member {Array.} gkeYamlConfigs + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @instance + */ + DeployGke.prototype.gkeYamlConfigs = $util.emptyArray; + + /** + * Creates a new DeployGke instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke} DeployGke instance + */ + DeployGke.create = function create(properties) { + return new DeployGke(properties); + }; + + /** + * Encodes the specified DeployGke message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke} message DeployGke message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployGke.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gkeYamlConfigs != null && message.gkeYamlConfigs.length) + for (var i = 0; i < message.gkeYamlConfigs.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gkeYamlConfigs[i]); + return writer; + }; + + /** + * Encodes the specified DeployGke message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeployGke} message DeployGke message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployGke.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployGke message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke} DeployGke + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployGke.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.gkeYamlConfigs && message.gkeYamlConfigs.length)) + message.gkeYamlConfigs = []; + message.gkeYamlConfigs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DeployGke message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke} DeployGke + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployGke.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PartialResult message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PartialResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.error != null && message.hasOwnProperty("error")) { - properties.result = 1; - { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; + /** + * Verifies a DeployGke message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployGke.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gkeYamlConfigs != null && message.hasOwnProperty("gkeYamlConfigs")) { + if (!Array.isArray(message.gkeYamlConfigs)) + return "gkeYamlConfigs: array expected"; + for (var i = 0; i < message.gkeYamlConfigs.length; ++i) + if (!$util.isString(message.gkeYamlConfigs[i])) + return "gkeYamlConfigs: string[] expected"; } - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.request != null && message.hasOwnProperty("request")) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.request); - if (error) - return "request." + error; - } - return null; - }; + return null; + }; - /** - * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - */ - PartialResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult) + /** + * Creates a DeployGke message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke} DeployGke + */ + DeployGke.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke(); + if (object.gkeYamlConfigs) { + if (!Array.isArray(object.gkeYamlConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke.gkeYamlConfigs: array expected"); + message.gkeYamlConfigs = []; + for (var i = 0; i < object.gkeYamlConfigs.length; ++i) + message.gkeYamlConfigs[i] = String(object.gkeYamlConfigs[i]); + } + return message; + }; + + /** + * Creates a plain object from a DeployGke message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke} message DeployGke + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployGke.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.gkeYamlConfigs = []; + if (message.gkeYamlConfigs && message.gkeYamlConfigs.length) { + object.gkeYamlConfigs = []; + for (var j = 0; j < message.gkeYamlConfigs.length; ++j) + object.gkeYamlConfigs[j] = message.gkeYamlConfigs[j]; + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.model != null) - message.model = String(object.model); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.request != null) { - if (typeof object.request !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); - message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.request); - } - return message; - }; + }; - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PartialResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.request = null; - if (message.request != null && message.hasOwnProperty("request")) - object.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.request, options); - if (message.error != null && message.hasOwnProperty("error")) { - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (options.oneofs) - object.result = "error"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.result = "model"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.result = "dataset"; - } - return object; - }; + /** + * Converts this DeployGke to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @instance + * @returns {Object.} JSON object + */ + DeployGke.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PartialResult to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - * @returns {Object.} JSON object - */ - PartialResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for DeployGke + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployGke.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.DeployGke"; + }; - /** - * Gets the default type url for PartialResult - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PartialResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult"; - }; + return DeployGke; + })(); - return PartialResult; + return CallToAction; })(); - return BatchMigrateResourcesOperationMetadata; - })(); + /** + * OpenSourceCategory enum. + * @name google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory + * @enum {number} + * @property {number} OPEN_SOURCE_CATEGORY_UNSPECIFIED=0 OPEN_SOURCE_CATEGORY_UNSPECIFIED value + * @property {number} PROPRIETARY=1 PROPRIETARY value + * @property {number} GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT=2 GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT value + * @property {number} THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT=3 THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT value + * @property {number} GOOGLE_OWNED_OSS=4 GOOGLE_OWNED_OSS value + * @property {number} THIRD_PARTY_OWNED_OSS=5 THIRD_PARTY_OWNED_OSS value + */ + PublisherModel.OpenSourceCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OPEN_SOURCE_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROPRIETARY"] = 1; + values[valuesById[2] = "GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT"] = 2; + values[valuesById[3] = "THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT"] = 3; + values[valuesById[4] = "GOOGLE_OWNED_OSS"] = 4; + values[valuesById[5] = "THIRD_PARTY_OWNED_OSS"] = 5; + return values; + })(); - v1beta1.ModelEvaluation = (function() { + /** + * LaunchStage enum. + * @name google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage + * @enum {number} + * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value + * @property {number} EXPERIMENTAL=1 EXPERIMENTAL value + * @property {number} PRIVATE_PREVIEW=2 PRIVATE_PREVIEW value + * @property {number} PUBLIC_PREVIEW=3 PUBLIC_PREVIEW value + * @property {number} GA=4 GA value + */ + PublisherModel.LaunchStage = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXPERIMENTAL"] = 1; + values[valuesById[2] = "PRIVATE_PREVIEW"] = 2; + values[valuesById[3] = "PUBLIC_PREVIEW"] = 3; + values[valuesById[4] = "GA"] = 4; + return values; + })(); /** - * Properties of a ModelEvaluation. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelEvaluation - * @property {string|null} [name] ModelEvaluation name - * @property {string|null} [displayName] ModelEvaluation displayName - * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime - * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions - * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation - * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs - * @property {google.protobuf.IValue|null} [metadata] ModelEvaluation metadata - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null} [biasConfigs] ModelEvaluation biasConfigs + * VersionState enum. + * @name google.cloud.aiplatform.v1beta1.PublisherModel.VersionState + * @enum {number} + * @property {number} VERSION_STATE_UNSPECIFIED=0 VERSION_STATE_UNSPECIFIED value + * @property {number} VERSION_STATE_STABLE=1 VERSION_STATE_STABLE value + * @property {number} VERSION_STATE_UNSTABLE=2 VERSION_STATE_UNSTABLE value */ + PublisherModel.VersionState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VERSION_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "VERSION_STATE_STABLE"] = 1; + values[valuesById[2] = "VERSION_STATE_UNSTABLE"] = 2; + return values; + })(); + + return PublisherModel; + })(); + + v1beta1.ModelService = (function() { /** - * Constructs a new ModelEvaluation. + * Constructs a new ModelService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelEvaluation. - * @implements IModelEvaluation + * @classdesc Represents a ModelService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function ModelEvaluation(properties) { - this.sliceDimensions = []; - this.explanationSpecs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function ModelService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; + /** - * ModelEvaluation name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Creates new ModelService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. + */ + ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|uploadModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef UploadModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ModelEvaluation.prototype.name = ""; + Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { + return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1beta1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UploadModel" }); /** - * ModelEvaluation displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ModelEvaluation.prototype.displayName = ""; /** - * ModelEvaluation metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef GetModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + */ + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 */ - ModelEvaluation.prototype.metricsSchemaUri = ""; + Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { + return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1beta1.GetModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); + }, "name", { value: "GetModel" }); /** - * ModelEvaluation metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ModelEvaluation.prototype.metrics = null; /** - * ModelEvaluation createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModels}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} [response] ListModelsResponse + */ + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse + * @returns {undefined} + * @variation 1 */ - ModelEvaluation.prototype.createTime = null; + Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { + return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1beta1.ListModelsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelsResponse, request, callback); + }, "name", { value: "ListModels" }); /** - * ModelEvaluation sliceDimensions. - * @member {Array.} sliceDimensions - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; /** - * ModelEvaluation modelExplanation. - * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelVersions}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} [response] ListModelVersionsResponse + */ + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * @returns {undefined} + * @variation 1 */ - ModelEvaluation.prototype.modelExplanation = null; + Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { + return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse, request, callback); + }, "name", { value: "ListModelVersions" }); /** - * ModelEvaluation explanationSpecs. - * @member {Array.} explanationSpecs - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; /** - * ModelEvaluation metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef UpdateModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + */ + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 */ - ModelEvaluation.prototype.metadata = null; + Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { + return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); + }, "name", { value: "UpdateModel" }); /** - * ModelEvaluation biasConfigs. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig|null|undefined} biasConfigs - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ModelEvaluation.prototype.biasConfigs = null; /** - * Creates a new ModelEvaluation instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateExplanationDataset}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef UpdateExplanationDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ModelEvaluation.create = function create(properties) { - return new ModelEvaluation(properties); - }; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UpdateExplanationDataset. + * @function updateExplanationDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} request UpdateExplanationDatasetRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDatasetCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ModelEvaluation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sliceDimensions != null && message.sliceDimensions.length) - for (var i = 0; i < message.sliceDimensions.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); - if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) - $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.explanationSpecs != null && message.explanationSpecs.length) - for (var i = 0; i < message.explanationSpecs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.biasConfigs != null && Object.hasOwnProperty.call(message, "biasConfigs")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.encode(message.biasConfigs, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - return writer; - }; + Object.defineProperty(ModelService.prototype.updateExplanationDataset = function updateExplanationDataset(request, callback) { + return this.rpcCall(updateExplanationDataset, $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateExplanationDataset" }); /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UpdateExplanationDataset. + * @function updateExplanationDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} request UpdateExplanationDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef DeleteModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ModelEvaluation.decode = function decode(reader, length) { + + /** + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { + return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModel" }); + + /** + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModelVersion}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef DeleteModelVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { + return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelVersion" }); + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|mergeVersionAliases}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef MergeVersionAliasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + */ + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { + return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); + }, "name", { value: "MergeVersionAliases" }); + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|exportModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ExportModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { + return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1beta1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportModel" }); + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef CopyModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.copyModel = function copyModel(request, callback) { + return this.rpcCall(copyModel, $root.google.cloud.aiplatform.v1beta1.CopyModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CopyModel" }); + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ImportModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation + */ + + /** + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { + return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); + }, "name", { value: "ImportModelEvaluation" }); + + /** + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef BatchImportModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse + */ + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { + return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "BatchImportModelEvaluationSlices" }); + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportEvaluatedAnnotations}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef BatchImportEvaluatedAnnotationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} [response] BatchImportEvaluatedAnnotationsResponse + */ + + /** + * Calls BatchImportEvaluatedAnnotations. + * @function batchImportEvaluatedAnnotations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotationsCallback} callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportEvaluatedAnnotations = function batchImportEvaluatedAnnotations(request, callback) { + return this.rpcCall(batchImportEvaluatedAnnotations, $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest, $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse, request, callback); + }, "name", { value: "BatchImportEvaluatedAnnotations" }); + + /** + * Calls BatchImportEvaluatedAnnotations. + * @function batchImportEvaluatedAnnotations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluation}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef GetModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation + */ + + /** + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { + return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); + }, "name", { value: "GetModelEvaluation" }); + + /** + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluations}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelEvaluationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse + */ + + /** + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { + return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, request, callback); + }, "name", { value: "ListModelEvaluations" }); + + /** + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluationSlice}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef GetModelEvaluationSliceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} [response] ModelEvaluationSlice + */ + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { + return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, request, callback); + }, "name", { value: "GetModelEvaluationSlice" }); + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse + */ + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { + return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "ListModelEvaluationSlices" }); + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ModelService; + })(); + + v1beta1.UploadModelRequest = (function() { + + /** + * Properties of an UploadModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUploadModelRequest + * @property {string|null} [parent] UploadModelRequest parent + * @property {string|null} [parentModel] UploadModelRequest parentModel + * @property {string|null} [modelId] UploadModelRequest modelId + * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UploadModelRequest model + * @property {string|null} [serviceAccount] UploadModelRequest serviceAccount + */ + + /** + * Constructs a new UploadModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UploadModelRequest. + * @implements IUploadModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set + */ + function UploadModelRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UploadModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parent = ""; + + /** + * UploadModelRequest parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parentModel = ""; + + /** + * UploadModelRequest modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.modelId = ""; + + /** + * UploadModelRequest model. + * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.model = null; + + /** + * UploadModelRequest serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.serviceAccount = ""; + + /** + * Creates a new UploadModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest instance + */ + UploadModelRequest.create = function create(properties) { + return new UploadModelRequest(properties); + }; + + /** + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UploadModelRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); + return writer; + }; + + /** + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UploadModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UploadModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 10: { - message.displayName = reader.string(); - break; - } - case 2: { - message.metricsSchemaUri = reader.string(); - break; - } - case 3: { - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.parentModel = reader.string(); break; } case 5: { - if (!(message.sliceDimensions && message.sliceDimensions.length)) - message.sliceDimensions = []; - message.sliceDimensions.push(reader.string()); - break; - } - case 8: { - message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.explanationSpecs && message.explanationSpecs.length)) - message.explanationSpecs = []; - message.explanationSpecs.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); + message.modelId = reader.string(); break; } - case 11: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + case 2: { + message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); break; } - case 12: { - message.biasConfigs = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.decode(reader, reader.uint32()); + case 6: { + message.serviceAccount = reader.string(); break; } default: @@ -391610,736 +395763,595 @@ }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { + UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluation message. + * Verifies an UploadModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluation.verify = function verify(message) { + UploadModelRequest.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.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { - if (!Array.isArray(message.sliceDimensions)) - return "sliceDimensions: array expected"; - for (var i = 0; i < message.sliceDimensions.length; ++i) - if (!$util.isString(message.sliceDimensions[i])) - return "sliceDimensions: string[] expected"; - } - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); - if (error) - return "modelExplanation." + error; - } - if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { - if (!Array.isArray(message.explanationSpecs)) - return "explanationSpecs: array expected"; - for (var i = 0; i < message.explanationSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); - if (error) - return "explanationSpecs." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.biasConfigs != null && message.hasOwnProperty("biasConfigs")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify(message.biasConfigs); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + if (message.model != null && message.hasOwnProperty("model")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); if (error) - return "biasConfigs." + error; + return "model." + error; } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; /** - * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest */ - ModelEvaluation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation) + UploadModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.sliceDimensions) { - if (!Array.isArray(object.sliceDimensions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.sliceDimensions: array expected"); - message.sliceDimensions = []; - for (var i = 0; i < object.sliceDimensions.length; ++i) - message.sliceDimensions[i] = String(object.sliceDimensions[i]); - } - if (object.modelExplanation != null) { - if (typeof object.modelExplanation !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.modelExplanation: object expected"); - message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); - } - if (object.explanationSpecs) { - if (!Array.isArray(object.explanationSpecs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: array expected"); - message.explanationSpecs = []; - for (var i = 0; i < object.explanationSpecs.length; ++i) { - if (typeof object.explanationSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: object expected"); - message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); - } - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.biasConfigs != null) { - if (typeof object.biasConfigs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.biasConfigs: object expected"); - message.biasConfigs = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.fromObject(object.biasConfigs); + var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.model != null) { + if (typeof object.model !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelRequest.model: object expected"); + message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} message ModelEvaluation + * @param {google.cloud.aiplatform.v1beta1.UploadModelRequest} message UploadModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluation.toObject = function toObject(message, options) { + UploadModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sliceDimensions = []; - object.explanationSpecs = []; - } if (options.defaults) { - object.name = ""; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - object.modelExplanation = null; - object.displayName = ""; - object.metadata = null; - object.biasConfigs = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.sliceDimensions && message.sliceDimensions.length) { - object.sliceDimensions = []; - for (var j = 0; j < message.sliceDimensions.length; ++j) - object.sliceDimensions[j] = message.sliceDimensions[j]; - } - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) - object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); - if (message.explanationSpecs && message.explanationSpecs.length) { - object.explanationSpecs = []; - for (var j = 0; j < message.explanationSpecs.length; ++j) - object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + object.parent = ""; + object.model = null; + object.parentModel = ""; + object.modelId = ""; + object.serviceAccount = ""; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.biasConfigs != null && message.hasOwnProperty("biasConfigs")) - object.biasConfigs = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.toObject(message.biasConfigs, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.model != null && message.hasOwnProperty("model")) + object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this ModelEvaluation to JSON. + * Converts this UploadModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @instance * @returns {Object.} JSON object */ - ModelEvaluation.prototype.toJSON = function toJSON() { + UploadModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelEvaluation + * Gets the default type url for UploadModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelEvaluation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluation"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UploadModelRequest"; }; - ModelEvaluation.ModelEvaluationExplanationSpec = (function() { + return UploadModelRequest; + })(); - /** - * Properties of a ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @interface IModelEvaluationExplanationSpec - * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType - * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec - */ + v1beta1.UploadModelOperationMetadata = (function() { - /** - * Constructs a new ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @classdesc Represents a ModelEvaluationExplanationSpec. - * @implements IModelEvaluationExplanationSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set - */ - function ModelEvaluationExplanationSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an UploadModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUploadModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata + */ - /** - * ModelEvaluationExplanationSpec explanationType. - * @member {string} explanationType - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @instance - */ - ModelEvaluationExplanationSpec.prototype.explanationType = ""; + /** + * Constructs a new UploadModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UploadModelOperationMetadata. + * @implements IUploadModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set + */ + function UploadModelOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ModelEvaluationExplanationSpec explanationSpec. - * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @instance - */ - ModelEvaluationExplanationSpec.prototype.explanationSpec = null; + /** + * UploadModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @instance + */ + UploadModelOperationMetadata.prototype.genericMetadata = null; - /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance - */ - ModelEvaluationExplanationSpec.create = function create(properties) { - return new ModelEvaluationExplanationSpec(properties); - }; + /** + * Creates a new UploadModelOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata instance + */ + UploadModelOperationMetadata.create = function create(properties) { + return new UploadModelOperationMetadata(properties); + }; - /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModelEvaluationExplanationSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); - if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) - $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UploadModelOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelEvaluationExplanationSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.explanationType = reader.string(); - break; - } - case 2: { - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UploadModelOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ModelEvaluationExplanationSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ModelEvaluationExplanationSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - if (!$util.isString(message.explanationType)) - return "explanationType: string expected"; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); - if (error) - return "explanationSpec." + error; - } - return null; - }; - - /** - * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec - */ - ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); - if (object.explanationType != null) - message.explanationType = String(object.explanationType); - if (object.explanationSpec != null) { - if (typeof object.explanationSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); - } - return message; - }; + /** + * Verifies an UploadModelOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UploadModelOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.explanationType = ""; - object.explanationSpec = null; - } - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - object.explanationType = message.explanationType; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) - object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); + /** + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + */ + UploadModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; - /** - * Converts this ModelEvaluationExplanationSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @instance - * @returns {Object.} JSON object - */ - ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} message UploadModelOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UploadModelOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - /** - * Gets the default type url for ModelEvaluationExplanationSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ModelEvaluationExplanationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec"; - }; + /** + * Converts this UploadModelOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UploadModelOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ModelEvaluationExplanationSpec; - })(); + /** + * Gets the default type url for UploadModelOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UploadModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata"; + }; - ModelEvaluation.BiasConfig = (function() { + return UploadModelOperationMetadata; + })(); - /** - * Properties of a BiasConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @interface IBiasConfig - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null} [biasSlices] BiasConfig biasSlices - * @property {Array.|null} [labels] BiasConfig labels - */ + v1beta1.UploadModelResponse = (function() { - /** - * Constructs a new BiasConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @classdesc Represents a BiasConfig. - * @implements IBiasConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig=} [properties] Properties to set - */ - function BiasConfig(properties) { - this.labels = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an UploadModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUploadModelResponse + * @property {string|null} [model] UploadModelResponse model + * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId + */ - /** - * BiasConfig biasSlices. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null|undefined} biasSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @instance - */ - BiasConfig.prototype.biasSlices = null; + /** + * Constructs a new UploadModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UploadModelResponse. + * @implements IUploadModelResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set + */ + function UploadModelResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * BiasConfig labels. - * @member {Array.} labels - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @instance - */ - BiasConfig.prototype.labels = $util.emptyArray; + /** + * UploadModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @instance + */ + UploadModelResponse.prototype.model = ""; - /** - * Creates a new BiasConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig instance - */ - BiasConfig.create = function create(properties) { - return new BiasConfig(properties); - }; + /** + * UploadModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @instance + */ + UploadModelResponse.prototype.modelVersionId = ""; - /** - * Encodes the specified BiasConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig} message BiasConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BiasConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.biasSlices != null && Object.hasOwnProperty.call(message, "biasSlices")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.encode(message.biasSlices, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labels != null && message.labels.length) - for (var i = 0; i < message.labels.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.labels[i]); - return writer; - }; + /** + * Creates a new UploadModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse instance + */ + UploadModelResponse.create = function create(properties) { + return new UploadModelResponse(properties); + }; - /** - * Encodes the specified BiasConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IBiasConfig} message BiasConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BiasConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UploadModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + return writer; + }; - /** - * Decodes a BiasConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BiasConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.biasSlices = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.decode(reader, reader.uint32()); - break; - } - case 2: { - if (!(message.labels && message.labels.length)) - message.labels = []; - message.labels.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UploadModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UploadModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a BiasConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BiasConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a BiasConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BiasConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.biasSlices != null && message.hasOwnProperty("biasSlices")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify(message.biasSlices); - if (error) - return "biasSlices." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!Array.isArray(message.labels)) - return "labels: array expected"; - for (var i = 0; i < message.labels.length; ++i) - if (!$util.isString(message.labels[i])) - return "labels: string[] expected"; - } - return null; - }; + /** + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a BiasConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} BiasConfig - */ - BiasConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig(); - if (object.biasSlices != null) { - if (typeof object.biasSlices !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.biasSlices: object expected"); - message.biasSlices = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.fromObject(object.biasSlices); - } - if (object.labels) { - if (!Array.isArray(object.labels)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.labels: array expected"); - message.labels = []; - for (var i = 0; i < object.labels.length; ++i) - message.labels[i] = String(object.labels[i]); - } - return message; - }; + /** + * Verifies an UploadModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UploadModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + return null; + }; - /** - * Creates a plain object from a BiasConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig} message BiasConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BiasConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.labels = []; - if (options.defaults) - object.biasSlices = null; - if (message.biasSlices != null && message.hasOwnProperty("biasSlices")) - object.biasSlices = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.toObject(message.biasSlices, options); - if (message.labels && message.labels.length) { - object.labels = []; - for (var j = 0; j < message.labels.length; ++j) - object.labels[j] = message.labels[j]; - } + /** + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + */ + UploadModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelResponse) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + return message; + }; - /** - * Converts this BiasConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @instance - * @returns {Object.} JSON object - */ - BiasConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UploadModelResponse} message UploadModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UploadModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; - /** - * Gets the default type url for BiasConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BiasConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig"; - }; + /** + * Converts this UploadModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @instance + * @returns {Object.} JSON object + */ + UploadModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return BiasConfig; - })(); + /** + * Gets the default type url for UploadModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UploadModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UploadModelResponse"; + }; - return ModelEvaluation; + return UploadModelResponse; })(); - v1beta1.ModelEvaluationSlice = (function() { + v1beta1.GetModelRequest = (function() { /** - * Properties of a ModelEvaluationSlice. + * Properties of a GetModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelEvaluationSlice - * @property {string|null} [name] ModelEvaluationSlice name - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice - * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime - * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluationSlice modelExplanation + * @interface IGetModelRequest + * @property {string|null} [name] GetModelRequest name */ /** - * Constructs a new ModelEvaluationSlice. + * Constructs a new GetModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelEvaluationSlice. - * @implements IModelEvaluationSlice + * @classdesc Represents a GetModelRequest. + * @implements IGetModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set */ - function ModelEvaluationSlice(properties) { + function GetModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -392347,120 +396359,70 @@ } /** - * ModelEvaluationSlice name. + * GetModelRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.name = ""; - - /** - * ModelEvaluationSlice slice. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null|undefined} slice - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.slice = null; - - /** - * ModelEvaluationSlice metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metricsSchemaUri = ""; - - /** - * ModelEvaluationSlice metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metrics = null; - - /** - * ModelEvaluationSlice createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.createTime = null; - - /** - * ModelEvaluationSlice modelExplanation. - * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @instance */ - ModelEvaluationSlice.prototype.modelExplanation = null; + GetModelRequest.prototype.name = ""; /** - * Creates a new ModelEvaluationSlice instance using the specified properties. + * Creates a new GetModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest instance */ - ModelEvaluationSlice.create = function create(properties) { - return new ModelEvaluationSlice(properties); + GetModelRequest.create = function create(properties) { + return new GetModelRequest(properties); }; /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationSlice.encode = function encode(message, writer) { + GetModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.slice != null && Object.hasOwnProperty.call(message, "slice")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) - $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { + GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * Decodes a GetModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationSlice.decode = function decode(reader, length) { + GetModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -392468,26 +396430,6 @@ message.name = reader.string(); break; } - case 2: { - message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metricsSchemaUri = reader.string(); - break; - } - case 4: { - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -392497,1669 +396439,797 @@ }; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { + GetModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluationSlice message. + * Verifies a GetModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluationSlice.verify = function verify(message) { + GetModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.slice != null && message.hasOwnProperty("slice")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify(message.slice); - if (error) - return "slice." + error; - } - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); - if (error) - return "modelExplanation." + error; - } return null; }; /** - * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest */ - ModelEvaluationSlice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) + GetModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); if (object.name != null) message.name = String(object.name); - if (object.slice != null) { - if (typeof object.slice !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.slice: object expected"); - message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.fromObject(object.slice); - } - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.modelExplanation != null) { - if (typeof object.modelExplanation !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.modelExplanation: object expected"); - message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); - } return message; }; /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} message ModelEvaluationSlice + * @param {google.cloud.aiplatform.v1beta1.GetModelRequest} message GetModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluationSlice.toObject = function toObject(message, options) { + GetModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.slice = null; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - object.modelExplanation = null; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.slice != null && message.hasOwnProperty("slice")) - object.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.toObject(message.slice, options); - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) - object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); return object; }; /** - * Converts this ModelEvaluationSlice to JSON. + * Converts this GetModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @instance * @returns {Object.} JSON object */ - ModelEvaluationSlice.prototype.toJSON = function toJSON() { + GetModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelEvaluationSlice + * Gets the default type url for GetModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelEvaluationSlice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelRequest"; }; - ModelEvaluationSlice.Slice = (function() { + return GetModelRequest; + })(); - /** - * Properties of a Slice. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @interface ISlice - * @property {string|null} [dimension] Slice dimension - * @property {string|null} [value] Slice value - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null} [sliceSpec] Slice sliceSpec - */ + v1beta1.ListModelsRequest = (function() { - /** - * Constructs a new Slice. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @classdesc Represents a Slice. - * @implements ISlice - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set - */ - function Slice(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListModelsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListModelsRequest + * @property {string|null} [parent] ListModelsRequest parent + * @property {string|null} [filter] ListModelsRequest filter + * @property {number|null} [pageSize] ListModelsRequest pageSize + * @property {string|null} [pageToken] ListModelsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask + */ - /** - * Slice dimension. - * @member {string} dimension - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @instance - */ - Slice.prototype.dimension = ""; + /** + * Constructs a new ListModelsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelsRequest. + * @implements IListModelsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set + */ + function ListModelsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Slice value. - * @member {string} value - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @instance - */ - Slice.prototype.value = ""; + /** + * ListModelsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.parent = ""; - /** - * Slice sliceSpec. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec|null|undefined} sliceSpec - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @instance - */ - Slice.prototype.sliceSpec = null; + /** + * ListModelsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.filter = ""; - /** - * Creates a new Slice instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice instance - */ - Slice.create = function create(properties) { - return new Slice(properties); - }; + /** + * ListModelsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageSize = 0; - /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Slice.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.sliceSpec != null && Object.hasOwnProperty.call(message, "sliceSpec")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.encode(message.sliceSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * ListModelsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageToken = ""; - /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Slice.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.readMask = null; - /** - * Decodes a Slice message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Slice.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dimension = reader.string(); - break; - } - case 2: { - message.value = reader.string(); - break; - } - case 3: { - message.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Creates a new ListModelsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest instance + */ + ListModelsRequest.create = function create(properties) { + return new ListModelsRequest(properties); + }; + + /** + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListModelsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); break; } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Slice message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Slice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Slice message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Slice.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dimension != null && message.hasOwnProperty("dimension")) - if (!$util.isString(message.dimension)) - return "dimension: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify(message.sliceSpec); - if (error) - return "sliceSpec." + error; - } - return null; - }; + /** + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Slice message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice - */ - Slice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); - if (object.dimension != null) - message.dimension = String(object.dimension); - if (object.value != null) - message.value = String(object.value); - if (object.sliceSpec != null) { - if (typeof object.sliceSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.sliceSpec: object expected"); - message.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.fromObject(object.sliceSpec); - } - return message; - }; + /** + * Verifies a ListModelsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} message Slice - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Slice.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dimension = ""; - object.value = ""; - object.sliceSpec = null; - } - if (message.dimension != null && message.hasOwnProperty("dimension")) - object.dimension = message.dimension; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.sliceSpec != null && message.hasOwnProperty("sliceSpec")) - object.sliceSpec = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.toObject(message.sliceSpec, options); + /** + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + */ + ListModelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - /** - * Converts this Slice to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @instance - * @returns {Object.} JSON object - */ - Slice.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListModelsRequest} message ListModelsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; - /** - * Gets the default type url for Slice - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Slice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice"; - }; + /** + * Converts this ListModelsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + * @returns {Object.} JSON object + */ + ListModelsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Slice.SliceSpec = (function() { + /** + * Gets the default type url for ListModelsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelsRequest"; + }; - /** - * Properties of a SliceSpec. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @interface ISliceSpec - * @property {Object.|null} [configs] SliceSpec configs - */ + return ListModelsRequest; + })(); - /** - * Constructs a new SliceSpec. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice - * @classdesc Represents a SliceSpec. - * @implements ISliceSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set - */ - function SliceSpec(properties) { - this.configs = {}; - if (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.ListModelsResponse = (function() { - /** - * SliceSpec configs. - * @member {Object.} configs - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @instance - */ - SliceSpec.prototype.configs = $util.emptyObject; + /** + * Properties of a ListModelsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListModelsResponse + * @property {Array.|null} [models] ListModelsResponse models + * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken + */ - /** - * Creates a new SliceSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec instance - */ - SliceSpec.create = function create(properties) { - return new SliceSpec(properties); - }; + /** + * Constructs a new ListModelsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelsResponse. + * @implements IListModelsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set + */ + function ListModelsResponse(properties) { + this.models = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified SliceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SliceSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.configs != null && Object.hasOwnProperty.call(message, "configs")) - for (var keys = Object.keys(message.configs), 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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.encode(message.configs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * ListModelsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @instance + */ + ListModelsResponse.prototype.models = $util.emptyArray; - /** - * Encodes the specified SliceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.ISliceSpec} message SliceSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SliceSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @instance + */ + ListModelsResponse.prototype.nextPageToken = ""; - /** - * Decodes a SliceSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SliceSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.configs === $util.emptyObject) - message.configs = {}; - 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.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.configs[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new ListModelsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse instance + */ + ListModelsResponse.create = function create(properties) { + return new ListModelsResponse(properties); + }; - /** - * Decodes a SliceSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SliceSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Verifies a SliceSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SliceSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.configs != null && message.hasOwnProperty("configs")) { - if (!$util.isObject(message.configs)) - return "configs: object expected"; - var key = Object.keys(message.configs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify(message.configs[key[i]]); - if (error) - return "configs." + error; - } - } - return null; - }; + /** + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a SliceSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} SliceSpec - */ - SliceSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec(); - if (object.configs) { - if (typeof object.configs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); - message.configs = {}; - for (var keys = Object.keys(object.configs), i = 0; i < keys.length; ++i) { - if (typeof object.configs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.configs: object expected"); - message.configs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.fromObject(object.configs[keys[i]]); - } + /** + * Decodes a ListModelsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32())); + break; } - return message; - }; - - /** - * Creates a plain object from a SliceSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec} message SliceSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SliceSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.configs = {}; - var keys2; - if (message.configs && (keys2 = Object.keys(message.configs)).length) { - object.configs = {}; - for (var j = 0; j < keys2.length; ++j) - object.configs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.toObject(message.configs[keys2[j]], options); + case 2: { + message.nextPageToken = reader.string(); + break; } - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this SliceSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @instance - * @returns {Object.} JSON object - */ - SliceSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for SliceSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SliceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec"; - }; + /** + * Verifies a ListModelsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.models[i]); + if (error) + return "models." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - SliceSpec.SliceConfig = (function() { + /** + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + */ + ListModelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * Properties of a SliceConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @interface ISliceConfig - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null} [value] SliceConfig value - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null} [range] SliceConfig range - * @property {google.protobuf.IBoolValue|null} [allValues] SliceConfig allValues - */ + /** + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} message ListModelsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.models[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * Constructs a new SliceConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @classdesc Represents a SliceConfig. - * @implements ISliceConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set - */ - function SliceConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this ListModelsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @instance + * @returns {Object.} JSON object + */ + ListModelsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * SliceConfig value. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue|null|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @instance - */ - SliceConfig.prototype.value = null; + /** + * Gets the default type url for ListModelsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelsResponse"; + }; - /** - * SliceConfig range. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange|null|undefined} range - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @instance - */ - SliceConfig.prototype.range = null; + return ListModelsResponse; + })(); - /** - * SliceConfig allValues. - * @member {google.protobuf.IBoolValue|null|undefined} allValues - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @instance - */ - SliceConfig.prototype.allValues = null; + v1beta1.ListModelVersionsRequest = (function() { - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Properties of a ListModelVersionsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListModelVersionsRequest + * @property {string|null} [name] ListModelVersionsRequest name + * @property {number|null} [pageSize] ListModelVersionsRequest pageSize + * @property {string|null} [pageToken] ListModelVersionsRequest pageToken + * @property {string|null} [filter] ListModelVersionsRequest filter + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask + * @property {string|null} [orderBy] ListModelVersionsRequest orderBy + */ - /** - * SliceConfig kind. - * @member {"value"|"range"|"allValues"|undefined} kind - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @instance - */ - Object.defineProperty(SliceConfig.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["value", "range", "allValues"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Constructs a new ListModelVersionsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelVersionsRequest. + * @implements IListModelVersionsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest=} [properties] Properties to set + */ + function ListModelVersionsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new SliceConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig instance - */ - SliceConfig.create = function create(properties) { - return new SliceConfig(properties); - }; + /** + * ListModelVersionsRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.name = ""; - /** - * Encodes the specified SliceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SliceConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.range != null && Object.hasOwnProperty.call(message, "range")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.encode(message.range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allValues != null && Object.hasOwnProperty.call(message, "allValues")) - $root.google.protobuf.BoolValue.encode(message.allValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * ListModelVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageSize = 0; - /** - * Encodes the specified SliceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.ISliceConfig} message SliceConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SliceConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageToken = ""; - /** - * Decodes a SliceConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SliceConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.decode(reader, reader.uint32()); - break; - } - case 2: { - message.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allValues = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListModelVersionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.filter = ""; - /** - * Decodes a SliceConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SliceConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SliceConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SliceConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.kind = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify(message.value); - if (error) - return "value." + error; - } - } - if (message.range != null && message.hasOwnProperty("range")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify(message.range); - if (error) - return "range." + error; - } - } - if (message.allValues != null && message.hasOwnProperty("allValues")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.BoolValue.verify(message.allValues); - if (error) - return "allValues." + error; - } - } - return null; - }; - - /** - * Creates a SliceConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} SliceConfig - */ - SliceConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig(); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.value: object expected"); - message.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.fromObject(object.value); - } - if (object.range != null) { - if (typeof object.range !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.range: object expected"); - message.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.fromObject(object.range); - } - if (object.allValues != null) { - if (typeof object.allValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.allValues: object expected"); - message.allValues = $root.google.protobuf.BoolValue.fromObject(object.allValues); - } - return message; - }; - - /** - * Creates a plain object from a SliceConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig} message SliceConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SliceConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.toObject(message.value, options); - if (options.oneofs) - object.kind = "value"; - } - if (message.range != null && message.hasOwnProperty("range")) { - object.range = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.toObject(message.range, options); - if (options.oneofs) - object.kind = "range"; - } - if (message.allValues != null && message.hasOwnProperty("allValues")) { - object.allValues = $root.google.protobuf.BoolValue.toObject(message.allValues, options); - if (options.oneofs) - object.kind = "allValues"; - } - return object; - }; - - /** - * Converts this SliceConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @instance - * @returns {Object.} JSON object - */ - SliceConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SliceConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SliceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig"; - }; - - return SliceConfig; - })(); - - SliceSpec.Range = (function() { - - /** - * Properties of a Range. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @interface IRange - * @property {number|null} [low] Range low - * @property {number|null} [high] Range high - */ - - /** - * Constructs a new Range. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @classdesc Represents a Range. - * @implements IRange - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set - */ - function Range(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Range low. - * @member {number} low - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @instance - */ - Range.prototype.low = 0; - - /** - * Range high. - * @member {number} high - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @instance - */ - Range.prototype.high = 0; - - /** - * Creates a new Range instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range instance - */ - Range.create = function create(properties) { - return new Range(properties); - }; - - /** - * Encodes the specified Range message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Range.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.low != null && Object.hasOwnProperty.call(message, "low")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.low); - if (message.high != null && Object.hasOwnProperty.call(message, "high")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.high); - return writer; - }; - - /** - * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IRange} message Range message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Range.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Range message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Range.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.low = reader.float(); - break; - } - case 2: { - message.high = reader.float(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Range message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Range.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Range message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Range.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.low != null && message.hasOwnProperty("low")) - if (typeof message.low !== "number") - return "low: number expected"; - if (message.high != null && message.hasOwnProperty("high")) - if (typeof message.high !== "number") - return "high: number expected"; - return null; - }; - - /** - * Creates a Range message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} Range - */ - Range.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range(); - if (object.low != null) - message.low = Number(object.low); - if (object.high != null) - message.high = Number(object.high); - return message; - }; - - /** - * Creates a plain object from a Range message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range} message Range - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Range.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.low = 0; - object.high = 0; - } - if (message.low != null && message.hasOwnProperty("low")) - object.low = options.json && !isFinite(message.low) ? String(message.low) : message.low; - if (message.high != null && message.hasOwnProperty("high")) - object.high = options.json && !isFinite(message.high) ? String(message.high) : message.high; - return object; - }; - - /** - * Converts this Range to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @instance - * @returns {Object.} JSON object - */ - Range.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Range - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Range.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Range"; - }; - - return Range; - })(); - - SliceSpec.Value = (function() { - - /** - * Properties of a Value. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @interface IValue - * @property {string|null} [stringValue] Value stringValue - * @property {number|null} [floatValue] Value floatValue - */ - - /** - * Constructs a new Value. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @instance - */ - Value.prototype.stringValue = null; - - /** - * Value floatValue. - * @member {number|null|undefined} floatValue - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @instance - */ - Value.prototype.floatValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Value kind. - * @member {"stringValue"|"floatValue"|undefined} kind - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @instance - */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["stringValue", "floatValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); - if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.floatValue); - return writer; - }; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.stringValue = reader.string(); - break; - } - case 2: { - message.floatValue = reader.float(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Value message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.floatValue !== "number") - return "floatValue: number expected"; - } - return null; - }; - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} Value - */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value(); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.floatValue != null) - message.floatValue = Number(object.floatValue); - return message; - }; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value} message Value - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Value.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.kind = "stringValue"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue; - if (options.oneofs) - object.kind = "floatValue"; - } - return object; - }; - - /** - * Converts this Value to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @instance - * @returns {Object.} JSON object - */ - Value.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Value - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value"; - }; - - return Value; - })(); - - return SliceSpec; - })(); - - return Slice; - })(); - - return ModelEvaluationSlice; - })(); - - v1beta1.ModelGardenService = (function() { - - /** - * Constructs a new ModelGardenService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelGardenService - * @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 ModelGardenService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ModelGardenService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelGardenService; - - /** - * Creates new ModelGardenService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @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 {ModelGardenService} RPC service. Useful where requests and/or responses are streamed. - */ - ModelGardenService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|getPublisherModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @typedef GetPublisherModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PublisherModel} [response] PublisherModel - */ - - /** - * Calls GetPublisherModel. - * @function getPublisherModel - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} request GetPublisherModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelGardenService.GetPublisherModelCallback} callback Node-style callback called with the error, if any, and PublisherModel - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelGardenService.prototype.getPublisherModel = function getPublisherModel(request, callback) { - return this.rpcCall(getPublisherModel, $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest, $root.google.cloud.aiplatform.v1beta1.PublisherModel, request, callback); - }, "name", { value: "GetPublisherModel" }); - - /** - * Calls GetPublisherModel. - * @function getPublisherModel - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} request GetPublisherModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelGardenService|listPublisherModels}. - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @typedef ListPublisherModelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} [response] ListPublisherModelsResponse - */ - - /** - * Calls ListPublisherModels. - * @function listPublisherModels - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} request ListPublisherModelsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModelsCallback} callback Node-style callback called with the error, if any, and ListPublisherModelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelGardenService.prototype.listPublisherModels = function listPublisherModels(request, callback) { - return this.rpcCall(listPublisherModels, $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse, request, callback); - }, "name", { value: "ListPublisherModels" }); - - /** - * Calls ListPublisherModels. - * @function listPublisherModels - * @memberof google.cloud.aiplatform.v1beta1.ModelGardenService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} request ListPublisherModelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return ModelGardenService; - })(); - - /** - * PublisherModelView enum. - * @name google.cloud.aiplatform.v1beta1.PublisherModelView - * @enum {number} - * @property {number} PUBLISHER_MODEL_VIEW_UNSPECIFIED=0 PUBLISHER_MODEL_VIEW_UNSPECIFIED value - * @property {number} PUBLISHER_MODEL_VIEW_BASIC=1 PUBLISHER_MODEL_VIEW_BASIC value - * @property {number} PUBLISHER_MODEL_VIEW_FULL=2 PUBLISHER_MODEL_VIEW_FULL value - * @property {number} PUBLISHER_MODEL_VERSION_VIEW_BASIC=3 PUBLISHER_MODEL_VERSION_VIEW_BASIC value - */ - v1beta1.PublisherModelView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PUBLISHER_MODEL_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "PUBLISHER_MODEL_VIEW_BASIC"] = 1; - values[valuesById[2] = "PUBLISHER_MODEL_VIEW_FULL"] = 2; - values[valuesById[3] = "PUBLISHER_MODEL_VERSION_VIEW_BASIC"] = 3; - return values; - })(); - - v1beta1.GetPublisherModelRequest = (function() { - - /** - * Properties of a GetPublisherModelRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetPublisherModelRequest - * @property {string|null} [name] GetPublisherModelRequest name - * @property {string|null} [languageCode] GetPublisherModelRequest languageCode - * @property {google.cloud.aiplatform.v1beta1.PublisherModelView|null} [view] GetPublisherModelRequest view - */ - - /** - * Constructs a new GetPublisherModelRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetPublisherModelRequest. - * @implements IGetPublisherModelRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest=} [properties] Properties to set - */ - function GetPublisherModelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetPublisherModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest - * @instance - */ - GetPublisherModelRequest.prototype.name = ""; - - /** - * GetPublisherModelRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest - * @instance - */ - GetPublisherModelRequest.prototype.languageCode = ""; + /** + * ListModelVersionsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.readMask = null; /** - * GetPublisherModelRequest view. - * @member {google.cloud.aiplatform.v1beta1.PublisherModelView} view - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * ListModelVersionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @instance */ - GetPublisherModelRequest.prototype.view = 0; + ListModelVersionsRequest.prototype.orderBy = ""; /** - * Creates a new GetPublisherModelRequest instance using the specified properties. + * Creates a new ListModelVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest instance */ - GetPublisherModelRequest.create = function create(properties) { - return new GetPublisherModelRequest(properties); + ListModelVersionsRequest.create = function create(properties) { + return new ListModelVersionsRequest(properties); }; /** - * Encodes the specified GetPublisherModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} message GetPublisherModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPublisherModelRequest.encode = function encode(message, writer) { + ListModelVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.view); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified GetPublisherModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPublisherModelRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPublisherModelRequest} message GetPublisherModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPublisherModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPublisherModelRequest message from the specified reader or buffer. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPublisherModelRequest.decode = function decode(reader, length) { + ListModelVersionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -394168,11 +397238,23 @@ break; } case 2: { - message.languageCode = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.view = reader.int32(); + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); break; } default: @@ -394184,174 +397266,170 @@ }; /** - * Decodes a GetPublisherModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPublisherModelRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPublisherModelRequest message. + * Verifies a ListModelVersionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPublisherModelRequest.verify = function verify(message) { + ListModelVersionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a GetPublisherModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} GetPublisherModelRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest */ - GetPublisherModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest) + ListModelVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - switch (object.view) { - default: - if (typeof object.view === "number") { - message.view = object.view; - break; - } - break; - case "PUBLISHER_MODEL_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "PUBLISHER_MODEL_VIEW_BASIC": - case 1: - message.view = 1; - break; - case "PUBLISHER_MODEL_VIEW_FULL": - case 2: - message.view = 2; - break; - case "PUBLISHER_MODEL_VERSION_VIEW_BASIC": - case 3: - message.view = 3; - break; + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a GetPublisherModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetPublisherModelRequest} message GetPublisherModelRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} message ListModelVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPublisherModelRequest.toObject = function toObject(message, options) { + ListModelVersionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.languageCode = ""; - object.view = options.enums === String ? "PUBLISHER_MODEL_VIEW_UNSPECIFIED" : 0; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.readMask = null; + object.orderBy = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] === undefined ? message.view : $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] : message.view; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this GetPublisherModelRequest to JSON. + * Converts this ListModelVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @instance * @returns {Object.} JSON object */ - GetPublisherModelRequest.prototype.toJSON = function toJSON() { + ListModelVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPublisherModelRequest + * Gets the default type url for ListModelVersionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPublisherModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetPublisherModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelVersionsRequest"; }; - return GetPublisherModelRequest; + return ListModelVersionsRequest; })(); - v1beta1.ListPublisherModelsRequest = (function() { + v1beta1.ListModelVersionsResponse = (function() { /** - * Properties of a ListPublisherModelsRequest. + * Properties of a ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPublisherModelsRequest - * @property {string|null} [parent] ListPublisherModelsRequest parent - * @property {string|null} [filter] ListPublisherModelsRequest filter - * @property {number|null} [pageSize] ListPublisherModelsRequest pageSize - * @property {string|null} [pageToken] ListPublisherModelsRequest pageToken - * @property {google.cloud.aiplatform.v1beta1.PublisherModelView|null} [view] ListPublisherModelsRequest view - * @property {string|null} [orderBy] ListPublisherModelsRequest orderBy - * @property {string|null} [languageCode] ListPublisherModelsRequest languageCode + * @interface IListModelVersionsResponse + * @property {Array.|null} [models] ListModelVersionsResponse models + * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken */ /** - * Constructs a new ListPublisherModelsRequest. + * Constructs a new ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPublisherModelsRequest. - * @implements IListPublisherModelsRequest + * @classdesc Represents a ListModelVersionsResponse. + * @implements IListModelVersionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse=} [properties] Properties to set */ - function ListPublisherModelsRequest(properties) { + function ListModelVersionsResponse(properties) { + this.models = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -394359,159 +397437,92 @@ } /** - * ListPublisherModelsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * ListModelVersionsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @instance */ - ListPublisherModelsRequest.prototype.parent = ""; + ListModelVersionsResponse.prototype.models = $util.emptyArray; /** - * ListPublisherModelsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * ListModelVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @instance */ - ListPublisherModelsRequest.prototype.filter = ""; + ListModelVersionsResponse.prototype.nextPageToken = ""; /** - * ListPublisherModelsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest - * @instance - */ - ListPublisherModelsRequest.prototype.pageSize = 0; - - /** - * ListPublisherModelsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest - * @instance - */ - ListPublisherModelsRequest.prototype.pageToken = ""; - - /** - * ListPublisherModelsRequest view. - * @member {google.cloud.aiplatform.v1beta1.PublisherModelView} view - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest - * @instance - */ - ListPublisherModelsRequest.prototype.view = 0; - - /** - * ListPublisherModelsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest - * @instance - */ - ListPublisherModelsRequest.prototype.orderBy = ""; - - /** - * ListPublisherModelsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest - * @instance - */ - ListPublisherModelsRequest.prototype.languageCode = ""; - - /** - * Creates a new ListPublisherModelsRequest instance using the specified properties. + * Creates a new ListModelVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse instance */ - ListPublisherModelsRequest.create = function create(properties) { - return new ListPublisherModelsRequest(properties); + ListModelVersionsResponse.create = function create(properties) { + return new ListModelVersionsResponse(properties); }; /** - * Encodes the specified ListPublisherModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} message ListPublisherModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublisherModelsRequest.encode = function encode(message, writer) { + ListModelVersionsResponse.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.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.view); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.languageCode); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListPublisherModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsRequest} message ListPublisherModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublisherModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPublisherModelsRequest message from the specified reader or buffer. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublisherModelsRequest.decode = function decode(reader, length) { + ListModelVersionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32())); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.view = reader.int32(); - break; - } - case 6: { - message.orderBy = reader.string(); - break; - } - case 7: { - message.languageCode = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -394523,202 +397534,149 @@ }; /** - * Decodes a ListPublisherModelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublisherModelsRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPublisherModelsRequest message. + * Verifies a ListModelVersionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPublisherModelsRequest.verify = function verify(message) { + ListModelVersionsResponse.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.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.models[i]); + if (error) + return "models." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListPublisherModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} ListPublisherModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse */ - ListPublisherModelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) + ListModelVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest(); - 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); - switch (object.view) { - default: - if (typeof object.view === "number") { - message.view = object.view; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); } - break; - case "PUBLISHER_MODEL_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "PUBLISHER_MODEL_VIEW_BASIC": - case 1: - message.view = 1; - break; - case "PUBLISHER_MODEL_VIEW_FULL": - case 2: - message.view = 2; - break; - case "PUBLISHER_MODEL_VERSION_VIEW_BASIC": - case 3: - message.view = 3; - break; } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListPublisherModelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} message ListPublisherModelsRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} message ListModelVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPublisherModelsRequest.toObject = function toObject(message, options) { + ListModelVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.view = options.enums === String ? "PUBLISHER_MODEL_VIEW_UNSPECIFIED" : 0; - object.orderBy = ""; - object.languageCode = ""; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.models[j], options); } - if (message.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.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] === undefined ? message.view : $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] : message.view; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListPublisherModelsRequest to JSON. + * Converts this ListModelVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @instance * @returns {Object.} JSON object */ - ListPublisherModelsRequest.prototype.toJSON = function toJSON() { + ListModelVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPublisherModelsRequest + * Gets the default type url for ListModelVersionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPublisherModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelVersionsResponse"; }; - return ListPublisherModelsRequest; + return ListModelVersionsResponse; })(); - v1beta1.ListPublisherModelsResponse = (function() { + v1beta1.UpdateModelRequest = (function() { /** - * Properties of a ListPublisherModelsResponse. + * Properties of an UpdateModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPublisherModelsResponse - * @property {Array.|null} [publisherModels] ListPublisherModelsResponse publisherModels - * @property {string|null} [nextPageToken] ListPublisherModelsResponse nextPageToken + * @interface IUpdateModelRequest + * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UpdateModelRequest model + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask */ /** - * Constructs a new ListPublisherModelsResponse. + * Constructs a new UpdateModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPublisherModelsResponse. - * @implements IListPublisherModelsResponse + * @classdesc Represents an UpdateModelRequest. + * @implements IUpdateModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set */ - function ListPublisherModelsResponse(properties) { - this.publisherModels = []; + function UpdateModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -394726,92 +397684,89 @@ } /** - * ListPublisherModelsResponse publisherModels. - * @member {Array.} publisherModels - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * UpdateModelRequest model. + * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @instance */ - ListPublisherModelsResponse.prototype.publisherModels = $util.emptyArray; + UpdateModelRequest.prototype.model = null; /** - * ListPublisherModelsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * UpdateModelRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @instance */ - ListPublisherModelsResponse.prototype.nextPageToken = ""; + UpdateModelRequest.prototype.updateMask = null; /** - * Creates a new ListPublisherModelsResponse instance using the specified properties. + * Creates a new UpdateModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest instance */ - ListPublisherModelsResponse.create = function create(properties) { - return new ListPublisherModelsResponse(properties); + UpdateModelRequest.create = function create(properties) { + return new UpdateModelRequest(properties); }; /** - * Encodes the specified ListPublisherModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse} message ListPublisherModelsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublisherModelsResponse.encode = function encode(message, writer) { + UpdateModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.publisherModels != null && message.publisherModels.length) - for (var i = 0; i < message.publisherModels.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.encode(message.publisherModels[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.model != null && Object.hasOwnProperty.call(message, "model")) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListPublisherModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.verify|verify} messages. + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPublisherModelsResponse} message ListPublisherModelsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublisherModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPublisherModelsResponse message from the specified reader or buffer. + * Decodes an UpdateModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublisherModelsResponse.decode = function decode(reader, length) { + UpdateModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.publisherModels && message.publisherModels.length)) - message.publisherModels = []; - message.publisherModels.push($root.google.cloud.aiplatform.v1beta1.PublisherModel.decode(reader, reader.uint32())); + message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -394823,158 +397778,142 @@ }; /** - * Decodes a ListPublisherModelsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublisherModelsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPublisherModelsResponse message. + * Verifies an UpdateModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPublisherModelsResponse.verify = function verify(message) { + UpdateModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.publisherModels != null && message.hasOwnProperty("publisherModels")) { - if (!Array.isArray(message.publisherModels)) - return "publisherModels: array expected"; - for (var i = 0; i < message.publisherModels.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.verify(message.publisherModels[i]); - if (error) - return "publisherModels." + error; - } + if (message.model != null && message.hasOwnProperty("model")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); + if (error) + return "model." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListPublisherModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} ListPublisherModelsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest */ - ListPublisherModelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) + UpdateModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse(); - if (object.publisherModels) { - if (!Array.isArray(object.publisherModels)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.publisherModels: array expected"); - message.publisherModels = []; - for (var i = 0; i < object.publisherModels.length; ++i) { - if (typeof object.publisherModels[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.publisherModels: object expected"); - message.publisherModels[i] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.fromObject(object.publisherModels[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); + if (object.model != null) { + if (typeof object.model !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.model: object expected"); + message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListPublisherModelsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} message ListPublisherModelsResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateModelRequest} message UpdateModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPublisherModelsResponse.toObject = function toObject(message, options) { + UpdateModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.publisherModels = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.publisherModels && message.publisherModels.length) { - object.publisherModels = []; - for (var j = 0; j < message.publisherModels.length; ++j) - object.publisherModels[j] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.toObject(message.publisherModels[j], options); + if (options.defaults) { + object.model = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.model != null && message.hasOwnProperty("model")) + object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListPublisherModelsResponse to JSON. + * Converts this UpdateModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @instance * @returns {Object.} JSON object */ - ListPublisherModelsResponse.prototype.toJSON = function toJSON() { + UpdateModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPublisherModelsResponse + * Gets the default type url for UpdateModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPublisherModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelRequest"; }; - return ListPublisherModelsResponse; + return UpdateModelRequest; })(); - v1beta1.PublisherModel = (function() { + v1beta1.UpdateExplanationDatasetRequest = (function() { /** - * Properties of a PublisherModel. + * Properties of an UpdateExplanationDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPublisherModel - * @property {string|null} [name] PublisherModel name - * @property {string|null} [versionId] PublisherModel versionId - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory|null} [openSourceCategory] PublisherModel openSourceCategory - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null} [parent] PublisherModel parent - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null} [supportedActions] PublisherModel supportedActions - * @property {Array.|null} [frameworks] PublisherModel frameworks - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage|null} [launchStage] PublisherModel launchStage - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.VersionState|null} [versionState] PublisherModel versionState - * @property {string|null} [publisherModelTemplate] PublisherModel publisherModelTemplate - * @property {google.cloud.aiplatform.v1beta1.IPredictSchemata|null} [predictSchemata] PublisherModel predictSchemata + * @interface IUpdateExplanationDatasetRequest + * @property {string|null} [model] UpdateExplanationDatasetRequest model + * @property {google.cloud.aiplatform.v1beta1.IExamples|null} [examples] UpdateExplanationDatasetRequest examples */ /** - * Constructs a new PublisherModel. + * Constructs a new UpdateExplanationDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PublisherModel. - * @implements IPublisherModel + * @classdesc Represents an UpdateExplanationDatasetRequest. + * @implements IUpdateExplanationDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPublisherModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest=} [properties] Properties to set */ - function PublisherModel(properties) { - this.frameworks = []; + function UpdateExplanationDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -394982,204 +397921,89 @@ } /** - * PublisherModel name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.name = ""; - - /** - * PublisherModel versionId. - * @member {string} versionId - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.versionId = ""; - - /** - * PublisherModel openSourceCategory. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory} openSourceCategory - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.openSourceCategory = 0; - - /** - * PublisherModel parent. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.IParent|null|undefined} parent - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.parent = null; - - /** - * PublisherModel supportedActions. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction|null|undefined} supportedActions - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.supportedActions = null; - - /** - * PublisherModel frameworks. - * @member {Array.} frameworks - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.frameworks = $util.emptyArray; - - /** - * PublisherModel launchStage. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage} launchStage - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.launchStage = 0; - - /** - * PublisherModel versionState. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.VersionState} versionState - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @instance - */ - PublisherModel.prototype.versionState = 0; - - /** - * PublisherModel publisherModelTemplate. - * @member {string} publisherModelTemplate - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * UpdateExplanationDatasetRequest model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @instance */ - PublisherModel.prototype.publisherModelTemplate = ""; + UpdateExplanationDatasetRequest.prototype.model = ""; /** - * PublisherModel predictSchemata. - * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * UpdateExplanationDatasetRequest examples. + * @member {google.cloud.aiplatform.v1beta1.IExamples|null|undefined} examples + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @instance */ - PublisherModel.prototype.predictSchemata = null; + UpdateExplanationDatasetRequest.prototype.examples = null; /** - * Creates a new PublisherModel instance using the specified properties. + * Creates a new UpdateExplanationDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPublisherModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest instance */ - PublisherModel.create = function create(properties) { - return new PublisherModel(properties); + UpdateExplanationDatasetRequest.create = function create(properties) { + return new UpdateExplanationDatasetRequest(properties); }; /** - * Encodes the specified PublisherModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. + * Encodes the specified UpdateExplanationDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPublisherModel} message PublisherModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} message UpdateExplanationDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublisherModel.encode = function encode(message, writer) { + UpdateExplanationDatasetRequest.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.versionId != null && Object.hasOwnProperty.call(message, "versionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionId); - if (message.openSourceCategory != null && Object.hasOwnProperty.call(message, "openSourceCategory")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.openSourceCategory); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.encode(message.parent, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.supportedActions != null && Object.hasOwnProperty.call(message, "supportedActions")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.encode(message.supportedActions, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.frameworks != null && message.frameworks.length) - for (var i = 0; i < message.frameworks.length; ++i) - writer.uint32(/* id 23, wireType 2 =*/186).string(message.frameworks[i]); - if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) - writer.uint32(/* id 29, wireType 0 =*/232).int32(message.launchStage); - if (message.publisherModelTemplate != null && Object.hasOwnProperty.call(message, "publisherModelTemplate")) - writer.uint32(/* id 30, wireType 2 =*/242).string(message.publisherModelTemplate); - if (message.predictSchemata != null && Object.hasOwnProperty.call(message, "predictSchemata")) - $root.google.cloud.aiplatform.v1beta1.PredictSchemata.encode(message.predictSchemata, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); - if (message.versionState != null && Object.hasOwnProperty.call(message, "versionState")) - writer.uint32(/* id 37, wireType 0 =*/296).int32(message.versionState); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.examples != null && Object.hasOwnProperty.call(message, "examples")) + $root.google.cloud.aiplatform.v1beta1.Examples.encode(message.examples, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PublisherModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.verify|verify} messages. + * Encodes the specified UpdateExplanationDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPublisherModel} message PublisherModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} message UpdateExplanationDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublisherModel.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExplanationDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PublisherModel message from the specified reader or buffer. + * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublisherModel.decode = function decode(reader, length) { + UpdateExplanationDatasetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.model = reader.string(); break; } case 2: { - message.versionId = reader.string(); - break; - } - case 7: { - message.openSourceCategory = reader.int32(); - break; - } - case 14: { - message.parent = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.decode(reader, reader.uint32()); - break; - } - case 19: { - message.supportedActions = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.decode(reader, reader.uint32()); - break; - } - case 23: { - if (!(message.frameworks && message.frameworks.length)) - message.frameworks = []; - message.frameworks.push(reader.string()); - break; - } - case 29: { - message.launchStage = reader.int32(); - break; - } - case 37: { - message.versionState = reader.int32(); - break; - } - case 30: { - message.publisherModelTemplate = reader.string(); - break; - } - case 31: { - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.decode(reader, reader.uint32()); + message.examples = $root.google.cloud.aiplatform.v1beta1.Examples.decode(reader, reader.uint32()); break; } default: @@ -395191,1295 +398015,1328 @@ }; /** - * Decodes a PublisherModel message from the specified reader or buffer, length delimited. + * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublisherModel.decodeDelimited = function decodeDelimited(reader) { + UpdateExplanationDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PublisherModel message. + * Verifies an UpdateExplanationDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PublisherModel.verify = function verify(message) { + UpdateExplanationDatasetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.versionId != null && message.hasOwnProperty("versionId")) - if (!$util.isString(message.versionId)) - return "versionId: string expected"; - if (message.openSourceCategory != null && message.hasOwnProperty("openSourceCategory")) - switch (message.openSourceCategory) { - default: - return "openSourceCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.parent != null && message.hasOwnProperty("parent")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify(message.parent); - if (error) - return "parent." + error; - } - if (message.supportedActions != null && message.hasOwnProperty("supportedActions")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify(message.supportedActions); - if (error) - return "supportedActions." + error; - } - if (message.frameworks != null && message.hasOwnProperty("frameworks")) { - if (!Array.isArray(message.frameworks)) - return "frameworks: array expected"; - for (var i = 0; i < message.frameworks.length; ++i) - if (!$util.isString(message.frameworks[i])) - return "frameworks: string[] expected"; - } - if (message.launchStage != null && message.hasOwnProperty("launchStage")) - switch (message.launchStage) { - default: - return "launchStage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.versionState != null && message.hasOwnProperty("versionState")) - switch (message.versionState) { - default: - return "versionState: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.publisherModelTemplate != null && message.hasOwnProperty("publisherModelTemplate")) - if (!$util.isString(message.publisherModelTemplate)) - return "publisherModelTemplate: string expected"; - if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { - var error = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.verify(message.predictSchemata); + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.examples != null && message.hasOwnProperty("examples")) { + var error = $root.google.cloud.aiplatform.v1beta1.Examples.verify(message.examples); if (error) - return "predictSchemata." + error; + return "examples." + error; } return null; }; /** - * Creates a PublisherModel message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExplanationDatasetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel} PublisherModel + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest */ - PublisherModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel) + UpdateExplanationDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel(); - if (object.name != null) - message.name = String(object.name); - if (object.versionId != null) - message.versionId = String(object.versionId); - switch (object.openSourceCategory) { - default: - if (typeof object.openSourceCategory === "number") { - message.openSourceCategory = object.openSourceCategory; - break; - } - break; - case "OPEN_SOURCE_CATEGORY_UNSPECIFIED": - case 0: - message.openSourceCategory = 0; - break; - case "PROPRIETARY": - case 1: - message.openSourceCategory = 1; - break; - case "GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT": - case 2: - message.openSourceCategory = 2; - break; - case "THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT": - case 3: - message.openSourceCategory = 3; - break; - case "GOOGLE_OWNED_OSS": - case 4: - message.openSourceCategory = 4; - break; - case "THIRD_PARTY_OWNED_OSS": - case 5: - message.openSourceCategory = 5; - break; - } - if (object.parent != null) { - if (typeof object.parent !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.parent: object expected"); - message.parent = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.fromObject(object.parent); - } - if (object.supportedActions != null) { - if (typeof object.supportedActions !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.supportedActions: object expected"); - message.supportedActions = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.fromObject(object.supportedActions); - } - if (object.frameworks) { - if (!Array.isArray(object.frameworks)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.frameworks: array expected"); - message.frameworks = []; - for (var i = 0; i < object.frameworks.length; ++i) - message.frameworks[i] = String(object.frameworks[i]); - } - switch (object.launchStage) { - default: - if (typeof object.launchStage === "number") { - message.launchStage = object.launchStage; - break; - } - break; - case "LAUNCH_STAGE_UNSPECIFIED": - case 0: - message.launchStage = 0; - break; - case "EXPERIMENTAL": - case 1: - message.launchStage = 1; - break; - case "PRIVATE_PREVIEW": - case 2: - message.launchStage = 2; - break; - case "PUBLIC_PREVIEW": - case 3: - message.launchStage = 3; - break; - case "GA": - case 4: - message.launchStage = 4; - break; - } - switch (object.versionState) { - default: - if (typeof object.versionState === "number") { - message.versionState = object.versionState; - break; - } - break; - case "VERSION_STATE_UNSPECIFIED": - case 0: - message.versionState = 0; - break; - case "VERSION_STATE_STABLE": - case 1: - message.versionState = 1; - break; - case "VERSION_STATE_UNSTABLE": - case 2: - message.versionState = 2; - break; - } - if (object.publisherModelTemplate != null) - message.publisherModelTemplate = String(object.publisherModelTemplate); - if (object.predictSchemata != null) { - if (typeof object.predictSchemata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.predictSchemata: object expected"); - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.fromObject(object.predictSchemata); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(); + if (object.model != null) + message.model = String(object.model); + if (object.examples != null) { + if (typeof object.examples !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.examples: object expected"); + message.examples = $root.google.cloud.aiplatform.v1beta1.Examples.fromObject(object.examples); } return message; }; /** - * Creates a plain object from a PublisherModel message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExplanationDatasetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel} message PublisherModel + * @param {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} message UpdateExplanationDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PublisherModel.toObject = function toObject(message, options) { + UpdateExplanationDatasetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.frameworks = []; if (options.defaults) { - object.name = ""; - object.versionId = ""; - object.openSourceCategory = options.enums === String ? "OPEN_SOURCE_CATEGORY_UNSPECIFIED" : 0; - object.parent = null; - object.supportedActions = null; - object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; - object.publisherModelTemplate = ""; - object.predictSchemata = null; - object.versionState = options.enums === String ? "VERSION_STATE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.versionId != null && message.hasOwnProperty("versionId")) - object.versionId = message.versionId; - if (message.openSourceCategory != null && message.hasOwnProperty("openSourceCategory")) - object.openSourceCategory = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory[message.openSourceCategory] === undefined ? message.openSourceCategory : $root.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory[message.openSourceCategory] : message.openSourceCategory; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.toObject(message.parent, options); - if (message.supportedActions != null && message.hasOwnProperty("supportedActions")) - object.supportedActions = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.toObject(message.supportedActions, options); - if (message.frameworks && message.frameworks.length) { - object.frameworks = []; - for (var j = 0; j < message.frameworks.length; ++j) - object.frameworks[j] = message.frameworks[j]; + object.model = ""; + object.examples = null; } - if (message.launchStage != null && message.hasOwnProperty("launchStage")) - object.launchStage = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage[message.launchStage] : message.launchStage; - if (message.publisherModelTemplate != null && message.hasOwnProperty("publisherModelTemplate")) - object.publisherModelTemplate = message.publisherModelTemplate; - if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) - object.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.toObject(message.predictSchemata, options); - if (message.versionState != null && message.hasOwnProperty("versionState")) - object.versionState = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModel.VersionState[message.versionState] === undefined ? message.versionState : $root.google.cloud.aiplatform.v1beta1.PublisherModel.VersionState[message.versionState] : message.versionState; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.examples != null && message.hasOwnProperty("examples")) + object.examples = $root.google.cloud.aiplatform.v1beta1.Examples.toObject(message.examples, options); return object; }; /** - * Converts this PublisherModel to JSON. + * Converts this UpdateExplanationDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @instance * @returns {Object.} JSON object */ - PublisherModel.prototype.toJSON = function toJSON() { + UpdateExplanationDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PublisherModel + * Gets the default type url for UpdateExplanationDatasetRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PublisherModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExplanationDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest"; }; - PublisherModel.ResourceReference = (function() { - - /** - * Properties of a ResourceReference. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @interface IResourceReference - * @property {string|null} [uri] ResourceReference uri - * @property {string|null} [resourceName] ResourceReference resourceName - * @property {string|null} [useCase] ResourceReference useCase - * @property {string|null} [description] ResourceReference description - */ + return UpdateExplanationDatasetRequest; + })(); - /** - * Constructs a new ResourceReference. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @classdesc Represents a ResourceReference. - * @implements IResourceReference - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference=} [properties] Properties to set - */ - function ResourceReference(properties) { - if (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.UpdateExplanationDatasetOperationMetadata = (function() { - /** - * ResourceReference uri. - * @member {string|null|undefined} uri - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @instance - */ - ResourceReference.prototype.uri = null; + /** + * Properties of an UpdateExplanationDatasetOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateExplanationDatasetOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateExplanationDatasetOperationMetadata genericMetadata + */ - /** - * ResourceReference resourceName. - * @member {string|null|undefined} resourceName - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @instance - */ - ResourceReference.prototype.resourceName = null; + /** + * Constructs a new UpdateExplanationDatasetOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateExplanationDatasetOperationMetadata. + * @implements IUpdateExplanationDatasetOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata=} [properties] Properties to set + */ + function UpdateExplanationDatasetOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ResourceReference useCase. - * @member {string|null|undefined} useCase - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @instance - */ - ResourceReference.prototype.useCase = null; - - /** - * ResourceReference description. - * @member {string|null|undefined} description - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @instance - */ - ResourceReference.prototype.description = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ResourceReference reference. - * @member {"uri"|"resourceName"|"useCase"|"description"|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @instance - */ - Object.defineProperty(ResourceReference.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["uri", "resourceName", "useCase", "description"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * UpdateExplanationDatasetOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @instance + */ + UpdateExplanationDatasetOperationMetadata.prototype.genericMetadata = null; - /** - * Creates a new ResourceReference instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference instance - */ - ResourceReference.create = function create(properties) { - return new ResourceReference(properties); - }; + /** + * Creates a new UpdateExplanationDatasetOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata instance + */ + UpdateExplanationDatasetOperationMetadata.create = function create(properties) { + return new UpdateExplanationDatasetOperationMetadata(properties); + }; - /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference} message ResourceReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceReference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.resourceName != null && Object.hasOwnProperty.call(message, "resourceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceName); - if (message.useCase != null && Object.hasOwnProperty.call(message, "useCase")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.useCase); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - return writer; - }; + /** + * Encodes the specified UpdateExplanationDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata} message UpdateExplanationDatasetOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateExplanationDatasetOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference} message ResourceReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UpdateExplanationDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata} message UpdateExplanationDatasetOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateExplanationDatasetOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ResourceReference message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceReference.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.uri = reader.string(); - break; - } - case 2: { - message.resourceName = reader.string(); - break; - } - case 3: { - message.useCase = reader.string(); - break; - } - case 4: { - message.description = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateExplanationDatasetOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceReference.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ResourceReference message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceReference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.uri != null && message.hasOwnProperty("uri")) { - properties.reference = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.resourceName != null && message.hasOwnProperty("resourceName")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - if (!$util.isString(message.resourceName)) - return "resourceName: string expected"; - } - if (message.useCase != null && message.hasOwnProperty("useCase")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - if (!$util.isString(message.useCase)) - return "useCase: string expected"; - } - if (message.description != null && message.hasOwnProperty("description")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - if (!$util.isString(message.description)) - return "description: string expected"; - } - return null; - }; + /** + * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateExplanationDatasetOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} ResourceReference - */ - ResourceReference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference(); - if (object.uri != null) - message.uri = String(object.uri); - if (object.resourceName != null) - message.resourceName = String(object.resourceName); - if (object.useCase != null) - message.useCase = String(object.useCase); - if (object.description != null) - message.description = String(object.description); - return message; - }; + /** + * Verifies an UpdateExplanationDatasetOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateExplanationDatasetOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference} message ResourceReference - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResourceReference.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.uri != null && message.hasOwnProperty("uri")) { - object.uri = message.uri; - if (options.oneofs) - object.reference = "uri"; - } - if (message.resourceName != null && message.hasOwnProperty("resourceName")) { - object.resourceName = message.resourceName; - if (options.oneofs) - object.reference = "resourceName"; - } - if (message.useCase != null && message.hasOwnProperty("useCase")) { - object.useCase = message.useCase; - if (options.oneofs) - object.reference = "useCase"; - } - if (message.description != null && message.hasOwnProperty("description")) { - object.description = message.description; - if (options.oneofs) - object.reference = "description"; - } + /** + * Creates an UpdateExplanationDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata + */ + UpdateExplanationDatasetOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; - /** - * Converts this ResourceReference to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @instance - * @returns {Object.} JSON object - */ - ResourceReference.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UpdateExplanationDatasetOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} message UpdateExplanationDatasetOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateExplanationDatasetOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - /** - * Gets the default type url for ResourceReference - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference"; - }; + /** + * Converts this UpdateExplanationDatasetOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UpdateExplanationDatasetOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ResourceReference; - })(); + /** + * Gets the default type url for UpdateExplanationDatasetOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateExplanationDatasetOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata"; + }; - PublisherModel.Parent = (function() { + return UpdateExplanationDatasetOperationMetadata; + })(); - /** - * Properties of a Parent. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @interface IParent - * @property {string|null} [displayName] Parent displayName - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null} [reference] Parent reference - */ + v1beta1.DeleteModelRequest = (function() { - /** - * Constructs a new Parent. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @classdesc Represents a Parent. - * @implements IParent - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent=} [properties] Properties to set - */ - function Parent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DeleteModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteModelRequest + * @property {string|null} [name] DeleteModelRequest name + */ - /** - * Parent displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @instance - */ - Parent.prototype.displayName = ""; + /** + * Constructs a new DeleteModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteModelRequest. + * @implements IDeleteModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set + */ + function DeleteModelRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Parent reference. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @instance - */ - Parent.prototype.reference = null; + /** + * DeleteModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @instance + */ + DeleteModelRequest.prototype.name = ""; - /** - * Creates a new Parent instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent instance - */ - Parent.create = function create(properties) { - return new Parent(properties); - }; + /** + * Creates a new DeleteModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest instance + */ + DeleteModelRequest.create = function create(properties) { + return new DeleteModelRequest(properties); + }; - /** - * Encodes the specified Parent message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent} message Parent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.encode(message.reference, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelRequest.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 Parent message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Parent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IParent} message Parent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Parent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.displayName = reader.string(); - break; - } - case 2: { - message.reference = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a DeleteModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Parent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Parent message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.reference != null && message.hasOwnProperty("reference")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify(message.reference); - if (error) - return "reference." + error; - } - return null; - }; + /** + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Parent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} Parent - */ - Parent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Parent(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.reference != null) { - if (typeof object.reference !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.Parent.reference: object expected"); - message.reference = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.fromObject(object.reference); - } - return message; - }; + /** + * Verifies a DeleteModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteModelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a Parent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.Parent} message Parent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.reference = null; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.reference != null && message.hasOwnProperty("reference")) - object.reference = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.toObject(message.reference, options); + /** + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + */ + DeleteModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this Parent to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @instance - * @returns {Object.} JSON object - */ - Parent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteModelRequest} message DeleteModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteModelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for Parent - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Parent - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Parent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.Parent"; - }; + /** + * Converts this DeleteModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Parent; - })(); + /** + * Gets the default type url for DeleteModelRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelRequest"; + }; - PublisherModel.Documentation = (function() { + return DeleteModelRequest; + })(); - /** - * Properties of a Documentation. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @interface IDocumentation - * @property {string|null} [title] Documentation title - * @property {string|null} [content] Documentation content - */ + v1beta1.DeleteModelVersionRequest = (function() { - /** - * Constructs a new Documentation. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @classdesc Represents a Documentation. - * @implements IDocumentation - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation=} [properties] Properties to set - */ - function Documentation(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DeleteModelVersionRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteModelVersionRequest + * @property {string|null} [name] DeleteModelVersionRequest name + */ - /** - * Documentation title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @instance - */ - Documentation.prototype.title = ""; + /** + * Constructs a new DeleteModelVersionRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteModelVersionRequest. + * @implements IDeleteModelVersionRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest=} [properties] Properties to set + */ + function DeleteModelVersionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Documentation content. - * @member {string} content - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @instance - */ - Documentation.prototype.content = ""; + /** + * DeleteModelVersionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @instance + */ + DeleteModelVersionRequest.prototype.name = ""; - /** - * Creates a new Documentation instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation instance - */ - Documentation.create = function create(properties) { - return new Documentation(properties); - }; + /** + * Creates a new DeleteModelVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest instance + */ + DeleteModelVersionRequest.create = function create(properties) { + return new DeleteModelVersionRequest(properties); + }; - /** - * Encodes the specified Documentation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation} message Documentation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Documentation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); - return writer; - }; + /** + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified Documentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.IDocumentation} message Documentation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Documentation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Documentation message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Documentation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.title = reader.string(); - break; - } - case 2: { - message.content = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Documentation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Documentation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Documentation message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Documentation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!$util.isString(message.content)) - return "content: string expected"; - return null; - }; + /** + * Verifies a DeleteModelVersionRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteModelVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a Documentation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} Documentation - */ - Documentation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation(); - if (object.title != null) - message.title = String(object.title); - if (object.content != null) - message.content = String(object.content); - return message; - }; + /** + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest + */ + DeleteModelVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Creates a plain object from a Documentation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.Documentation} message Documentation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Documentation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.title = ""; - object.content = ""; + /** + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} message DeleteModelVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteModelVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteModelVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteModelVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteModelVersionRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteModelVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest"; + }; + + return DeleteModelVersionRequest; + })(); + + v1beta1.MergeVersionAliasesRequest = (function() { + + /** + * Properties of a MergeVersionAliasesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMergeVersionAliasesRequest + * @property {string|null} [name] MergeVersionAliasesRequest name + * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases + */ + + /** + * Constructs a new MergeVersionAliasesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MergeVersionAliasesRequest. + * @implements IMergeVersionAliasesRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest=} [properties] Properties to set + */ + function MergeVersionAliasesRequest(properties) { + this.versionAliases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MergeVersionAliasesRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @instance + */ + MergeVersionAliasesRequest.prototype.name = ""; + + /** + * MergeVersionAliasesRequest versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @instance + */ + MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; + + /** + * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance + */ + MergeVersionAliasesRequest.create = function create(properties) { + return new MergeVersionAliasesRequest(properties); + }; + + /** + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MergeVersionAliasesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.versionAliases != null && message.versionAliases.length) + for (var i = 0; i < message.versionAliases.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); + return writer; + }; + + /** + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MergeVersionAliasesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.content != null && message.hasOwnProperty("content")) - object.content = message.content; + } + return message; + }; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MergeVersionAliasesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MergeVersionAliasesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { + if (!Array.isArray(message.versionAliases)) + return "versionAliases: array expected"; + for (var i = 0; i < message.versionAliases.length; ++i) + if (!$util.isString(message.versionAliases[i])) + return "versionAliases: string[] expected"; + } + return null; + }; + + /** + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + */ + MergeVersionAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.versionAliases: array expected"); + message.versionAliases = []; + for (var i = 0; i < object.versionAliases.length; ++i) + message.versionAliases[i] = String(object.versionAliases[i]); + } + return message; + }; - /** - * Converts this Documentation to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @instance - * @returns {Object.} JSON object - */ - Documentation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MergeVersionAliasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versionAliases = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.versionAliases && message.versionAliases.length) { + object.versionAliases = []; + for (var j = 0; j < message.versionAliases.length; ++j) + object.versionAliases[j] = message.versionAliases[j]; + } + return object; + }; - /** - * Gets the default type url for Documentation - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.Documentation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Documentation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.Documentation"; - }; + /** + * Converts this MergeVersionAliasesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @instance + * @returns {Object.} JSON object + */ + MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Documentation; - })(); + /** + * Gets the default type url for MergeVersionAliasesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MergeVersionAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest"; + }; - PublisherModel.CallToAction = (function() { + return MergeVersionAliasesRequest; + })(); - /** - * Properties of a CallToAction. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @interface ICallToAction - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null} [viewRestApi] CallToAction viewRestApi - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openNotebook] CallToAction openNotebook - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [createApplication] CallToAction createApplication - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openFineTuningPipeline] CallToAction openFineTuningPipeline - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openPromptTuningPipeline] CallToAction openPromptTuningPipeline - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openGenie] CallToAction openGenie - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null} [deploy] CallToAction deploy - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openGenerationAiStudio] CallToAction openGenerationAiStudio - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [requestAccess] CallToAction requestAccess - * @property {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null} [openEvaluationPipeline] CallToAction openEvaluationPipeline - */ + v1beta1.ExportModelRequest = (function() { - /** - * Constructs a new CallToAction. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel - * @classdesc Represents a CallToAction. - * @implements ICallToAction - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction=} [properties] Properties to set - */ - function CallToAction(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Properties of an ExportModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IExportModelRequest + * @property {string|null} [name] ExportModelRequest name + * @property {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig + */ + + /** + * Constructs a new ExportModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ExportModelRequest. + * @implements IExportModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set + */ + function ExportModelRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExportModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @instance + */ + ExportModelRequest.prototype.name = ""; + + /** + * ExportModelRequest outputConfig. + * @member {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @instance + */ + ExportModelRequest.prototype.outputConfig = null; + + /** + * Creates a new ExportModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest instance + */ + ExportModelRequest.create = function create(properties) { + return new ExportModelRequest(properties); + }; + + /** + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) + $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * CallToAction viewRestApi. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi|null|undefined} viewRestApi - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance - */ - CallToAction.prototype.viewRestApi = null; + /** + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * CallToAction openNotebook. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openNotebook - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance - */ - CallToAction.prototype.openNotebook = null; + /** + * Verifies an ExportModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportModelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify(message.outputConfig); + if (error) + return "outputConfig." + error; + } + return null; + }; - /** - * CallToAction createApplication. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} createApplication - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance - */ - CallToAction.prototype.createApplication = null; + /** + * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + */ + ExportModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.outputConfig != null) { + if (typeof object.outputConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.outputConfig: object expected"); + message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); + } + return message; + }; - /** - * CallToAction openFineTuningPipeline. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openFineTuningPipeline - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance - */ - CallToAction.prototype.openFineTuningPipeline = null; + /** + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest} message ExportModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportModelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.outputConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) + object.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); + return object; + }; - /** - * CallToAction openPromptTuningPipeline. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openPromptTuningPipeline - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance - */ - CallToAction.prototype.openPromptTuningPipeline = null; + /** + * Converts this ExportModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @instance + * @returns {Object.} JSON object + */ + ExportModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportModelRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelRequest"; + }; + + ExportModelRequest.OutputConfig = (function() { /** - * CallToAction openGenie. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openGenie - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance + * Properties of an OutputConfig. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @interface IOutputConfig + * @property {string|null} [exportFormatId] OutputConfig exportFormatId + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination + * @property {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination */ - CallToAction.prototype.openGenie = null; /** - * CallToAction deploy. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy|null|undefined} deploy - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @instance + * Constructs a new OutputConfig. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @classdesc Represents an OutputConfig. + * @implements IOutputConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set */ - CallToAction.prototype.deploy = null; + function OutputConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * CallToAction openGenerationAiStudio. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openGenerationAiStudio - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * OutputConfig exportFormatId. + * @member {string} exportFormatId + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance */ - CallToAction.prototype.openGenerationAiStudio = null; + OutputConfig.prototype.exportFormatId = ""; /** - * CallToAction requestAccess. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} requestAccess - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * OutputConfig artifactDestination. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} artifactDestination + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance */ - CallToAction.prototype.requestAccess = null; + OutputConfig.prototype.artifactDestination = null; /** - * CallToAction openEvaluationPipeline. - * @member {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences|null|undefined} openEvaluationPipeline - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * OutputConfig imageDestination. + * @member {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null|undefined} imageDestination + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance */ - CallToAction.prototype.openEvaluationPipeline = null; + OutputConfig.prototype.imageDestination = null; /** - * Creates a new CallToAction instance using the specified properties. + * Creates a new OutputConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction instance + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig instance */ - CallToAction.create = function create(properties) { - return new CallToAction(properties); + OutputConfig.create = function create(properties) { + return new OutputConfig(properties); }; /** - * Encodes the specified CallToAction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction} message CallToAction message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallToAction.encode = function encode(message, writer) { + OutputConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.viewRestApi != null && Object.hasOwnProperty.call(message, "viewRestApi")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.encode(message.viewRestApi, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.openNotebook != null && Object.hasOwnProperty.call(message, "openNotebook")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openNotebook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.createApplication != null && Object.hasOwnProperty.call(message, "createApplication")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.createApplication, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.openFineTuningPipeline != null && Object.hasOwnProperty.call(message, "openFineTuningPipeline")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openFineTuningPipeline, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.openPromptTuningPipeline != null && Object.hasOwnProperty.call(message, "openPromptTuningPipeline")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openPromptTuningPipeline, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.openGenie != null && Object.hasOwnProperty.call(message, "openGenie")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openGenie, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.deploy != null && Object.hasOwnProperty.call(message, "deploy")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.encode(message.deploy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.openGenerationAiStudio != null && Object.hasOwnProperty.call(message, "openGenerationAiStudio")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openGenerationAiStudio, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.requestAccess != null && Object.hasOwnProperty.call(message, "requestAccess")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.requestAccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.openEvaluationPipeline != null && Object.hasOwnProperty.call(message, "openEvaluationPipeline")) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.encode(message.openEvaluationPipeline, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); + if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) + $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified CallToAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.verify|verify} messages. + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.ICallToAction} message CallToAction message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallToAction.encodeDelimited = function encodeDelimited(message, writer) { + OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CallToAction message from the specified reader or buffer. + * Decodes an OutputConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallToAction.decode = function decode(reader, length) { + OutputConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.viewRestApi = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.decode(reader, reader.uint32()); - break; - } - case 2: { - message.openNotebook = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + message.exportFormatId = reader.string(); break; } case 3: { - message.createApplication = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); break; } case 4: { - message.openFineTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); - break; - } - case 5: { - message.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); - break; - } - case 6: { - message.openGenie = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); - break; - } - case 7: { - message.deploy = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.decode(reader, reader.uint32()); - break; - } - case 8: { - message.openGenerationAiStudio = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); - break; - } - case 9: { - message.requestAccess = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); - break; - } - case 11: { - message.openEvaluationPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.decode(reader, reader.uint32()); + message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.decode(reader, reader.uint32()); break; } default: @@ -396491,1897 +399348,2877 @@ }; /** - * Decodes a CallToAction message from the specified reader or buffer, length delimited. + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallToAction.decodeDelimited = function decodeDelimited(reader) { + OutputConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CallToAction message. + * Verifies an OutputConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CallToAction.verify = function verify(message) { + OutputConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.viewRestApi != null && message.hasOwnProperty("viewRestApi")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify(message.viewRestApi); - if (error) - return "viewRestApi." + error; - } - if (message.openNotebook != null && message.hasOwnProperty("openNotebook")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openNotebook); - if (error) - return "openNotebook." + error; - } - if (message.createApplication != null && message.hasOwnProperty("createApplication")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.createApplication); - if (error) - return "createApplication." + error; - } - if (message.openFineTuningPipeline != null && message.hasOwnProperty("openFineTuningPipeline")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openFineTuningPipeline); - if (error) - return "openFineTuningPipeline." + error; - } - if (message.openPromptTuningPipeline != null && message.hasOwnProperty("openPromptTuningPipeline")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openPromptTuningPipeline); - if (error) - return "openPromptTuningPipeline." + error; - } - if (message.openGenie != null && message.hasOwnProperty("openGenie")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openGenie); - if (error) - return "openGenie." + error; - } - if (message.deploy != null && message.hasOwnProperty("deploy")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify(message.deploy); - if (error) - return "deploy." + error; - } - if (message.openGenerationAiStudio != null && message.hasOwnProperty("openGenerationAiStudio")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openGenerationAiStudio); - if (error) - return "openGenerationAiStudio." + error; - } - if (message.requestAccess != null && message.hasOwnProperty("requestAccess")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.requestAccess); + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + if (!$util.isString(message.exportFormatId)) + return "exportFormatId: string expected"; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.artifactDestination); if (error) - return "requestAccess." + error; + return "artifactDestination." + error; } - if (message.openEvaluationPipeline != null && message.hasOwnProperty("openEvaluationPipeline")) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify(message.openEvaluationPipeline); + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { + var error = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify(message.imageDestination); if (error) - return "openEvaluationPipeline." + error; + return "imageDestination." + error; } return null; }; /** - * Creates a CallToAction message from a plain object. Also converts values to their respective internal types. + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} CallToAction + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig */ - CallToAction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction) + OutputConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction(); - if (object.viewRestApi != null) { - if (typeof object.viewRestApi !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.viewRestApi: object expected"); - message.viewRestApi = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.fromObject(object.viewRestApi); - } - if (object.openNotebook != null) { - if (typeof object.openNotebook !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openNotebook: object expected"); - message.openNotebook = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openNotebook); - } - if (object.createApplication != null) { - if (typeof object.createApplication !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.createApplication: object expected"); - message.createApplication = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.createApplication); - } - if (object.openFineTuningPipeline != null) { - if (typeof object.openFineTuningPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openFineTuningPipeline: object expected"); - message.openFineTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openFineTuningPipeline); - } - if (object.openPromptTuningPipeline != null) { - if (typeof object.openPromptTuningPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openPromptTuningPipeline: object expected"); - message.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openPromptTuningPipeline); - } - if (object.openGenie != null) { - if (typeof object.openGenie !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openGenie: object expected"); - message.openGenie = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openGenie); - } - if (object.deploy != null) { - if (typeof object.deploy !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.deploy: object expected"); - message.deploy = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.fromObject(object.deploy); - } - if (object.openGenerationAiStudio != null) { - if (typeof object.openGenerationAiStudio !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openGenerationAiStudio: object expected"); - message.openGenerationAiStudio = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openGenerationAiStudio); - } - if (object.requestAccess != null) { - if (typeof object.requestAccess !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.requestAccess: object expected"); - message.requestAccess = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.requestAccess); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); + if (object.exportFormatId != null) + message.exportFormatId = String(object.exportFormatId); + if (object.artifactDestination != null) { + if (typeof object.artifactDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); + message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.artifactDestination); } - if (object.openEvaluationPipeline != null) { - if (typeof object.openEvaluationPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.openEvaluationPipeline: object expected"); - message.openEvaluationPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.fromObject(object.openEvaluationPipeline); + if (object.imageDestination != null) { + if (typeof object.imageDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.imageDestination: object expected"); + message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.fromObject(object.imageDestination); } return message; }; /** - * Creates a plain object from a CallToAction message. Also converts values to other types if specified. + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction} message CallToAction + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} message OutputConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CallToAction.toObject = function toObject(message, options) { + OutputConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.viewRestApi = null; - object.openNotebook = null; - object.createApplication = null; - object.openFineTuningPipeline = null; - object.openPromptTuningPipeline = null; - object.openGenie = null; - object.deploy = null; - object.openGenerationAiStudio = null; - object.requestAccess = null; - object.openEvaluationPipeline = null; + object.exportFormatId = ""; + object.artifactDestination = null; + object.imageDestination = null; } - if (message.viewRestApi != null && message.hasOwnProperty("viewRestApi")) - object.viewRestApi = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.toObject(message.viewRestApi, options); - if (message.openNotebook != null && message.hasOwnProperty("openNotebook")) - object.openNotebook = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openNotebook, options); - if (message.createApplication != null && message.hasOwnProperty("createApplication")) - object.createApplication = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.createApplication, options); - if (message.openFineTuningPipeline != null && message.hasOwnProperty("openFineTuningPipeline")) - object.openFineTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openFineTuningPipeline, options); - if (message.openPromptTuningPipeline != null && message.hasOwnProperty("openPromptTuningPipeline")) - object.openPromptTuningPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openPromptTuningPipeline, options); - if (message.openGenie != null && message.hasOwnProperty("openGenie")) - object.openGenie = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openGenie, options); - if (message.deploy != null && message.hasOwnProperty("deploy")) - object.deploy = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.toObject(message.deploy, options); - if (message.openGenerationAiStudio != null && message.hasOwnProperty("openGenerationAiStudio")) - object.openGenerationAiStudio = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openGenerationAiStudio, options); - if (message.requestAccess != null && message.hasOwnProperty("requestAccess")) - object.requestAccess = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.requestAccess, options); - if (message.openEvaluationPipeline != null && message.hasOwnProperty("openEvaluationPipeline")) - object.openEvaluationPipeline = $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.toObject(message.openEvaluationPipeline, options); + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + object.exportFormatId = message.exportFormatId; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) + object.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.artifactDestination, options); + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) + object.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.toObject(message.imageDestination, options); return object; }; /** - * Converts this CallToAction to JSON. + * Converts this OutputConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance * @returns {Object.} JSON object */ - CallToAction.prototype.toJSON = function toJSON() { + OutputConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CallToAction + * Gets the default type url for OutputConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CallToAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig"; }; - CallToAction.RegionalResourceReferences = (function() { + return OutputConfig; + })(); - /** - * Properties of a RegionalResourceReferences. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @interface IRegionalResourceReferences - * @property {Object.|null} [references] RegionalResourceReferences references - * @property {string|null} [title] RegionalResourceReferences title - */ + return ExportModelRequest; + })(); - /** - * Constructs a new RegionalResourceReferences. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @classdesc Represents a RegionalResourceReferences. - * @implements IRegionalResourceReferences - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences=} [properties] Properties to set - */ - function RegionalResourceReferences(properties) { - this.references = {}; - if (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.ExportModelOperationMetadata = (function() { - /** - * RegionalResourceReferences references. - * @member {Object.} references - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @instance - */ - RegionalResourceReferences.prototype.references = $util.emptyObject; + /** + * Properties of an ExportModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IExportModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo + */ - /** - * RegionalResourceReferences title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @instance - */ - RegionalResourceReferences.prototype.title = ""; + /** + * Constructs a new ExportModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ExportModelOperationMetadata. + * @implements IExportModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set + */ + function ExportModelOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new RegionalResourceReferences instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences instance - */ - RegionalResourceReferences.create = function create(properties) { - return new RegionalResourceReferences(properties); - }; + /** + * ExportModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @instance + */ + ExportModelOperationMetadata.prototype.genericMetadata = null; - /** - * Encodes the specified RegionalResourceReferences message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences} message RegionalResourceReferences message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegionalResourceReferences.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.references != null && Object.hasOwnProperty.call(message, "references")) - for (var keys = Object.keys(message.references), 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.PublisherModel.ResourceReference.encode(message.references[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); - return writer; - }; + /** + * ExportModelOperationMetadata outputInfo. + * @member {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @instance + */ + ExportModelOperationMetadata.prototype.outputInfo = null; - /** - * Encodes the specified RegionalResourceReferences message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IRegionalResourceReferences} message RegionalResourceReferences message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegionalResourceReferences.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ExportModelOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata instance + */ + ExportModelOperationMetadata.create = function create(properties) { + return new ExportModelOperationMetadata(properties); + }; - /** - * Decodes a RegionalResourceReferences message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegionalResourceReferences.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.references === $util.emptyObject) - message.references = {}; - 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.PublisherModel.ResourceReference.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.references[key] = value; - break; - } - case 2: { - message.title = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) + $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a RegionalResourceReferences message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegionalResourceReferences.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a RegionalResourceReferences message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RegionalResourceReferences.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.references != null && message.hasOwnProperty("references")) { - if (!$util.isObject(message.references)) - return "references: object expected"; - var key = Object.keys(message.references); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.verify(message.references[key[i]]); - if (error) - return "references." + error; - } + /** + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); + 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; } - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - return null; - }; - - /** - * Creates a RegionalResourceReferences message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} RegionalResourceReferences - */ - RegionalResourceReferences.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences(); - if (object.references) { - if (typeof object.references !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.references: object expected"); - message.references = {}; - for (var keys = Object.keys(object.references), i = 0; i < keys.length; ++i) { - if (typeof object.references[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences.references: object expected"); - message.references[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.fromObject(object.references[keys[i]]); - } + case 2: { + message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); + break; } - if (object.title != null) - message.title = String(object.title); - return message; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a RegionalResourceReferences message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences} message RegionalResourceReferences - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RegionalResourceReferences.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.references = {}; - if (options.defaults) - object.title = ""; - var keys2; - if (message.references && (keys2 = Object.keys(message.references)).length) { - object.references = {}; - for (var j = 0; j < keys2.length; ++j) - object.references[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.toObject(message.references[keys2[j]], options); - } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - return object; - }; + /** + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this RegionalResourceReferences to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @instance - * @returns {Object.} JSON object - */ - RegionalResourceReferences.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies an ExportModelOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportModelOperationMetadata.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.outputInfo != null && message.hasOwnProperty("outputInfo")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); + if (error) + return "outputInfo." + error; + } + return null; + }; - /** - * Gets the default type url for RegionalResourceReferences - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RegionalResourceReferences.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences"; - }; + /** + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + */ + ExportModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.outputInfo != null) { + if (typeof object.outputInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.outputInfo: object expected"); + message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); + } + return message; + }; - return RegionalResourceReferences; - })(); + /** + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} message ExportModelOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportModelOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.outputInfo = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) + object.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); + return object; + }; - CallToAction.ViewRestApi = (function() { + /** + * Converts this ExportModelOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + ExportModelOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a ViewRestApi. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @interface IViewRestApi - * @property {Array.|null} [documentations] ViewRestApi documentations - * @property {string|null} [title] ViewRestApi title - */ + /** + * Gets the default type url for ExportModelOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata"; + }; - /** - * Constructs a new ViewRestApi. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @classdesc Represents a ViewRestApi. - * @implements IViewRestApi - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi=} [properties] Properties to set - */ - function ViewRestApi(properties) { - this.documentations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ExportModelOperationMetadata.OutputInfo = (function() { - /** - * ViewRestApi documentations. - * @member {Array.} documentations - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @instance - */ - ViewRestApi.prototype.documentations = $util.emptyArray; + /** + * Properties of an OutputInfo. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @interface IOutputInfo + * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri + * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri + */ - /** - * ViewRestApi title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @instance - */ - ViewRestApi.prototype.title = ""; + /** + * Constructs a new OutputInfo. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @classdesc Represents an OutputInfo. + * @implements IOutputInfo + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + */ + function OutputInfo(properties) { + if (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 ViewRestApi instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi instance - */ - ViewRestApi.create = function create(properties) { - return new ViewRestApi(properties); - }; + /** + * OutputInfo artifactOutputUri. + * @member {string} artifactOutputUri + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @instance + */ + OutputInfo.prototype.artifactOutputUri = ""; - /** - * Encodes the specified ViewRestApi message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi} message ViewRestApi message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ViewRestApi.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.documentations != null && message.documentations.length) - for (var i = 0; i < message.documentations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.encode(message.documentations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); - return writer; - }; + /** + * OutputInfo imageOutputUri. + * @member {string} imageOutputUri + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @instance + */ + OutputInfo.prototype.imageOutputUri = ""; - /** - * Encodes the specified ViewRestApi message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IViewRestApi} message ViewRestApi message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ViewRestApi.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new OutputInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance + */ + OutputInfo.create = function create(properties) { + return new OutputInfo(properties); + }; - /** - * Decodes a ViewRestApi message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ViewRestApi.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.documentations && message.documentations.length)) - message.documentations = []; - message.documentations.push($root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.decode(reader, reader.uint32())); - break; - } - case 2: { - message.title = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); + if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); + return writer; + }; - /** - * Decodes a ViewRestApi message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ViewRestApi.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a ViewRestApi message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ViewRestApi.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.documentations != null && message.hasOwnProperty("documentations")) { - if (!Array.isArray(message.documentations)) - return "documentations: array expected"; - for (var i = 0; i < message.documentations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.verify(message.documentations[i]); - if (error) - return "documentations." + error; + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.artifactOutputUri = reader.string(); + break; } - } - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - return null; - }; - - /** - * Creates a ViewRestApi message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} ViewRestApi - */ - ViewRestApi.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi(); - if (object.documentations) { - if (!Array.isArray(object.documentations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.documentations: array expected"); - message.documentations = []; - for (var i = 0; i < object.documentations.length; ++i) { - if (typeof object.documentations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi.documentations: object expected"); - message.documentations[i] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.fromObject(object.documentations[i]); + case 3: { + message.imageOutputUri = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; } - if (object.title != null) - message.title = String(object.title); - return message; - }; - - /** - * Creates a plain object from a ViewRestApi message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi} message ViewRestApi - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ViewRestApi.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.documentations = []; - if (options.defaults) - object.title = ""; - if (message.documentations && message.documentations.length) { - object.documentations = []; - for (var j = 0; j < message.documentations.length; ++j) - object.documentations[j] = $root.google.cloud.aiplatform.v1beta1.PublisherModel.Documentation.toObject(message.documentations[j], options); - } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - return object; - }; - - /** - * Converts this ViewRestApi to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @instance - * @returns {Object.} JSON object - */ - ViewRestApi.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ViewRestApi - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ViewRestApi.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.ViewRestApi"; - }; + } + return message; + }; - return ViewRestApi; - })(); + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - CallToAction.Deploy = (function() { + /** + * Verifies an OutputInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + if (!$util.isString(message.artifactOutputUri)) + return "artifactOutputUri: string expected"; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + if (!$util.isString(message.imageOutputUri)) + return "imageOutputUri: string expected"; + return null; + }; - /** - * Properties of a Deploy. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @interface IDeploy - * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] Deploy dedicatedResources - * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] Deploy automaticResources - * @property {string|null} [sharedResources] Deploy sharedResources - * @property {string|null} [modelDisplayName] Deploy modelDisplayName - * @property {google.cloud.aiplatform.v1beta1.ILargeModelReference|null} [largeModelReference] Deploy largeModelReference - * @property {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null} [containerSpec] Deploy containerSpec - * @property {string|null} [artifactUri] Deploy artifactUri - * @property {string|null} [title] Deploy title - * @property {string|null} [publicArtifactUri] Deploy publicArtifactUri - */ + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo + */ + OutputInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); + if (object.artifactOutputUri != null) + message.artifactOutputUri = String(object.artifactOutputUri); + if (object.imageOutputUri != null) + message.imageOutputUri = String(object.imageOutputUri); + return message; + }; - /** - * Constructs a new Deploy. - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction - * @classdesc Represents a Deploy. - * @implements IDeploy - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy=} [properties] Properties to set - */ - function Deploy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} message OutputInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.artifactOutputUri = ""; + object.imageOutputUri = ""; } + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + object.artifactOutputUri = message.artifactOutputUri; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + object.imageOutputUri = message.imageOutputUri; + return object; + }; - /** - * Deploy dedicatedResources. - * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.dedicatedResources = null; + /** + * Converts this OutputInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @instance + * @returns {Object.} JSON object + */ + OutputInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Deploy automaticResources. - * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.automaticResources = null; + /** + * Gets the default type url for OutputInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo"; + }; - /** - * Deploy sharedResources. - * @member {string|null|undefined} sharedResources - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.sharedResources = null; + return OutputInfo; + })(); - /** - * Deploy modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.modelDisplayName = ""; + return ExportModelOperationMetadata; + })(); - /** - * Deploy largeModelReference. - * @member {google.cloud.aiplatform.v1beta1.ILargeModelReference|null|undefined} largeModelReference - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.largeModelReference = null; + v1beta1.UpdateExplanationDatasetResponse = (function() { - /** - * Deploy containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.containerSpec = null; + /** + * Properties of an UpdateExplanationDatasetResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateExplanationDatasetResponse + */ - /** - * Deploy artifactUri. - * @member {string} artifactUri - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.artifactUri = ""; + /** + * Constructs a new UpdateExplanationDatasetResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateExplanationDatasetResponse. + * @implements IUpdateExplanationDatasetResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse=} [properties] Properties to set + */ + function UpdateExplanationDatasetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Deploy title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.title = ""; + /** + * Creates a new UpdateExplanationDatasetResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse instance + */ + UpdateExplanationDatasetResponse.create = function create(properties) { + return new UpdateExplanationDatasetResponse(properties); + }; - /** - * Deploy publicArtifactUri. - * @member {string} publicArtifactUri - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Deploy.prototype.publicArtifactUri = ""; + /** + * Encodes the specified UpdateExplanationDatasetResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse} message UpdateExplanationDatasetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateExplanationDatasetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified UpdateExplanationDatasetResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse} message UpdateExplanationDatasetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateExplanationDatasetResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Deploy predictionResources. - * @member {"dedicatedResources"|"automaticResources"|"sharedResources"|undefined} predictionResources - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - */ - Object.defineProperty(Deploy.prototype, "predictionResources", { - get: $util.oneOfGetter($oneOfFields = ["dedicatedResources", "automaticResources", "sharedResources"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateExplanationDatasetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new Deploy instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy instance - */ - Deploy.create = function create(properties) { - return new Deploy(properties); - }; + /** + * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateExplanationDatasetResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Deploy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy} message Deploy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Deploy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDisplayName); - if (message.largeModelReference != null && Object.hasOwnProperty.call(message, "largeModelReference")) - $root.google.cloud.aiplatform.v1beta1.LargeModelReference.encode(message.largeModelReference, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) - $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.encode(message.containerSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.artifactUri); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) - $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.sharedResources != null && Object.hasOwnProperty.call(message, "sharedResources")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.sharedResources); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.title); - if (message.publicArtifactUri != null && Object.hasOwnProperty.call(message, "publicArtifactUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.publicArtifactUri); - return writer; - }; + /** + * Verifies an UpdateExplanationDatasetResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateExplanationDatasetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Encodes the specified Deploy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.IDeploy} message Deploy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Deploy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates an UpdateExplanationDatasetResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse + */ + UpdateExplanationDatasetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse(); + }; - /** - * Decodes a Deploy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Deploy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: { - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); - break; - } - case 6: { - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); - break; - } - case 7: { - message.sharedResources = reader.string(); - break; - } - case 1: { - message.modelDisplayName = reader.string(); - break; - } - case 2: { - message.largeModelReference = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.decode(reader, reader.uint32()); - break; - } - case 3: { - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); - break; - } - case 4: { - message.artifactUri = reader.string(); - break; - } - case 8: { - message.title = reader.string(); - break; - } - case 9: { - message.publicArtifactUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from an UpdateExplanationDatasetResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} message UpdateExplanationDatasetResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateExplanationDatasetResponse.toObject = function toObject() { + return {}; + }; - /** - * Decodes a Deploy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Deploy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this UpdateExplanationDatasetResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @instance + * @returns {Object.} JSON object + */ + UpdateExplanationDatasetResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a Deploy message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Deploy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - properties.predictionResources = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); - if (error) - return "dedicatedResources." + error; - } + /** + * Gets the default type url for UpdateExplanationDatasetResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateExplanationDatasetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse"; + }; + + return UpdateExplanationDatasetResponse; + })(); + + v1beta1.ExportModelResponse = (function() { + + /** + * Properties of an ExportModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IExportModelResponse + */ + + /** + * Constructs a new ExportModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ExportModelResponse. + * @implements IExportModelResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set + */ + function ExportModelResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExportModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse instance + */ + ExportModelResponse.create = function create(properties) { + return new ExportModelResponse(properties); + }; + + /** + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + */ + ExportModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); + }; + + /** + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelResponse} message ExportModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportModelResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ExportModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @instance + * @returns {Object.} JSON object + */ + ExportModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelResponse"; + }; + + return ExportModelResponse; + })(); + + v1beta1.CopyModelRequest = (function() { + + /** + * Properties of a CopyModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelRequest + * @property {string|null} [modelId] CopyModelRequest modelId + * @property {string|null} [parentModel] CopyModelRequest parentModel + * @property {string|null} [parent] CopyModelRequest parent + * @property {string|null} [sourceModel] CopyModelRequest sourceModel + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CopyModelRequest encryptionSpec + */ + + /** + * Constructs a new CopyModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelRequest. + * @implements ICopyModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + */ + function CopyModelRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CopyModelRequest modelId. + * @member {string|null|undefined} modelId + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.modelId = null; + + /** + * CopyModelRequest parentModel. + * @member {string|null|undefined} parentModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.parentModel = null; + + /** + * CopyModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.parent = ""; + + /** + * CopyModelRequest sourceModel. + * @member {string} sourceModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.sourceModel = ""; + + /** + * CopyModelRequest encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.encryptionSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CopyModelRequest destinationModel. + * @member {"modelId"|"parentModel"|undefined} destinationModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + Object.defineProperty(CopyModelRequest.prototype, "destinationModel", { + get: $util.oneOfGetter($oneOfFields = ["modelId", "parentModel"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CopyModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest instance + */ + CopyModelRequest.create = function create(properties) { + return new CopyModelRequest(properties); + }; + + /** + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelRequest.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.sourceModel != null && Object.hasOwnProperty.call(message, "sourceModel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceModel); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelId); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parentModel); + return writer; + }; + + /** + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.modelId = reader.string(); + break; } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - if (properties.predictionResources === 1) - return "predictionResources: multiple values"; - properties.predictionResources = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); - if (error) - return "automaticResources." + error; - } + case 5: { + message.parentModel = reader.string(); + break; } - if (message.sharedResources != null && message.hasOwnProperty("sharedResources")) { - if (properties.predictionResources === 1) - return "predictionResources: multiple values"; - properties.predictionResources = 1; - if (!$util.isString(message.sharedResources)) - return "sharedResources: string expected"; + case 1: { + message.parent = reader.string(); + break; } - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - if (message.largeModelReference != null && message.hasOwnProperty("largeModelReference")) { - var error = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.verify(message.largeModelReference); - if (error) - return "largeModelReference." + error; + case 2: { + message.sourceModel = reader.string(); + break; } - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); - if (error) - return "containerSpec." + error; + case 3: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; } - if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) - if (!$util.isString(message.artifactUri)) - return "artifactUri: string expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.publicArtifactUri != null && message.hasOwnProperty("publicArtifactUri")) - if (!$util.isString(message.publicArtifactUri)) - return "publicArtifactUri: string expected"; - return null; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a Deploy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} Deploy - */ - Deploy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy(); - if (object.dedicatedResources != null) { - if (typeof object.dedicatedResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.dedicatedResources: object expected"); - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); - } - if (object.automaticResources != null) { - if (typeof object.automaticResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.automaticResources: object expected"); - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); - } - if (object.sharedResources != null) - message.sharedResources = String(object.sharedResources); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - if (object.largeModelReference != null) { - if (typeof object.largeModelReference !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.largeModelReference: object expected"); - message.largeModelReference = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.fromObject(object.largeModelReference); - } - if (object.containerSpec != null) { - if (typeof object.containerSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.containerSpec: object expected"); - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.fromObject(object.containerSpec); - } - if (object.artifactUri != null) - message.artifactUri = String(object.artifactUri); - if (object.title != null) - message.title = String(object.title); - if (object.publicArtifactUri != null) - message.publicArtifactUri = String(object.publicArtifactUri); - return message; - }; + /** + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Deploy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy} message Deploy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Deploy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.modelDisplayName = ""; - object.largeModelReference = null; - object.containerSpec = null; - object.artifactUri = ""; - object.title = ""; - object.publicArtifactUri = ""; - } - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - if (message.largeModelReference != null && message.hasOwnProperty("largeModelReference")) - object.largeModelReference = $root.google.cloud.aiplatform.v1beta1.LargeModelReference.toObject(message.largeModelReference, options); - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) - object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.toObject(message.containerSpec, options); - if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) - object.artifactUri = message.artifactUri; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); - if (options.oneofs) - object.predictionResources = "dedicatedResources"; + /** + * Verifies a CopyModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelId != null && message.hasOwnProperty("modelId")) { + properties.destinationModel = 1; + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + if (properties.destinationModel === 1) + return "destinationModel: multiple values"; + properties.destinationModel = 1; + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + if (!$util.isString(message.sourceModel)) + return "sourceModel: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + */ + CopyModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sourceModel != null) + message.sourceModel = String(object.sourceModel); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelRequest.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelRequest} message CopyModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.sourceModel = ""; + object.encryptionSpec = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + object.sourceModel = message.sourceModel; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.modelId != null && message.hasOwnProperty("modelId")) { + object.modelId = message.modelId; + if (options.oneofs) + object.destinationModel = "modelId"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + object.parentModel = message.parentModel; + if (options.oneofs) + object.destinationModel = "parentModel"; + } + return object; + }; + + /** + * Converts this CopyModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + * @returns {Object.} JSON object + */ + CopyModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelRequest"; + }; + + return CopyModelRequest; + })(); + + v1beta1.CopyModelOperationMetadata = (function() { + + /** + * Properties of a CopyModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CopyModelOperationMetadata genericMetadata + */ + + /** + * Constructs a new CopyModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelOperationMetadata. + * @implements ICopyModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + */ + function CopyModelOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CopyModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @instance + */ + CopyModelOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CopyModelOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata instance + */ + CopyModelOperationMetadata.create = function create(properties) { + return new CopyModelOperationMetadata(properties); + }; + + /** + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); + 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; } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); - if (options.oneofs) - object.predictionResources = "automaticResources"; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + */ + CopyModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} message CopyModelOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CopyModelOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CopyModelOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata"; + }; + + return CopyModelOperationMetadata; + })(); + + v1beta1.CopyModelResponse = (function() { + + /** + * Properties of a CopyModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelResponse + * @property {string|null} [model] CopyModelResponse model + * @property {string|null} [modelVersionId] CopyModelResponse modelVersionId + */ + + /** + * Constructs a new CopyModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelResponse. + * @implements ICopyModelResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set + */ + function CopyModelResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CopyModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + */ + CopyModelResponse.prototype.model = ""; + + /** + * CopyModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + */ + CopyModelResponse.prototype.modelVersionId = ""; + + /** + * Creates a new CopyModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse instance + */ + CopyModelResponse.create = function create(properties) { + return new CopyModelResponse(properties); + }; + + /** + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + return writer; + }; + + /** + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; } - if (message.sharedResources != null && message.hasOwnProperty("sharedResources")) { - object.sharedResources = message.sharedResources; - if (options.oneofs) - object.predictionResources = "sharedResources"; + case 2: { + message.modelVersionId = reader.string(); + break; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.publicArtifactUri != null && message.hasOwnProperty("publicArtifactUri")) - object.publicArtifactUri = message.publicArtifactUri; - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Deploy to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @instance - * @returns {Object.} JSON object - */ - Deploy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for Deploy - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Deploy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Verifies a CopyModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + return null; + }; + + /** + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + */ + CopyModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + return message; + }; + + /** + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelResponse} message CopyModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; + + /** + * Converts this CopyModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + * @returns {Object.} JSON object + */ + CopyModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelResponse"; + }; + + return CopyModelResponse; + })(); + + v1beta1.ImportModelEvaluationRequest = (function() { + + /** + * Properties of an ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IImportModelEvaluationRequest + * @property {string|null} [parent] ImportModelEvaluationRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation + */ + + /** + * Constructs a new ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ImportModelEvaluationRequest. + * @implements IImportModelEvaluationRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set + */ + function ImportModelEvaluationRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ImportModelEvaluationRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @instance + */ + ImportModelEvaluationRequest.prototype.parent = ""; + + /** + * ImportModelEvaluationRequest modelEvaluation. + * @member {google.cloud.aiplatform.v1beta1.IModelEvaluation|null|undefined} modelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @instance + */ + ImportModelEvaluationRequest.prototype.modelEvaluation = null; + + /** + * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance + */ + ImportModelEvaluationRequest.create = function create(properties) { + return new ImportModelEvaluationRequest(properties); + }; + + /** + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportModelEvaluationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportModelEvaluationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy"; - }; + case 2: { + message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Deploy; - })(); + /** + * Verifies an ImportModelEvaluationRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportModelEvaluationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluation); + if (error) + return "modelEvaluation." + error; + } + return null; + }; - return CallToAction; - })(); + /** + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + */ + ImportModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluation != null) { + if (typeof object.modelEvaluation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.modelEvaluation: object expected"); + message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluation); + } + return message; + }; /** - * OpenSourceCategory enum. - * @name google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory - * @enum {number} - * @property {number} OPEN_SOURCE_CATEGORY_UNSPECIFIED=0 OPEN_SOURCE_CATEGORY_UNSPECIFIED value - * @property {number} PROPRIETARY=1 PROPRIETARY value - * @property {number} GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT=2 GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT value - * @property {number} THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT=3 THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT value - * @property {number} GOOGLE_OWNED_OSS=4 GOOGLE_OWNED_OSS value - * @property {number} THIRD_PARTY_OWNED_OSS=5 THIRD_PARTY_OWNED_OSS value + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - PublisherModel.OpenSourceCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OPEN_SOURCE_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "PROPRIETARY"] = 1; - values[valuesById[2] = "GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT"] = 2; - values[valuesById[3] = "THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT"] = 3; - values[valuesById[4] = "GOOGLE_OWNED_OSS"] = 4; - values[valuesById[5] = "THIRD_PARTY_OWNED_OSS"] = 5; - return values; - })(); + ImportModelEvaluationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.modelEvaluation = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) + object.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluation, options); + return object; + }; /** - * LaunchStage enum. - * @name google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage - * @enum {number} - * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value - * @property {number} EXPERIMENTAL=1 EXPERIMENTAL value - * @property {number} PRIVATE_PREVIEW=2 PRIVATE_PREVIEW value - * @property {number} PUBLIC_PREVIEW=3 PUBLIC_PREVIEW value - * @property {number} GA=4 GA value + * Converts this ImportModelEvaluationRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @instance + * @returns {Object.} JSON object */ - PublisherModel.LaunchStage = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EXPERIMENTAL"] = 1; - values[valuesById[2] = "PRIVATE_PREVIEW"] = 2; - values[valuesById[3] = "PUBLIC_PREVIEW"] = 3; - values[valuesById[4] = "GA"] = 4; - return values; - })(); + ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * VersionState enum. - * @name google.cloud.aiplatform.v1beta1.PublisherModel.VersionState - * @enum {number} - * @property {number} VERSION_STATE_UNSPECIFIED=0 VERSION_STATE_UNSPECIFIED value - * @property {number} VERSION_STATE_STABLE=1 VERSION_STATE_STABLE value - * @property {number} VERSION_STATE_UNSTABLE=2 VERSION_STATE_UNSTABLE value + * Gets the default type url for ImportModelEvaluationRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - PublisherModel.VersionState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VERSION_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "VERSION_STATE_STABLE"] = 1; - values[valuesById[2] = "VERSION_STATE_UNSTABLE"] = 2; - return values; - })(); + ImportModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest"; + }; - return PublisherModel; + return ImportModelEvaluationRequest; })(); - v1beta1.ModelService = (function() { + v1beta1.BatchImportModelEvaluationSlicesRequest = (function() { /** - * Constructs a new ModelService service. + * Properties of a BatchImportModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @interface IBatchImportModelEvaluationSlicesRequest + * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent + * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ - function ModelService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; /** - * Creates new ModelService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. + * @implements IBatchImportModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set */ - ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + function BatchImportModelEvaluationSlicesRequest(properties) { + this.modelEvaluationSlices = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|uploadModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef UploadModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * BatchImportModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @instance */ + BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { - return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1beta1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UploadModel" }); + BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance */ + BatchImportModelEvaluationSlicesRequest.create = function create(properties) { + return new BatchImportModelEvaluationSlicesRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef GetModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { - return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1beta1.GetModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); - }, "name", { value: "GetModel" }); + BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModels}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} [response] ListModelsResponse + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse - * @returns {undefined} - * @variation 1 + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { - return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1beta1.ListModelsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelsResponse, request, callback); - }, "name", { value: "ListModels" }); + BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (error) + return "modelEvaluationSlices." + error; + } + } + return null; + }; /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest */ + BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelVersions}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} [response] ListModelVersionsResponse + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + } + return object; + }; /** - * Calls ListModelVersions. - * @function listModelVersions - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { - return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse, request, callback); - }, "name", { value: "ListModelVersions" }); + BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListModelVersions. - * @function listModelVersions - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + BatchImportModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest"; + }; + + return BatchImportModelEvaluationSlicesRequest; + })(); + + v1beta1.BatchImportModelEvaluationSlicesResponse = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef UpdateModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + * Properties of a BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportModelEvaluationSlicesResponse + * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. + * @implements IBatchImportModelEvaluationSlicesResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set */ - Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { - return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); - }, "name", { value: "UpdateModel" }); + function BatchImportModelEvaluationSlicesResponse(properties) { + this.importedModelEvaluationSlices = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. + * @member {Array.} importedModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|updateExplanationDataset}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef UpdateExplanationDatasetCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance */ + BatchImportModelEvaluationSlicesResponse.create = function create(properties) { + return new BatchImportModelEvaluationSlicesResponse(properties); + }; /** - * Calls UpdateExplanationDataset. - * @function updateExplanationDataset - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} request UpdateExplanationDatasetRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDatasetCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ModelService.prototype.updateExplanationDataset = function updateExplanationDataset(request, callback) { - return this.rpcCall(updateExplanationDataset, $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateExplanationDataset" }); + BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + return writer; + }; /** - * Calls UpdateExplanationDataset. - * @function updateExplanationDataset - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} request UpdateExplanationDatasetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef DeleteModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) + message.importedModelEvaluationSlices = []; + message.importedModelEvaluationSlices.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { - return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModel" }); + BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { + if (!Array.isArray(message.importedModelEvaluationSlices)) + return "importedModelEvaluationSlices: array expected"; + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + if (!$util.isString(message.importedModelEvaluationSlices[i])) + return "importedModelEvaluationSlices: string[] expected"; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|deleteModelVersion}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef DeleteModelVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse */ + BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(); + if (object.importedModelEvaluationSlices) { + if (!Array.isArray(object.importedModelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); + message.importedModelEvaluationSlices = []; + for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) + message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); + } + return message; + }; /** - * Calls DeleteModelVersion. - * @function deleteModelVersion - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { - return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelVersion" }); + BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.importedModelEvaluationSlices = []; + if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { + object.importedModelEvaluationSlices = []; + for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) + object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; + } + return object; + }; /** - * Calls DeleteModelVersion. - * @function deleteModelVersion - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|mergeVersionAliases}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef MergeVersionAliasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + * Gets the default type url for BatchImportModelEvaluationSlicesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + BatchImportModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse"; + }; + + return BatchImportModelEvaluationSlicesResponse; + })(); + + v1beta1.BatchImportEvaluatedAnnotationsRequest = (function() { /** - * Calls MergeVersionAliases. - * @function mergeVersionAliases - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 + * Properties of a BatchImportEvaluatedAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportEvaluatedAnnotationsRequest + * @property {string|null} [parent] BatchImportEvaluatedAnnotationsRequest parent + * @property {Array.|null} [evaluatedAnnotations] BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations */ - Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { - return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); - }, "name", { value: "MergeVersionAliases" }); /** - * Calls MergeVersionAliases. - * @function mergeVersionAliases - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportEvaluatedAnnotationsRequest. + * @implements IBatchImportEvaluatedAnnotationsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set */ + function BatchImportEvaluatedAnnotationsRequest(properties) { + this.evaluatedAnnotations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|exportModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ExportModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * BatchImportEvaluatedAnnotationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @instance */ + BatchImportEvaluatedAnnotationsRequest.prototype.parent = ""; /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. + * @member {Array.} evaluatedAnnotations + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { - return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1beta1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportModel" }); + BatchImportEvaluatedAnnotationsRequest.prototype.evaluatedAnnotations = $util.emptyArray; /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest instance */ + BatchImportEvaluatedAnnotationsRequest.create = function create(properties) { + return new BatchImportEvaluatedAnnotationsRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef CopyModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + BatchImportEvaluatedAnnotationsRequest.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.evaluatedAnnotations != null && message.evaluatedAnnotations.length) + for (var i = 0; i < message.evaluatedAnnotations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.encode(message.evaluatedAnnotations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls CopyModel. - * @function copyModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ModelService.prototype.copyModel = function copyModel(request, callback) { - return this.rpcCall(copyModel, $root.google.cloud.aiplatform.v1beta1.CopyModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CopyModel" }); + BatchImportEvaluatedAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CopyModel. - * @function copyModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportEvaluatedAnnotationsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.evaluatedAnnotations && message.evaluatedAnnotations.length)) + message.evaluatedAnnotations = []; + message.evaluatedAnnotations.push($root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ImportModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation + * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportEvaluatedAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 + * Verifies a BatchImportEvaluatedAnnotationsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { - return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); - }, "name", { value: "ImportModelEvaluation" }); + BatchImportEvaluatedAnnotationsRequest.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.evaluatedAnnotations != null && message.hasOwnProperty("evaluatedAnnotations")) { + if (!Array.isArray(message.evaluatedAnnotations)) + return "evaluatedAnnotations: array expected"; + for (var i = 0; i < message.evaluatedAnnotations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify(message.evaluatedAnnotations[i]); + if (error) + return "evaluatedAnnotations." + error; + } + } + return null; + }; /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest */ + BatchImportEvaluatedAnnotationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.evaluatedAnnotations) { + if (!Array.isArray(object.evaluatedAnnotations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: array expected"); + message.evaluatedAnnotations = []; + for (var i = 0; i < object.evaluatedAnnotations.length; ++i) { + if (typeof object.evaluatedAnnotations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: object expected"); + message.evaluatedAnnotations[i] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.fromObject(object.evaluatedAnnotations[i]); + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef BatchImportModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse + * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + BatchImportEvaluatedAnnotationsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.evaluatedAnnotations = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.evaluatedAnnotations && message.evaluatedAnnotations.length) { + object.evaluatedAnnotations = []; + for (var j = 0; j < message.evaluatedAnnotations.length; ++j) + object.evaluatedAnnotations[j] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.toObject(message.evaluatedAnnotations[j], options); + } + return object; + }; /** - * Calls BatchImportModelEvaluationSlices. - * @function batchImportModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { - return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "BatchImportModelEvaluationSlices" }); + BatchImportEvaluatedAnnotationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls BatchImportModelEvaluationSlices. - * @function batchImportModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for BatchImportEvaluatedAnnotationsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + BatchImportEvaluatedAnnotationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|batchImportEvaluatedAnnotations}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef BatchImportEvaluatedAnnotationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} [response] BatchImportEvaluatedAnnotationsResponse - */ + return BatchImportEvaluatedAnnotationsRequest; + })(); - /** - * Calls BatchImportEvaluatedAnnotations. - * @function batchImportEvaluatedAnnotations - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotationsCallback} callback Node-style callback called with the error, if any, and BatchImportEvaluatedAnnotationsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.batchImportEvaluatedAnnotations = function batchImportEvaluatedAnnotations(request, callback) { - return this.rpcCall(batchImportEvaluatedAnnotations, $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest, $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse, request, callback); - }, "name", { value: "BatchImportEvaluatedAnnotations" }); + v1beta1.BatchImportEvaluatedAnnotationsResponse = (function() { /** - * Calls BatchImportEvaluatedAnnotations. - * @function batchImportEvaluatedAnnotations - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} request BatchImportEvaluatedAnnotationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a BatchImportEvaluatedAnnotationsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportEvaluatedAnnotationsResponse + * @property {number|null} [importedEvaluatedAnnotationsCount] BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluation}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef GetModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation + * Constructs a new BatchImportEvaluatedAnnotationsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportEvaluatedAnnotationsResponse. + * @implements IBatchImportEvaluatedAnnotationsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set */ + function BatchImportEvaluatedAnnotationsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. + * @member {number} importedEvaluatedAnnotationsCount + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { - return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); - }, "name", { value: "GetModelEvaluation" }); + BatchImportEvaluatedAnnotationsResponse.prototype.importedEvaluatedAnnotationsCount = 0; /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse instance */ + BatchImportEvaluatedAnnotationsResponse.create = function create(properties) { + return new BatchImportEvaluatedAnnotationsResponse(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluations}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelEvaluationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + BatchImportEvaluatedAnnotationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedEvaluatedAnnotationsCount != null && Object.hasOwnProperty.call(message, "importedEvaluatedAnnotationsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.importedEvaluatedAnnotationsCount); + return writer; + }; /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { - return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, request, callback); - }, "name", { value: "ListModelEvaluations" }); + BatchImportEvaluatedAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportEvaluatedAnnotationsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.importedEvaluatedAnnotationsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|getModelEvaluationSlice}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef GetModelEvaluationSliceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} [response] ModelEvaluationSlice + * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BatchImportEvaluatedAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice - * @returns {undefined} - * @variation 1 + * Verifies a BatchImportEvaluatedAnnotationsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { - return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, request, callback); - }, "name", { value: "GetModelEvaluationSlice" }); + BatchImportEvaluatedAnnotationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) + if (!$util.isInteger(message.importedEvaluatedAnnotationsCount)) + return "importedEvaluatedAnnotationsCount: integer expected"; + return null; + }; /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse */ + BatchImportEvaluatedAnnotationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse(); + if (object.importedEvaluatedAnnotationsCount != null) + message.importedEvaluatedAnnotationsCount = object.importedEvaluatedAnnotationsCount | 0; + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|listModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse + * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + BatchImportEvaluatedAnnotationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.importedEvaluatedAnnotationsCount = 0; + if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) + object.importedEvaluatedAnnotationsCount = message.importedEvaluatedAnnotationsCount; + return object; + }; /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { - return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "ListModelEvaluationSlices" }); + BatchImportEvaluatedAnnotationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + BatchImportEvaluatedAnnotationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse"; + }; - return ModelService; + return BatchImportEvaluatedAnnotationsResponse; })(); - v1beta1.UploadModelRequest = (function() { + v1beta1.GetModelEvaluationRequest = (function() { /** - * Properties of an UploadModelRequest. + * Properties of a GetModelEvaluationRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUploadModelRequest - * @property {string|null} [parent] UploadModelRequest parent - * @property {string|null} [parentModel] UploadModelRequest parentModel - * @property {string|null} [modelId] UploadModelRequest modelId - * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UploadModelRequest model - * @property {string|null} [serviceAccount] UploadModelRequest serviceAccount + * @interface IGetModelEvaluationRequest + * @property {string|null} [name] GetModelEvaluationRequest name */ /** - * Constructs a new UploadModelRequest. + * Constructs a new GetModelEvaluationRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UploadModelRequest. - * @implements IUploadModelRequest + * @classdesc Represents a GetModelEvaluationRequest. + * @implements IGetModelEvaluationRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set */ - function UploadModelRequest(properties) { + function GetModelEvaluationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -398389,131 +402226,75 @@ } /** - * UploadModelRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parent = ""; - - /** - * UploadModelRequest parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parentModel = ""; - - /** - * UploadModelRequest modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.modelId = ""; - - /** - * UploadModelRequest model. - * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.model = null; - - /** - * UploadModelRequest serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * GetModelEvaluationRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @instance */ - UploadModelRequest.prototype.serviceAccount = ""; + GetModelEvaluationRequest.prototype.name = ""; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest instance */ - UploadModelRequest.create = function create(properties) { - return new UploadModelRequest(properties); + GetModelEvaluationRequest.create = function create(properties) { + return new GetModelEvaluationRequest(properties); }; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encode = function encode(message, writer) { + GetModelEvaluationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decode = function decode(reader, length) { + GetModelEvaluationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 4: { - message.parentModel = reader.string(); - break; - } - case 5: { - message.modelId = reader.string(); - break; - } - case 2: { - message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); - break; - } - case 6: { - message.serviceAccount = reader.string(); + message.name = reader.string(); break; } default: @@ -398525,160 +402306,126 @@ }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelRequest message. + * Verifies a GetModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelRequest.verify = function verify(message) { + GetModelEvaluationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); - if (error) - return "model." + error; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest */ - UploadModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelRequest) + GetModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.model != null) { - if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelRequest.model: object expected"); - message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UploadModelRequest} message UploadModelRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} message GetModelEvaluationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelRequest.toObject = function toObject(message, options) { + GetModelEvaluationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.model = null; - object.parentModel = ""; - object.modelId = ""; - object.serviceAccount = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.model != null && message.hasOwnProperty("model")) - object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UploadModelRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @instance * @returns {Object.} JSON object */ - UploadModelRequest.prototype.toJSON = function toJSON() { + GetModelEvaluationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelRequest + * Gets the default type url for GetModelEvaluationRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UploadModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest"; }; - return UploadModelRequest; + return GetModelEvaluationRequest; })(); - v1beta1.UploadModelOperationMetadata = (function() { + v1beta1.ListModelEvaluationsRequest = (function() { /** - * Properties of an UploadModelOperationMetadata. + * Properties of a ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUploadModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata + * @interface IListModelEvaluationsRequest + * @property {string|null} [parent] ListModelEvaluationsRequest parent + * @property {string|null} [filter] ListModelEvaluationsRequest filter + * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask */ /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UploadModelOperationMetadata. - * @implements IUploadModelOperationMetadata + * @classdesc Represents a ListModelEvaluationsRequest. + * @implements IListModelEvaluationsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set */ - function UploadModelOperationMetadata(properties) { + function ListModelEvaluationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -398686,75 +402433,131 @@ } /** - * UploadModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * ListModelEvaluationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @instance */ - UploadModelOperationMetadata.prototype.genericMetadata = null; + ListModelEvaluationsRequest.prototype.parent = ""; /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * ListModelEvaluationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.filter = ""; + + /** + * ListModelEvaluationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.pageSize = 0; + + /** + * ListModelEvaluationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.pageToken = ""; + + /** + * ListModelEvaluationsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance */ - UploadModelOperationMetadata.create = function create(properties) { - return new UploadModelOperationMetadata(properties); + ListModelEvaluationsRequest.create = function create(properties) { + return new ListModelEvaluationsRequest(properties); }; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encode = function encode(message, writer) { + ListModelEvaluationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decode = function decode(reader, length) { + ListModelEvaluationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -398766,128 +402569,162 @@ }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a ListModelEvaluationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelOperationMetadata.verify = function verify(message) { + ListModelEvaluationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "genericMetadata." + error; + return "readMask." + error; } return null; }; /** - * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest */ - UploadModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata) + ListModelEvaluationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} message UploadModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelOperationMetadata.toObject = function toObject(message, options) { + ListModelEvaluationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @instance * @returns {Object.} JSON object */ - UploadModelOperationMetadata.prototype.toJSON = function toJSON() { + ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelOperationMetadata + * Gets the default type url for ListModelEvaluationsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest"; }; - return UploadModelOperationMetadata; + return ListModelEvaluationsRequest; })(); - v1beta1.UploadModelResponse = (function() { + v1beta1.ListModelEvaluationsResponse = (function() { /** - * Properties of an UploadModelResponse. + * Properties of a ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUploadModelResponse - * @property {string|null} [model] UploadModelResponse model - * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId + * @interface IListModelEvaluationsResponse + * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations + * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken */ /** - * Constructs a new UploadModelResponse. + * Constructs a new ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UploadModelResponse. - * @implements IUploadModelResponse + * @classdesc Represents a ListModelEvaluationsResponse. + * @implements IListModelEvaluationsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set */ - function UploadModelResponse(properties) { + function ListModelEvaluationsResponse(properties) { + this.modelEvaluations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -398895,89 +402732,92 @@ } /** - * UploadModelResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * ListModelEvaluationsResponse modelEvaluations. + * @member {Array.} modelEvaluations + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @instance */ - UploadModelResponse.prototype.model = ""; + ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; /** - * UploadModelResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * ListModelEvaluationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @instance */ - UploadModelResponse.prototype.modelVersionId = ""; + ListModelEvaluationsResponse.prototype.nextPageToken = ""; /** - * Creates a new UploadModelResponse instance using the specified properties. + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance */ - UploadModelResponse.create = function create(properties) { - return new UploadModelResponse(properties); + ListModelEvaluationsResponse.create = function create(properties) { + return new ListModelEvaluationsResponse(properties); }; /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encode = function encode(message, writer) { + ListModelEvaluationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + if (message.modelEvaluations != null && message.modelEvaluations.length) + for (var i = 0; i < message.modelEvaluations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decode = function decode(reader, length) { + ListModelEvaluationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = reader.string(); + if (!(message.modelEvaluations && message.modelEvaluations.length)) + message.modelEvaluations = []; + message.modelEvaluations.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32())); break; } case 2: { - message.modelVersionId = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -398989,131 +402829,148 @@ }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelResponse message. + * Verifies a ListModelEvaluationsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelResponse.verify = function verify(message) { + ListModelEvaluationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; + if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { + if (!Array.isArray(message.modelEvaluations)) + return "modelEvaluations: array expected"; + for (var i = 0; i < message.modelEvaluations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluations[i]); + if (error) + return "modelEvaluations." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse */ - UploadModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelResponse) + ListModelEvaluationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); + if (object.modelEvaluations) { + if (!Array.isArray(object.modelEvaluations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: array expected"); + message.modelEvaluations = []; + for (var i = 0; i < object.modelEvaluations.length; ++i) { + if (typeof object.modelEvaluations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: object expected"); + message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluations[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UploadModelResponse} message UploadModelResponse + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelResponse.toObject = function toObject(message, options) { + ListModelEvaluationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.model = ""; - object.modelVersionId = ""; + if (options.arrays || options.defaults) + object.modelEvaluations = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelEvaluations && message.modelEvaluations.length) { + object.modelEvaluations = []; + for (var j = 0; j < message.modelEvaluations.length; ++j) + object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluations[j], options); } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UploadModelResponse to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @instance * @returns {Object.} JSON object */ - UploadModelResponse.prototype.toJSON = function toJSON() { + ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelResponse + * Gets the default type url for ListModelEvaluationsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UploadModelResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse"; }; - return UploadModelResponse; + return ListModelEvaluationsResponse; })(); - v1beta1.GetModelRequest = (function() { + v1beta1.GetModelEvaluationSliceRequest = (function() { /** - * Properties of a GetModelRequest. + * Properties of a GetModelEvaluationSliceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelRequest - * @property {string|null} [name] GetModelRequest name + * @interface IGetModelEvaluationSliceRequest + * @property {string|null} [name] GetModelEvaluationSliceRequest name */ /** - * Constructs a new GetModelRequest. + * Constructs a new GetModelEvaluationSliceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelRequest. - * @implements IGetModelRequest + * @classdesc Represents a GetModelEvaluationSliceRequest. + * @implements IGetModelEvaluationSliceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set */ - function GetModelRequest(properties) { + function GetModelEvaluationSliceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -399121,35 +402978,35 @@ } /** - * GetModelRequest name. + * GetModelEvaluationSliceRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @instance */ - GetModelRequest.prototype.name = ""; + GetModelEvaluationSliceRequest.prototype.name = ""; /** - * Creates a new GetModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance */ - GetModelRequest.create = function create(properties) { - return new GetModelRequest(properties); + GetModelEvaluationSliceRequest.create = function create(properties) { + return new GetModelEvaluationSliceRequest(properties); }; /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelRequest.encode = function encode(message, writer) { + GetModelEvaluationSliceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -399158,33 +403015,33 @@ }; /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelRequest.decode = function decode(reader, length) { + GetModelEvaluationSliceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -399201,30 +403058,30 @@ }; /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelRequest message. + * Verifies a GetModelEvaluationSliceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelRequest.verify = function verify(message) { + GetModelEvaluationSliceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -399234,32 +403091,32 @@ }; /** - * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest */ - GetModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelRequest) + GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelRequest} message GetModelRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelRequest.toObject = function toObject(message, options) { + GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -399271,56 +403128,56 @@ }; /** - * Converts this GetModelRequest to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @instance * @returns {Object.} JSON object */ - GetModelRequest.prototype.toJSON = function toJSON() { + GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelRequest + * Gets the default type url for GetModelEvaluationSliceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest"; }; - return GetModelRequest; + return GetModelEvaluationSliceRequest; })(); - v1beta1.ListModelsRequest = (function() { + v1beta1.ListModelEvaluationSlicesRequest = (function() { /** - * Properties of a ListModelsRequest. + * Properties of a ListModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelsRequest - * @property {string|null} [parent] ListModelsRequest parent - * @property {string|null} [filter] ListModelsRequest filter - * @property {number|null} [pageSize] ListModelsRequest pageSize - * @property {string|null} [pageToken] ListModelsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask + * @interface IListModelEvaluationSlicesRequest + * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent + * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter + * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask */ /** - * Constructs a new ListModelsRequest. + * Constructs a new ListModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelsRequest. - * @implements IListModelsRequest + * @classdesc Represents a ListModelEvaluationSlicesRequest. + * @implements IListModelEvaluationSlicesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set */ - function ListModelsRequest(properties) { + function ListModelEvaluationSlicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -399328,67 +403185,67 @@ } /** - * ListModelsRequest parent. + * ListModelEvaluationSlicesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.parent = ""; + ListModelEvaluationSlicesRequest.prototype.parent = ""; /** - * ListModelsRequest filter. + * ListModelEvaluationSlicesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.filter = ""; + ListModelEvaluationSlicesRequest.prototype.filter = ""; /** - * ListModelsRequest pageSize. + * ListModelEvaluationSlicesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.pageSize = 0; + ListModelEvaluationSlicesRequest.prototype.pageSize = 0; /** - * ListModelsRequest pageToken. + * ListModelEvaluationSlicesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.pageToken = ""; + ListModelEvaluationSlicesRequest.prototype.pageToken = ""; /** - * ListModelsRequest readMask. + * ListModelEvaluationSlicesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.readMask = null; + ListModelEvaluationSlicesRequest.prototype.readMask = null; /** - * Creates a new ListModelsRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance */ - ListModelsRequest.create = function create(properties) { - return new ListModelsRequest(properties); + ListModelEvaluationSlicesRequest.create = function create(properties) { + return new ListModelEvaluationSlicesRequest(properties); }; /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encode = function encode(message, writer) { + ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -399405,33 +403262,33 @@ }; /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decode = function decode(reader, length) { + ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -399464,30 +403321,30 @@ }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelsRequest message. + * Verifies a ListModelEvaluationSlicesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelsRequest.verify = function verify(message) { + ListModelEvaluationSlicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -399511,17 +403368,17 @@ }; /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest */ - ListModelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsRequest) + ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -399532,22 +403389,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelsRequest} message ListModelsRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelsRequest.toObject = function toObject(message, options) { + ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -399572,54 +403429,54 @@ }; /** - * Converts this ListModelsRequest to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance * @returns {Object.} JSON object */ - ListModelsRequest.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelsRequest + * Gets the default type url for ListModelEvaluationSlicesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest"; }; - return ListModelsRequest; + return ListModelEvaluationSlicesRequest; })(); - v1beta1.ListModelsResponse = (function() { + v1beta1.ListModelEvaluationSlicesResponse = (function() { /** - * Properties of a ListModelsResponse. + * Properties of a ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelsResponse - * @property {Array.|null} [models] ListModelsResponse models - * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken + * @interface IListModelEvaluationSlicesResponse + * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices + * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken */ /** - * Constructs a new ListModelsResponse. + * Constructs a new ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelsResponse. - * @implements IListModelsResponse + * @classdesc Represents a ListModelEvaluationSlicesResponse. + * @implements IListModelEvaluationSlicesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set */ - function ListModelsResponse(properties) { - this.models = []; + function ListModelEvaluationSlicesResponse(properties) { + this.modelEvaluationSlices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -399627,88 +403484,88 @@ } /** - * ListModelsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * ListModelEvaluationSlicesResponse modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @instance */ - ListModelsResponse.prototype.models = $util.emptyArray; + ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; /** - * ListModelsResponse nextPageToken. + * ListModelEvaluationSlicesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @instance */ - ListModelsResponse.prototype.nextPageToken = ""; + ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListModelsResponse instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance */ - ListModelsResponse.create = function create(properties) { - return new ListModelsResponse(properties); + ListModelEvaluationSlicesResponse.create = function create(properties) { + return new ListModelEvaluationSlicesResponse(properties); }; /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsResponse.encode = function encode(message, writer) { + ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.models != null && message.models.length) - for (var i = 0; i < message.models.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelsResponse message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsResponse.decode = function decode(reader, length) { + ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.models && message.models.length)) - message.models = []; - message.models.push($root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32())); + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); break; } case 2: { @@ -399724,39 +403581,39 @@ }; /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelsResponse message. + * Verifies a ListModelEvaluationSlicesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelsResponse.verify = function verify(message) { + ListModelEvaluationSlicesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.models != null && message.hasOwnProperty("models")) { - if (!Array.isArray(message.models)) - return "models: array expected"; - for (var i = 0; i < message.models.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.models[i]); + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); if (error) - return "models." + error; + return "modelEvaluationSlices." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -399766,25 +403623,25 @@ }; /** - * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse */ - ListModelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsResponse) + ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsResponse.models: array expected"); - message.models = []; - for (var i = 0; i < object.models.length; ++i) { - if (typeof object.models[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); } } if (object.nextPageToken != null) @@ -399793,26 +403650,26 @@ }; /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} message ListModelsResponse + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelsResponse.toObject = function toObject(message, options) { + ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.models = []; + object.modelEvaluationSlices = []; if (options.defaults) object.nextPageToken = ""; - if (message.models && message.models.length) { - object.models = []; - for (var j = 0; j < message.models.length; ++j) - object.models[j] = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.models[j], options); + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -399820,57 +403677,724 @@ }; /** - * Converts this ListModelsResponse to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @instance + * @returns {Object.} JSON object + */ + ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListModelEvaluationSlicesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse"; + }; + + return ListModelEvaluationSlicesResponse; + })(); + + v1beta1.PersistentResource = (function() { + + /** + * Properties of a PersistentResource. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPersistentResource + * @property {string|null} [name] PersistentResource name + * @property {string|null} [displayName] PersistentResource displayName + * @property {Array.|null} [resourcePools] PersistentResource resourcePools + * @property {google.cloud.aiplatform.v1beta1.PersistentResource.State|null} [state] PersistentResource state + * @property {google.rpc.IStatus|null} [error] PersistentResource error + * @property {google.protobuf.ITimestamp|null} [createTime] PersistentResource createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PersistentResource startTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PersistentResource updateTime + * @property {Object.|null} [labels] PersistentResource labels + * @property {string|null} [network] PersistentResource network + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] PersistentResource encryptionSpec + * @property {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null} [resourceRuntimeSpec] PersistentResource resourceRuntimeSpec + * @property {google.cloud.aiplatform.v1beta1.IResourceRuntime|null} [resourceRuntime] PersistentResource resourceRuntime + * @property {Array.|null} [reservedIpRanges] PersistentResource reservedIpRanges + */ + + /** + * Constructs a new PersistentResource. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PersistentResource. + * @implements IPersistentResource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPersistentResource=} [properties] Properties to set + */ + function PersistentResource(properties) { + this.resourcePools = []; + this.labels = {}; + this.reservedIpRanges = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PersistentResource name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.name = ""; + + /** + * PersistentResource displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.displayName = ""; + + /** + * PersistentResource resourcePools. + * @member {Array.} resourcePools + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.resourcePools = $util.emptyArray; + + /** + * PersistentResource state. + * @member {google.cloud.aiplatform.v1beta1.PersistentResource.State} state + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.state = 0; + + /** + * PersistentResource error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.error = null; + + /** + * PersistentResource createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.createTime = null; + + /** + * PersistentResource startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.startTime = null; + + /** + * PersistentResource updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.updateTime = null; + + /** + * PersistentResource labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.labels = $util.emptyObject; + + /** + * PersistentResource network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.network = ""; + + /** + * PersistentResource encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.encryptionSpec = null; + + /** + * PersistentResource resourceRuntimeSpec. + * @member {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null|undefined} resourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.resourceRuntimeSpec = null; + + /** + * PersistentResource resourceRuntime. + * @member {google.cloud.aiplatform.v1beta1.IResourceRuntime|null|undefined} resourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.resourceRuntime = null; + + /** + * PersistentResource reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @instance + */ + PersistentResource.prototype.reservedIpRanges = $util.emptyArray; + + /** + * Creates a new PersistentResource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {google.cloud.aiplatform.v1beta1.IPersistentResource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource instance + */ + PersistentResource.create = function create(properties) { + return new PersistentResource(properties); + }; + + /** + * Encodes the specified PersistentResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {google.cloud.aiplatform.v1beta1.IPersistentResource} message PersistentResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PersistentResource.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.resourcePools != null && message.resourcePools.length) + for (var i = 0; i < message.resourcePools.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ResourcePool.encode(message.resourcePools[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.network); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.resourceRuntimeSpec != null && Object.hasOwnProperty.call(message, "resourceRuntimeSpec")) + $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.encode(message.resourceRuntimeSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.resourceRuntime != null && Object.hasOwnProperty.call(message, "resourceRuntime")) + $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.encode(message.resourceRuntime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.reservedIpRanges[i]); + return writer; + }; + + /** + * Encodes the specified PersistentResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {google.cloud.aiplatform.v1beta1.IPersistentResource} message PersistentResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PersistentResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PersistentResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PersistentResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PersistentResource(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + if (!(message.resourcePools && message.resourcePools.length)) + message.resourcePools = []; + message.resourcePools.push($root.google.cloud.aiplatform.v1beta1.ResourcePool.decode(reader, reader.uint32())); + break; + } + case 5: { + message.state = reader.int32(); + break; + } + case 6: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 11: { + message.network = reader.string(); + break; + } + case 12: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 13: { + message.resourceRuntimeSpec = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.decode(reader, reader.uint32()); + break; + } + case 14: { + message.resourceRuntime = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.decode(reader, reader.uint32()); + break; + } + case 15: { + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PersistentResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PersistentResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PersistentResource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PersistentResource.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.resourcePools != null && message.hasOwnProperty("resourcePools")) { + if (!Array.isArray(message.resourcePools)) + return "resourcePools: array expected"; + for (var i = 0; i < message.resourcePools.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ResourcePool.verify(message.resourcePools[i]); + if (error) + return "resourcePools." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 3: + case 4: + case 5: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.resourceRuntimeSpec != null && message.hasOwnProperty("resourceRuntimeSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify(message.resourceRuntimeSpec); + if (error) + return "resourceRuntimeSpec." + error; + } + if (message.resourceRuntime != null && message.hasOwnProperty("resourceRuntime")) { + var error = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.verify(message.resourceRuntime); + if (error) + return "resourceRuntime." + error; + } + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + return null; + }; + + /** + * Creates a PersistentResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource + */ + PersistentResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PersistentResource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PersistentResource(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.resourcePools) { + if (!Array.isArray(object.resourcePools)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourcePools: array expected"); + message.resourcePools = []; + for (var i = 0; i < object.resourcePools.length; ++i) { + if (typeof object.resourcePools[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourcePools: object expected"); + message.resourcePools[i] = $root.google.cloud.aiplatform.v1beta1.ResourcePool.fromObject(object.resourcePools[i]); + } + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PROVISIONING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 3: + message.state = 3; + break; + case "STOPPING": + case 4: + message.state = 4; + break; + case "ERROR": + case 5: + message.state = 5; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.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.network != null) + message.network = String(object.network); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.resourceRuntimeSpec != null) { + if (typeof object.resourceRuntimeSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourceRuntimeSpec: object expected"); + message.resourceRuntimeSpec = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.fromObject(object.resourceRuntimeSpec); + } + if (object.resourceRuntime != null) { + if (typeof object.resourceRuntime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourceRuntime: object expected"); + message.resourceRuntime = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.fromObject(object.resourceRuntime); + } + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + return message; + }; + + /** + * Creates a plain object from a PersistentResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @static + * @param {google.cloud.aiplatform.v1beta1.PersistentResource} message PersistentResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PersistentResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.resourcePools = []; + object.reservedIpRanges = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.error = null; + object.createTime = null; + object.startTime = null; + object.updateTime = null; + object.network = ""; + object.encryptionSpec = null; + object.resourceRuntimeSpec = null; + object.resourceRuntime = 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.resourcePools && message.resourcePools.length) { + object.resourcePools = []; + for (var j = 0; j < message.resourcePools.length; ++j) + object.resourcePools[j] = $root.google.cloud.aiplatform.v1beta1.ResourcePool.toObject(message.resourcePools[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PersistentResource.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PersistentResource.State[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.resourceRuntimeSpec != null && message.hasOwnProperty("resourceRuntimeSpec")) + object.resourceRuntimeSpec = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.toObject(message.resourceRuntimeSpec, options); + if (message.resourceRuntime != null && message.hasOwnProperty("resourceRuntime")) + object.resourceRuntime = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.toObject(message.resourceRuntime, options); + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; + } + return object; + }; + + /** + * Converts this PersistentResource to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource * @instance * @returns {Object.} JSON object */ - ListModelsResponse.prototype.toJSON = function toJSON() { + PersistentResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelsResponse + * Gets the default type url for PersistentResource * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.PersistentResource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PersistentResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PersistentResource"; }; - return ListModelsResponse; + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.PersistentResource.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PROVISIONING=1 PROVISIONING value + * @property {number} RUNNING=3 RUNNING value + * @property {number} STOPPING=4 STOPPING value + * @property {number} ERROR=5 ERROR value + */ + PersistentResource.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROVISIONING"] = 1; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "STOPPING"] = 4; + values[valuesById[5] = "ERROR"] = 5; + return values; + })(); + + return PersistentResource; })(); - v1beta1.ListModelVersionsRequest = (function() { + v1beta1.ResourcePool = (function() { /** - * Properties of a ListModelVersionsRequest. + * Properties of a ResourcePool. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelVersionsRequest - * @property {string|null} [name] ListModelVersionsRequest name - * @property {number|null} [pageSize] ListModelVersionsRequest pageSize - * @property {string|null} [pageToken] ListModelVersionsRequest pageToken - * @property {string|null} [filter] ListModelVersionsRequest filter - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask - * @property {string|null} [orderBy] ListModelVersionsRequest orderBy + * @interface IResourcePool + * @property {string|null} [id] ResourcePool id + * @property {google.cloud.aiplatform.v1beta1.IMachineSpec|null} [machineSpec] ResourcePool machineSpec + * @property {number|Long|null} [replicaCount] ResourcePool replicaCount + * @property {google.cloud.aiplatform.v1beta1.IDiskSpec|null} [diskSpec] ResourcePool diskSpec + * @property {number|Long|null} [usedReplicaCount] ResourcePool usedReplicaCount + * @property {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null} [autoscalingSpec] ResourcePool autoscalingSpec */ /** - * Constructs a new ListModelVersionsRequest. + * Constructs a new ResourcePool. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelVersionsRequest. - * @implements IListModelVersionsRequest + * @classdesc Represents a ResourcePool. + * @implements IResourcePool * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IResourcePool=} [properties] Properties to set */ - function ListModelVersionsRequest(properties) { + function ResourcePool(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -399878,145 +404402,159 @@ } /** - * ListModelVersionsRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * ResourcePool id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance */ - ListModelVersionsRequest.prototype.name = ""; + ResourcePool.prototype.id = ""; /** - * ListModelVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * ResourcePool machineSpec. + * @member {google.cloud.aiplatform.v1beta1.IMachineSpec|null|undefined} machineSpec + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance */ - ListModelVersionsRequest.prototype.pageSize = 0; + ResourcePool.prototype.machineSpec = null; /** - * ListModelVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * ResourcePool replicaCount. + * @member {number|Long|null|undefined} replicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance */ - ListModelVersionsRequest.prototype.pageToken = ""; + ResourcePool.prototype.replicaCount = null; /** - * ListModelVersionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * ResourcePool diskSpec. + * @member {google.cloud.aiplatform.v1beta1.IDiskSpec|null|undefined} diskSpec + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance */ - ListModelVersionsRequest.prototype.filter = ""; + ResourcePool.prototype.diskSpec = null; /** - * ListModelVersionsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * ResourcePool usedReplicaCount. + * @member {number|Long} usedReplicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance */ - ListModelVersionsRequest.prototype.readMask = null; + ResourcePool.prototype.usedReplicaCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ListModelVersionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * ResourcePool autoscalingSpec. + * @member {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null|undefined} autoscalingSpec + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance */ - ListModelVersionsRequest.prototype.orderBy = ""; + ResourcePool.prototype.autoscalingSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListModelVersionsRequest instance using the specified properties. + * ResourcePool _replicaCount. + * @member {"replicaCount"|undefined} _replicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @instance + */ + Object.defineProperty(ResourcePool.prototype, "_replicaCount", { + get: $util.oneOfGetter($oneOfFields = ["replicaCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResourcePool instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IResourcePool=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool instance */ - ListModelVersionsRequest.create = function create(properties) { - return new ListModelVersionsRequest(properties); + ResourcePool.create = function create(properties) { + return new ResourcePool(properties); }; /** - * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * Encodes the specified ResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResourcePool} message ResourcePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsRequest.encode = function encode(message, writer) { + ResourcePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.machineSpec != null && Object.hasOwnProperty.call(message, "machineSpec")) + $root.google.cloud.aiplatform.v1beta1.MachineSpec.encode(message.machineSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.replicaCount != null && Object.hasOwnProperty.call(message, "replicaCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.replicaCount); + if (message.diskSpec != null && Object.hasOwnProperty.call(message, "diskSpec")) + $root.google.cloud.aiplatform.v1beta1.DiskSpec.encode(message.diskSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.usedReplicaCount != null && Object.hasOwnProperty.call(message, "usedReplicaCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.usedReplicaCount); + if (message.autoscalingSpec != null && Object.hasOwnProperty.call(message, "autoscalingSpec")) + $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.encode(message.autoscalingSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * Encodes the specified ResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResourcePool} message ResourcePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResourcePool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * Decodes a ResourcePool message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsRequest.decode = function decode(reader, length) { + ResourcePool.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.id = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); + message.replicaCount = reader.int64(); break; } case 4: { - message.filter = reader.string(); + message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.decode(reader, reader.uint32()); break; } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 6: { + message.usedReplicaCount = reader.int64(); break; } - case 6: { - message.orderBy = reader.string(); + case 7: { + message.autoscalingSpec = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.decode(reader, reader.uint32()); break; } default: @@ -400028,170 +404566,487 @@ }; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ResourcePool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + ResourcePool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelVersionsRequest message. + * Verifies a ResourcePool message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelVersionsRequest.verify = function verify(message) { + ResourcePool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.MachineSpec.verify(message.machineSpec); if (error) - return "readMask." + error; + return "machineSpec." + error; + } + if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) { + properties._replicaCount = 1; + if (!$util.isInteger(message.replicaCount) && !(message.replicaCount && $util.isInteger(message.replicaCount.low) && $util.isInteger(message.replicaCount.high))) + return "replicaCount: integer|Long expected"; + } + if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.DiskSpec.verify(message.diskSpec); + if (error) + return "diskSpec." + error; + } + if (message.usedReplicaCount != null && message.hasOwnProperty("usedReplicaCount")) + if (!$util.isInteger(message.usedReplicaCount) && !(message.usedReplicaCount && $util.isInteger(message.usedReplicaCount.low) && $util.isInteger(message.usedReplicaCount.high))) + return "usedReplicaCount: integer|Long expected"; + if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify(message.autoscalingSpec); + if (error) + return "autoscalingSpec." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResourcePool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool */ - ListModelVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + ResourcePool.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourcePool) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool(); + if (object.id != null) + message.id = String(object.id); + if (object.machineSpec != null) { + if (typeof object.machineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ResourcePool.machineSpec: object expected"); + message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.fromObject(object.machineSpec); + } + if (object.replicaCount != null) + if ($util.Long) + (message.replicaCount = $util.Long.fromValue(object.replicaCount)).unsigned = false; + else if (typeof object.replicaCount === "string") + message.replicaCount = parseInt(object.replicaCount, 10); + else if (typeof object.replicaCount === "number") + message.replicaCount = object.replicaCount; + else if (typeof object.replicaCount === "object") + message.replicaCount = new $util.LongBits(object.replicaCount.low >>> 0, object.replicaCount.high >>> 0).toNumber(); + if (object.diskSpec != null) { + if (typeof object.diskSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ResourcePool.diskSpec: object expected"); + message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.fromObject(object.diskSpec); + } + if (object.usedReplicaCount != null) + if ($util.Long) + (message.usedReplicaCount = $util.Long.fromValue(object.usedReplicaCount)).unsigned = false; + else if (typeof object.usedReplicaCount === "string") + message.usedReplicaCount = parseInt(object.usedReplicaCount, 10); + else if (typeof object.usedReplicaCount === "number") + message.usedReplicaCount = object.usedReplicaCount; + else if (typeof object.usedReplicaCount === "object") + message.usedReplicaCount = new $util.LongBits(object.usedReplicaCount.low >>> 0, object.usedReplicaCount.high >>> 0).toNumber(); + if (object.autoscalingSpec != null) { + if (typeof object.autoscalingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ResourcePool.autoscalingSpec: object expected"); + message.autoscalingSpec = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.fromObject(object.autoscalingSpec); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResourcePool message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} message ListModelVersionsRequest + * @param {google.cloud.aiplatform.v1beta1.ResourcePool} message ResourcePool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelVersionsRequest.toObject = function toObject(message, options) { + ResourcePool.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.readMask = null; - object.orderBy = ""; + object.id = ""; + object.machineSpec = null; + object.diskSpec = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.usedReplicaCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.usedReplicaCount = options.longs === String ? "0" : 0; + object.autoscalingSpec = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) + object.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.toObject(message.machineSpec, options); + if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) { + if (typeof message.replicaCount === "number") + object.replicaCount = options.longs === String ? String(message.replicaCount) : message.replicaCount; + else + object.replicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.replicaCount) : options.longs === Number ? new $util.LongBits(message.replicaCount.low >>> 0, message.replicaCount.high >>> 0).toNumber() : message.replicaCount; + if (options.oneofs) + object._replicaCount = "replicaCount"; + } + if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) + object.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.toObject(message.diskSpec, options); + if (message.usedReplicaCount != null && message.hasOwnProperty("usedReplicaCount")) + if (typeof message.usedReplicaCount === "number") + object.usedReplicaCount = options.longs === String ? String(message.usedReplicaCount) : message.usedReplicaCount; + else + object.usedReplicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.usedReplicaCount) : options.longs === Number ? new $util.LongBits(message.usedReplicaCount.low >>> 0, message.usedReplicaCount.high >>> 0).toNumber() : message.usedReplicaCount; + if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) + object.autoscalingSpec = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.toObject(message.autoscalingSpec, options); return object; }; /** - * Converts this ListModelVersionsRequest to JSON. + * Converts this ResourcePool to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @instance * @returns {Object.} JSON object */ - ListModelVersionsRequest.prototype.toJSON = function toJSON() { + ResourcePool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelVersionsRequest + * Gets the default type url for ResourcePool * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourcePool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelVersionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourcePool"; }; - return ListModelVersionsRequest; + ResourcePool.AutoscalingSpec = (function() { + + /** + * Properties of an AutoscalingSpec. + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @interface IAutoscalingSpec + * @property {number|Long|null} [minReplicaCount] AutoscalingSpec minReplicaCount + * @property {number|Long|null} [maxReplicaCount] AutoscalingSpec maxReplicaCount + */ + + /** + * Constructs a new AutoscalingSpec. + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @classdesc Represents an AutoscalingSpec. + * @implements IAutoscalingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec=} [properties] Properties to set + */ + function AutoscalingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutoscalingSpec minReplicaCount. + * @member {number|Long|null|undefined} minReplicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @instance + */ + AutoscalingSpec.prototype.minReplicaCount = null; + + /** + * AutoscalingSpec maxReplicaCount. + * @member {number|Long|null|undefined} maxReplicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @instance + */ + AutoscalingSpec.prototype.maxReplicaCount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AutoscalingSpec _minReplicaCount. + * @member {"minReplicaCount"|undefined} _minReplicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @instance + */ + Object.defineProperty(AutoscalingSpec.prototype, "_minReplicaCount", { + get: $util.oneOfGetter($oneOfFields = ["minReplicaCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AutoscalingSpec _maxReplicaCount. + * @member {"maxReplicaCount"|undefined} _maxReplicaCount + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @instance + */ + Object.defineProperty(AutoscalingSpec.prototype, "_maxReplicaCount", { + get: $util.oneOfGetter($oneOfFields = ["maxReplicaCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AutoscalingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec instance + */ + AutoscalingSpec.create = function create(properties) { + return new AutoscalingSpec(properties); + }; + + /** + * Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoscalingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minReplicaCount != null && Object.hasOwnProperty.call(message, "minReplicaCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.minReplicaCount); + if (message.maxReplicaCount != null && Object.hasOwnProperty.call(message, "maxReplicaCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxReplicaCount); + return writer; + }; + + /** + * Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoscalingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoscalingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.minReplicaCount = reader.int64(); + break; + } + case 2: { + message.maxReplicaCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoscalingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoscalingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoscalingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount")) { + properties._minReplicaCount = 1; + if (!$util.isInteger(message.minReplicaCount) && !(message.minReplicaCount && $util.isInteger(message.minReplicaCount.low) && $util.isInteger(message.minReplicaCount.high))) + return "minReplicaCount: integer|Long expected"; + } + if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) { + properties._maxReplicaCount = 1; + if (!$util.isInteger(message.maxReplicaCount) && !(message.maxReplicaCount && $util.isInteger(message.maxReplicaCount.low) && $util.isInteger(message.maxReplicaCount.high))) + return "maxReplicaCount: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AutoscalingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec + */ + AutoscalingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec(); + if (object.minReplicaCount != null) + if ($util.Long) + (message.minReplicaCount = $util.Long.fromValue(object.minReplicaCount)).unsigned = false; + else if (typeof object.minReplicaCount === "string") + message.minReplicaCount = parseInt(object.minReplicaCount, 10); + else if (typeof object.minReplicaCount === "number") + message.minReplicaCount = object.minReplicaCount; + else if (typeof object.minReplicaCount === "object") + message.minReplicaCount = new $util.LongBits(object.minReplicaCount.low >>> 0, object.minReplicaCount.high >>> 0).toNumber(); + if (object.maxReplicaCount != null) + if ($util.Long) + (message.maxReplicaCount = $util.Long.fromValue(object.maxReplicaCount)).unsigned = false; + else if (typeof object.maxReplicaCount === "string") + message.maxReplicaCount = parseInt(object.maxReplicaCount, 10); + else if (typeof object.maxReplicaCount === "number") + message.maxReplicaCount = object.maxReplicaCount; + else if (typeof object.maxReplicaCount === "object") + message.maxReplicaCount = new $util.LongBits(object.maxReplicaCount.low >>> 0, object.maxReplicaCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} message AutoscalingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoscalingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount")) { + if (typeof message.minReplicaCount === "number") + object.minReplicaCount = options.longs === String ? String(message.minReplicaCount) : message.minReplicaCount; + else + object.minReplicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.minReplicaCount) : options.longs === Number ? new $util.LongBits(message.minReplicaCount.low >>> 0, message.minReplicaCount.high >>> 0).toNumber() : message.minReplicaCount; + if (options.oneofs) + object._minReplicaCount = "minReplicaCount"; + } + if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) { + if (typeof message.maxReplicaCount === "number") + object.maxReplicaCount = options.longs === String ? String(message.maxReplicaCount) : message.maxReplicaCount; + else + object.maxReplicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxReplicaCount) : options.longs === Number ? new $util.LongBits(message.maxReplicaCount.low >>> 0, message.maxReplicaCount.high >>> 0).toNumber() : message.maxReplicaCount; + if (options.oneofs) + object._maxReplicaCount = "maxReplicaCount"; + } + return object; + }; + + /** + * Converts this AutoscalingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @instance + * @returns {Object.} JSON object + */ + AutoscalingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutoscalingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoscalingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec"; + }; + + return AutoscalingSpec; + })(); + + return ResourcePool; })(); - v1beta1.ListModelVersionsResponse = (function() { + v1beta1.ResourceRuntimeSpec = (function() { /** - * Properties of a ListModelVersionsResponse. + * Properties of a ResourceRuntimeSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelVersionsResponse - * @property {Array.|null} [models] ListModelVersionsResponse models - * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken + * @interface IResourceRuntimeSpec + * @property {google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null} [serviceAccountSpec] ResourceRuntimeSpec serviceAccountSpec + * @property {google.cloud.aiplatform.v1beta1.IRaySpec|null} [raySpec] ResourceRuntimeSpec raySpec */ /** - * Constructs a new ListModelVersionsResponse. + * Constructs a new ResourceRuntimeSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelVersionsResponse. - * @implements IListModelVersionsResponse + * @classdesc Represents a ResourceRuntimeSpec. + * @implements IResourceRuntimeSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec=} [properties] Properties to set */ - function ListModelVersionsResponse(properties) { - this.models = []; + function ResourceRuntimeSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -400199,92 +405054,89 @@ } /** - * ListModelVersionsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * ResourceRuntimeSpec serviceAccountSpec. + * @member {google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null|undefined} serviceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @instance */ - ListModelVersionsResponse.prototype.models = $util.emptyArray; + ResourceRuntimeSpec.prototype.serviceAccountSpec = null; /** - * ListModelVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * ResourceRuntimeSpec raySpec. + * @member {google.cloud.aiplatform.v1beta1.IRaySpec|null|undefined} raySpec + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @instance */ - ListModelVersionsResponse.prototype.nextPageToken = ""; + ResourceRuntimeSpec.prototype.raySpec = null; /** - * Creates a new ListModelVersionsResponse instance using the specified properties. + * Creates a new ResourceRuntimeSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec instance */ - ListModelVersionsResponse.create = function create(properties) { - return new ListModelVersionsResponse(properties); + ResourceRuntimeSpec.create = function create(properties) { + return new ResourceRuntimeSpec(properties); }; /** - * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. + * Encodes the specified ResourceRuntimeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec} message ResourceRuntimeSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsResponse.encode = function encode(message, writer) { + ResourceRuntimeSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.models != null && message.models.length) - for (var i = 0; i < message.models.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.raySpec != null && Object.hasOwnProperty.call(message, "raySpec")) + $root.google.cloud.aiplatform.v1beta1.RaySpec.encode(message.raySpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.serviceAccountSpec != null && Object.hasOwnProperty.call(message, "serviceAccountSpec")) + $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.encode(message.serviceAccountSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. + * Encodes the specified ResourceRuntimeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec} message ResourceRuntimeSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ResourceRuntimeSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * Decodes a ResourceRuntimeSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsResponse.decode = function decode(reader, length) { + ResourceRuntimeSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.models && message.models.length)) - message.models = []; - message.models.push($root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32())); + case 2: { + message.serviceAccountSpec = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.decode(reader, reader.uint32()); break; } - case 2: { - message.nextPageToken = reader.string(); + case 1: { + message.raySpec = $root.google.cloud.aiplatform.v1beta1.RaySpec.decode(reader, reader.uint32()); break; } default: @@ -400296,149 +405148,144 @@ }; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ResourceRuntimeSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + ResourceRuntimeSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelVersionsResponse message. + * Verifies a ResourceRuntimeSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelVersionsResponse.verify = function verify(message) { + ResourceRuntimeSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.models != null && message.hasOwnProperty("models")) { - if (!Array.isArray(message.models)) - return "models: array expected"; - for (var i = 0; i < message.models.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.models[i]); - if (error) - return "models." + error; - } + if (message.serviceAccountSpec != null && message.hasOwnProperty("serviceAccountSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify(message.serviceAccountSpec); + if (error) + return "serviceAccountSpec." + error; + } + if (message.raySpec != null && message.hasOwnProperty("raySpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.RaySpec.verify(message.raySpec); + if (error) + return "raySpec." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceRuntimeSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec */ - ListModelVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) + ResourceRuntimeSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.models: array expected"); - message.models = []; - for (var i = 0; i < object.models.length; ++i) { - if (typeof object.models[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec(); + if (object.serviceAccountSpec != null) { + if (typeof object.serviceAccountSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.serviceAccountSpec: object expected"); + message.serviceAccountSpec = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.fromObject(object.serviceAccountSpec); + } + if (object.raySpec != null) { + if (typeof object.raySpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.raySpec: object expected"); + message.raySpec = $root.google.cloud.aiplatform.v1beta1.RaySpec.fromObject(object.raySpec); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ResourceRuntimeSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} message ListModelVersionsResponse + * @param {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} message ResourceRuntimeSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelVersionsResponse.toObject = function toObject(message, options) { + ResourceRuntimeSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.models = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.models && message.models.length) { - object.models = []; - for (var j = 0; j < message.models.length; ++j) - object.models[j] = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.models[j], options); + if (options.defaults) { + object.raySpec = null; + object.serviceAccountSpec = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.raySpec != null && message.hasOwnProperty("raySpec")) + object.raySpec = $root.google.cloud.aiplatform.v1beta1.RaySpec.toObject(message.raySpec, options); + if (message.serviceAccountSpec != null && message.hasOwnProperty("serviceAccountSpec")) + object.serviceAccountSpec = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.toObject(message.serviceAccountSpec, options); return object; }; /** - * Converts this ListModelVersionsResponse to JSON. + * Converts this ResourceRuntimeSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @instance * @returns {Object.} JSON object */ - ListModelVersionsResponse.prototype.toJSON = function toJSON() { + ResourceRuntimeSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelVersionsResponse + * Gets the default type url for ResourceRuntimeSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourceRuntimeSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelVersionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec"; }; - return ListModelVersionsResponse; + return ResourceRuntimeSpec; })(); - v1beta1.UpdateModelRequest = (function() { + v1beta1.RaySpec = (function() { /** - * Properties of an UpdateModelRequest. + * Properties of a RaySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelRequest - * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UpdateModelRequest model - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask + * @interface IRaySpec + * @property {string|null} [imageUri] RaySpec imageUri + * @property {Object.|null} [resourcePoolImages] RaySpec resourcePoolImages + * @property {string|null} [headNodeResourcePoolId] RaySpec headNodeResourcePoolId */ /** - * Constructs a new UpdateModelRequest. + * Constructs a new RaySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelRequest. - * @implements IUpdateModelRequest + * @classdesc Represents a RaySpec. + * @implements IRaySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRaySpec=} [properties] Properties to set */ - function UpdateModelRequest(properties) { + function RaySpec(properties) { + this.resourcePoolImages = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -400446,89 +405293,123 @@ } /** - * UpdateModelRequest model. - * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * RaySpec imageUri. + * @member {string} imageUri + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @instance */ - UpdateModelRequest.prototype.model = null; + RaySpec.prototype.imageUri = ""; /** - * UpdateModelRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * RaySpec resourcePoolImages. + * @member {Object.} resourcePoolImages + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @instance */ - UpdateModelRequest.prototype.updateMask = null; + RaySpec.prototype.resourcePoolImages = $util.emptyObject; /** - * Creates a new UpdateModelRequest instance using the specified properties. + * RaySpec headNodeResourcePoolId. + * @member {string} headNodeResourcePoolId + * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @instance + */ + RaySpec.prototype.headNodeResourcePoolId = ""; + + /** + * Creates a new RaySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IRaySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec instance */ - UpdateModelRequest.create = function create(properties) { - return new UpdateModelRequest(properties); + RaySpec.create = function create(properties) { + return new RaySpec(properties); }; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified RaySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRaySpec} message RaySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encode = function encode(message, writer) { + RaySpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); + if (message.resourcePoolImages != null && Object.hasOwnProperty.call(message, "resourcePoolImages")) + for (var keys = Object.keys(message.resourcePoolImages), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourcePoolImages[keys[i]]).ldelim(); + if (message.headNodeResourcePoolId != null && Object.hasOwnProperty.call(message, "headNodeResourcePoolId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.headNodeResourcePoolId); return writer; }; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified RaySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRaySpec} message RaySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + RaySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes a RaySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decode = function decode(reader, length) { + RaySpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RaySpec(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); + message.imageUri = reader.string(); break; } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 6: { + if (message.resourcePoolImages === $util.emptyObject) + message.resourcePoolImages = {}; + 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.resourcePoolImages[key] = value; + break; + } + case 7: { + message.headNodeResourcePoolId = reader.string(); break; } default: @@ -400540,142 +405421,155 @@ }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes a RaySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { + RaySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelRequest message. + * Verifies a RaySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateModelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); - if (error) - return "model." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RaySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + if (!$util.isString(message.imageUri)) + return "imageUri: string expected"; + if (message.resourcePoolImages != null && message.hasOwnProperty("resourcePoolImages")) { + if (!$util.isObject(message.resourcePoolImages)) + return "resourcePoolImages: object expected"; + var key = Object.keys(message.resourcePoolImages); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourcePoolImages[key[i]])) + return "resourcePoolImages: string{k:string} expected"; } + if (message.headNodeResourcePoolId != null && message.hasOwnProperty("headNodeResourcePoolId")) + if (!$util.isString(message.headNodeResourcePoolId)) + return "headNodeResourcePoolId: string expected"; return null; }; /** - * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RaySpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec */ - UpdateModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest) + RaySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RaySpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); - if (object.model != null) { - if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.model: object expected"); - message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.RaySpec(); + if (object.imageUri != null) + message.imageUri = String(object.imageUri); + if (object.resourcePoolImages) { + if (typeof object.resourcePoolImages !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RaySpec.resourcePoolImages: object expected"); + message.resourcePoolImages = {}; + for (var keys = Object.keys(object.resourcePoolImages), i = 0; i < keys.length; ++i) + message.resourcePoolImages[keys[i]] = String(object.resourcePoolImages[keys[i]]); } + if (object.headNodeResourcePoolId != null) + message.headNodeResourcePoolId = String(object.headNodeResourcePoolId); return message; }; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a RaySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelRequest} message UpdateModelRequest + * @param {google.cloud.aiplatform.v1beta1.RaySpec} message RaySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelRequest.toObject = function toObject(message, options) { + RaySpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.resourcePoolImages = {}; if (options.defaults) { - object.model = null; - object.updateMask = null; + object.imageUri = ""; + object.headNodeResourcePoolId = ""; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + object.imageUri = message.imageUri; + var keys2; + if (message.resourcePoolImages && (keys2 = Object.keys(message.resourcePoolImages)).length) { + object.resourcePoolImages = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourcePoolImages[keys2[j]] = message.resourcePoolImages[keys2[j]]; + } + if (message.headNodeResourcePoolId != null && message.hasOwnProperty("headNodeResourcePoolId")) + object.headNodeResourcePoolId = message.headNodeResourcePoolId; return object; }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this RaySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @instance * @returns {Object.} JSON object */ - UpdateModelRequest.prototype.toJSON = function toJSON() { + RaySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelRequest + * Gets the default type url for RaySpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.RaySpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RaySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RaySpec"; }; - return UpdateModelRequest; + return RaySpec; })(); - v1beta1.UpdateExplanationDatasetRequest = (function() { + v1beta1.ResourceRuntime = (function() { /** - * Properties of an UpdateExplanationDatasetRequest. + * Properties of a ResourceRuntime. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateExplanationDatasetRequest - * @property {string|null} [model] UpdateExplanationDatasetRequest model - * @property {google.cloud.aiplatform.v1beta1.IExamples|null} [examples] UpdateExplanationDatasetRequest examples + * @interface IResourceRuntime + * @property {Object.|null} [accessUris] ResourceRuntime accessUris */ /** - * Constructs a new UpdateExplanationDatasetRequest. + * Constructs a new ResourceRuntime. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateExplanationDatasetRequest. - * @implements IUpdateExplanationDatasetRequest + * @classdesc Represents a ResourceRuntime. + * @implements IResourceRuntime * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime=} [properties] Properties to set */ - function UpdateExplanationDatasetRequest(properties) { + function ResourceRuntime(properties) { + this.accessUris = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -400683,89 +405577,95 @@ } /** - * UpdateExplanationDatasetRequest model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest - * @instance - */ - UpdateExplanationDatasetRequest.prototype.model = ""; - - /** - * UpdateExplanationDatasetRequest examples. - * @member {google.cloud.aiplatform.v1beta1.IExamples|null|undefined} examples - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * ResourceRuntime accessUris. + * @member {Object.} accessUris + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @instance */ - UpdateExplanationDatasetRequest.prototype.examples = null; + ResourceRuntime.prototype.accessUris = $util.emptyObject; /** - * Creates a new UpdateExplanationDatasetRequest instance using the specified properties. + * Creates a new ResourceRuntime instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime instance */ - UpdateExplanationDatasetRequest.create = function create(properties) { - return new UpdateExplanationDatasetRequest(properties); + ResourceRuntime.create = function create(properties) { + return new ResourceRuntime(properties); }; /** - * Encodes the specified UpdateExplanationDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. + * Encodes the specified ResourceRuntime message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} message UpdateExplanationDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime} message ResourceRuntime message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExplanationDatasetRequest.encode = function encode(message, writer) { + ResourceRuntime.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.examples != null && Object.hasOwnProperty.call(message, "examples")) - $root.google.cloud.aiplatform.v1beta1.Examples.encode(message.examples, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.accessUris != null && Object.hasOwnProperty.call(message, "accessUris")) + for (var keys = Object.keys(message.accessUris), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.accessUris[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified UpdateExplanationDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.verify|verify} messages. + * Encodes the specified ResourceRuntime message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetRequest} message UpdateExplanationDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime} message ResourceRuntime message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExplanationDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResourceRuntime.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer. + * Decodes a ResourceRuntime message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExplanationDatasetRequest.decode = function decode(reader, length) { + ResourceRuntime.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntime(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = reader.string(); - break; - } - case 2: { - message.examples = $root.google.cloud.aiplatform.v1beta1.Examples.decode(reader, reader.uint32()); + if (message.accessUris === $util.emptyObject) + message.accessUris = {}; + 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.accessUris[key] = value; break; } default: @@ -400777,136 +405677,137 @@ }; /** - * Decodes an UpdateExplanationDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a ResourceRuntime message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExplanationDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + ResourceRuntime.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExplanationDatasetRequest message. + * Verifies a ResourceRuntime message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExplanationDatasetRequest.verify = function verify(message) { + ResourceRuntime.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.examples != null && message.hasOwnProperty("examples")) { - var error = $root.google.cloud.aiplatform.v1beta1.Examples.verify(message.examples); - if (error) - return "examples." + error; + if (message.accessUris != null && message.hasOwnProperty("accessUris")) { + if (!$util.isObject(message.accessUris)) + return "accessUris: object expected"; + var key = Object.keys(message.accessUris); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.accessUris[key[i]])) + return "accessUris: string{k:string} expected"; } return null; }; /** - * Creates an UpdateExplanationDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceRuntime message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} UpdateExplanationDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime */ - UpdateExplanationDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + ResourceRuntime.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourceRuntime) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(); - if (object.model != null) - message.model = String(object.model); - if (object.examples != null) { - if (typeof object.examples !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.examples: object expected"); - message.examples = $root.google.cloud.aiplatform.v1beta1.Examples.fromObject(object.examples); + var message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntime(); + if (object.accessUris) { + if (typeof object.accessUris !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ResourceRuntime.accessUris: object expected"); + message.accessUris = {}; + for (var keys = Object.keys(object.accessUris), i = 0; i < keys.length; ++i) + message.accessUris[keys[i]] = String(object.accessUris[keys[i]]); } return message; }; /** - * Creates a plain object from an UpdateExplanationDatasetRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResourceRuntime message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} message UpdateExplanationDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.ResourceRuntime} message ResourceRuntime * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExplanationDatasetRequest.toObject = function toObject(message, options) { + ResourceRuntime.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.model = ""; - object.examples = null; + if (options.objects || options.defaults) + object.accessUris = {}; + var keys2; + if (message.accessUris && (keys2 = Object.keys(message.accessUris)).length) { + object.accessUris = {}; + for (var j = 0; j < keys2.length; ++j) + object.accessUris[keys2[j]] = message.accessUris[keys2[j]]; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.examples != null && message.hasOwnProperty("examples")) - object.examples = $root.google.cloud.aiplatform.v1beta1.Examples.toObject(message.examples, options); return object; }; /** - * Converts this UpdateExplanationDatasetRequest to JSON. + * Converts this ResourceRuntime to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @instance * @returns {Object.} JSON object */ - UpdateExplanationDatasetRequest.prototype.toJSON = function toJSON() { + ResourceRuntime.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExplanationDatasetRequest + * Gets the default type url for ResourceRuntime * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExplanationDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourceRuntime.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourceRuntime"; }; - return UpdateExplanationDatasetRequest; + return ResourceRuntime; })(); - v1beta1.UpdateExplanationDatasetOperationMetadata = (function() { + v1beta1.ServiceAccountSpec = (function() { /** - * Properties of an UpdateExplanationDatasetOperationMetadata. + * Properties of a ServiceAccountSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateExplanationDatasetOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateExplanationDatasetOperationMetadata genericMetadata + * @interface IServiceAccountSpec + * @property {boolean|null} [enableCustomServiceAccount] ServiceAccountSpec enableCustomServiceAccount + * @property {string|null} [serviceAccount] ServiceAccountSpec serviceAccount */ /** - * Constructs a new UpdateExplanationDatasetOperationMetadata. + * Constructs a new ServiceAccountSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateExplanationDatasetOperationMetadata. - * @implements IUpdateExplanationDatasetOperationMetadata + * @classdesc Represents a ServiceAccountSpec. + * @implements IServiceAccountSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec=} [properties] Properties to set */ - function UpdateExplanationDatasetOperationMetadata(properties) { + function ServiceAccountSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -400914,75 +405815,89 @@ } /** - * UpdateExplanationDatasetOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * ServiceAccountSpec enableCustomServiceAccount. + * @member {boolean} enableCustomServiceAccount + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @instance */ - UpdateExplanationDatasetOperationMetadata.prototype.genericMetadata = null; + ServiceAccountSpec.prototype.enableCustomServiceAccount = false; /** - * Creates a new UpdateExplanationDatasetOperationMetadata instance using the specified properties. + * ServiceAccountSpec serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @instance + */ + ServiceAccountSpec.prototype.serviceAccount = ""; + + /** + * Creates a new ServiceAccountSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec instance */ - UpdateExplanationDatasetOperationMetadata.create = function create(properties) { - return new UpdateExplanationDatasetOperationMetadata(properties); + ServiceAccountSpec.create = function create(properties) { + return new ServiceAccountSpec(properties); }; /** - * Encodes the specified UpdateExplanationDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. + * Encodes the specified ServiceAccountSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata} message UpdateExplanationDatasetOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec} message ServiceAccountSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExplanationDatasetOperationMetadata.encode = function encode(message, writer) { + ServiceAccountSpec.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.enableCustomServiceAccount != null && Object.hasOwnProperty.call(message, "enableCustomServiceAccount")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableCustomServiceAccount); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); return writer; }; /** - * Encodes the specified UpdateExplanationDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.verify|verify} messages. + * Encodes the specified ServiceAccountSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetOperationMetadata} message UpdateExplanationDatasetOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec} message ServiceAccountSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExplanationDatasetOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ServiceAccountSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer. + * Decodes a ServiceAccountSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExplanationDatasetOperationMetadata.decode = function decode(reader, length) { + ServiceAccountSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec(); 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.enableCustomServiceAccount = reader.bool(); + break; + } + case 2: { + message.serviceAccount = reader.string(); break; } default: @@ -400994,127 +405909,333 @@ }; /** - * Decodes an UpdateExplanationDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ServiceAccountSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExplanationDatasetOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ServiceAccountSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExplanationDatasetOperationMetadata message. + * Verifies a ServiceAccountSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExplanationDatasetOperationMetadata.verify = function verify(message) { + ServiceAccountSpec.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.enableCustomServiceAccount != null && message.hasOwnProperty("enableCustomServiceAccount")) + if (typeof message.enableCustomServiceAccount !== "boolean") + return "enableCustomServiceAccount: boolean expected"; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; /** - * Creates an UpdateExplanationDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceAccountSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} UpdateExplanationDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec */ - UpdateExplanationDatasetOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + ServiceAccountSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec(); + if (object.enableCustomServiceAccount != null) + message.enableCustomServiceAccount = Boolean(object.enableCustomServiceAccount); + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from an UpdateExplanationDatasetOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ServiceAccountSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} message UpdateExplanationDatasetOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} message ServiceAccountSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExplanationDatasetOperationMetadata.toObject = function toObject(message, options) { + ServiceAccountSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.enableCustomServiceAccount = false; + object.serviceAccount = ""; + } + if (message.enableCustomServiceAccount != null && message.hasOwnProperty("enableCustomServiceAccount")) + object.enableCustomServiceAccount = message.enableCustomServiceAccount; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this UpdateExplanationDatasetOperationMetadata to JSON. + * Converts this ServiceAccountSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @instance * @returns {Object.} JSON object */ - UpdateExplanationDatasetOperationMetadata.prototype.toJSON = function toJSON() { + ServiceAccountSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExplanationDatasetOperationMetadata + * Gets the default type url for ServiceAccountSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExplanationDatasetOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceAccountSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ServiceAccountSpec"; }; - return UpdateExplanationDatasetOperationMetadata; + return ServiceAccountSpec; })(); - v1beta1.DeleteModelRequest = (function() { + v1beta1.PersistentResourceService = (function() { /** - * Properties of a DeleteModelRequest. + * Constructs a new PersistentResourceService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelRequest - * @property {string|null} [name] DeleteModelRequest name + * @classdesc Represents a PersistentResourceService + * @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 PersistentResourceService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PersistentResourceService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PersistentResourceService; /** - * Constructs a new DeleteModelRequest. + * Creates new PersistentResourceService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @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 {PersistentResourceService} RPC service. Useful where requests and/or responses are streamed. + */ + PersistentResourceService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|createPersistentResource}. + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @typedef CreatePersistentResourceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreatePersistentResource. + * @function createPersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} request CreatePersistentResourceRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResourceCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PersistentResourceService.prototype.createPersistentResource = function createPersistentResource(request, callback) { + return this.rpcCall(createPersistentResource, $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreatePersistentResource" }); + + /** + * Calls CreatePersistentResource. + * @function createPersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} request CreatePersistentResourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|getPersistentResource}. + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @typedef GetPersistentResourceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.PersistentResource} [response] PersistentResource + */ + + /** + * Calls GetPersistentResource. + * @function getPersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} request GetPersistentResourceRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResourceCallback} callback Node-style callback called with the error, if any, and PersistentResource + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PersistentResourceService.prototype.getPersistentResource = function getPersistentResource(request, callback) { + return this.rpcCall(getPersistentResource, $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest, $root.google.cloud.aiplatform.v1beta1.PersistentResource, request, callback); + }, "name", { value: "GetPersistentResource" }); + + /** + * Calls GetPersistentResource. + * @function getPersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} request GetPersistentResourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|listPersistentResources}. + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @typedef ListPersistentResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} [response] ListPersistentResourcesResponse + */ + + /** + * Calls ListPersistentResources. + * @function listPersistentResources + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} request ListPersistentResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResourcesCallback} callback Node-style callback called with the error, if any, and ListPersistentResourcesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PersistentResourceService.prototype.listPersistentResources = function listPersistentResources(request, callback) { + return this.rpcCall(listPersistentResources, $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest, $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse, request, callback); + }, "name", { value: "ListPersistentResources" }); + + /** + * Calls ListPersistentResources. + * @function listPersistentResources + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} request ListPersistentResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|deletePersistentResource}. + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @typedef DeletePersistentResourceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeletePersistentResource. + * @function deletePersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} request DeletePersistentResourceRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResourceCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PersistentResourceService.prototype.deletePersistentResource = function deletePersistentResource(request, callback) { + return this.rpcCall(deletePersistentResource, $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePersistentResource" }); + + /** + * Calls DeletePersistentResource. + * @function deletePersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} request DeletePersistentResourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|updatePersistentResource}. + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @typedef UpdatePersistentResourceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdatePersistentResource. + * @function updatePersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} request UpdatePersistentResourceRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.UpdatePersistentResourceCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PersistentResourceService.prototype.updatePersistentResource = function updatePersistentResource(request, callback) { + return this.rpcCall(updatePersistentResource, $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdatePersistentResource" }); + + /** + * Calls UpdatePersistentResource. + * @function updatePersistentResource + * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} request UpdatePersistentResourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PersistentResourceService; + })(); + + v1beta1.CreatePersistentResourceRequest = (function() { + + /** + * Properties of a CreatePersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelRequest. - * @implements IDeleteModelRequest + * @interface ICreatePersistentResourceRequest + * @property {string|null} [parent] CreatePersistentResourceRequest parent + * @property {google.cloud.aiplatform.v1beta1.IPersistentResource|null} [persistentResource] CreatePersistentResourceRequest persistentResource + * @property {string|null} [persistentResourceId] CreatePersistentResourceRequest persistentResourceId + */ + + /** + * Constructs a new CreatePersistentResourceRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreatePersistentResourceRequest. + * @implements ICreatePersistentResourceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest=} [properties] Properties to set */ - function DeleteModelRequest(properties) { + function CreatePersistentResourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -401122,75 +406243,103 @@ } /** - * DeleteModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * CreatePersistentResourceRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @instance */ - DeleteModelRequest.prototype.name = ""; + CreatePersistentResourceRequest.prototype.parent = ""; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * CreatePersistentResourceRequest persistentResource. + * @member {google.cloud.aiplatform.v1beta1.IPersistentResource|null|undefined} persistentResource + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @instance + */ + CreatePersistentResourceRequest.prototype.persistentResource = null; + + /** + * CreatePersistentResourceRequest persistentResourceId. + * @member {string} persistentResourceId + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @instance + */ + CreatePersistentResourceRequest.prototype.persistentResourceId = ""; + + /** + * Creates a new CreatePersistentResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest instance */ - DeleteModelRequest.create = function create(properties) { - return new DeleteModelRequest(properties); + CreatePersistentResourceRequest.create = function create(properties) { + return new CreatePersistentResourceRequest(properties); }; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified CreatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} message CreatePersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encode = function encode(message, writer) { + CreatePersistentResourceRequest.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.persistentResource != null && Object.hasOwnProperty.call(message, "persistentResource")) + $root.google.cloud.aiplatform.v1beta1.PersistentResource.encode(message.persistentResource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.persistentResourceId != null && Object.hasOwnProperty.call(message, "persistentResourceId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.persistentResourceId); return writer; }; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified CreatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} message CreatePersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreatePersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decode = function decode(reader, length) { + CreatePersistentResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest(); 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.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.decode(reader, reader.uint32()); + break; + } + case 3: { + message.persistentResourceId = reader.string(); break; } default: @@ -401202,122 +406351,144 @@ }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { + CreatePersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelRequest message. + * Verifies a CreatePersistentResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelRequest.verify = function verify(message) { + CreatePersistentResourceRequest.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.persistentResource != null && message.hasOwnProperty("persistentResource")) { + var error = $root.google.cloud.aiplatform.v1beta1.PersistentResource.verify(message.persistentResource); + if (error) + return "persistentResource." + error; + } + if (message.persistentResourceId != null && message.hasOwnProperty("persistentResourceId")) + if (!$util.isString(message.persistentResourceId)) + return "persistentResourceId: string expected"; return null; }; /** - * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest */ - DeleteModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest) + CreatePersistentResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.persistentResource != null) { + if (typeof object.persistentResource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.persistentResource: object expected"); + message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.fromObject(object.persistentResource); + } + if (object.persistentResourceId != null) + message.persistentResourceId = String(object.persistentResourceId); return message; }; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreatePersistentResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelRequest} message DeleteModelRequest + * @param {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} message CreatePersistentResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelRequest.toObject = function toObject(message, options) { + CreatePersistentResourceRequest.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.persistentResource = null; + object.persistentResourceId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) + object.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.toObject(message.persistentResource, options); + if (message.persistentResourceId != null && message.hasOwnProperty("persistentResourceId")) + object.persistentResourceId = message.persistentResourceId; return object; }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this CreatePersistentResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @instance * @returns {Object.} JSON object */ - DeleteModelRequest.prototype.toJSON = function toJSON() { + CreatePersistentResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelRequest + * Gets the default type url for CreatePersistentResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreatePersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest"; }; - return DeleteModelRequest; + return CreatePersistentResourceRequest; })(); - v1beta1.DeleteModelVersionRequest = (function() { + v1beta1.CreatePersistentResourceOperationMetadata = (function() { /** - * Properties of a DeleteModelVersionRequest. + * Properties of a CreatePersistentResourceOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelVersionRequest - * @property {string|null} [name] DeleteModelVersionRequest name + * @interface ICreatePersistentResourceOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreatePersistentResourceOperationMetadata genericMetadata */ /** - * Constructs a new DeleteModelVersionRequest. + * Constructs a new CreatePersistentResourceOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelVersionRequest. - * @implements IDeleteModelVersionRequest + * @classdesc Represents a CreatePersistentResourceOperationMetadata. + * @implements ICreatePersistentResourceOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata=} [properties] Properties to set */ - function DeleteModelVersionRequest(properties) { + function CreatePersistentResourceOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -401325,75 +406496,75 @@ } /** - * DeleteModelVersionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * CreatePersistentResourceOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @instance */ - DeleteModelVersionRequest.prototype.name = ""; + CreatePersistentResourceOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteModelVersionRequest instance using the specified properties. + * Creates a new CreatePersistentResourceOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata instance */ - DeleteModelVersionRequest.create = function create(properties) { - return new DeleteModelVersionRequest(properties); + CreatePersistentResourceOperationMetadata.create = function create(properties) { + return new CreatePersistentResourceOperationMetadata(properties); }; /** - * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * Encodes the specified CreatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata} message CreatePersistentResourceOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelVersionRequest.encode = function encode(message, writer) { + CreatePersistentResourceOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * Encodes the specified CreatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata} message CreatePersistentResourceOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreatePersistentResourceOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelVersionRequest.decode = function decode(reader, length) { + CreatePersistentResourceOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -401405,124 +406576,127 @@ }; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { + CreatePersistentResourceOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelVersionRequest message. + * Verifies a CreatePersistentResourceOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelVersionRequest.verify = function verify(message) { + CreatePersistentResourceOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata */ - DeleteModelVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) + CreatePersistentResourceOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreatePersistentResourceOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} message DeleteModelVersionRequest + * @param {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} message CreatePersistentResourceOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelVersionRequest.toObject = function toObject(message, options) { + CreatePersistentResourceOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this DeleteModelVersionRequest to JSON. + * Converts this CreatePersistentResourceOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @instance * @returns {Object.} JSON object */ - DeleteModelVersionRequest.prototype.toJSON = function toJSON() { + CreatePersistentResourceOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelVersionRequest + * Gets the default type url for CreatePersistentResourceOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreatePersistentResourceOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata"; }; - return DeleteModelVersionRequest; + return CreatePersistentResourceOperationMetadata; })(); - v1beta1.MergeVersionAliasesRequest = (function() { + v1beta1.UpdatePersistentResourceOperationMetadata = (function() { /** - * Properties of a MergeVersionAliasesRequest. + * Properties of an UpdatePersistentResourceOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMergeVersionAliasesRequest - * @property {string|null} [name] MergeVersionAliasesRequest name - * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases + * @interface IUpdatePersistentResourceOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdatePersistentResourceOperationMetadata genericMetadata */ /** - * Constructs a new MergeVersionAliasesRequest. + * Constructs a new UpdatePersistentResourceOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MergeVersionAliasesRequest. - * @implements IMergeVersionAliasesRequest + * @classdesc Represents an UpdatePersistentResourceOperationMetadata. + * @implements IUpdatePersistentResourceOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata=} [properties] Properties to set */ - function MergeVersionAliasesRequest(properties) { - this.versionAliases = []; + function UpdatePersistentResourceOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -401530,92 +406704,75 @@ } /** - * MergeVersionAliasesRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest - * @instance - */ - MergeVersionAliasesRequest.prototype.name = ""; - - /** - * MergeVersionAliasesRequest versionAliases. - * @member {Array.} versionAliases - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * UpdatePersistentResourceOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @instance */ - MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; + UpdatePersistentResourceOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * Creates a new UpdatePersistentResourceOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata instance */ - MergeVersionAliasesRequest.create = function create(properties) { - return new MergeVersionAliasesRequest(properties); + UpdatePersistentResourceOperationMetadata.create = function create(properties) { + return new UpdatePersistentResourceOperationMetadata(properties); }; /** - * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. + * Encodes the specified UpdatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata} message UpdatePersistentResourceOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MergeVersionAliasesRequest.encode = function encode(message, writer) { + UpdatePersistentResourceOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.versionAliases != null && message.versionAliases.length) - for (var i = 0; i < message.versionAliases.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); + 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 MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. + * Encodes the specified UpdatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata} message UpdatePersistentResourceOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdatePersistentResourceOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MergeVersionAliasesRequest.decode = function decode(reader, length) { + UpdatePersistentResourceOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.versionAliases && message.versionAliases.length)) - message.versionAliases = []; - message.versionAliases.push(reader.string()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -401627,144 +406784,127 @@ }; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + UpdatePersistentResourceOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MergeVersionAliasesRequest message. + * Verifies an UpdatePersistentResourceOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MergeVersionAliasesRequest.verify = function verify(message) { + UpdatePersistentResourceOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { - if (!Array.isArray(message.versionAliases)) - return "versionAliases: array expected"; - for (var i = 0; i < message.versionAliases.length; ++i) - if (!$util.isString(message.versionAliases[i])) - return "versionAliases: string[] expected"; + 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 MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata */ - MergeVersionAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) + UpdatePersistentResourceOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.versionAliases) { - if (!Array.isArray(object.versionAliases)) - throw TypeError(".google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.versionAliases: array expected"); - message.versionAliases = []; - for (var i = 0; i < object.versionAliases.length; ++i) - message.versionAliases[i] = String(object.versionAliases[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdatePersistentResourceOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest + * @param {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} message UpdatePersistentResourceOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MergeVersionAliasesRequest.toObject = function toObject(message, options) { + UpdatePersistentResourceOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionAliases = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.versionAliases && message.versionAliases.length) { - object.versionAliases = []; - for (var j = 0; j < message.versionAliases.length; ++j) - object.versionAliases[j] = message.versionAliases[j]; - } + 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 MergeVersionAliasesRequest to JSON. + * Converts this UpdatePersistentResourceOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @instance * @returns {Object.} JSON object */ - MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { + UpdatePersistentResourceOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MergeVersionAliasesRequest + * Gets the default type url for UpdatePersistentResourceOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MergeVersionAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdatePersistentResourceOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata"; }; - return MergeVersionAliasesRequest; + return UpdatePersistentResourceOperationMetadata; })(); - v1beta1.ExportModelRequest = (function() { + v1beta1.GetPersistentResourceRequest = (function() { /** - * Properties of an ExportModelRequest. + * Properties of a GetPersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportModelRequest - * @property {string|null} [name] ExportModelRequest name - * @property {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig + * @interface IGetPersistentResourceRequest + * @property {string|null} [name] GetPersistentResourceRequest name */ /** - * Constructs a new ExportModelRequest. + * Constructs a new GetPersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportModelRequest. - * @implements IExportModelRequest + * @classdesc Represents a GetPersistentResourceRequest. + * @implements IGetPersistentResourceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest=} [properties] Properties to set */ - function ExportModelRequest(properties) { + function GetPersistentResourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -401772,80 +406912,70 @@ } /** - * ExportModelRequest name. + * GetPersistentResourceRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest - * @instance - */ - ExportModelRequest.prototype.name = ""; - - /** - * ExportModelRequest outputConfig. - * @member {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @instance */ - ExportModelRequest.prototype.outputConfig = null; + GetPersistentResourceRequest.prototype.name = ""; /** - * Creates a new ExportModelRequest instance using the specified properties. + * Creates a new GetPersistentResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest instance */ - ExportModelRequest.create = function create(properties) { - return new ExportModelRequest(properties); + GetPersistentResourceRequest.create = function create(properties) { + return new GetPersistentResourceRequest(properties); }; /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * Encodes the specified GetPersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} message GetPersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encode = function encode(message, writer) { + GetPersistentResourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) - $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * Encodes the specified GetPersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} message GetPersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer. + * Decodes a GetPersistentResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decode = function decode(reader, length) { + GetPersistentResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -401853,10 +406983,6 @@ message.name = reader.string(); break; } - case 2: { - message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -401866,397 +406992,124 @@ }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPersistentResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { + GetPersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelRequest message. + * Verifies a GetPersistentResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelRequest.verify = function verify(message) { + GetPersistentResourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify(message.outputConfig); - if (error) - return "outputConfig." + error; - } return null; }; /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest */ - ExportModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest) + GetPersistentResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest(); if (object.name != null) message.name = String(object.name); - if (object.outputConfig != null) { - if (typeof object.outputConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.outputConfig: object expected"); - message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); - } return message; }; /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPersistentResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest} message ExportModelRequest + * @param {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} message GetPersistentResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelRequest.toObject = function toObject(message, options) { + GetPersistentResourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.outputConfig = null; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) - object.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); return object; }; /** - * Converts this ExportModelRequest to JSON. + * Converts this GetPersistentResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @instance * @returns {Object.} JSON object */ - ExportModelRequest.prototype.toJSON = function toJSON() { + GetPersistentResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelRequest + * Gets the default type url for GetPersistentResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest"; }; - ExportModelRequest.OutputConfig = (function() { - - /** - * Properties of an OutputConfig. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest - * @interface IOutputConfig - * @property {string|null} [exportFormatId] OutputConfig exportFormatId - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination - * @property {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination - */ - - /** - * Constructs a new OutputConfig. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest - * @classdesc Represents an OutputConfig. - * @implements IOutputConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - */ - function OutputConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OutputConfig exportFormatId. - * @member {string} exportFormatId - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.exportFormatId = ""; - - /** - * OutputConfig artifactDestination. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} artifactDestination - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.artifactDestination = null; - - /** - * OutputConfig imageDestination. - * @member {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null|undefined} imageDestination - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.imageDestination = null; - - /** - * Creates a new OutputConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig instance - */ - OutputConfig.create = function create(properties) { - return new OutputConfig(properties); - }; - - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); - if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) - $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.exportFormatId = reader.string(); - break; - } - case 3: { - message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 4: { - message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - if (!$util.isString(message.exportFormatId)) - return "exportFormatId: string expected"; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.artifactDestination); - if (error) - return "artifactDestination." + error; - } - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { - var error = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify(message.imageDestination); - if (error) - return "imageDestination." + error; - } - return null; - }; - - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig - */ - OutputConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); - if (object.exportFormatId != null) - message.exportFormatId = String(object.exportFormatId); - if (object.artifactDestination != null) { - if (typeof object.artifactDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); - message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.artifactDestination); - } - if (object.imageDestination != null) { - if (typeof object.imageDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.imageDestination: object expected"); - message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.fromObject(object.imageDestination); - } - return message; - }; - - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} message OutputConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.exportFormatId = ""; - object.artifactDestination = null; - object.imageDestination = null; - } - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - object.exportFormatId = message.exportFormatId; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) - object.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.artifactDestination, options); - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) - object.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.toObject(message.imageDestination, options); - return object; - }; - - /** - * Converts this OutputConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - * @returns {Object.} JSON object - */ - OutputConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig"; - }; - - return OutputConfig; - })(); - - return ExportModelRequest; + return GetPersistentResourceRequest; })(); - v1beta1.ExportModelOperationMetadata = (function() { + v1beta1.ListPersistentResourcesRequest = (function() { /** - * Properties of an ExportModelOperationMetadata. + * Properties of a ListPersistentResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo + * @interface IListPersistentResourcesRequest + * @property {string|null} [parent] ListPersistentResourcesRequest parent + * @property {number|null} [pageSize] ListPersistentResourcesRequest pageSize + * @property {string|null} [pageToken] ListPersistentResourcesRequest pageToken */ /** - * Constructs a new ExportModelOperationMetadata. + * Constructs a new ListPersistentResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportModelOperationMetadata. - * @implements IExportModelOperationMetadata + * @classdesc Represents a ListPersistentResourcesRequest. + * @implements IListPersistentResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest=} [properties] Properties to set */ - function ExportModelOperationMetadata(properties) { + function ListPersistentResourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -402264,89 +407117,103 @@ } /** - * ExportModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * ListPersistentResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @instance */ - ExportModelOperationMetadata.prototype.genericMetadata = null; + ListPersistentResourcesRequest.prototype.parent = ""; /** - * ExportModelOperationMetadata outputInfo. - * @member {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * ListPersistentResourcesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @instance */ - ExportModelOperationMetadata.prototype.outputInfo = null; + ListPersistentResourcesRequest.prototype.pageSize = 0; /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. + * ListPersistentResourcesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @instance + */ + ListPersistentResourcesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPersistentResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest instance */ - ExportModelOperationMetadata.create = function create(properties) { - return new ExportModelOperationMetadata(properties); + ListPersistentResourcesRequest.create = function create(properties) { + return new ListPersistentResourcesRequest(properties); }; /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListPersistentResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} message ListPersistentResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encode = function encode(message, writer) { + ListPersistentResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) - $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 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); return writer; }; /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListPersistentResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} message ListPersistentResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListPersistentResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decode = function decode(reader, length) { + ListPersistentResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } - case 2: { - message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); break; } default: @@ -402358,367 +407225,141 @@ }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListPersistentResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelOperationMetadata message. + * Verifies a ListPersistentResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelOperationMetadata.verify = function verify(message) { + ListPersistentResourcesRequest.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.outputInfo != null && message.hasOwnProperty("outputInfo")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); - if (error) - return "outputInfo." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListPersistentResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest */ - ExportModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata) + ListPersistentResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.outputInfo != null) { - if (typeof object.outputInfo !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.outputInfo: object expected"); - message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListPersistentResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} message ExportModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} message ListPersistentResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelOperationMetadata.toObject = function toObject(message, options) { + ListPersistentResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.genericMetadata = null; - object.outputInfo = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) - object.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ExportModelOperationMetadata to JSON. + * Converts this ListPersistentResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @instance * @returns {Object.} JSON object */ - ExportModelOperationMetadata.prototype.toJSON = function toJSON() { + ListPersistentResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelOperationMetadata + * Gets the default type url for ListPersistentResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPersistentResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest"; }; - ExportModelOperationMetadata.OutputInfo = (function() { - - /** - * Properties of an OutputInfo. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata - * @interface IOutputInfo - * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri - * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri - */ - - /** - * Constructs a new OutputInfo. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata - * @classdesc Represents an OutputInfo. - * @implements IOutputInfo - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - */ - function OutputInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OutputInfo artifactOutputUri. - * @member {string} artifactOutputUri - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @instance - */ - OutputInfo.prototype.artifactOutputUri = ""; - - /** - * OutputInfo imageOutputUri. - * @member {string} imageOutputUri - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @instance - */ - OutputInfo.prototype.imageOutputUri = ""; - - /** - * Creates a new OutputInfo instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance - */ - OutputInfo.create = function create(properties) { - return new OutputInfo(properties); - }; - - /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); - if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); - return writer; - }; - - /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.artifactOutputUri = reader.string(); - break; - } - case 3: { - message.imageOutputUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputInfo message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - if (!$util.isString(message.artifactOutputUri)) - return "artifactOutputUri: string expected"; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - if (!$util.isString(message.imageOutputUri)) - return "imageOutputUri: string expected"; - return null; - }; - - /** - * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo - */ - OutputInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); - if (object.artifactOutputUri != null) - message.artifactOutputUri = String(object.artifactOutputUri); - if (object.imageOutputUri != null) - message.imageOutputUri = String(object.imageOutputUri); - return message; - }; - - /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} message OutputInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.artifactOutputUri = ""; - object.imageOutputUri = ""; - } - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - object.artifactOutputUri = message.artifactOutputUri; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - object.imageOutputUri = message.imageOutputUri; - return object; - }; - - /** - * Converts this OutputInfo to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @instance - * @returns {Object.} JSON object - */ - OutputInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputInfo - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo"; - }; - - return OutputInfo; - })(); - - return ExportModelOperationMetadata; + return ListPersistentResourcesRequest; })(); - v1beta1.UpdateExplanationDatasetResponse = (function() { + v1beta1.ListPersistentResourcesResponse = (function() { /** - * Properties of an UpdateExplanationDatasetResponse. + * Properties of a ListPersistentResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateExplanationDatasetResponse + * @interface IListPersistentResourcesResponse + * @property {Array.|null} [persistentResources] ListPersistentResourcesResponse persistentResources + * @property {string|null} [nextPageToken] ListPersistentResourcesResponse nextPageToken */ /** - * Constructs a new UpdateExplanationDatasetResponse. + * Constructs a new ListPersistentResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateExplanationDatasetResponse. - * @implements IUpdateExplanationDatasetResponse + * @classdesc Represents a ListPersistentResourcesResponse. + * @implements IListPersistentResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse=} [properties] Properties to set */ - function UpdateExplanationDatasetResponse(properties) { + function ListPersistentResourcesResponse(properties) { + this.persistentResources = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -402726,63 +407367,94 @@ } /** - * Creates a new UpdateExplanationDatasetResponse instance using the specified properties. + * ListPersistentResourcesResponse persistentResources. + * @member {Array.} persistentResources + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @instance + */ + ListPersistentResourcesResponse.prototype.persistentResources = $util.emptyArray; + + /** + * ListPersistentResourcesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @instance + */ + ListPersistentResourcesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPersistentResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse instance */ - UpdateExplanationDatasetResponse.create = function create(properties) { - return new UpdateExplanationDatasetResponse(properties); + ListPersistentResourcesResponse.create = function create(properties) { + return new ListPersistentResourcesResponse(properties); }; /** - * Encodes the specified UpdateExplanationDatasetResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. + * Encodes the specified ListPersistentResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse} message UpdateExplanationDatasetResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse} message ListPersistentResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExplanationDatasetResponse.encode = function encode(message, writer) { + ListPersistentResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.persistentResources != null && message.persistentResources.length) + for (var i = 0; i < message.persistentResources.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PersistentResource.encode(message.persistentResources[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 UpdateExplanationDatasetResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.verify|verify} messages. + * Encodes the specified ListPersistentResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExplanationDatasetResponse} message UpdateExplanationDatasetResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse} message ListPersistentResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExplanationDatasetResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListPersistentResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer. + * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExplanationDatasetResponse.decode = function decode(reader, length) { + ListPersistentResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.persistentResources && message.persistentResources.length)) + message.persistentResources = []; + message.persistentResources.push($root.google.cloud.aiplatform.v1beta1.PersistentResource.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -402792,108 +407464,148 @@ }; /** - * Decodes an UpdateExplanationDatasetResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExplanationDatasetResponse.decodeDelimited = function decodeDelimited(reader) { + ListPersistentResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExplanationDatasetResponse message. + * Verifies a ListPersistentResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExplanationDatasetResponse.verify = function verify(message) { + ListPersistentResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.persistentResources != null && message.hasOwnProperty("persistentResources")) { + if (!Array.isArray(message.persistentResources)) + return "persistentResources: array expected"; + for (var i = 0; i < message.persistentResources.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PersistentResource.verify(message.persistentResources[i]); + if (error) + return "persistentResources." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateExplanationDatasetResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPersistentResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} UpdateExplanationDatasetResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse */ - UpdateExplanationDatasetResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + ListPersistentResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse) return object; - return new $root.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse(); + if (object.persistentResources) { + if (!Array.isArray(object.persistentResources)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.persistentResources: array expected"); + message.persistentResources = []; + for (var i = 0; i < object.persistentResources.length; ++i) { + if (typeof object.persistentResources[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.persistentResources: object expected"); + message.persistentResources[i] = $root.google.cloud.aiplatform.v1beta1.PersistentResource.fromObject(object.persistentResources[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; }; /** - * Creates a plain object from an UpdateExplanationDatasetResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListPersistentResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} message UpdateExplanationDatasetResponse + * @param {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} message ListPersistentResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExplanationDatasetResponse.toObject = function toObject() { - return {}; + ListPersistentResourcesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.persistentResources = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.persistentResources && message.persistentResources.length) { + object.persistentResources = []; + for (var j = 0; j < message.persistentResources.length; ++j) + object.persistentResources[j] = $root.google.cloud.aiplatform.v1beta1.PersistentResource.toObject(message.persistentResources[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; }; /** - * Converts this UpdateExplanationDatasetResponse to JSON. + * Converts this ListPersistentResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @instance * @returns {Object.} JSON object */ - UpdateExplanationDatasetResponse.prototype.toJSON = function toJSON() { + ListPersistentResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExplanationDatasetResponse + * Gets the default type url for ListPersistentResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExplanationDatasetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPersistentResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse"; }; - return UpdateExplanationDatasetResponse; + return ListPersistentResourcesResponse; })(); - v1beta1.ExportModelResponse = (function() { + v1beta1.DeletePersistentResourceRequest = (function() { /** - * Properties of an ExportModelResponse. + * Properties of a DeletePersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportModelResponse + * @interface IDeletePersistentResourceRequest + * @property {string|null} [name] DeletePersistentResourceRequest name */ /** - * Constructs a new ExportModelResponse. + * Constructs a new DeletePersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportModelResponse. - * @implements IExportModelResponse + * @classdesc Represents a DeletePersistentResourceRequest. + * @implements IDeletePersistentResourceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest=} [properties] Properties to set */ - function ExportModelResponse(properties) { + function DeletePersistentResourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -402901,63 +407613,77 @@ } /** - * Creates a new ExportModelResponse instance using the specified properties. + * DeletePersistentResourceRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @instance + */ + DeletePersistentResourceRequest.prototype.name = ""; + + /** + * Creates a new DeletePersistentResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest instance */ - ExportModelResponse.create = function create(properties) { - return new ExportModelResponse(properties); + DeletePersistentResourceRequest.create = function create(properties) { + return new DeletePersistentResourceRequest(properties); }; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * Encodes the specified DeletePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} message DeletePersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelResponse.encode = function encode(message, writer) { + DeletePersistentResourceRequest.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 ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * Encodes the specified DeletePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} message DeletePersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeletePersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelResponse.decode = function decode(reader, length) { + DeletePersistentResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -402967,113 +407693,123 @@ }; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + DeletePersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelResponse message. + * Verifies a DeletePersistentResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelResponse.verify = function verify(message) { + DeletePersistentResourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest */ - ExportModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelResponse) + DeletePersistentResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeletePersistentResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelResponse} message ExportModelResponse + * @param {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} message DeletePersistentResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelResponse.toObject = function toObject() { - return {}; + DeletePersistentResourceRequest.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 ExportModelResponse to JSON. + * Converts this DeletePersistentResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @instance * @returns {Object.} JSON object */ - ExportModelResponse.prototype.toJSON = function toJSON() { + DeletePersistentResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelResponse + * Gets the default type url for DeletePersistentResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeletePersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExportModelResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest"; }; - return ExportModelResponse; + return DeletePersistentResourceRequest; })(); - v1beta1.CopyModelRequest = (function() { + v1beta1.UpdatePersistentResourceRequest = (function() { /** - * Properties of a CopyModelRequest. + * Properties of an UpdatePersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICopyModelRequest - * @property {string|null} [modelId] CopyModelRequest modelId - * @property {string|null} [parentModel] CopyModelRequest parentModel - * @property {string|null} [parent] CopyModelRequest parent - * @property {string|null} [sourceModel] CopyModelRequest sourceModel - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CopyModelRequest encryptionSpec + * @interface IUpdatePersistentResourceRequest + * @property {google.cloud.aiplatform.v1beta1.IPersistentResource|null} [persistentResource] UpdatePersistentResourceRequest persistentResource + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePersistentResourceRequest updateMask */ /** - * Constructs a new CopyModelRequest. + * Constructs a new UpdatePersistentResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CopyModelRequest. - * @implements ICopyModelRequest + * @classdesc Represents an UpdatePersistentResourceRequest. + * @implements IUpdatePersistentResourceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest=} [properties] Properties to set */ - function CopyModelRequest(properties) { + function UpdatePersistentResourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -403081,145 +407817,89 @@ } /** - * CopyModelRequest modelId. - * @member {string|null|undefined} modelId - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest - * @instance - */ - CopyModelRequest.prototype.modelId = null; - - /** - * CopyModelRequest parentModel. - * @member {string|null|undefined} parentModel - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest - * @instance - */ - CopyModelRequest.prototype.parentModel = null; - - /** - * CopyModelRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest - * @instance - */ - CopyModelRequest.prototype.parent = ""; - - /** - * CopyModelRequest sourceModel. - * @member {string} sourceModel - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest - * @instance - */ - CopyModelRequest.prototype.sourceModel = ""; - - /** - * CopyModelRequest encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * UpdatePersistentResourceRequest persistentResource. + * @member {google.cloud.aiplatform.v1beta1.IPersistentResource|null|undefined} persistentResource + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @instance */ - CopyModelRequest.prototype.encryptionSpec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdatePersistentResourceRequest.prototype.persistentResource = null; /** - * CopyModelRequest destinationModel. - * @member {"modelId"|"parentModel"|undefined} destinationModel - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * UpdatePersistentResourceRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @instance */ - Object.defineProperty(CopyModelRequest.prototype, "destinationModel", { - get: $util.oneOfGetter($oneOfFields = ["modelId", "parentModel"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdatePersistentResourceRequest.prototype.updateMask = null; /** - * Creates a new CopyModelRequest instance using the specified properties. + * Creates a new UpdatePersistentResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest instance */ - CopyModelRequest.create = function create(properties) { - return new CopyModelRequest(properties); + UpdatePersistentResourceRequest.create = function create(properties) { + return new UpdatePersistentResourceRequest(properties); }; /** - * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * Encodes the specified UpdatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} message UpdatePersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopyModelRequest.encode = function encode(message, writer) { + UpdatePersistentResourceRequest.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.sourceModel != null && Object.hasOwnProperty.call(message, "sourceModel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceModel); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelId); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.parentModel); + if (message.persistentResource != null && Object.hasOwnProperty.call(message, "persistentResource")) + $root.google.cloud.aiplatform.v1beta1.PersistentResource.encode(message.persistentResource, 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 CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * Encodes the specified UpdatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} message UpdatePersistentResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopyModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdatePersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CopyModelRequest message from the specified reader or buffer. + * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopyModelRequest.decode = function decode(reader, length) { + UpdatePersistentResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: { - message.modelId = reader.string(); - break; - } - case 5: { - message.parentModel = reader.string(); - break; - } case 1: { - message.parent = reader.string(); + message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.decode(reader, reader.uint32()); break; } case 2: { - message.sourceModel = reader.string(); - break; - } - case 3: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -403231,171 +407911,177 @@ }; /** - * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopyModelRequest.decodeDelimited = function decodeDelimited(reader) { + UpdatePersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CopyModelRequest message. + * Verifies an UpdatePersistentResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CopyModelRequest.verify = function verify(message) { + UpdatePersistentResourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.modelId != null && message.hasOwnProperty("modelId")) { - properties.destinationModel = 1; - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - } - if (message.parentModel != null && message.hasOwnProperty("parentModel")) { - if (properties.destinationModel === 1) - return "destinationModel: multiple values"; - properties.destinationModel = 1; - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; + if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) { + var error = $root.google.cloud.aiplatform.v1beta1.PersistentResource.verify(message.persistentResource); + if (error) + return "persistentResource." + error; } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) - if (!$util.isString(message.sourceModel)) - return "sourceModel: string expected"; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "encryptionSpec." + error; + return "updateMask." + error; } return null; }; /** - * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest */ - CopyModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelRequest) + UpdatePersistentResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - if (object.parent != null) - message.parent = String(object.parent); - if (object.sourceModel != null) - message.sourceModel = String(object.sourceModel); - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelRequest.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest(); + if (object.persistentResource != null) { + if (typeof object.persistentResource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.persistentResource: object expected"); + message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.fromObject(object.persistentResource); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdatePersistentResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CopyModelRequest} message CopyModelRequest + * @param {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} message UpdatePersistentResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CopyModelRequest.toObject = function toObject(message, options) { + UpdatePersistentResourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.sourceModel = ""; - object.encryptionSpec = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) - object.sourceModel = message.sourceModel; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.modelId != null && message.hasOwnProperty("modelId")) { - object.modelId = message.modelId; - if (options.oneofs) - object.destinationModel = "modelId"; - } - if (message.parentModel != null && message.hasOwnProperty("parentModel")) { - object.parentModel = message.parentModel; - if (options.oneofs) - object.destinationModel = "parentModel"; + object.persistentResource = null; + object.updateMask = null; } + if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) + object.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.toObject(message.persistentResource, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this CopyModelRequest to JSON. + * Converts this UpdatePersistentResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @instance * @returns {Object.} JSON object */ - CopyModelRequest.prototype.toJSON = function toJSON() { + UpdatePersistentResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CopyModelRequest + * Gets the default type url for UpdatePersistentResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CopyModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdatePersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest"; }; - return CopyModelRequest; + return UpdatePersistentResourceRequest; })(); - v1beta1.CopyModelOperationMetadata = (function() { + /** + * PipelineFailurePolicy enum. + * @name google.cloud.aiplatform.v1beta1.PipelineFailurePolicy + * @enum {number} + * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value + */ + v1beta1.PipelineFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; + values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; + return values; + })(); + + v1beta1.PipelineJob = (function() { /** - * Properties of a CopyModelOperationMetadata. + * Properties of a PipelineJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICopyModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CopyModelOperationMetadata genericMetadata + * @interface IPipelineJob + * @property {string|null} [name] PipelineJob name + * @property {string|null} [displayName] PipelineJob displayName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime + * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec + * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] PipelineJob state + * @property {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail + * @property {google.rpc.IStatus|null} [error] PipelineJob error + * @property {Object.|null} [labels] PipelineJob labels + * @property {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec + * @property {string|null} [serviceAccount] PipelineJob serviceAccount + * @property {string|null} [network] PipelineJob network + * @property {Array.|null} [reservedIpRanges] PipelineJob reservedIpRanges + * @property {string|null} [templateUri] PipelineJob templateUri + * @property {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata + * @property {string|null} [scheduleName] PipelineJob scheduleName */ /** - * Constructs a new CopyModelOperationMetadata. + * Constructs a new PipelineJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CopyModelOperationMetadata. - * @implements ICopyModelOperationMetadata + * @classdesc Represents a PipelineJob. + * @implements IPipelineJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set */ - function CopyModelOperationMetadata(properties) { + function PipelineJob(properties) { + this.labels = {}; + this.reservedIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -403403,75 +408089,350 @@ } /** - * CopyModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * PipelineJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @instance */ - CopyModelOperationMetadata.prototype.genericMetadata = null; + PipelineJob.prototype.name = ""; /** - * Creates a new CopyModelOperationMetadata instance using the specified properties. + * PipelineJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.displayName = ""; + + /** + * PipelineJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.createTime = null; + + /** + * PipelineJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.startTime = null; + + /** + * PipelineJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.endTime = null; + + /** + * PipelineJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.updateTime = null; + + /** + * PipelineJob pipelineSpec. + * @member {google.protobuf.IStruct|null|undefined} pipelineSpec + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.pipelineSpec = null; + + /** + * PipelineJob state. + * @member {google.cloud.aiplatform.v1beta1.PipelineState} state + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.state = 0; + + /** + * PipelineJob jobDetail. + * @member {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null|undefined} jobDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.jobDetail = null; + + /** + * PipelineJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.error = null; + + /** + * PipelineJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.labels = $util.emptyObject; + + /** + * PipelineJob runtimeConfig. + * @member {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.runtimeConfig = null; + + /** + * PipelineJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.encryptionSpec = null; + + /** + * PipelineJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.serviceAccount = ""; + + /** + * PipelineJob network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.network = ""; + + /** + * PipelineJob reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.reservedIpRanges = $util.emptyArray; + + /** + * PipelineJob templateUri. + * @member {string} templateUri + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.templateUri = ""; + + /** + * PipelineJob templateMetadata. + * @member {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null|undefined} templateMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.templateMetadata = null; + + /** + * PipelineJob scheduleName. + * @member {string} scheduleName + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.scheduleName = ""; + + /** + * Creates a new PipelineJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob instance */ - CopyModelOperationMetadata.create = function create(properties) { - return new CopyModelOperationMetadata(properties); + PipelineJob.create = function create(properties) { + return new PipelineJob(properties); }; /** - * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopyModelOperationMetadata.encode = function encode(message, writer) { + PipelineJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) + $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); + if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); + if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) + $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.scheduleName != null && Object.hasOwnProperty.call(message, "scheduleName")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.scheduleName); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 25, wireType 2 =*/202).string(message.reservedIpRanges[i]); return writer; }; /** - * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopyModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopyModelOperationMetadata.decode = function decode(reader, length) { + PipelineJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 9: { + message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.decode(reader, reader.uint32()); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); + break; + } + case 16: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 17: { + message.serviceAccount = reader.string(); + break; + } + case 18: { + message.network = reader.string(); + break; + } + case 25: { + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + } + case 19: { + message.templateUri = reader.string(); + break; + } + case 20: { + message.templateMetadata = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.decode(reader, reader.uint32()); + break; + } + case 22: { + message.scheduleName = reader.string(); break; } default: @@ -403483,355 +408444,1066 @@ }; /** - * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopyModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + PipelineJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CopyModelOperationMetadata message. + * Verifies a PipelineJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CopyModelOperationMetadata.verify = function verify(message) { + PipelineJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "genericMetadata." + error; + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { + var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); + if (error) + return "pipelineSpec." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify(message.jobDetail); + if (error) + return "jobDetail." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); + if (error) + return "runtimeConfig." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + if (!$util.isString(message.templateUri)) + return "templateUri: string expected"; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify(message.templateMetadata); + if (error) + return "templateMetadata." + error; } + if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) + if (!$util.isString(message.scheduleName)) + return "scheduleName: string expected"; return null; }; /** - * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob */ - CopyModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata) + PipelineJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.pipelineSpec != null) { + if (typeof object.pipelineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.pipelineSpec: object expected"); + message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.jobDetail != null) { + if (typeof object.jobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.jobDetail: object expected"); + message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.fromObject(object.jobDetail); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.runtimeConfig != null) { + if (typeof object.runtimeConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.runtimeConfig: object expected"); + message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.network != null) + message.network = String(object.network); + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.templateUri != null) + message.templateUri = String(object.templateUri); + if (object.templateMetadata != null) { + if (typeof object.templateMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.templateMetadata: object expected"); + message.templateMetadata = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.fromObject(object.templateMetadata); } + if (object.scheduleName != null) + message.scheduleName = String(object.scheduleName); return message; }; /** - * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} message CopyModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.PipelineJob} message PipelineJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CopyModelOperationMetadata.toObject = function toObject(message, options) { + PipelineJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.arrays || options.defaults) + object.reservedIpRanges = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.pipelineSpec = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.jobDetail = null; + object.error = null; + object.runtimeConfig = null; + object.encryptionSpec = null; + object.serviceAccount = ""; + object.network = ""; + object.templateUri = ""; + object.templateMetadata = null; + object.scheduleName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) + object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) + object.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.toObject(message.jobDetail, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) + object.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + object.templateUri = message.templateUri; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) + object.templateMetadata = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); + if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) + object.scheduleName = message.scheduleName; + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; + } return object; }; /** - * Converts this CopyModelOperationMetadata to JSON. + * Converts this PipelineJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @instance * @returns {Object.} JSON object */ - CopyModelOperationMetadata.prototype.toJSON = function toJSON() { + PipelineJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CopyModelOperationMetadata + * Gets the default type url for PipelineJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CopyModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob"; }; - return CopyModelOperationMetadata; - })(); + PipelineJob.RuntimeConfig = (function() { - v1beta1.CopyModelResponse = (function() { + /** + * Properties of a RuntimeConfig. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @interface IRuntimeConfig + * @property {Object.|null} [parameters] RuntimeConfig parameters + * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory + * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues + * @property {google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy + * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts + */ - /** - * Properties of a CopyModelResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICopyModelResponse - * @property {string|null} [model] CopyModelResponse model - * @property {string|null} [modelVersionId] CopyModelResponse modelVersionId - */ + /** + * Constructs a new RuntimeConfig. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @classdesc Represents a RuntimeConfig. + * @implements IRuntimeConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + */ + function RuntimeConfig(properties) { + this.parameters = {}; + this.parameterValues = {}; + this.inputArtifacts = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new CopyModelResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CopyModelResponse. - * @implements ICopyModelResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set - */ - function CopyModelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * RuntimeConfig parameters. + * @member {Object.} parameters + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameters = $util.emptyObject; - /** - * CopyModelResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @instance - */ - CopyModelResponse.prototype.model = ""; + /** + * RuntimeConfig gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.gcsOutputDirectory = ""; - /** - * CopyModelResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @instance - */ - CopyModelResponse.prototype.modelVersionId = ""; + /** + * RuntimeConfig parameterValues. + * @member {Object.} parameterValues + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameterValues = $util.emptyObject; - /** - * Creates a new CopyModelResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse instance - */ - CopyModelResponse.create = function create(properties) { - return new CopyModelResponse(properties); - }; + /** + * RuntimeConfig failurePolicy. + * @member {google.cloud.aiplatform.v1beta1.PipelineFailurePolicy} failurePolicy + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.failurePolicy = 0; - /** - * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyModelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); - return writer; - }; + /** + * RuntimeConfig inputArtifacts. + * @member {Object.} inputArtifacts + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; - /** - * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyModelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig instance + */ + RuntimeConfig.create = function create(properties) { + return new RuntimeConfig(properties); + }; - /** - * Decodes a CopyModelResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyModelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.model = reader.string(); + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); + if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) + for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); + if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) + for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + } + case 2: { + message.gcsOutputDirectory = reader.string(); + break; + } + case 3: { + if (message.parameterValues === $util.emptyObject) + message.parameterValues = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameterValues[key] = value; + break; + } + case 4: { + message.failurePolicy = reader.int32(); + break; + } + case 5: { + if (message.inputArtifacts === $util.emptyObject) + message.inputArtifacts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputArtifacts[key] = value; + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.modelVersionId = reader.string(); + } + return message; + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RuntimeConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; + if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { + if (!$util.isObject(message.parameterValues)) + return "parameterValues: object expected"; + var key = Object.keys(message.parameterValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); + if (error) + return "parameterValues." + error; + } + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + switch (message.failurePolicy) { + default: + return "failurePolicy: enum value expected"; + case 0: + case 1: + case 2: break; } + if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { + if (!$util.isObject(message.inputArtifacts)) + return "inputArtifacts: object expected"; + var key = Object.keys(message.inputArtifacts); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); + if (error) + return "inputArtifacts." + error; + } + } + return null; + }; + + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig + */ + RuntimeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Value.fromObject(object.parameters[keys[i]]); + } + } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + if (object.parameterValues) { + if (typeof object.parameterValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues = {}; + for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { + if (typeof object.parameterValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); + } + } + switch (object.failurePolicy) { default: - reader.skipType(tag & 7); + if (typeof object.failurePolicy === "number") { + message.failurePolicy = object.failurePolicy; + break; + } + break; + case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": + case 0: + message.failurePolicy = 0; + break; + case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": + case 1: + message.failurePolicy = 1; + break; + case "PIPELINE_FAILURE_POLICY_FAIL_FAST": + case 2: + message.failurePolicy = 2; break; } - } - return message; - }; + if (object.inputArtifacts) { + if (typeof object.inputArtifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts = {}; + for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { + if (typeof object.inputArtifacts[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); + } + } + return message; + }; - /** - * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyModelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} message RuntimeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RuntimeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.parameters = {}; + object.parameterValues = {}; + object.inputArtifacts = {}; + } + if (options.defaults) { + object.gcsOutputDirectory = ""; + object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; + } + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.Value.toObject(message.parameters[keys2[j]], options); + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; + if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { + object.parameterValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; + if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { + object.inputArtifacts = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); + } + return object; + }; - /** - * Verifies a CopyModelResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CopyModelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; - return null; - }; + /** + * Converts this RuntimeConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + * @returns {Object.} JSON object + */ + RuntimeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse - */ - CopyModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); - return message; - }; + /** + * Gets the default type url for RuntimeConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig"; + }; - /** - * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.CopyModelResponse} message CopyModelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CopyModelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelVersionId = ""; - } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; - return object; - }; + RuntimeConfig.InputArtifact = (function() { + + /** + * Properties of an InputArtifact. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @interface IInputArtifact + * @property {string|null} [artifactId] InputArtifact artifactId + */ + + /** + * Constructs a new InputArtifact. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @classdesc Represents an InputArtifact. + * @implements IInputArtifact + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + */ + function InputArtifact(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InputArtifact artifactId. + * @member {string|null|undefined} artifactId + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + InputArtifact.prototype.artifactId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputArtifact kind. + * @member {"artifactId"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + Object.defineProperty(InputArtifact.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["artifactId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputArtifact instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance + */ + InputArtifact.create = function create(properties) { + return new InputArtifact(properties); + }; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + return writer; + }; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifactId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InputArtifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InputArtifact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + properties.kind = 1; + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + } + return null; + }; + + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + */ + InputArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); + return message; + }; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InputArtifact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + object.artifactId = message.artifactId; + if (options.oneofs) + object.kind = "artifactId"; + } + return object; + }; - /** - * Converts this CopyModelResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @instance - * @returns {Object.} JSON object - */ - CopyModelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this InputArtifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + * @returns {Object.} JSON object + */ + InputArtifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for CopyModelResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CopyModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelResponse"; - }; + /** + * Gets the default type url for InputArtifact + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact"; + }; - return CopyModelResponse; + return InputArtifact; + })(); + + return RuntimeConfig; + })(); + + return PipelineJob; })(); - v1beta1.ImportModelEvaluationRequest = (function() { + v1beta1.PipelineTemplateMetadata = (function() { /** - * Properties of an ImportModelEvaluationRequest. + * Properties of a PipelineTemplateMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportModelEvaluationRequest - * @property {string|null} [parent] ImportModelEvaluationRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation + * @interface IPipelineTemplateMetadata + * @property {string|null} [version] PipelineTemplateMetadata version */ /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new PipelineTemplateMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportModelEvaluationRequest. - * @implements IImportModelEvaluationRequest + * @classdesc Represents a PipelineTemplateMetadata. + * @implements IPipelineTemplateMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata=} [properties] Properties to set */ - function ImportModelEvaluationRequest(properties) { + function PipelineTemplateMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -403839,89 +409511,75 @@ } /** - * ImportModelEvaluationRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @instance - */ - ImportModelEvaluationRequest.prototype.parent = ""; - - /** - * ImportModelEvaluationRequest modelEvaluation. - * @member {google.cloud.aiplatform.v1beta1.IModelEvaluation|null|undefined} modelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * PipelineTemplateMetadata version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @instance */ - ImportModelEvaluationRequest.prototype.modelEvaluation = null; + PipelineTemplateMetadata.prototype.version = ""; /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new PipelineTemplateMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata instance */ - ImportModelEvaluationRequest.create = function create(properties) { - return new ImportModelEvaluationRequest(properties); + PipelineTemplateMetadata.create = function create(properties) { + return new PipelineTemplateMetadata(properties); }; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportModelEvaluationRequest.encode = function encode(message, writer) { + PipelineTemplateMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); return writer; }; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportModelEvaluationRequest.decode = function decode(reader, length) { + PipelineTemplateMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32()); + case 3: { + message.version = reader.string(); break; } default: @@ -403933,138 +409591,125 @@ }; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a PipelineTemplateMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportModelEvaluationRequest.verify = function verify(message) { + PipelineTemplateMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluation); - if (error) - return "modelEvaluation." + error; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata */ - ImportModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest) + PipelineTemplateMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluation != null) { - if (typeof object.modelEvaluation !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.modelEvaluation: object expected"); - message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluation); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata(); + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} message PipelineTemplateMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportModelEvaluationRequest.toObject = function toObject(message, options) { + PipelineTemplateMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelEvaluation = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) - object.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluation, options); + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this PipelineTemplateMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @instance * @returns {Object.} JSON object */ - ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + PipelineTemplateMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportModelEvaluationRequest + * Gets the default type url for PipelineTemplateMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata"; }; - return ImportModelEvaluationRequest; + return PipelineTemplateMetadata; })(); - v1beta1.BatchImportModelEvaluationSlicesRequest = (function() { + v1beta1.PipelineJobDetail = (function() { /** - * Properties of a BatchImportModelEvaluationSlicesRequest. + * Properties of a PipelineJobDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchImportModelEvaluationSlicesRequest - * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent - * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + * @interface IPipelineJobDetail + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext + * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails */ /** - * Constructs a new BatchImportModelEvaluationSlicesRequest. + * Constructs a new PipelineJobDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. - * @implements IBatchImportModelEvaluationSlicesRequest + * @classdesc Represents a PipelineJobDetail. + * @implements IPipelineJobDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set */ - function BatchImportModelEvaluationSlicesRequest(properties) { - this.modelEvaluationSlices = []; + function PipelineJobDetail(properties) { + this.taskDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -404072,92 +409717,106 @@ } /** - * BatchImportModelEvaluationSlicesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * PipelineJobDetail pipelineContext. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineContext + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @instance */ - BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + PipelineJobDetail.prototype.pipelineContext = null; /** - * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * PipelineJobDetail pipelineRunContext. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineRunContext + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @instance */ - BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + PipelineJobDetail.prototype.pipelineRunContext = null; /** - * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * PipelineJobDetail taskDetails. + * @member {Array.} taskDetails + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @instance + */ + PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + + /** + * Creates a new PipelineJobDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail instance */ - BatchImportModelEvaluationSlicesRequest.create = function create(properties) { - return new BatchImportModelEvaluationSlicesRequest(properties); + PipelineJobDetail.create = function create(properties) { + return new PipelineJobDetail(properties); }; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + PipelineJobDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskDetails != null && message.taskDetails.length) + for (var i = 0; i < message.taskDetails.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + PipelineJobDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.taskDetails && message.taskDetails.length)) + message.taskDetails = []; + message.taskDetails.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.decode(reader, reader.uint32())); break; } default: @@ -404169,369 +409828,182 @@ }; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchImportModelEvaluationSlicesRequest message. + * Verifies a PipelineJobDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + PipelineJobDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineContext); + if (error) + return "pipelineContext." + error; + } + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineRunContext); + if (error) + return "pipelineRunContext." + error; + } + if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { + if (!Array.isArray(message.taskDetails)) + return "taskDetails: array expected"; + for (var i = 0; i < message.taskDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify(message.taskDetails[i]); if (error) - return "modelEvaluationSlices." + error; + return "taskDetails." + error; } } return null; }; /** - * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail */ - BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest) + PipelineJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); + if (object.pipelineContext != null) { + if (typeof object.pipelineContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineContext: object expected"); + message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineContext); } - return object; - }; - - /** - * Converts this BatchImportModelEvaluationSlicesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest - * @instance - * @returns {Object.} JSON object - */ - BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for BatchImportModelEvaluationSlicesRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BatchImportModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + if (object.pipelineRunContext != null) { + if (typeof object.pipelineRunContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineRunContext: object expected"); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineRunContext); } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest"; - }; - - return BatchImportModelEvaluationSlicesRequest; - })(); - - v1beta1.BatchImportModelEvaluationSlicesResponse = (function() { - - /** - * Properties of a BatchImportModelEvaluationSlicesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchImportModelEvaluationSlicesResponse - * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices - */ - - /** - * Constructs a new BatchImportModelEvaluationSlicesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. - * @implements IBatchImportModelEvaluationSlicesResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set - */ - function BatchImportModelEvaluationSlicesResponse(properties) { - this.importedModelEvaluationSlices = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. - * @member {Array.} importedModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @instance - */ - BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; - - /** - * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance - */ - BatchImportModelEvaluationSlicesResponse.create = function create(properties) { - return new BatchImportModelEvaluationSlicesResponse(properties); - }; - - /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) - for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); - return writer; - }; - - /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) - message.importedModelEvaluationSlices = []; - message.importedModelEvaluationSlices.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; + if (object.taskDetails) { + if (!Array.isArray(object.taskDetails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: array expected"); + message.taskDetails = []; + for (var i = 0; i < object.taskDetails.length; ++i) { + if (typeof object.taskDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: object expected"); + message.taskDetails[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.fromObject(object.taskDetails[i]); } } return message; }; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BatchImportModelEvaluationSlicesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { - if (!Array.isArray(message.importedModelEvaluationSlices)) - return "importedModelEvaluationSlices: array expected"; - for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) - if (!$util.isString(message.importedModelEvaluationSlices[i])) - return "importedModelEvaluationSlices: string[] expected"; - } - return null; - }; - - /** - * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse - */ - BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(); - if (object.importedModelEvaluationSlices) { - if (!Array.isArray(object.importedModelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); - message.importedModelEvaluationSlices = []; - for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) - message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); - } - return message; - }; - - /** - * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1beta1.PipelineJobDetail} message PipelineJobDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + PipelineJobDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.importedModelEvaluationSlices = []; - if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { - object.importedModelEvaluationSlices = []; - for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) - object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; + object.taskDetails = []; + if (options.defaults) { + object.pipelineContext = null; + object.pipelineRunContext = null; + } + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) + object.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineContext, options); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) + object.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineRunContext, options); + if (message.taskDetails && message.taskDetails.length) { + object.taskDetails = []; + for (var j = 0; j < message.taskDetails.length; ++j) + object.taskDetails[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.toObject(message.taskDetails[j], options); } return object; }; /** - * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * Converts this PipelineJobDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @instance * @returns {Object.} JSON object */ - BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + PipelineJobDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesResponse + * Gets the default type url for PipelineJobDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchImportModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJobDetail"; }; - return BatchImportModelEvaluationSlicesResponse; + return PipelineJobDetail; })(); - v1beta1.BatchImportEvaluatedAnnotationsRequest = (function() { + v1beta1.PipelineTaskDetail = (function() { /** - * Properties of a BatchImportEvaluatedAnnotationsRequest. + * Properties of a PipelineTaskDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchImportEvaluatedAnnotationsRequest - * @property {string|null} [parent] BatchImportEvaluatedAnnotationsRequest parent - * @property {Array.|null} [evaluatedAnnotations] BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations + * @interface IPipelineTaskDetail + * @property {number|Long|null} [taskId] PipelineTaskDetail taskId + * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId + * @property {string|null} [taskName] PipelineTaskDetail taskName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime + * @property {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state + * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] PipelineTaskDetail execution + * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error + * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus + * @property {Object.|null} [inputs] PipelineTaskDetail inputs + * @property {Object.|null} [outputs] PipelineTaskDetail outputs */ /** - * Constructs a new BatchImportEvaluatedAnnotationsRequest. + * Constructs a new PipelineTaskDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchImportEvaluatedAnnotationsRequest. - * @implements IBatchImportEvaluatedAnnotationsRequest + * @classdesc Represents a PipelineTaskDetail. + * @implements IPipelineTaskDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set */ - function BatchImportEvaluatedAnnotationsRequest(properties) { - this.evaluatedAnnotations = []; + function PipelineTaskDetail(properties) { + this.pipelineTaskStatus = []; + this.inputs = {}; + this.outputs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -404539,321 +410011,290 @@ } /** - * BatchImportEvaluatedAnnotationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * PipelineTaskDetail taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance */ - BatchImportEvaluatedAnnotationsRequest.prototype.parent = ""; + PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BatchImportEvaluatedAnnotationsRequest evaluatedAnnotations. - * @member {Array.} evaluatedAnnotations - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * PipelineTaskDetail parentTaskId. + * @member {number|Long} parentTaskId + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance */ - BatchImportEvaluatedAnnotationsRequest.prototype.evaluatedAnnotations = $util.emptyArray; - - /** - * Creates a new BatchImportEvaluatedAnnotationsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest instance - */ - BatchImportEvaluatedAnnotationsRequest.create = function create(properties) { - return new BatchImportEvaluatedAnnotationsRequest(properties); - }; - - /** - * Encodes the specified BatchImportEvaluatedAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchImportEvaluatedAnnotationsRequest.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.evaluatedAnnotations != null && message.evaluatedAnnotations.length) - for (var i = 0; i < message.evaluatedAnnotations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.encode(message.evaluatedAnnotations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified BatchImportEvaluatedAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * PipelineTaskDetail taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + PipelineTaskDetail.prototype.taskName = ""; /** - * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * PipelineTaskDetail createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - if (!(message.evaluatedAnnotations && message.evaluatedAnnotations.length)) - message.evaluatedAnnotations = []; - message.evaluatedAnnotations.push($root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + PipelineTaskDetail.prototype.createTime = null; /** - * Decodes a BatchImportEvaluatedAnnotationsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * PipelineTaskDetail startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + PipelineTaskDetail.prototype.startTime = null; /** - * Verifies a BatchImportEvaluatedAnnotationsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * PipelineTaskDetail endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.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.evaluatedAnnotations != null && message.hasOwnProperty("evaluatedAnnotations")) { - if (!Array.isArray(message.evaluatedAnnotations)) - return "evaluatedAnnotations: array expected"; - for (var i = 0; i < message.evaluatedAnnotations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.verify(message.evaluatedAnnotations[i]); - if (error) - return "evaluatedAnnotations." + error; - } - } - return null; - }; + PipelineTaskDetail.prototype.endTime = null; /** - * Creates a BatchImportEvaluatedAnnotationsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} BatchImportEvaluatedAnnotationsRequest + * PipelineTaskDetail executorDetail. + * @member {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null|undefined} executorDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.evaluatedAnnotations) { - if (!Array.isArray(object.evaluatedAnnotations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: array expected"); - message.evaluatedAnnotations = []; - for (var i = 0; i < object.evaluatedAnnotations.length; ++i) { - if (typeof object.evaluatedAnnotations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest.evaluatedAnnotations: object expected"); - message.evaluatedAnnotations[i] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.fromObject(object.evaluatedAnnotations[i]); - } - } - return message; - }; + PipelineTaskDetail.prototype.executorDetail = null; /** - * Creates a plain object from a BatchImportEvaluatedAnnotationsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest} message BatchImportEvaluatedAnnotationsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * PipelineTaskDetail state. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.evaluatedAnnotations = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.evaluatedAnnotations && message.evaluatedAnnotations.length) { - object.evaluatedAnnotations = []; - for (var j = 0; j < message.evaluatedAnnotations.length; ++j) - object.evaluatedAnnotations[j] = $root.google.cloud.aiplatform.v1beta1.EvaluatedAnnotation.toObject(message.evaluatedAnnotations[j], options); - } - return object; - }; + PipelineTaskDetail.prototype.state = 0; /** - * Converts this BatchImportEvaluatedAnnotationsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest + * PipelineTaskDetail execution. + * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance - * @returns {Object.} JSON object */ - BatchImportEvaluatedAnnotationsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + PipelineTaskDetail.prototype.execution = null; /** - * Gets the default type url for BatchImportEvaluatedAnnotationsRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * PipelineTaskDetail error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - BatchImportEvaluatedAnnotationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest"; - }; - - return BatchImportEvaluatedAnnotationsRequest; - })(); - - v1beta1.BatchImportEvaluatedAnnotationsResponse = (function() { + PipelineTaskDetail.prototype.error = null; /** - * Properties of a BatchImportEvaluatedAnnotationsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchImportEvaluatedAnnotationsResponse - * @property {number|null} [importedEvaluatedAnnotationsCount] BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount + * PipelineTaskDetail pipelineTaskStatus. + * @member {Array.} pipelineTaskStatus + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ + PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; /** - * Constructs a new BatchImportEvaluatedAnnotationsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchImportEvaluatedAnnotationsResponse. - * @implements IBatchImportEvaluatedAnnotationsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set + * PipelineTaskDetail inputs. + * @member {Object.} inputs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - function BatchImportEvaluatedAnnotationsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + PipelineTaskDetail.prototype.inputs = $util.emptyObject; /** - * BatchImportEvaluatedAnnotationsResponse importedEvaluatedAnnotationsCount. - * @member {number} importedEvaluatedAnnotationsCount - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * PipelineTaskDetail outputs. + * @member {Object.} outputs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance */ - BatchImportEvaluatedAnnotationsResponse.prototype.importedEvaluatedAnnotationsCount = 0; + PipelineTaskDetail.prototype.outputs = $util.emptyObject; /** - * Creates a new BatchImportEvaluatedAnnotationsResponse instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail instance */ - BatchImportEvaluatedAnnotationsResponse.create = function create(properties) { - return new BatchImportEvaluatedAnnotationsResponse(properties); + PipelineTaskDetail.create = function create(properties) { + return new PipelineTaskDetail(properties); }; /** - * Encodes the specified BatchImportEvaluatedAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportEvaluatedAnnotationsResponse.encode = function encode(message, writer) { + PipelineTaskDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.importedEvaluatedAnnotationsCount != null && Object.hasOwnProperty.call(message, "importedEvaluatedAnnotationsCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.importedEvaluatedAnnotationsCount); + if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); + if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) + for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) + writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); + if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchImportEvaluatedAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportEvaluatedAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportEvaluatedAnnotationsResponse.decode = function decode(reader, length) { + PipelineTaskDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.importedEvaluatedAnnotationsCount = reader.int32(); + message.taskId = reader.int64(); + break; + } + case 12: { + message.parentTaskId = reader.int64(); + break; + } + case 2: { + message.taskName = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + break; + } + case 7: { + message.state = reader.int32(); + break; + } + case 8: { + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); + break; + } + case 9: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 13: { + if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) + message.pipelineTaskStatus = []; + message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); + break; + } + case 10: { + if (message.inputs === $util.emptyObject) + message.inputs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputs[key] = value; + break; + } + case 11: { + if (message.outputs === $util.emptyObject) + message.outputs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.outputs[key] = value; break; } default: @@ -404865,329 +410306,967 @@ }; /** - * Decodes a BatchImportEvaluatedAnnotationsResponse message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportEvaluatedAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchImportEvaluatedAnnotationsResponse message. + * Verifies a PipelineTaskDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchImportEvaluatedAnnotationsResponse.verify = function verify(message) { + PipelineTaskDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) - if (!$util.isInteger(message.importedEvaluatedAnnotationsCount)) - return "importedEvaluatedAnnotationsCount: integer expected"; + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) + return "taskId: integer|Long expected"; + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) + return "parentTaskId: integer|Long expected"; + if (message.taskName != null && message.hasOwnProperty("taskName")) + if (!$util.isString(message.taskName)) + return "taskName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify(message.executorDetail); + if (error) + return "executorDetail." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { + if (!Array.isArray(message.pipelineTaskStatus)) + return "pipelineTaskStatus: array expected"; + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); + if (error) + return "pipelineTaskStatus." + error; + } + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!$util.isObject(message.inputs)) + return "inputs: object expected"; + var key = Object.keys(message.inputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); + if (error) + return "inputs." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!$util.isObject(message.outputs)) + return "outputs: object expected"; + var key = Object.keys(message.outputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); + if (error) + return "outputs." + error; + } + } return null; }; /** - * Creates a BatchImportEvaluatedAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} BatchImportEvaluatedAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail */ - BatchImportEvaluatedAnnotationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse) + PipelineTaskDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse(); - if (object.importedEvaluatedAnnotationsCount != null) - message.importedEvaluatedAnnotationsCount = object.importedEvaluatedAnnotationsCount | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(); + if (object.taskId != null) + if ($util.Long) + (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; + else if (typeof object.taskId === "string") + message.taskId = parseInt(object.taskId, 10); + else if (typeof object.taskId === "number") + message.taskId = object.taskId; + else if (typeof object.taskId === "object") + message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); + if (object.parentTaskId != null) + if ($util.Long) + (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; + else if (typeof object.parentTaskId === "string") + message.parentTaskId = parseInt(object.parentTaskId, 10); + else if (typeof object.parentTaskId === "number") + message.parentTaskId = object.parentTaskId; + else if (typeof object.parentTaskId === "object") + message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); + if (object.taskName != null) + message.taskName = String(object.taskName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.executorDetail != null) { + if (typeof object.executorDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.executorDetail: object expected"); + message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.pipelineTaskStatus) { + if (!Array.isArray(object.pipelineTaskStatus)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: array expected"); + message.pipelineTaskStatus = []; + for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { + if (typeof object.pipelineTaskStatus[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: object expected"); + message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); + } + } + if (object.inputs) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); + message.inputs = {}; + for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { + if (typeof object.inputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); + message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); + } + } + if (object.outputs) { + if (typeof object.outputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); + message.outputs = {}; + for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { + if (typeof object.outputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); + message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a BatchImportEvaluatedAnnotationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse} message BatchImportEvaluatedAnnotationsResponse + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} message PipelineTaskDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchImportEvaluatedAnnotationsResponse.toObject = function toObject(message, options) { + PipelineTaskDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.importedEvaluatedAnnotationsCount = 0; - if (message.importedEvaluatedAnnotationsCount != null && message.hasOwnProperty("importedEvaluatedAnnotationsCount")) - object.importedEvaluatedAnnotationsCount = message.importedEvaluatedAnnotationsCount; + if (options.arrays || options.defaults) + object.pipelineTaskStatus = []; + if (options.objects || options.defaults) { + object.inputs = {}; + object.outputs = {}; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskId = options.longs === String ? "0" : 0; + object.taskName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.executorDetail = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.execution = null; + object.error = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parentTaskId = options.longs === String ? "0" : 0; + } + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (typeof message.taskId === "number") + object.taskId = options.longs === String ? String(message.taskId) : message.taskId; + else + object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; + if (message.taskName != null && message.hasOwnProperty("taskName")) + object.taskName = message.taskName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) + object.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { + object.inputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); + } + if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { + object.outputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); + } + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (typeof message.parentTaskId === "number") + object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; + else + object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; + if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { + object.pipelineTaskStatus = []; + for (var j = 0; j < message.pipelineTaskStatus.length; ++j) + object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); + } return object; }; /** - * Converts this BatchImportEvaluatedAnnotationsResponse to JSON. + * Converts this PipelineTaskDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance * @returns {Object.} JSON object */ - BatchImportEvaluatedAnnotationsResponse.prototype.toJSON = function toJSON() { + PipelineTaskDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchImportEvaluatedAnnotationsResponse + * Gets the default type url for PipelineTaskDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchImportEvaluatedAnnotationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskDetail"; }; - return BatchImportEvaluatedAnnotationsResponse; - })(); + PipelineTaskDetail.PipelineTaskStatus = (function() { - v1beta1.GetModelEvaluationRequest = (function() { + /** + * Properties of a PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @interface IPipelineTaskStatus + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state + * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error + */ - /** - * Properties of a GetModelEvaluationRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelEvaluationRequest - * @property {string|null} [name] GetModelEvaluationRequest name - */ + /** + * Constructs a new PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @classdesc Represents a PipelineTaskStatus. + * @implements IPipelineTaskStatus + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + */ + function PipelineTaskStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetModelEvaluationRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelEvaluationRequest. - * @implements IGetModelEvaluationRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set - */ - function GetModelEvaluationRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * PipelineTaskStatus updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.updateTime = null; - /** - * GetModelEvaluationRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @instance - */ - GetModelEvaluationRequest.prototype.name = ""; + /** + * PipelineTaskStatus state. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.state = 0; - /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest instance - */ - GetModelEvaluationRequest.create = function create(properties) { - return new GetModelEvaluationRequest(properties); - }; + /** + * PipelineTaskStatus error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.error = null; - /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance + */ + PipelineTaskStatus.create = function create(properties) { + return new PipelineTaskStatus(properties); + }; - /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineTaskStatus message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PipelineTaskStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: break; } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + */ + PipelineTaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { default: - reader.skipType(tag & 7); + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; break; } - } - return message; - }; - - /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetModelEvaluationRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetModelEvaluationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.error = null; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + return object; + }; + + /** + * Converts this PipelineTaskStatus to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @instance + * @returns {Object.} JSON object + */ + PipelineTaskStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PipelineTaskStatus + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus"; + }; + + return PipelineTaskStatus; + })(); + + PipelineTaskDetail.ArtifactList = (function() { + + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @interface IArtifactList + * @property {Array.|null} [artifacts] ArtifactList artifacts + */ + + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + */ + function ArtifactList(properties) { + this.artifacts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArtifactList artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList instance + */ + ArtifactList.create = function create(properties) { + return new ArtifactList(properties); + }; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArtifactList message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + return null; + }; + + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); + } + } + return message; + }; - /** - * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest - */ - GetModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest) + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} message ArtifactList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArtifactList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} message GetModelEvaluationRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetModelEvaluationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @instance + * @returns {Object.} JSON object + */ + ArtifactList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetModelEvaluationRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @instance - * @returns {Object.} JSON object - */ - GetModelEvaluationRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ArtifactList + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList"; + }; + + return ArtifactList; + })(); /** - * Gets the default type url for GetModelEvaluationRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * State enum. + * @name google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value + * @property {number} CANCELLING=5 CANCELLING value + * @property {number} CANCELLED=6 CANCELLED value + * @property {number} FAILED=7 FAILED value + * @property {number} SKIPPED=8 SKIPPED value + * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value */ - GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest"; - }; + PipelineTaskDetail.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "CANCEL_PENDING"] = 4; + values[valuesById[5] = "CANCELLING"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + values[valuesById[7] = "FAILED"] = 7; + values[valuesById[8] = "SKIPPED"] = 8; + values[valuesById[9] = "NOT_TRIGGERED"] = 9; + return values; + })(); - return GetModelEvaluationRequest; + return PipelineTaskDetail; })(); - v1beta1.ListModelEvaluationsRequest = (function() { + v1beta1.PipelineTaskExecutorDetail = (function() { /** - * Properties of a ListModelEvaluationsRequest. + * Properties of a PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationsRequest - * @property {string|null} [parent] ListModelEvaluationsRequest parent - * @property {string|null} [filter] ListModelEvaluationsRequest filter - * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask + * @interface IPipelineTaskExecutorDetail + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail */ /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationsRequest. - * @implements IListModelEvaluationsRequest + * @classdesc Represents a PipelineTaskExecutorDetail. + * @implements IPipelineTaskExecutorDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set */ - function ListModelEvaluationsRequest(properties) { + function PipelineTaskExecutorDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -405195,131 +411274,103 @@ } /** - * ListModelEvaluationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.parent = ""; - - /** - * ListModelEvaluationsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * PipelineTaskExecutorDetail containerDetail. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance */ - ListModelEvaluationsRequest.prototype.filter = ""; + PipelineTaskExecutorDetail.prototype.containerDetail = null; /** - * ListModelEvaluationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * PipelineTaskExecutorDetail customJobDetail. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance */ - ListModelEvaluationsRequest.prototype.pageSize = 0; + PipelineTaskExecutorDetail.prototype.customJobDetail = null; - /** - * ListModelEvaluationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.pageToken = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ListModelEvaluationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * PipelineTaskExecutorDetail details. + * @member {"containerDetail"|"customJobDetail"|undefined} details + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance */ - ListModelEvaluationsRequest.prototype.readMask = null; + Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { + get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance */ - ListModelEvaluationsRequest.create = function create(properties) { - return new ListModelEvaluationsRequest(properties); + PipelineTaskExecutorDetail.create = function create(properties) { + return new PipelineTaskExecutorDetail(properties); }; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encode = function encode(message, writer) { + PipelineTaskExecutorDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decode = function decode(reader, length) { + PipelineTaskExecutorDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); break; } default: @@ -405331,162 +411382,732 @@ }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a PipelineTaskExecutorDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsRequest.verify = function verify(message) { + PipelineTaskExecutorDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + var properties = {}; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); + if (error) + return "containerDetail." + error; + } + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + if (properties.details === 1) + return "details: multiple values"; + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (error) + return "customJobDetail." + error; + } } return null; }; /** - * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail */ - ListModelEvaluationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest) + PipelineTaskExecutorDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); + if (object.containerDetail != null) { + if (typeof object.containerDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.containerDetail: object expected"); + message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + } + if (object.customJobDetail != null) { + if (typeof object.customJobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.customJobDetail: object expected"); + message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); } return message; }; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsRequest.toObject = function toObject(message, options) { + PipelineTaskExecutorDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + object.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); + if (options.oneofs) + object.details = "containerDetail"; + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + object.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); + if (options.oneofs) + object.details = "customJobDetail"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListModelEvaluationsRequest to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { + PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationsRequest + * Gets the default type url for PipelineTaskExecutorDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail"; }; - return ListModelEvaluationsRequest; + PipelineTaskExecutorDetail.ContainerDetail = (function() { + + /** + * Properties of a ContainerDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @interface IContainerDetail + * @property {string|null} [mainJob] ContainerDetail mainJob + * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob + * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs + * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs + */ + + /** + * Constructs a new ContainerDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @classdesc Represents a ContainerDetail. + * @implements IContainerDetail + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + */ + function ContainerDetail(properties) { + this.failedMainJobs = []; + this.failedPreCachingCheckJobs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerDetail mainJob. + * @member {string} mainJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.mainJob = ""; + + /** + * ContainerDetail preCachingCheckJob. + * @member {string} preCachingCheckJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.preCachingCheckJob = ""; + + /** + * ContainerDetail failedMainJobs. + * @member {Array.} failedMainJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedMainJobs = $util.emptyArray; + + /** + * ContainerDetail failedPreCachingCheckJobs. + * @member {Array.} failedPreCachingCheckJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; + + /** + * Creates a new ContainerDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance + */ + ContainerDetail.create = function create(properties) { + return new ContainerDetail(properties); + }; + + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); + if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); + if (message.failedMainJobs != null && message.failedMainJobs.length) + for (var i = 0; i < message.failedMainJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); + if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); + return writer; + }; + + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mainJob = reader.string(); + break; + } + case 2: { + message.preCachingCheckJob = reader.string(); + break; + } + case 3: { + if (!(message.failedMainJobs && message.failedMainJobs.length)) + message.failedMainJobs = []; + message.failedMainJobs.push(reader.string()); + break; + } + case 4: { + if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) + message.failedPreCachingCheckJobs = []; + message.failedPreCachingCheckJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ContainerDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + if (!$util.isString(message.mainJob)) + return "mainJob: string expected"; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + if (!$util.isString(message.preCachingCheckJob)) + return "preCachingCheckJob: string expected"; + if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { + if (!Array.isArray(message.failedMainJobs)) + return "failedMainJobs: array expected"; + for (var i = 0; i < message.failedMainJobs.length; ++i) + if (!$util.isString(message.failedMainJobs[i])) + return "failedMainJobs: string[] expected"; + } + if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { + if (!Array.isArray(message.failedPreCachingCheckJobs)) + return "failedPreCachingCheckJobs: array expected"; + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + if (!$util.isString(message.failedPreCachingCheckJobs[i])) + return "failedPreCachingCheckJobs: string[] expected"; + } + return null; + }; + + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + */ + ContainerDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); + if (object.mainJob != null) + message.mainJob = String(object.mainJob); + if (object.preCachingCheckJob != null) + message.preCachingCheckJob = String(object.preCachingCheckJob); + if (object.failedMainJobs) { + if (!Array.isArray(object.failedMainJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); + message.failedMainJobs = []; + for (var i = 0; i < object.failedMainJobs.length; ++i) + message.failedMainJobs[i] = String(object.failedMainJobs[i]); + } + if (object.failedPreCachingCheckJobs) { + if (!Array.isArray(object.failedPreCachingCheckJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); + message.failedPreCachingCheckJobs = []; + for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) + message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContainerDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.failedMainJobs = []; + object.failedPreCachingCheckJobs = []; + } + if (options.defaults) { + object.mainJob = ""; + object.preCachingCheckJob = ""; + } + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + object.mainJob = message.mainJob; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + object.preCachingCheckJob = message.preCachingCheckJob; + if (message.failedMainJobs && message.failedMainJobs.length) { + object.failedMainJobs = []; + for (var j = 0; j < message.failedMainJobs.length; ++j) + object.failedMainJobs[j] = message.failedMainJobs[j]; + } + if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { + object.failedPreCachingCheckJobs = []; + for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) + object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; + } + return object; + }; + + /** + * Converts this ContainerDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + * @returns {Object.} JSON object + */ + ContainerDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ContainerDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail"; + }; + + return ContainerDetail; + })(); + + PipelineTaskExecutorDetail.CustomJobDetail = (function() { + + /** + * Properties of a CustomJobDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @interface ICustomJobDetail + * @property {string|null} [job] CustomJobDetail job + * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs + */ + + /** + * Constructs a new CustomJobDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @classdesc Represents a CustomJobDetail. + * @implements ICustomJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + */ + function CustomJobDetail(properties) { + this.failedJobs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomJobDetail job. + * @member {string} job + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.job = ""; + + /** + * CustomJobDetail failedJobs. + * @member {Array.} failedJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.failedJobs = $util.emptyArray; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance + */ + CustomJobDetail.create = function create(properties) { + return new CustomJobDetail(properties); + }; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + if (message.failedJobs != null && message.failedJobs.length) + for (var i = 0; i < message.failedJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); + return writer; + }; + + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.job = reader.string(); + break; + } + case 3: { + if (!(message.failedJobs && message.failedJobs.length)) + message.failedJobs = []; + message.failedJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomJobDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomJobDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.job != null && message.hasOwnProperty("job")) + if (!$util.isString(message.job)) + return "job: string expected"; + if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { + if (!Array.isArray(message.failedJobs)) + return "failedJobs: array expected"; + for (var i = 0; i < message.failedJobs.length; ++i) + if (!$util.isString(message.failedJobs[i])) + return "failedJobs: string[] expected"; + } + return null; + }; + + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + */ + CustomJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); + if (object.job != null) + message.job = String(object.job); + if (object.failedJobs) { + if (!Array.isArray(object.failedJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); + message.failedJobs = []; + for (var i = 0; i < object.failedJobs.length; ++i) + message.failedJobs[i] = String(object.failedJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomJobDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.failedJobs = []; + if (options.defaults) + object.job = ""; + if (message.job != null && message.hasOwnProperty("job")) + object.job = message.job; + if (message.failedJobs && message.failedJobs.length) { + object.failedJobs = []; + for (var j = 0; j < message.failedJobs.length; ++j) + object.failedJobs[j] = message.failedJobs[j]; + } + return object; + }; + + /** + * Converts this CustomJobDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + * @returns {Object.} JSON object + */ + CustomJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomJobDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail"; + }; + + return CustomJobDetail; + })(); + + return PipelineTaskExecutorDetail; })(); - v1beta1.ListModelEvaluationsResponse = (function() { + /** + * PipelineState enum. + * @name google.cloud.aiplatform.v1beta1.PipelineState + * @enum {number} + * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value + * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value + * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value + * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value + * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value + * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value + * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value + * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value + * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value + */ + v1beta1.PipelineState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; + values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; + values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; + values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; + values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; + values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; + values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; + values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; + return values; + })(); + + v1beta1.Value = (function() { /** - * Properties of a ListModelEvaluationsResponse. + * Properties of a Value. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationsResponse - * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations - * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken + * @interface IValue + * @property {number|Long|null} [intValue] Value intValue + * @property {number|null} [doubleValue] Value doubleValue + * @property {string|null} [stringValue] Value stringValue */ /** - * Constructs a new ListModelEvaluationsResponse. + * Constructs a new Value. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationsResponse. - * @implements IListModelEvaluationsResponse + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set */ - function ListModelEvaluationsResponse(properties) { - this.modelEvaluations = []; + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -405494,92 +412115,117 @@ } /** - * ListModelEvaluationsResponse modelEvaluations. - * @member {Array.} modelEvaluations - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * Value intValue. + * @member {number|Long|null|undefined} intValue + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance */ - ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; + Value.prototype.intValue = null; /** - * ListModelEvaluationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * Value doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance */ - ListModelEvaluationsResponse.prototype.nextPageToken = ""; + Value.prototype.doubleValue = null; /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1beta1.Value + * @instance + */ + Value.prototype.stringValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value value. + * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.Value + * @instance + */ + Object.defineProperty(Value.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Value} Value instance */ - ListModelEvaluationsResponse.create = function create(properties) { - return new ListModelEvaluationsResponse(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsResponse.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelEvaluations != null && message.modelEvaluations.length) - for (var i = 0; i < message.modelEvaluations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); return writer; }; /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1beta1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsResponse.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluations && message.modelEvaluations.length)) - message.modelEvaluations = []; - message.modelEvaluations.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32())); + message.intValue = reader.int64(); break; } case 2: { - message.nextPageToken = reader.string(); + message.doubleValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); break; } default: @@ -405591,148 +412237,595 @@ }; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1beta1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsResponse message. + * Verifies a Value message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsResponse.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { - if (!Array.isArray(message.modelEvaluations)) - return "modelEvaluations: array expected"; - for (var i = 0; i < message.modelEvaluations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluations[i]); - if (error) - return "modelEvaluations." + error; - } + var properties = {}; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + properties.value = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1beta1.Value} Value */ - ListModelEvaluationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Value) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); - if (object.modelEvaluations) { - if (!Array.isArray(object.modelEvaluations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: array expected"); - message.modelEvaluations = []; - for (var i = 0; i < object.modelEvaluations.length; ++i) { - if (typeof object.modelEvaluations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: object expected"); - message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluations[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.Value(); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); return message; }; /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse + * @param {google.cloud.aiplatform.v1beta1.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsResponse.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluations && message.modelEvaluations.length) { - object.modelEvaluations = []; - for (var j = 0; j < message.modelEvaluations.length; ++j) - object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluations[j], options); + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; + if (options.oneofs) + object.value = "intValue"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListModelEvaluationsResponse to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationsResponse + * Gets the default type url for Value * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Value"; }; - return ListModelEvaluationsResponse; + return Value; })(); - v1beta1.GetModelEvaluationSliceRequest = (function() { + v1beta1.PipelineService = (function() { /** - * Properties of a GetModelEvaluationSliceRequest. + * Constructs a new PipelineService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelEvaluationSliceRequest - * @property {string|null} [name] GetModelEvaluationSliceRequest name + * @classdesc Represents a PipelineService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function PipelineService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; + + /** + * Creates new PipelineService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. + */ + PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CreateTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline */ /** - * Constructs a new GetModelEvaluationSliceRequest. + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { + return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); + }, "name", { value: "CreateTrainingPipeline" }); + + /** + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef GetTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline + */ + + /** + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { + return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); + }, "name", { value: "GetTrainingPipeline" }); + + /** + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listTrainingPipelines}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef ListTrainingPipelinesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + */ + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { + return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, request, callback); + }, "name", { value: "ListTrainingPipelines" }); + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deleteTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef DeleteTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { + return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteTrainingPipeline" }); + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CancelTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { + return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelTrainingPipeline" }); + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createPipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CreatePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { + return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); + }, "name", { value: "CreatePipelineJob" }); + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getPipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef GetPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { + return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); + }, "name", { value: "GetPipelineJob" }); + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listPipelineJobs}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef ListPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse + */ + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { + return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, request, callback); + }, "name", { value: "ListPipelineJobs" }); + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deletePipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef DeletePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { + return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePipelineJob" }); + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchDeletePipelineJobs}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef BatchDeletePipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchDeletePipelineJobs. + * @function batchDeletePipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} request BatchDeletePipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.batchDeletePipelineJobs = function batchDeletePipelineJobs(request, callback) { + return this.rpcCall(batchDeletePipelineJobs, $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchDeletePipelineJobs" }); + + /** + * Calls BatchDeletePipelineJobs. + * @function batchDeletePipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} request BatchDeletePipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelPipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CancelPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { + return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelPipelineJob" }); + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchCancelPipelineJobs}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef BatchCancelPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchCancelPipelineJobs. + * @function batchCancelPipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest} request BatchCancelPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.batchCancelPipelineJobs = function batchCancelPipelineJobs(request, callback) { + return this.rpcCall(batchCancelPipelineJobs, $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchCancelPipelineJobs" }); + + /** + * Calls BatchCancelPipelineJobs. + * @function batchCancelPipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest} request BatchCancelPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PipelineService; + })(); + + v1beta1.BatchCancelPipelineJobsOperationMetadata = (function() { + + /** + * Properties of a BatchCancelPipelineJobsOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelEvaluationSliceRequest. - * @implements IGetModelEvaluationSliceRequest + * @interface IBatchCancelPipelineJobsOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchCancelPipelineJobsOperationMetadata genericMetadata + */ + + /** + * Constructs a new BatchCancelPipelineJobsOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchCancelPipelineJobsOperationMetadata. + * @implements IBatchCancelPipelineJobsOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata=} [properties] Properties to set */ - function GetModelEvaluationSliceRequest(properties) { + function BatchCancelPipelineJobsOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -405740,75 +412833,75 @@ } /** - * GetModelEvaluationSliceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * BatchCancelPipelineJobsOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @instance */ - GetModelEvaluationSliceRequest.prototype.name = ""; + BatchCancelPipelineJobsOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. + * Creates a new BatchCancelPipelineJobsOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata} BatchCancelPipelineJobsOperationMetadata instance */ - GetModelEvaluationSliceRequest.create = function create(properties) { - return new GetModelEvaluationSliceRequest(properties); + BatchCancelPipelineJobsOperationMetadata.create = function create(properties) { + return new BatchCancelPipelineJobsOperationMetadata(properties); }; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified BatchCancelPipelineJobsOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata} message BatchCancelPipelineJobsOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encode = function encode(message, writer) { + BatchCancelPipelineJobsOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified BatchCancelPipelineJobsOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata} message BatchCancelPipelineJobsOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCancelPipelineJobsOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. + * Decodes a BatchCancelPipelineJobsOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata} BatchCancelPipelineJobsOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decode = function decode(reader, length) { + BatchCancelPipelineJobsOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -405820,126 +412913,128 @@ }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCancelPipelineJobsOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata} BatchCancelPipelineJobsOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCancelPipelineJobsOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelEvaluationSliceRequest message. + * Verifies a BatchCancelPipelineJobsOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelEvaluationSliceRequest.verify = function verify(message) { + BatchCancelPipelineJobsOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCancelPipelineJobsOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata} BatchCancelPipelineJobsOperationMetadata */ - GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest) + BatchCancelPipelineJobsOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCancelPipelineJobsOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata} message BatchCancelPipelineJobsOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { + BatchCancelPipelineJobsOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this GetModelEvaluationSliceRequest to JSON. + * Converts this BatchCancelPipelineJobsOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @instance * @returns {Object.} JSON object */ - GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { + BatchCancelPipelineJobsOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelEvaluationSliceRequest + * Gets the default type url for BatchCancelPipelineJobsOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchCancelPipelineJobsOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata"; }; - return GetModelEvaluationSliceRequest; + return BatchCancelPipelineJobsOperationMetadata; })(); - v1beta1.ListModelEvaluationSlicesRequest = (function() { + v1beta1.CreateTrainingPipelineRequest = (function() { /** - * Properties of a ListModelEvaluationSlicesRequest. + * Properties of a CreateTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationSlicesRequest - * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent - * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter - * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + * @interface ICreateTrainingPipelineRequest + * @property {string|null} [parent] CreateTrainingPipelineRequest parent + * @property {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline */ /** - * Constructs a new ListModelEvaluationSlicesRequest. + * Constructs a new CreateTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationSlicesRequest. - * @implements IListModelEvaluationSlicesRequest + * @classdesc Represents a CreateTrainingPipelineRequest. + * @implements ICreateTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set */ - function ListModelEvaluationSlicesRequest(properties) { + function CreateTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -405947,110 +413042,80 @@ } /** - * ListModelEvaluationSlicesRequest parent. + * CreateTrainingPipelineRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest - * @instance - */ - ListModelEvaluationSlicesRequest.prototype.parent = ""; - - /** - * ListModelEvaluationSlicesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest - * @instance - */ - ListModelEvaluationSlicesRequest.prototype.filter = ""; - - /** - * ListModelEvaluationSlicesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest - * @instance - */ - ListModelEvaluationSlicesRequest.prototype.pageSize = 0; - - /** - * ListModelEvaluationSlicesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageToken = ""; + CreateTrainingPipelineRequest.prototype.parent = ""; /** - * ListModelEvaluationSlicesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * CreateTrainingPipelineRequest trainingPipeline. + * @member {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null|undefined} trainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.readMask = null; + CreateTrainingPipelineRequest.prototype.trainingPipeline = null; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance */ - ListModelEvaluationSlicesRequest.create = function create(properties) { - return new ListModelEvaluationSlicesRequest(properties); + CreateTrainingPipelineRequest.create = function create(properties) { + return new CreateTrainingPipelineRequest(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { + CreateTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.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.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) + $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { + CreateTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -406059,19 +413124,7 @@ 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.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32()); break; } default: @@ -406083,162 +413136,136 @@ }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesRequest message. + * Verifies a CreateTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesRequest.verify = function verify(message) { + CreateTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { + var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipeline); if (error) - return "readMask." + error; + return "trainingPipeline." + error; } return null; }; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest */ - ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest) + CreateTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.trainingPipeline != null) { + if (typeof object.trainingPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); + message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipeline); } return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + CreateTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.trainingPipeline = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesRequest + * Gets the default type url for CreateTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest"; }; - return ListModelEvaluationSlicesRequest; + return CreateTrainingPipelineRequest; })(); - v1beta1.ListModelEvaluationSlicesResponse = (function() { + v1beta1.GetTrainingPipelineRequest = (function() { /** - * Properties of a ListModelEvaluationSlicesResponse. + * Properties of a GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationSlicesResponse - * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices - * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken + * @interface IGetTrainingPipelineRequest + * @property {string|null} [name] GetTrainingPipelineRequest name */ /** - * Constructs a new ListModelEvaluationSlicesResponse. + * Constructs a new GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationSlicesResponse. - * @implements IListModelEvaluationSlicesResponse + * @classdesc Represents a GetTrainingPipelineRequest. + * @implements IGetTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set */ - function ListModelEvaluationSlicesResponse(properties) { - this.modelEvaluationSlices = []; + function GetTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -406246,92 +413273,75 @@ } /** - * ListModelEvaluationSlicesResponse modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @instance - */ - ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; - - /** - * ListModelEvaluationSlicesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * GetTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @instance */ - ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; + GetTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance */ - ListModelEvaluationSlicesResponse.create = function create(properties) { - return new ListModelEvaluationSlicesResponse(properties); + GetTrainingPipelineRequest.create = function create(properties) { + return new GetTrainingPipelineRequest(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + GetTrainingPipelineRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { + GetTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -406343,164 +413353,126 @@ }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesResponse message. + * Verifies a GetTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesResponse.verify = function verify(message) { + GetTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); - if (error) - return "modelEvaluationSlices." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest */ - ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) + GetTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + GetTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListModelEvaluationSlicesResponse to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesResponse + * Gets the default type url for GetTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest"; }; - return ListModelEvaluationSlicesResponse; + return GetTrainingPipelineRequest; })(); - v1beta1.PersistentResource = (function() { + v1beta1.ListTrainingPipelinesRequest = (function() { /** - * Properties of a PersistentResource. + * Properties of a ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPersistentResource - * @property {string|null} [name] PersistentResource name - * @property {string|null} [displayName] PersistentResource displayName - * @property {Array.|null} [resourcePools] PersistentResource resourcePools - * @property {google.cloud.aiplatform.v1beta1.PersistentResource.State|null} [state] PersistentResource state - * @property {google.rpc.IStatus|null} [error] PersistentResource error - * @property {google.protobuf.ITimestamp|null} [createTime] PersistentResource createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PersistentResource startTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PersistentResource updateTime - * @property {Object.|null} [labels] PersistentResource labels - * @property {string|null} [network] PersistentResource network - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] PersistentResource encryptionSpec - * @property {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null} [resourceRuntimeSpec] PersistentResource resourceRuntimeSpec - * @property {google.cloud.aiplatform.v1beta1.IResourceRuntime|null} [resourceRuntime] PersistentResource resourceRuntime - * @property {Array.|null} [reservedIpRanges] PersistentResource reservedIpRanges + * @interface IListTrainingPipelinesRequest + * @property {string|null} [parent] ListTrainingPipelinesRequest parent + * @property {string|null} [filter] ListTrainingPipelinesRequest filter + * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize + * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask */ /** - * Constructs a new PersistentResource. + * Constructs a new ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PersistentResource. - * @implements IPersistentResource + * @classdesc Represents a ListTrainingPipelinesRequest. + * @implements IListTrainingPipelinesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPersistentResource=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set */ - function PersistentResource(properties) { - this.resourcePools = []; - this.labels = {}; - this.reservedIpRanges = []; + function ListTrainingPipelinesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -406508,283 +413480,131 @@ } /** - * PersistentResource name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.name = ""; - - /** - * PersistentResource displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.displayName = ""; - - /** - * PersistentResource resourcePools. - * @member {Array.} resourcePools - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.resourcePools = $util.emptyArray; - - /** - * PersistentResource state. - * @member {google.cloud.aiplatform.v1beta1.PersistentResource.State} state - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.state = 0; - - /** - * PersistentResource error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.error = null; - - /** - * PersistentResource createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.createTime = null; - - /** - * PersistentResource startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.startTime = null; - - /** - * PersistentResource updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.updateTime = null; - - /** - * PersistentResource labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource - * @instance - */ - PersistentResource.prototype.labels = $util.emptyObject; - - /** - * PersistentResource network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * ListTrainingPipelinesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PersistentResource.prototype.network = ""; + ListTrainingPipelinesRequest.prototype.parent = ""; /** - * PersistentResource encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * ListTrainingPipelinesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PersistentResource.prototype.encryptionSpec = null; + ListTrainingPipelinesRequest.prototype.filter = ""; /** - * PersistentResource resourceRuntimeSpec. - * @member {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec|null|undefined} resourceRuntimeSpec - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * ListTrainingPipelinesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PersistentResource.prototype.resourceRuntimeSpec = null; + ListTrainingPipelinesRequest.prototype.pageSize = 0; /** - * PersistentResource resourceRuntime. - * @member {google.cloud.aiplatform.v1beta1.IResourceRuntime|null|undefined} resourceRuntime - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * ListTrainingPipelinesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PersistentResource.prototype.resourceRuntime = null; + ListTrainingPipelinesRequest.prototype.pageToken = ""; /** - * PersistentResource reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * ListTrainingPipelinesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PersistentResource.prototype.reservedIpRanges = $util.emptyArray; + ListTrainingPipelinesRequest.prototype.readMask = null; /** - * Creates a new PersistentResource instance using the specified properties. + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPersistentResource=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance */ - PersistentResource.create = function create(properties) { - return new PersistentResource(properties); + ListTrainingPipelinesRequest.create = function create(properties) { + return new ListTrainingPipelinesRequest(properties); }; /** - * Encodes the specified PersistentResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPersistentResource} message PersistentResource message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PersistentResource.encode = function encode(message, writer) { + ListTrainingPipelinesRequest.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.resourcePools != null && message.resourcePools.length) - for (var i = 0; i < message.resourcePools.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ResourcePool.encode(message.resourcePools[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.network); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.resourceRuntimeSpec != null && Object.hasOwnProperty.call(message, "resourceRuntimeSpec")) - $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.encode(message.resourceRuntimeSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.resourceRuntime != null && Object.hasOwnProperty.call(message, "resourceRuntime")) - $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.encode(message.resourceRuntime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.reservedIpRanges[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified PersistentResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PersistentResource.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPersistentResource} message PersistentResource message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PersistentResource.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PersistentResource message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PersistentResource.decode = function decode(reader, length) { + ListTrainingPipelinesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PersistentResource(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 4: { - if (!(message.resourcePools && message.resourcePools.length)) - message.resourcePools = []; - message.resourcePools.push($root.google.cloud.aiplatform.v1beta1.ResourcePool.decode(reader, reader.uint32())); - break; - } - case 5: { - message.state = reader.int32(); - break; - } - case 6: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 10: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 11: { - message.network = reader.string(); - break; - } - case 12: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.filter = reader.string(); break; } - case 13: { - message.resourceRuntimeSpec = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.decode(reader, reader.uint32()); + case 3: { + message.pageSize = reader.int32(); break; } - case 14: { - message.resourceRuntime = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.decode(reader, reader.uint32()); + case 4: { + message.pageToken = reader.string(); break; } - case 15: { - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -406796,367 +413616,162 @@ }; /** - * Decodes a PersistentResource message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PersistentResource.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PersistentResource message. + * Verifies a ListTrainingPipelinesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PersistentResource.verify = function verify(message) { + ListTrainingPipelinesRequest.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.resourcePools != null && message.hasOwnProperty("resourcePools")) { - if (!Array.isArray(message.resourcePools)) - return "resourcePools: array expected"; - for (var i = 0; i < message.resourcePools.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ResourcePool.verify(message.resourcePools[i]); - if (error) - return "resourcePools." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 3: - case 4: - case 5: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.resourceRuntimeSpec != null && message.hasOwnProperty("resourceRuntimeSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify(message.resourceRuntimeSpec); - if (error) - return "resourceRuntimeSpec." + error; - } - if (message.resourceRuntime != null && message.hasOwnProperty("resourceRuntime")) { - var error = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.verify(message.resourceRuntime); + 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 "resourceRuntime." + error; - } - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; + return "readMask." + error; } return null; }; /** - * Creates a PersistentResource message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PersistentResource} PersistentResource + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest */ - PersistentResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PersistentResource) + ListTrainingPipelinesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PersistentResource(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.resourcePools) { - if (!Array.isArray(object.resourcePools)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourcePools: array expected"); - message.resourcePools = []; - for (var i = 0; i < object.resourcePools.length; ++i) { - if (typeof object.resourcePools[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourcePools: object expected"); - message.resourcePools[i] = $root.google.cloud.aiplatform.v1beta1.ResourcePool.fromObject(object.resourcePools[i]); - } - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PROVISIONING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 3: - message.state = 3; - break; - case "STOPPING": - case 4: - message.state = 4; - break; - case "ERROR": - case 5: - message.state = 5; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.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.network != null) - message.network = String(object.network); - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.resourceRuntimeSpec != null) { - if (typeof object.resourceRuntimeSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourceRuntimeSpec: object expected"); - message.resourceRuntimeSpec = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.fromObject(object.resourceRuntimeSpec); - } - if (object.resourceRuntime != null) { - if (typeof object.resourceRuntime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.resourceRuntime: object expected"); - message.resourceRuntime = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.fromObject(object.resourceRuntime); - } - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PersistentResource.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a PersistentResource message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PersistentResource} message PersistentResource + * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PersistentResource.toObject = function toObject(message, options) { + ListTrainingPipelinesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resourcePools = []; - object.reservedIpRanges = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.error = null; - object.createTime = null; - object.startTime = null; - object.updateTime = null; - object.network = ""; - object.encryptionSpec = null; - object.resourceRuntimeSpec = null; - object.resourceRuntime = 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.resourcePools && message.resourcePools.length) { - object.resourcePools = []; - for (var j = 0; j < message.resourcePools.length; ++j) - object.resourcePools[j] = $root.google.cloud.aiplatform.v1beta1.ResourcePool.toObject(message.resourcePools[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PersistentResource.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PersistentResource.State[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.resourceRuntimeSpec != null && message.hasOwnProperty("resourceRuntimeSpec")) - object.resourceRuntimeSpec = $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.toObject(message.resourceRuntimeSpec, options); - if (message.resourceRuntime != null && message.hasOwnProperty("resourceRuntime")) - object.resourceRuntime = $root.google.cloud.aiplatform.v1beta1.ResourceRuntime.toObject(message.resourceRuntime, options); - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; + 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 PersistentResource to JSON. + * Converts this ListTrainingPipelinesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance * @returns {Object.} JSON object */ - PersistentResource.prototype.toJSON = function toJSON() { + ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PersistentResource + * Gets the default type url for ListTrainingPipelinesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PersistentResource + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PersistentResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PersistentResource"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest"; }; - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.PersistentResource.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PROVISIONING=1 PROVISIONING value - * @property {number} RUNNING=3 RUNNING value - * @property {number} STOPPING=4 STOPPING value - * @property {number} ERROR=5 ERROR value - */ - PersistentResource.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PROVISIONING"] = 1; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "STOPPING"] = 4; - values[valuesById[5] = "ERROR"] = 5; - return values; - })(); - - return PersistentResource; + return ListTrainingPipelinesRequest; })(); - v1beta1.ResourcePool = (function() { + v1beta1.ListTrainingPipelinesResponse = (function() { /** - * Properties of a ResourcePool. + * Properties of a ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResourcePool - * @property {string|null} [id] ResourcePool id - * @property {google.cloud.aiplatform.v1beta1.IMachineSpec|null} [machineSpec] ResourcePool machineSpec - * @property {number|Long|null} [replicaCount] ResourcePool replicaCount - * @property {google.cloud.aiplatform.v1beta1.IDiskSpec|null} [diskSpec] ResourcePool diskSpec - * @property {number|Long|null} [usedReplicaCount] ResourcePool usedReplicaCount - * @property {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null} [autoscalingSpec] ResourcePool autoscalingSpec + * @interface IListTrainingPipelinesResponse + * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines + * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken */ /** - * Constructs a new ResourcePool. + * Constructs a new ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResourcePool. - * @implements IResourcePool + * @classdesc Represents a ListTrainingPipelinesResponse. + * @implements IListTrainingPipelinesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResourcePool=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set */ - function ResourcePool(properties) { + function ListTrainingPipelinesResponse(properties) { + this.trainingPipelines = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -407164,159 +413779,92 @@ } /** - * ResourcePool id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @instance - */ - ResourcePool.prototype.id = ""; - - /** - * ResourcePool machineSpec. - * @member {google.cloud.aiplatform.v1beta1.IMachineSpec|null|undefined} machineSpec - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @instance - */ - ResourcePool.prototype.machineSpec = null; - - /** - * ResourcePool replicaCount. - * @member {number|Long|null|undefined} replicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @instance - */ - ResourcePool.prototype.replicaCount = null; - - /** - * ResourcePool diskSpec. - * @member {google.cloud.aiplatform.v1beta1.IDiskSpec|null|undefined} diskSpec - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @instance - */ - ResourcePool.prototype.diskSpec = null; - - /** - * ResourcePool usedReplicaCount. - * @member {number|Long} usedReplicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @instance - */ - ResourcePool.prototype.usedReplicaCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ResourcePool autoscalingSpec. - * @member {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec|null|undefined} autoscalingSpec - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * ListTrainingPipelinesResponse trainingPipelines. + * @member {Array.} trainingPipelines + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @instance */ - ResourcePool.prototype.autoscalingSpec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; /** - * ResourcePool _replicaCount. - * @member {"replicaCount"|undefined} _replicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * ListTrainingPipelinesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @instance */ - Object.defineProperty(ResourcePool.prototype, "_replicaCount", { - get: $util.oneOfGetter($oneOfFields = ["replicaCount"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListTrainingPipelinesResponse.prototype.nextPageToken = ""; /** - * Creates a new ResourcePool instance using the specified properties. + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IResourcePool=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance */ - ResourcePool.create = function create(properties) { - return new ResourcePool(properties); + ListTrainingPipelinesResponse.create = function create(properties) { + return new ListTrainingPipelinesResponse(properties); }; /** - * Encodes the specified ResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IResourcePool} message ResourcePool message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourcePool.encode = function encode(message, writer) { + ListTrainingPipelinesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.machineSpec != null && Object.hasOwnProperty.call(message, "machineSpec")) - $root.google.cloud.aiplatform.v1beta1.MachineSpec.encode(message.machineSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.replicaCount != null && Object.hasOwnProperty.call(message, "replicaCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.replicaCount); - if (message.diskSpec != null && Object.hasOwnProperty.call(message, "diskSpec")) - $root.google.cloud.aiplatform.v1beta1.DiskSpec.encode(message.diskSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.usedReplicaCount != null && Object.hasOwnProperty.call(message, "usedReplicaCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.usedReplicaCount); - if (message.autoscalingSpec != null && Object.hasOwnProperty.call(message, "autoscalingSpec")) - $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.encode(message.autoscalingSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.trainingPipelines != null && message.trainingPipelines.length) + for (var i = 0; i < message.trainingPipelines.length; ++i) + $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IResourcePool} message ResourcePool message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourcePool.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourcePool message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourcePool.decode = function decode(reader, length) { + ListTrainingPipelinesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); + if (!(message.trainingPipelines && message.trainingPipelines.length)) + message.trainingPipelines = []; + message.trainingPipelines.push($root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32())); break; } case 2: { - message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.decode(reader, reader.uint32()); - break; - } - case 3: { - message.replicaCount = reader.int64(); - break; - } - case 4: { - message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.decode(reader, reader.uint32()); - break; - } - case 6: { - message.usedReplicaCount = reader.int64(); - break; - } - case 7: { - message.autoscalingSpec = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -407328,487 +413876,148 @@ }; /** - * Decodes a ResourcePool message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourcePool.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourcePool message. + * Verifies a ListTrainingPipelinesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourcePool.verify = function verify(message) { + ListTrainingPipelinesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.MachineSpec.verify(message.machineSpec); - if (error) - return "machineSpec." + error; - } - if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) { - properties._replicaCount = 1; - if (!$util.isInteger(message.replicaCount) && !(message.replicaCount && $util.isInteger(message.replicaCount.low) && $util.isInteger(message.replicaCount.high))) - return "replicaCount: integer|Long expected"; - } - if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.DiskSpec.verify(message.diskSpec); - if (error) - return "diskSpec." + error; - } - if (message.usedReplicaCount != null && message.hasOwnProperty("usedReplicaCount")) - if (!$util.isInteger(message.usedReplicaCount) && !(message.usedReplicaCount && $util.isInteger(message.usedReplicaCount.low) && $util.isInteger(message.usedReplicaCount.high))) - return "usedReplicaCount: integer|Long expected"; - if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify(message.autoscalingSpec); - if (error) - return "autoscalingSpec." + error; - } - return null; - }; - - /** - * Creates a ResourcePool message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool} ResourcePool - */ - ResourcePool.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourcePool) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool(); - if (object.id != null) - message.id = String(object.id); - if (object.machineSpec != null) { - if (typeof object.machineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ResourcePool.machineSpec: object expected"); - message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.fromObject(object.machineSpec); - } - if (object.replicaCount != null) - if ($util.Long) - (message.replicaCount = $util.Long.fromValue(object.replicaCount)).unsigned = false; - else if (typeof object.replicaCount === "string") - message.replicaCount = parseInt(object.replicaCount, 10); - else if (typeof object.replicaCount === "number") - message.replicaCount = object.replicaCount; - else if (typeof object.replicaCount === "object") - message.replicaCount = new $util.LongBits(object.replicaCount.low >>> 0, object.replicaCount.high >>> 0).toNumber(); - if (object.diskSpec != null) { - if (typeof object.diskSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ResourcePool.diskSpec: object expected"); - message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.fromObject(object.diskSpec); - } - if (object.usedReplicaCount != null) - if ($util.Long) - (message.usedReplicaCount = $util.Long.fromValue(object.usedReplicaCount)).unsigned = false; - else if (typeof object.usedReplicaCount === "string") - message.usedReplicaCount = parseInt(object.usedReplicaCount, 10); - else if (typeof object.usedReplicaCount === "number") - message.usedReplicaCount = object.usedReplicaCount; - else if (typeof object.usedReplicaCount === "object") - message.usedReplicaCount = new $util.LongBits(object.usedReplicaCount.low >>> 0, object.usedReplicaCount.high >>> 0).toNumber(); - if (object.autoscalingSpec != null) { - if (typeof object.autoscalingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ResourcePool.autoscalingSpec: object expected"); - message.autoscalingSpec = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.fromObject(object.autoscalingSpec); + if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { + if (!Array.isArray(message.trainingPipelines)) + return "trainingPipelines: array expected"; + for (var i = 0; i < message.trainingPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipelines[i]); + if (error) + return "trainingPipelines." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + */ + ListTrainingPipelinesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); + if (object.trainingPipelines) { + if (!Array.isArray(object.trainingPipelines)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); + message.trainingPipelines = []; + for (var i = 0; i < object.trainingPipelines.length; ++i) { + if (typeof object.trainingPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); + message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ResourcePool message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ResourcePool} message ResourcePool + * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourcePool.toObject = function toObject(message, options) { + ListTrainingPipelinesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.id = ""; - object.machineSpec = null; - object.diskSpec = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.usedReplicaCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.usedReplicaCount = options.longs === String ? "0" : 0; - object.autoscalingSpec = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) - object.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.toObject(message.machineSpec, options); - if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) { - if (typeof message.replicaCount === "number") - object.replicaCount = options.longs === String ? String(message.replicaCount) : message.replicaCount; - else - object.replicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.replicaCount) : options.longs === Number ? new $util.LongBits(message.replicaCount.low >>> 0, message.replicaCount.high >>> 0).toNumber() : message.replicaCount; - if (options.oneofs) - object._replicaCount = "replicaCount"; + if (options.arrays || options.defaults) + object.trainingPipelines = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.trainingPipelines && message.trainingPipelines.length) { + object.trainingPipelines = []; + for (var j = 0; j < message.trainingPipelines.length; ++j) + object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipelines[j], options); } - if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) - object.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.toObject(message.diskSpec, options); - if (message.usedReplicaCount != null && message.hasOwnProperty("usedReplicaCount")) - if (typeof message.usedReplicaCount === "number") - object.usedReplicaCount = options.longs === String ? String(message.usedReplicaCount) : message.usedReplicaCount; - else - object.usedReplicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.usedReplicaCount) : options.longs === Number ? new $util.LongBits(message.usedReplicaCount.low >>> 0, message.usedReplicaCount.high >>> 0).toNumber() : message.usedReplicaCount; - if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) - object.autoscalingSpec = $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.toObject(message.autoscalingSpec, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ResourcePool to JSON. + * Converts this ListTrainingPipelinesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @instance * @returns {Object.} JSON object */ - ResourcePool.prototype.toJSON = function toJSON() { + ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourcePool + * Gets the default type url for ListTrainingPipelinesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourcePool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourcePool"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse"; }; - ResourcePool.AutoscalingSpec = (function() { - - /** - * Properties of an AutoscalingSpec. - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @interface IAutoscalingSpec - * @property {number|Long|null} [minReplicaCount] AutoscalingSpec minReplicaCount - * @property {number|Long|null} [maxReplicaCount] AutoscalingSpec maxReplicaCount - */ - - /** - * Constructs a new AutoscalingSpec. - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool - * @classdesc Represents an AutoscalingSpec. - * @implements IAutoscalingSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec=} [properties] Properties to set - */ - function AutoscalingSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AutoscalingSpec minReplicaCount. - * @member {number|Long|null|undefined} minReplicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @instance - */ - AutoscalingSpec.prototype.minReplicaCount = null; - - /** - * AutoscalingSpec maxReplicaCount. - * @member {number|Long|null|undefined} maxReplicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @instance - */ - AutoscalingSpec.prototype.maxReplicaCount = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * AutoscalingSpec _minReplicaCount. - * @member {"minReplicaCount"|undefined} _minReplicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @instance - */ - Object.defineProperty(AutoscalingSpec.prototype, "_minReplicaCount", { - get: $util.oneOfGetter($oneOfFields = ["minReplicaCount"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * AutoscalingSpec _maxReplicaCount. - * @member {"maxReplicaCount"|undefined} _maxReplicaCount - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @instance - */ - Object.defineProperty(AutoscalingSpec.prototype, "_maxReplicaCount", { - get: $util.oneOfGetter($oneOfFields = ["maxReplicaCount"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new AutoscalingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec instance - */ - AutoscalingSpec.create = function create(properties) { - return new AutoscalingSpec(properties); - }; - - /** - * Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutoscalingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minReplicaCount != null && Object.hasOwnProperty.call(message, "minReplicaCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.minReplicaCount); - if (message.maxReplicaCount != null && Object.hasOwnProperty.call(message, "maxReplicaCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxReplicaCount); - return writer; - }; - - /** - * Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ResourcePool.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutoscalingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AutoscalingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutoscalingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.minReplicaCount = reader.int64(); - break; - } - case 2: { - message.maxReplicaCount = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutoscalingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AutoscalingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutoscalingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount")) { - properties._minReplicaCount = 1; - if (!$util.isInteger(message.minReplicaCount) && !(message.minReplicaCount && $util.isInteger(message.minReplicaCount.low) && $util.isInteger(message.minReplicaCount.high))) - return "minReplicaCount: integer|Long expected"; - } - if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) { - properties._maxReplicaCount = 1; - if (!$util.isInteger(message.maxReplicaCount) && !(message.maxReplicaCount && $util.isInteger(message.maxReplicaCount.low) && $util.isInteger(message.maxReplicaCount.high))) - return "maxReplicaCount: integer|Long expected"; - } - return null; - }; - - /** - * Creates an AutoscalingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} AutoscalingSpec - */ - AutoscalingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec(); - if (object.minReplicaCount != null) - if ($util.Long) - (message.minReplicaCount = $util.Long.fromValue(object.minReplicaCount)).unsigned = false; - else if (typeof object.minReplicaCount === "string") - message.minReplicaCount = parseInt(object.minReplicaCount, 10); - else if (typeof object.minReplicaCount === "number") - message.minReplicaCount = object.minReplicaCount; - else if (typeof object.minReplicaCount === "object") - message.minReplicaCount = new $util.LongBits(object.minReplicaCount.low >>> 0, object.minReplicaCount.high >>> 0).toNumber(); - if (object.maxReplicaCount != null) - if ($util.Long) - (message.maxReplicaCount = $util.Long.fromValue(object.maxReplicaCount)).unsigned = false; - else if (typeof object.maxReplicaCount === "string") - message.maxReplicaCount = parseInt(object.maxReplicaCount, 10); - else if (typeof object.maxReplicaCount === "number") - message.maxReplicaCount = object.maxReplicaCount; - else if (typeof object.maxReplicaCount === "object") - message.maxReplicaCount = new $util.LongBits(object.maxReplicaCount.low >>> 0, object.maxReplicaCount.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec} message AutoscalingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutoscalingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount")) { - if (typeof message.minReplicaCount === "number") - object.minReplicaCount = options.longs === String ? String(message.minReplicaCount) : message.minReplicaCount; - else - object.minReplicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.minReplicaCount) : options.longs === Number ? new $util.LongBits(message.minReplicaCount.low >>> 0, message.minReplicaCount.high >>> 0).toNumber() : message.minReplicaCount; - if (options.oneofs) - object._minReplicaCount = "minReplicaCount"; - } - if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) { - if (typeof message.maxReplicaCount === "number") - object.maxReplicaCount = options.longs === String ? String(message.maxReplicaCount) : message.maxReplicaCount; - else - object.maxReplicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxReplicaCount) : options.longs === Number ? new $util.LongBits(message.maxReplicaCount.low >>> 0, message.maxReplicaCount.high >>> 0).toNumber() : message.maxReplicaCount; - if (options.oneofs) - object._maxReplicaCount = "maxReplicaCount"; - } - return object; - }; - - /** - * Converts this AutoscalingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @instance - * @returns {Object.} JSON object - */ - AutoscalingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AutoscalingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutoscalingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec"; - }; - - return AutoscalingSpec; - })(); - - return ResourcePool; + return ListTrainingPipelinesResponse; })(); - v1beta1.ResourceRuntimeSpec = (function() { + v1beta1.DeleteTrainingPipelineRequest = (function() { /** - * Properties of a ResourceRuntimeSpec. + * Properties of a DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResourceRuntimeSpec - * @property {google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null} [serviceAccountSpec] ResourceRuntimeSpec serviceAccountSpec - * @property {google.cloud.aiplatform.v1beta1.IRaySpec|null} [raySpec] ResourceRuntimeSpec raySpec + * @interface IDeleteTrainingPipelineRequest + * @property {string|null} [name] DeleteTrainingPipelineRequest name */ /** - * Constructs a new ResourceRuntimeSpec. + * Constructs a new DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResourceRuntimeSpec. - * @implements IResourceRuntimeSpec + * @classdesc Represents a DeleteTrainingPipelineRequest. + * @implements IDeleteTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set */ - function ResourceRuntimeSpec(properties) { + function DeleteTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -407816,89 +414025,75 @@ } /** - * ResourceRuntimeSpec serviceAccountSpec. - * @member {google.cloud.aiplatform.v1beta1.IServiceAccountSpec|null|undefined} serviceAccountSpec - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec - * @instance - */ - ResourceRuntimeSpec.prototype.serviceAccountSpec = null; - - /** - * ResourceRuntimeSpec raySpec. - * @member {google.cloud.aiplatform.v1beta1.IRaySpec|null|undefined} raySpec - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * DeleteTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @instance */ - ResourceRuntimeSpec.prototype.raySpec = null; + DeleteTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new ResourceRuntimeSpec instance using the specified properties. + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance */ - ResourceRuntimeSpec.create = function create(properties) { - return new ResourceRuntimeSpec(properties); + DeleteTrainingPipelineRequest.create = function create(properties) { + return new DeleteTrainingPipelineRequest(properties); }; /** - * Encodes the specified ResourceRuntimeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec} message ResourceRuntimeSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceRuntimeSpec.encode = function encode(message, writer) { + DeleteTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.raySpec != null && Object.hasOwnProperty.call(message, "raySpec")) - $root.google.cloud.aiplatform.v1beta1.RaySpec.encode(message.raySpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.serviceAccountSpec != null && Object.hasOwnProperty.call(message, "serviceAccountSpec")) - $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.encode(message.serviceAccountSpec, 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 ResourceRuntimeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntimeSpec} message ResourceRuntimeSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceRuntimeSpec.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceRuntimeSpec message from the specified reader or buffer. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceRuntimeSpec.decode = function decode(reader, length) { + DeleteTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.serviceAccountSpec = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.decode(reader, reader.uint32()); - break; - } case 1: { - message.raySpec = $root.google.cloud.aiplatform.v1beta1.RaySpec.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -407910,144 +414105,122 @@ }; /** - * Decodes a ResourceRuntimeSpec message from the specified reader or buffer, length delimited. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceRuntimeSpec.decodeDelimited = function decodeDelimited(reader) { + DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceRuntimeSpec message. + * Verifies a DeleteTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceRuntimeSpec.verify = function verify(message) { + DeleteTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.serviceAccountSpec != null && message.hasOwnProperty("serviceAccountSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify(message.serviceAccountSpec); - if (error) - return "serviceAccountSpec." + error; - } - if (message.raySpec != null && message.hasOwnProperty("raySpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.RaySpec.verify(message.raySpec); - if (error) - return "raySpec." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ResourceRuntimeSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} ResourceRuntimeSpec + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest */ - ResourceRuntimeSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec) + DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec(); - if (object.serviceAccountSpec != null) { - if (typeof object.serviceAccountSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.serviceAccountSpec: object expected"); - message.serviceAccountSpec = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.fromObject(object.serviceAccountSpec); - } - if (object.raySpec != null) { - if (typeof object.raySpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.raySpec: object expected"); - message.raySpec = $root.google.cloud.aiplatform.v1beta1.RaySpec.fromObject(object.raySpec); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ResourceRuntimeSpec message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} message ResourceRuntimeSpec + * @param {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceRuntimeSpec.toObject = function toObject(message, options) { + DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.raySpec = null; - object.serviceAccountSpec = null; - } - if (message.raySpec != null && message.hasOwnProperty("raySpec")) - object.raySpec = $root.google.cloud.aiplatform.v1beta1.RaySpec.toObject(message.raySpec, options); - if (message.serviceAccountSpec != null && message.hasOwnProperty("serviceAccountSpec")) - object.serviceAccountSpec = $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec.toObject(message.serviceAccountSpec, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ResourceRuntimeSpec to JSON. + * Converts this DeleteTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - ResourceRuntimeSpec.prototype.toJSON = function toJSON() { + DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceRuntimeSpec + * Gets the default type url for DeleteTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceRuntimeSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest"; }; - return ResourceRuntimeSpec; + return DeleteTrainingPipelineRequest; })(); - v1beta1.RaySpec = (function() { + v1beta1.CancelTrainingPipelineRequest = (function() { /** - * Properties of a RaySpec. + * Properties of a CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRaySpec - * @property {string|null} [imageUri] RaySpec imageUri - * @property {Object.|null} [resourcePoolImages] RaySpec resourcePoolImages - * @property {string|null} [headNodeResourcePoolId] RaySpec headNodeResourcePoolId + * @interface ICancelTrainingPipelineRequest + * @property {string|null} [name] CancelTrainingPipelineRequest name */ /** - * Constructs a new RaySpec. + * Constructs a new CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RaySpec. - * @implements IRaySpec + * @classdesc Represents a CancelTrainingPipelineRequest. + * @implements ICancelTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRaySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set */ - function RaySpec(properties) { - this.resourcePoolImages = {}; + function CancelTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -408055,123 +414228,75 @@ } /** - * RaySpec imageUri. - * @member {string} imageUri - * @memberof google.cloud.aiplatform.v1beta1.RaySpec - * @instance - */ - RaySpec.prototype.imageUri = ""; - - /** - * RaySpec resourcePoolImages. - * @member {Object.} resourcePoolImages - * @memberof google.cloud.aiplatform.v1beta1.RaySpec - * @instance - */ - RaySpec.prototype.resourcePoolImages = $util.emptyObject; - - /** - * RaySpec headNodeResourcePoolId. - * @member {string} headNodeResourcePoolId - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * CancelTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @instance */ - RaySpec.prototype.headNodeResourcePoolId = ""; + CancelTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new RaySpec instance using the specified properties. + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRaySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec instance + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance */ - RaySpec.create = function create(properties) { - return new RaySpec(properties); + CancelTrainingPipelineRequest.create = function create(properties) { + return new CancelTrainingPipelineRequest(properties); }; /** - * Encodes the specified RaySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRaySpec} message RaySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RaySpec.encode = function encode(message, writer) { + CancelTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); - if (message.resourcePoolImages != null && Object.hasOwnProperty.call(message, "resourcePoolImages")) - for (var keys = Object.keys(message.resourcePoolImages), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourcePoolImages[keys[i]]).ldelim(); - if (message.headNodeResourcePoolId != null && Object.hasOwnProperty.call(message, "headNodeResourcePoolId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.headNodeResourcePoolId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified RaySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RaySpec.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRaySpec} message RaySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RaySpec.encodeDelimited = function encodeDelimited(message, writer) { + CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RaySpec message from the specified reader or buffer. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RaySpec.decode = function decode(reader, length) { + CancelTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RaySpec(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.imageUri = reader.string(); - break; - } - case 6: { - if (message.resourcePoolImages === $util.emptyObject) - message.resourcePoolImages = {}; - 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.resourcePoolImages[key] = value; - break; - } - case 7: { - message.headNodeResourcePoolId = reader.string(); + message.name = reader.string(); break; } default: @@ -408183,155 +414308,125 @@ }; /** - * Decodes a RaySpec message from the specified reader or buffer, length delimited. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RaySpec.decodeDelimited = function decodeDelimited(reader) { + CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RaySpec message. + * Verifies a CancelTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RaySpec.verify = function verify(message) { + CancelTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - if (!$util.isString(message.imageUri)) - return "imageUri: string expected"; - if (message.resourcePoolImages != null && message.hasOwnProperty("resourcePoolImages")) { - if (!$util.isObject(message.resourcePoolImages)) - return "resourcePoolImages: object expected"; - var key = Object.keys(message.resourcePoolImages); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.resourcePoolImages[key[i]])) - return "resourcePoolImages: string{k:string} expected"; - } - if (message.headNodeResourcePoolId != null && message.hasOwnProperty("headNodeResourcePoolId")) - if (!$util.isString(message.headNodeResourcePoolId)) - return "headNodeResourcePoolId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a RaySpec message from a plain object. Also converts values to their respective internal types. + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RaySpec} RaySpec + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest */ - RaySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RaySpec) + CancelTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.RaySpec(); - if (object.imageUri != null) - message.imageUri = String(object.imageUri); - if (object.resourcePoolImages) { - if (typeof object.resourcePoolImages !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.RaySpec.resourcePoolImages: object expected"); - message.resourcePoolImages = {}; - for (var keys = Object.keys(object.resourcePoolImages), i = 0; i < keys.length; ++i) - message.resourcePoolImages[keys[i]] = String(object.resourcePoolImages[keys[i]]); - } - if (object.headNodeResourcePoolId != null) - message.headNodeResourcePoolId = String(object.headNodeResourcePoolId); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a RaySpec message. Also converts values to other types if specified. + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.RaySpec} message RaySpec + * @param {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RaySpec.toObject = function toObject(message, options) { + CancelTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.resourcePoolImages = {}; - if (options.defaults) { - object.imageUri = ""; - object.headNodeResourcePoolId = ""; - } - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - object.imageUri = message.imageUri; - var keys2; - if (message.resourcePoolImages && (keys2 = Object.keys(message.resourcePoolImages)).length) { - object.resourcePoolImages = {}; - for (var j = 0; j < keys2.length; ++j) - object.resourcePoolImages[keys2[j]] = message.resourcePoolImages[keys2[j]]; - } - if (message.headNodeResourcePoolId != null && message.hasOwnProperty("headNodeResourcePoolId")) - object.headNodeResourcePoolId = message.headNodeResourcePoolId; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this RaySpec to JSON. + * Converts this CancelTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - RaySpec.prototype.toJSON = function toJSON() { + CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RaySpec + * Gets the default type url for CancelTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RaySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RaySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest"; }; - return RaySpec; + return CancelTrainingPipelineRequest; })(); - v1beta1.ResourceRuntime = (function() { + v1beta1.CreatePipelineJobRequest = (function() { /** - * Properties of a ResourceRuntime. + * Properties of a CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResourceRuntime - * @property {Object.|null} [accessUris] ResourceRuntime accessUris + * @interface ICreatePipelineJobRequest + * @property {string|null} [parent] CreatePipelineJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob + * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId + * @property {boolean|null} [preflightValidations] CreatePipelineJobRequest preflightValidations */ /** - * Constructs a new ResourceRuntime. + * Constructs a new CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResourceRuntime. - * @implements IResourceRuntime + * @classdesc Represents a CreatePipelineJobRequest. + * @implements ICreatePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set */ - function ResourceRuntime(properties) { - this.accessUris = {}; + function CreatePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -408339,95 +414434,117 @@ } /** - * ResourceRuntime accessUris. - * @member {Object.} accessUris - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * CreatePipelineJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @instance */ - ResourceRuntime.prototype.accessUris = $util.emptyObject; + CreatePipelineJobRequest.prototype.parent = ""; /** - * Creates a new ResourceRuntime instance using the specified properties. + * CreatePipelineJobRequest pipelineJob. + * @member {google.cloud.aiplatform.v1beta1.IPipelineJob|null|undefined} pipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @instance + */ + CreatePipelineJobRequest.prototype.pipelineJob = null; + + /** + * CreatePipelineJobRequest pipelineJobId. + * @member {string} pipelineJobId + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @instance + */ + CreatePipelineJobRequest.prototype.pipelineJobId = ""; + + /** + * CreatePipelineJobRequest preflightValidations. + * @member {boolean} preflightValidations + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @instance + */ + CreatePipelineJobRequest.prototype.preflightValidations = false; + + /** + * Creates a new CreatePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest instance */ - ResourceRuntime.create = function create(properties) { - return new ResourceRuntime(properties); + CreatePipelineJobRequest.create = function create(properties) { + return new CreatePipelineJobRequest(properties); }; /** - * Encodes the specified ResourceRuntime message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime} message ResourceRuntime message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceRuntime.encode = function encode(message, writer) { + CreatePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accessUris != null && Object.hasOwnProperty.call(message, "accessUris")) - for (var keys = Object.keys(message.accessUris), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.accessUris[keys[i]]).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); + if (message.preflightValidations != null && Object.hasOwnProperty.call(message, "preflightValidations")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.preflightValidations); return writer; }; /** - * Encodes the specified ResourceRuntime message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourceRuntime.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResourceRuntime} message ResourceRuntime message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceRuntime.encodeDelimited = function encodeDelimited(message, writer) { + CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceRuntime message from the specified reader or buffer. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceRuntime.decode = function decode(reader, length) { + CreatePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntime(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.accessUris === $util.emptyObject) - message.accessUris = {}; - 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.accessUris[key] = value; + message.parent = reader.string(); + break; + } + case 2: { + message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32()); + break; + } + case 3: { + message.pipelineJobId = reader.string(); + break; + } + case 4: { + message.preflightValidations = reader.bool(); break; } default: @@ -408439,227 +414556,228 @@ }; /** - * Decodes a ResourceRuntime message from the specified reader or buffer, length delimited. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceRuntime.decodeDelimited = function decodeDelimited(reader) { + CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceRuntime message. + * Verifies a CreatePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceRuntime.verify = function verify(message) { + CreatePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.accessUris != null && message.hasOwnProperty("accessUris")) { - if (!$util.isObject(message.accessUris)) - return "accessUris: object expected"; - var key = Object.keys(message.accessUris); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.accessUris[key[i]])) - return "accessUris: string{k:string} expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJob); + if (error) + return "pipelineJob." + error; } + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + if (!$util.isString(message.pipelineJobId)) + return "pipelineJobId: string expected"; + if (message.preflightValidations != null && message.hasOwnProperty("preflightValidations")) + if (typeof message.preflightValidations !== "boolean") + return "preflightValidations: boolean expected"; return null; }; /** - * Creates a ResourceRuntime message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResourceRuntime} ResourceRuntime + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest */ - ResourceRuntime.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResourceRuntime) + CreatePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResourceRuntime(); - if (object.accessUris) { - if (typeof object.accessUris !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ResourceRuntime.accessUris: object expected"); - message.accessUris = {}; - for (var keys = Object.keys(object.accessUris), i = 0; i < keys.length; ++i) - message.accessUris[keys[i]] = String(object.accessUris[keys[i]]); + var message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pipelineJob != null) { + if (typeof object.pipelineJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.pipelineJob: object expected"); + message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJob); } + if (object.pipelineJobId != null) + message.pipelineJobId = String(object.pipelineJobId); + if (object.preflightValidations != null) + message.preflightValidations = Boolean(object.preflightValidations); return message; }; /** - * Creates a plain object from a ResourceRuntime message. Also converts values to other types if specified. + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ResourceRuntime} message ResourceRuntime + * @param {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} message CreatePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceRuntime.toObject = function toObject(message, options) { + CreatePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.accessUris = {}; - var keys2; - if (message.accessUris && (keys2 = Object.keys(message.accessUris)).length) { - object.accessUris = {}; - for (var j = 0; j < keys2.length; ++j) - object.accessUris[keys2[j]] = message.accessUris[keys2[j]]; + if (options.defaults) { + object.parent = ""; + object.pipelineJob = null; + object.pipelineJobId = ""; + object.preflightValidations = false; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) + object.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJob, options); + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + object.pipelineJobId = message.pipelineJobId; + if (message.preflightValidations != null && message.hasOwnProperty("preflightValidations")) + object.preflightValidations = message.preflightValidations; return object; }; /** - * Converts this ResourceRuntime to JSON. + * Converts this CreatePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @instance * @returns {Object.} JSON object */ - ResourceRuntime.prototype.toJSON = function toJSON() { + CreatePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceRuntime + * Gets the default type url for CreatePipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResourceRuntime + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceRuntime.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResourceRuntime"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest"; }; - return ResourceRuntime; + return CreatePipelineJobRequest; })(); - v1beta1.ServiceAccountSpec = (function() { + v1beta1.GetPipelineJobRequest = (function() { /** - * Properties of a ServiceAccountSpec. + * Properties of a GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IServiceAccountSpec - * @property {boolean|null} [enableCustomServiceAccount] ServiceAccountSpec enableCustomServiceAccount - * @property {string|null} [serviceAccount] ServiceAccountSpec serviceAccount + * @interface IGetPipelineJobRequest + * @property {string|null} [name] GetPipelineJobRequest name */ /** - * Constructs a new ServiceAccountSpec. + * Constructs a new GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ServiceAccountSpec. - * @implements IServiceAccountSpec + * @classdesc Represents a GetPipelineJobRequest. + * @implements IGetPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec=} [properties] Properties to set - */ - function ServiceAccountSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceAccountSpec enableCustomServiceAccount. - * @member {boolean} enableCustomServiceAccount - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec - * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set */ - ServiceAccountSpec.prototype.enableCustomServiceAccount = false; + function GetPipelineJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ServiceAccountSpec serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * GetPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @instance */ - ServiceAccountSpec.prototype.serviceAccount = ""; + GetPipelineJobRequest.prototype.name = ""; /** - * Creates a new ServiceAccountSpec instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest instance */ - ServiceAccountSpec.create = function create(properties) { - return new ServiceAccountSpec(properties); + GetPipelineJobRequest.create = function create(properties) { + return new GetPipelineJobRequest(properties); }; /** - * Encodes the specified ServiceAccountSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec} message ServiceAccountSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceAccountSpec.encode = function encode(message, writer) { + GetPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableCustomServiceAccount != null && Object.hasOwnProperty.call(message, "enableCustomServiceAccount")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableCustomServiceAccount); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ServiceAccountSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ServiceAccountSpec.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IServiceAccountSpec} message ServiceAccountSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceAccountSpec.encodeDelimited = function encodeDelimited(message, writer) { + GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceAccountSpec message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceAccountSpec.decode = function decode(reader, length) { + GetPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enableCustomServiceAccount = reader.bool(); - break; - } - case 2: { - message.serviceAccount = reader.string(); + message.name = reader.string(); break; } default: @@ -408671,424 +414789,248 @@ }; /** - * Decodes a ServiceAccountSpec message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceAccountSpec.decodeDelimited = function decodeDelimited(reader) { + GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceAccountSpec message. + * Verifies a GetPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceAccountSpec.verify = function verify(message) { + GetPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableCustomServiceAccount != null && message.hasOwnProperty("enableCustomServiceAccount")) - if (typeof message.enableCustomServiceAccount !== "boolean") - return "enableCustomServiceAccount: boolean expected"; - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ServiceAccountSpec message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} ServiceAccountSpec + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest */ - ServiceAccountSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec) + GetPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ServiceAccountSpec(); - if (object.enableCustomServiceAccount != null) - message.enableCustomServiceAccount = Boolean(object.enableCustomServiceAccount); - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); + var message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ServiceAccountSpec message. Also converts values to other types if specified. + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ServiceAccountSpec} message ServiceAccountSpec + * @param {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} message GetPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceAccountSpec.toObject = function toObject(message, options) { + GetPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.enableCustomServiceAccount = false; - object.serviceAccount = ""; - } - if (message.enableCustomServiceAccount != null && message.hasOwnProperty("enableCustomServiceAccount")) - object.enableCustomServiceAccount = message.enableCustomServiceAccount; - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ServiceAccountSpec to JSON. + * Converts this GetPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @instance * @returns {Object.} JSON object */ - ServiceAccountSpec.prototype.toJSON = function toJSON() { + GetPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceAccountSpec + * Gets the default type url for GetPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ServiceAccountSpec + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceAccountSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ServiceAccountSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetPipelineJobRequest"; }; - return ServiceAccountSpec; + return GetPipelineJobRequest; })(); - v1beta1.PersistentResourceService = (function() { + v1beta1.ListPipelineJobsRequest = (function() { /** - * Constructs a new PersistentResourceService service. + * Properties of a ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PersistentResourceService - * @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 PersistentResourceService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PersistentResourceService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PersistentResourceService; - - /** - * Creates new PersistentResourceService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @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 {PersistentResourceService} RPC service. Useful where requests and/or responses are streamed. - */ - PersistentResourceService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|createPersistentResource}. - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @typedef CreatePersistentResourceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreatePersistentResource. - * @function createPersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} request CreatePersistentResourceRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResourceCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PersistentResourceService.prototype.createPersistentResource = function createPersistentResource(request, callback) { - return this.rpcCall(createPersistentResource, $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreatePersistentResource" }); - - /** - * Calls CreatePersistentResource. - * @function createPersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} request CreatePersistentResourceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|getPersistentResource}. - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @typedef GetPersistentResourceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PersistentResource} [response] PersistentResource - */ - - /** - * Calls GetPersistentResource. - * @function getPersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} request GetPersistentResourceRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResourceCallback} callback Node-style callback called with the error, if any, and PersistentResource - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PersistentResourceService.prototype.getPersistentResource = function getPersistentResource(request, callback) { - return this.rpcCall(getPersistentResource, $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest, $root.google.cloud.aiplatform.v1beta1.PersistentResource, request, callback); - }, "name", { value: "GetPersistentResource" }); - - /** - * Calls GetPersistentResource. - * @function getPersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} request GetPersistentResourceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|listPersistentResources}. - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @typedef ListPersistentResourcesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} [response] ListPersistentResourcesResponse - */ - - /** - * Calls ListPersistentResources. - * @function listPersistentResources - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} request ListPersistentResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResourcesCallback} callback Node-style callback called with the error, if any, and ListPersistentResourcesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PersistentResourceService.prototype.listPersistentResources = function listPersistentResources(request, callback) { - return this.rpcCall(listPersistentResources, $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest, $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse, request, callback); - }, "name", { value: "ListPersistentResources" }); - - /** - * Calls ListPersistentResources. - * @function listPersistentResources - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} request ListPersistentResourcesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|deletePersistentResource}. - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @typedef DeletePersistentResourceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @interface IListPipelineJobsRequest + * @property {string|null} [parent] ListPipelineJobsRequest parent + * @property {string|null} [filter] ListPipelineJobsRequest filter + * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize + * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken + * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask */ /** - * Calls DeletePersistentResource. - * @function deletePersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} request DeletePersistentResourceRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResourceCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Constructs a new ListPipelineJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListPipelineJobsRequest. + * @implements IListPipelineJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set */ - Object.defineProperty(PersistentResourceService.prototype.deletePersistentResource = function deletePersistentResource(request, callback) { - return this.rpcCall(deletePersistentResource, $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePersistentResource" }); + function ListPipelineJobsRequest(properties) { + if (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 DeletePersistentResource. - * @function deletePersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * ListPipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} request DeletePersistentResourceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PersistentResourceService|updatePersistentResource}. - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService - * @typedef UpdatePersistentResourceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + ListPipelineJobsRequest.prototype.parent = ""; /** - * Calls UpdatePersistentResource. - * @function updatePersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * ListPipelineJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} request UpdatePersistentResourceRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PersistentResourceService.UpdatePersistentResourceCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PersistentResourceService.prototype.updatePersistentResource = function updatePersistentResource(request, callback) { - return this.rpcCall(updatePersistentResource, $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdatePersistentResource" }); + ListPipelineJobsRequest.prototype.filter = ""; /** - * Calls UpdatePersistentResource. - * @function updatePersistentResource - * @memberof google.cloud.aiplatform.v1beta1.PersistentResourceService + * ListPipelineJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} request UpdatePersistentResourceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return PersistentResourceService; - })(); - - v1beta1.CreatePersistentResourceRequest = (function() { - - /** - * Properties of a CreatePersistentResourceRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreatePersistentResourceRequest - * @property {string|null} [parent] CreatePersistentResourceRequest parent - * @property {google.cloud.aiplatform.v1beta1.IPersistentResource|null} [persistentResource] CreatePersistentResourceRequest persistentResource - * @property {string|null} [persistentResourceId] CreatePersistentResourceRequest persistentResourceId - */ - - /** - * Constructs a new CreatePersistentResourceRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreatePersistentResourceRequest. - * @implements ICreatePersistentResourceRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest=} [properties] Properties to set */ - function CreatePersistentResourceRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ListPipelineJobsRequest.prototype.pageSize = 0; /** - * CreatePersistentResourceRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * ListPipelineJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - CreatePersistentResourceRequest.prototype.parent = ""; + ListPipelineJobsRequest.prototype.pageToken = ""; /** - * CreatePersistentResourceRequest persistentResource. - * @member {google.cloud.aiplatform.v1beta1.IPersistentResource|null|undefined} persistentResource - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * ListPipelineJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - CreatePersistentResourceRequest.prototype.persistentResource = null; + ListPipelineJobsRequest.prototype.orderBy = ""; /** - * CreatePersistentResourceRequest persistentResourceId. - * @member {string} persistentResourceId - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * ListPipelineJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - CreatePersistentResourceRequest.prototype.persistentResourceId = ""; + ListPipelineJobsRequest.prototype.readMask = null; /** - * Creates a new CreatePersistentResourceRequest instance using the specified properties. + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest instance */ - CreatePersistentResourceRequest.create = function create(properties) { - return new CreatePersistentResourceRequest(properties); + ListPipelineJobsRequest.create = function create(properties) { + return new ListPipelineJobsRequest(properties); }; /** - * Encodes the specified CreatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} message CreatePersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePersistentResourceRequest.encode = function encode(message, writer) { + ListPipelineJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.persistentResource != null && Object.hasOwnProperty.call(message, "persistentResource")) - $root.google.cloud.aiplatform.v1beta1.PersistentResource.encode(message.persistentResource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.persistentResourceId != null && Object.hasOwnProperty.call(message, "persistentResourceId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.persistentResourceId); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.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; }; /** - * Encodes the specified CreatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceRequest} message CreatePersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePersistentResourceRequest.decode = function decode(reader, length) { + ListPipelineJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -409097,11 +415039,23 @@ break; } case 2: { - message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.decode(reader, reader.uint32()); + message.filter = reader.string(); break; } case 3: { - message.persistentResourceId = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } + case 7: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -409113,144 +415067,170 @@ }; /** - * Decodes a CreatePersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePersistentResourceRequest message. + * Verifies a ListPipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePersistentResourceRequest.verify = function verify(message) { + ListPipelineJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) { - var error = $root.google.cloud.aiplatform.v1beta1.PersistentResource.verify(message.persistentResource); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "persistentResource." + error; + return "readMask." + error; } - if (message.persistentResourceId != null && message.hasOwnProperty("persistentResourceId")) - if (!$util.isString(message.persistentResourceId)) - return "persistentResourceId: string expected"; return null; }; /** - * Creates a CreatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} CreatePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest */ - CreatePersistentResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest) + ListPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.persistentResource != null) { - if (typeof object.persistentResource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest.persistentResource: object expected"); - message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.fromObject(object.persistentResource); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.persistentResourceId != null) - message.persistentResourceId = String(object.persistentResourceId); return message; }; /** - * Creates a plain object from a CreatePersistentResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest} message CreatePersistentResourceRequest + * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} message ListPipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePersistentResourceRequest.toObject = function toObject(message, options) { + ListPipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.persistentResource = null; - object.persistentResourceId = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) - object.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.toObject(message.persistentResource, options); - if (message.persistentResourceId != null && message.hasOwnProperty("persistentResourceId")) - object.persistentResourceId = message.persistentResourceId; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreatePersistentResourceRequest to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance * @returns {Object.} JSON object */ - CreatePersistentResourceRequest.prototype.toJSON = function toJSON() { + ListPipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePersistentResourceRequest + * Gets the default type url for ListPipelineJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest"; }; - return CreatePersistentResourceRequest; + return ListPipelineJobsRequest; })(); - v1beta1.CreatePersistentResourceOperationMetadata = (function() { + v1beta1.ListPipelineJobsResponse = (function() { /** - * Properties of a CreatePersistentResourceOperationMetadata. + * Properties of a ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreatePersistentResourceOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreatePersistentResourceOperationMetadata genericMetadata + * @interface IListPipelineJobsResponse + * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs + * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken */ /** - * Constructs a new CreatePersistentResourceOperationMetadata. + * Constructs a new ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreatePersistentResourceOperationMetadata. - * @implements ICreatePersistentResourceOperationMetadata + * @classdesc Represents a ListPipelineJobsResponse. + * @implements IListPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set */ - function CreatePersistentResourceOperationMetadata(properties) { + function ListPipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -409258,75 +415238,92 @@ } /** - * CreatePersistentResourceOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * ListPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @instance */ - CreatePersistentResourceOperationMetadata.prototype.genericMetadata = null; + ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * Creates a new CreatePersistentResourceOperationMetadata instance using the specified properties. + * ListPipelineJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @instance + */ + ListPipelineJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse instance */ - CreatePersistentResourceOperationMetadata.create = function create(properties) { - return new CreatePersistentResourceOperationMetadata(properties); + ListPipelineJobsResponse.create = function create(properties) { + return new ListPipelineJobsResponse(properties); }; /** - * Encodes the specified CreatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata} message CreatePersistentResourceOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePersistentResourceOperationMetadata.encode = function encode(message, writer) { + ListPipelineJobsResponse.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.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePersistentResourceOperationMetadata} message CreatePersistentResourceOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePersistentResourceOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePersistentResourceOperationMetadata.decode = function decode(reader, length) { + ListPipelineJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -409338,127 +415335,148 @@ }; /** - * Decodes a CreatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePersistentResourceOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePersistentResourceOperationMetadata message. + * Verifies a ListPipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePersistentResourceOperationMetadata.verify = function verify(message) { + ListPipelineJobsResponse.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.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} CreatePersistentResourceOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse */ - CreatePersistentResourceOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata) + ListPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreatePersistentResourceOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata} message CreatePersistentResourceOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} message ListPipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePersistentResourceOperationMetadata.toObject = function toObject(message, options) { + ListPipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pipelineJobs = []; 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.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreatePersistentResourceOperationMetadata to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @instance * @returns {Object.} JSON object */ - CreatePersistentResourceOperationMetadata.prototype.toJSON = function toJSON() { + ListPipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePersistentResourceOperationMetadata + * Gets the default type url for ListPipelineJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePersistentResourceOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse"; }; - return CreatePersistentResourceOperationMetadata; + return ListPipelineJobsResponse; })(); - v1beta1.UpdatePersistentResourceOperationMetadata = (function() { + v1beta1.DeletePipelineJobRequest = (function() { /** - * Properties of an UpdatePersistentResourceOperationMetadata. + * Properties of a DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdatePersistentResourceOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdatePersistentResourceOperationMetadata genericMetadata + * @interface IDeletePipelineJobRequest + * @property {string|null} [name] DeletePipelineJobRequest name */ /** - * Constructs a new UpdatePersistentResourceOperationMetadata. + * Constructs a new DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdatePersistentResourceOperationMetadata. - * @implements IUpdatePersistentResourceOperationMetadata + * @classdesc Represents a DeletePipelineJobRequest. + * @implements IDeletePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set */ - function UpdatePersistentResourceOperationMetadata(properties) { + function DeletePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -409466,75 +415484,75 @@ } /** - * UpdatePersistentResourceOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * DeletePipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @instance */ - UpdatePersistentResourceOperationMetadata.prototype.genericMetadata = null; + DeletePipelineJobRequest.prototype.name = ""; /** - * Creates a new UpdatePersistentResourceOperationMetadata instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest instance */ - UpdatePersistentResourceOperationMetadata.create = function create(properties) { - return new UpdatePersistentResourceOperationMetadata(properties); + DeletePipelineJobRequest.create = function create(properties) { + return new DeletePipelineJobRequest(properties); }; /** - * Encodes the specified UpdatePersistentResourceOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata} message UpdatePersistentResourceOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePersistentResourceOperationMetadata.encode = function encode(message, writer) { + DeletePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdatePersistentResourceOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceOperationMetadata} message UpdatePersistentResourceOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePersistentResourceOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePersistentResourceOperationMetadata.decode = function decode(reader, length) { + DeletePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -409546,127 +415564,124 @@ }; /** - * Decodes an UpdatePersistentResourceOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePersistentResourceOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePersistentResourceOperationMetadata message. + * Verifies a DeletePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePersistentResourceOperationMetadata.verify = function verify(message) { + DeletePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdatePersistentResourceOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} UpdatePersistentResourceOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest */ - UpdatePersistentResourceOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) + DeletePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdatePersistentResourceOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} message UpdatePersistentResourceOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} message DeletePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePersistentResourceOperationMetadata.toObject = function toObject(message, options) { + DeletePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdatePersistentResourceOperationMetadata to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @instance * @returns {Object.} JSON object */ - UpdatePersistentResourceOperationMetadata.prototype.toJSON = function toJSON() { + DeletePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePersistentResourceOperationMetadata + * Gets the default type url for DeletePipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePersistentResourceOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest"; }; - return UpdatePersistentResourceOperationMetadata; + return DeletePipelineJobRequest; })(); - v1beta1.GetPersistentResourceRequest = (function() { + v1beta1.BatchDeletePipelineJobsRequest = (function() { /** - * Properties of a GetPersistentResourceRequest. + * Properties of a BatchDeletePipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetPersistentResourceRequest - * @property {string|null} [name] GetPersistentResourceRequest name + * @interface IBatchDeletePipelineJobsRequest + * @property {string|null} [parent] BatchDeletePipelineJobsRequest parent + * @property {Array.|null} [names] BatchDeletePipelineJobsRequest names */ /** - * Constructs a new GetPersistentResourceRequest. + * Constructs a new BatchDeletePipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetPersistentResourceRequest. - * @implements IGetPersistentResourceRequest + * @classdesc Represents a BatchDeletePipelineJobsRequest. + * @implements IBatchDeletePipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest=} [properties] Properties to set */ - function GetPersistentResourceRequest(properties) { + function BatchDeletePipelineJobsRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -409674,75 +415689,92 @@ } /** - * GetPersistentResourceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * BatchDeletePipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @instance */ - GetPersistentResourceRequest.prototype.name = ""; + BatchDeletePipelineJobsRequest.prototype.parent = ""; /** - * Creates a new GetPersistentResourceRequest instance using the specified properties. + * BatchDeletePipelineJobsRequest names. + * @member {Array.} names + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @instance + */ + BatchDeletePipelineJobsRequest.prototype.names = $util.emptyArray; + + /** + * Creates a new BatchDeletePipelineJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest instance */ - GetPersistentResourceRequest.create = function create(properties) { - return new GetPersistentResourceRequest(properties); + BatchDeletePipelineJobsRequest.create = function create(properties) { + return new BatchDeletePipelineJobsRequest(properties); }; /** - * Encodes the specified GetPersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. + * Encodes the specified BatchDeletePipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} message GetPersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPersistentResourceRequest.encode = function encode(message, writer) { + BatchDeletePipelineJobsRequest.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); return writer; }; /** - * Encodes the specified GetPersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest.verify|verify} messages. + * Encodes the specified BatchDeletePipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPersistentResourceRequest} message GetPersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeletePipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPersistentResourceRequest message from the specified reader or buffer. + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPersistentResourceRequest.decode = function decode(reader, length) { + BatchDeletePipelineJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; } default: @@ -409754,124 +415786,144 @@ }; /** - * Decodes a GetPersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { + BatchDeletePipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPersistentResourceRequest message. + * Verifies a BatchDeletePipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPersistentResourceRequest.verify = function verify(message) { + BatchDeletePipelineJobsRequest.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.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a GetPersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeletePipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} GetPersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest */ - GetPersistentResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest) + BatchDeletePipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } return message; }; /** - * Creates a plain object from a GetPersistentResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeletePipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest} message GetPersistentResourceRequest + * @param {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPersistentResourceRequest.toObject = function toObject(message, options) { + BatchDeletePipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.names = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } return object; }; /** - * Converts this GetPersistentResourceRequest to JSON. + * Converts this BatchDeletePipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @instance * @returns {Object.} JSON object */ - GetPersistentResourceRequest.prototype.toJSON = function toJSON() { + BatchDeletePipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPersistentResourceRequest + * Gets the default type url for BatchDeletePipelineJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchDeletePipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest"; }; - return GetPersistentResourceRequest; + return BatchDeletePipelineJobsRequest; })(); - v1beta1.ListPersistentResourcesRequest = (function() { + v1beta1.BatchDeletePipelineJobsResponse = (function() { /** - * Properties of a ListPersistentResourcesRequest. + * Properties of a BatchDeletePipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPersistentResourcesRequest - * @property {string|null} [parent] ListPersistentResourcesRequest parent - * @property {number|null} [pageSize] ListPersistentResourcesRequest pageSize - * @property {string|null} [pageToken] ListPersistentResourcesRequest pageToken + * @interface IBatchDeletePipelineJobsResponse + * @property {Array.|null} [pipelineJobs] BatchDeletePipelineJobsResponse pipelineJobs */ /** - * Constructs a new ListPersistentResourcesRequest. + * Constructs a new BatchDeletePipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPersistentResourcesRequest. - * @implements IListPersistentResourcesRequest + * @classdesc Represents a BatchDeletePipelineJobsResponse. + * @implements IBatchDeletePipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse=} [properties] Properties to set */ - function ListPersistentResourcesRequest(properties) { + function BatchDeletePipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -409879,103 +415931,78 @@ } /** - * ListPersistentResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest - * @instance - */ - ListPersistentResourcesRequest.prototype.parent = ""; - - /** - * ListPersistentResourcesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest - * @instance - */ - ListPersistentResourcesRequest.prototype.pageSize = 0; - - /** - * ListPersistentResourcesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * BatchDeletePipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @instance */ - ListPersistentResourcesRequest.prototype.pageToken = ""; + BatchDeletePipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * Creates a new ListPersistentResourcesRequest instance using the specified properties. + * Creates a new BatchDeletePipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse instance */ - ListPersistentResourcesRequest.create = function create(properties) { - return new ListPersistentResourcesRequest(properties); + BatchDeletePipelineJobsResponse.create = function create(properties) { + return new BatchDeletePipelineJobsResponse(properties); }; /** - * Encodes the specified ListPersistentResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. + * Encodes the specified BatchDeletePipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} message ListPersistentResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPersistentResourcesRequest.encode = function encode(message, writer) { + BatchDeletePipelineJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 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.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListPersistentResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.verify|verify} messages. + * Encodes the specified BatchDeletePipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesRequest} message ListPersistentResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPersistentResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeletePipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer. + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPersistentResourcesRequest.decode = function decode(reader, length) { + BatchDeletePipelineJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); break; } default: @@ -409987,141 +416014,139 @@ }; /** - * Decodes a ListPersistentResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPersistentResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + BatchDeletePipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPersistentResourcesRequest message. + * Verifies a BatchDeletePipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPersistentResourcesRequest.verify = function verify(message) { + BatchDeletePipelineJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } + } return null; }; /** - * Creates a ListPersistentResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeletePipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} ListPersistentResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse */ - ListPersistentResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest) + BatchDeletePipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); + } + } return message; }; /** - * Creates a plain object from a ListPersistentResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeletePipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest} message ListPersistentResourcesRequest + * @param {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPersistentResourcesRequest.toObject = function toObject(message, options) { + BatchDeletePipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.pipelineJobs = []; + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this ListPersistentResourcesRequest to JSON. + * Converts this BatchDeletePipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @instance * @returns {Object.} JSON object */ - ListPersistentResourcesRequest.prototype.toJSON = function toJSON() { + BatchDeletePipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPersistentResourcesRequest + * Gets the default type url for BatchDeletePipelineJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPersistentResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchDeletePipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse"; }; - return ListPersistentResourcesRequest; + return BatchDeletePipelineJobsResponse; })(); - v1beta1.ListPersistentResourcesResponse = (function() { + v1beta1.CancelPipelineJobRequest = (function() { /** - * Properties of a ListPersistentResourcesResponse. + * Properties of a CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPersistentResourcesResponse - * @property {Array.|null} [persistentResources] ListPersistentResourcesResponse persistentResources - * @property {string|null} [nextPageToken] ListPersistentResourcesResponse nextPageToken + * @interface ICancelPipelineJobRequest + * @property {string|null} [name] CancelPipelineJobRequest name */ /** - * Constructs a new ListPersistentResourcesResponse. + * Constructs a new CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPersistentResourcesResponse. - * @implements IListPersistentResourcesResponse + * @classdesc Represents a CancelPipelineJobRequest. + * @implements ICancelPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set */ - function ListPersistentResourcesResponse(properties) { - this.persistentResources = []; + function CancelPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -410129,92 +416154,75 @@ } /** - * ListPersistentResourcesResponse persistentResources. - * @member {Array.} persistentResources - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse - * @instance - */ - ListPersistentResourcesResponse.prototype.persistentResources = $util.emptyArray; - - /** - * ListPersistentResourcesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * CancelPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @instance */ - ListPersistentResourcesResponse.prototype.nextPageToken = ""; + CancelPipelineJobRequest.prototype.name = ""; /** - * Creates a new ListPersistentResourcesResponse instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest instance */ - ListPersistentResourcesResponse.create = function create(properties) { - return new ListPersistentResourcesResponse(properties); + CancelPipelineJobRequest.create = function create(properties) { + return new CancelPipelineJobRequest(properties); }; /** - * Encodes the specified ListPersistentResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse} message ListPersistentResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPersistentResourcesResponse.encode = function encode(message, writer) { + CancelPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.persistentResources != null && message.persistentResources.length) - for (var i = 0; i < message.persistentResources.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PersistentResource.encode(message.persistentResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListPersistentResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPersistentResourcesResponse} message ListPersistentResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPersistentResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPersistentResourcesResponse.decode = function decode(reader, length) { + CancelPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.persistentResources && message.persistentResources.length)) - message.persistentResources = []; - message.persistentResources.push($root.google.cloud.aiplatform.v1beta1.PersistentResource.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -410226,148 +416234,124 @@ }; /** - * Decodes a ListPersistentResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPersistentResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPersistentResourcesResponse message. + * Verifies a CancelPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPersistentResourcesResponse.verify = function verify(message) { + CancelPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.persistentResources != null && message.hasOwnProperty("persistentResources")) { - if (!Array.isArray(message.persistentResources)) - return "persistentResources: array expected"; - for (var i = 0; i < message.persistentResources.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PersistentResource.verify(message.persistentResources[i]); - if (error) - return "persistentResources." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListPersistentResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} ListPersistentResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest */ - ListPersistentResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse) + CancelPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse(); - if (object.persistentResources) { - if (!Array.isArray(object.persistentResources)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.persistentResources: array expected"); - message.persistentResources = []; - for (var i = 0; i < object.persistentResources.length; ++i) { - if (typeof object.persistentResources[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse.persistentResources: object expected"); - message.persistentResources[i] = $root.google.cloud.aiplatform.v1beta1.PersistentResource.fromObject(object.persistentResources[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListPersistentResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse} message ListPersistentResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} message CancelPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPersistentResourcesResponse.toObject = function toObject(message, options) { + CancelPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.persistentResources = []; if (options.defaults) - object.nextPageToken = ""; - if (message.persistentResources && message.persistentResources.length) { - object.persistentResources = []; - for (var j = 0; j < message.persistentResources.length; ++j) - object.persistentResources[j] = $root.google.cloud.aiplatform.v1beta1.PersistentResource.toObject(message.persistentResources[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListPersistentResourcesResponse to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @instance * @returns {Object.} JSON object */ - ListPersistentResourcesResponse.prototype.toJSON = function toJSON() { + CancelPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPersistentResourcesResponse + * Gets the default type url for CancelPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPersistentResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest"; }; - return ListPersistentResourcesResponse; + return CancelPipelineJobRequest; })(); - v1beta1.DeletePersistentResourceRequest = (function() { + v1beta1.BatchCancelPipelineJobsRequest = (function() { /** - * Properties of a DeletePersistentResourceRequest. + * Properties of a BatchCancelPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeletePersistentResourceRequest - * @property {string|null} [name] DeletePersistentResourceRequest name + * @interface IBatchCancelPipelineJobsRequest + * @property {string|null} [parent] BatchCancelPipelineJobsRequest parent + * @property {Array.|null} [names] BatchCancelPipelineJobsRequest names */ /** - * Constructs a new DeletePersistentResourceRequest. + * Constructs a new BatchCancelPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeletePersistentResourceRequest. - * @implements IDeletePersistentResourceRequest + * @classdesc Represents a BatchCancelPipelineJobsRequest. + * @implements IBatchCancelPipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest=} [properties] Properties to set */ - function DeletePersistentResourceRequest(properties) { + function BatchCancelPipelineJobsRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -410375,75 +416359,92 @@ } /** - * DeletePersistentResourceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * BatchCancelPipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @instance */ - DeletePersistentResourceRequest.prototype.name = ""; + BatchCancelPipelineJobsRequest.prototype.parent = ""; /** - * Creates a new DeletePersistentResourceRequest instance using the specified properties. + * BatchCancelPipelineJobsRequest names. + * @member {Array.} names + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest + * @instance + */ + BatchCancelPipelineJobsRequest.prototype.names = $util.emptyArray; + + /** + * Creates a new BatchCancelPipelineJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest} BatchCancelPipelineJobsRequest instance */ - DeletePersistentResourceRequest.create = function create(properties) { - return new DeletePersistentResourceRequest(properties); + BatchCancelPipelineJobsRequest.create = function create(properties) { + return new BatchCancelPipelineJobsRequest(properties); }; /** - * Encodes the specified DeletePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. + * Encodes the specified BatchCancelPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} message DeletePersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest} message BatchCancelPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePersistentResourceRequest.encode = function encode(message, writer) { + BatchCancelPipelineJobsRequest.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); return writer; }; /** - * Encodes the specified DeletePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest.verify|verify} messages. + * Encodes the specified BatchCancelPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePersistentResourceRequest} message DeletePersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest} message BatchCancelPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCancelPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer. + * Decodes a BatchCancelPipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest} BatchCancelPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePersistentResourceRequest.decode = function decode(reader, length) { + BatchCancelPipelineJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; } default: @@ -410455,123 +416456,144 @@ }; /** - * Decodes a DeletePersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCancelPipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest} BatchCancelPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCancelPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePersistentResourceRequest message. + * Verifies a BatchCancelPipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePersistentResourceRequest.verify = function verify(message) { + BatchCancelPipelineJobsRequest.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.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a DeletePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCancelPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} DeletePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest} BatchCancelPipelineJobsRequest */ - DeletePersistentResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest) + BatchCancelPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } return message; }; /** - * Creates a plain object from a DeletePersistentResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCancelPipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest} message DeletePersistentResourceRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest} message BatchCancelPipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePersistentResourceRequest.toObject = function toObject(message, options) { + BatchCancelPipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.names = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } return object; }; /** - * Converts this DeletePersistentResourceRequest to JSON. + * Converts this BatchCancelPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @instance * @returns {Object.} JSON object */ - DeletePersistentResourceRequest.prototype.toJSON = function toJSON() { + BatchCancelPipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePersistentResourceRequest + * Gets the default type url for BatchCancelPipelineJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchCancelPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest"; }; - return DeletePersistentResourceRequest; + return BatchCancelPipelineJobsRequest; })(); - v1beta1.UpdatePersistentResourceRequest = (function() { + v1beta1.BatchCancelPipelineJobsResponse = (function() { /** - * Properties of an UpdatePersistentResourceRequest. + * Properties of a BatchCancelPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdatePersistentResourceRequest - * @property {google.cloud.aiplatform.v1beta1.IPersistentResource|null} [persistentResource] UpdatePersistentResourceRequest persistentResource - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePersistentResourceRequest updateMask + * @interface IBatchCancelPipelineJobsResponse + * @property {Array.|null} [pipelineJobs] BatchCancelPipelineJobsResponse pipelineJobs */ /** - * Constructs a new UpdatePersistentResourceRequest. + * Constructs a new BatchCancelPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdatePersistentResourceRequest. - * @implements IUpdatePersistentResourceRequest + * @classdesc Represents a BatchCancelPipelineJobsResponse. + * @implements IBatchCancelPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse=} [properties] Properties to set */ - function UpdatePersistentResourceRequest(properties) { + function BatchCancelPipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -410579,89 +416601,78 @@ } /** - * UpdatePersistentResourceRequest persistentResource. - * @member {google.cloud.aiplatform.v1beta1.IPersistentResource|null|undefined} persistentResource - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest - * @instance - */ - UpdatePersistentResourceRequest.prototype.persistentResource = null; - - /** - * UpdatePersistentResourceRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * BatchCancelPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @instance */ - UpdatePersistentResourceRequest.prototype.updateMask = null; + BatchCancelPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * Creates a new UpdatePersistentResourceRequest instance using the specified properties. + * Creates a new BatchCancelPipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse} BatchCancelPipelineJobsResponse instance */ - UpdatePersistentResourceRequest.create = function create(properties) { - return new UpdatePersistentResourceRequest(properties); + BatchCancelPipelineJobsResponse.create = function create(properties) { + return new BatchCancelPipelineJobsResponse(properties); }; /** - * Encodes the specified UpdatePersistentResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. + * Encodes the specified BatchCancelPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} message UpdatePersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse} message BatchCancelPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePersistentResourceRequest.encode = function encode(message, writer) { + BatchCancelPipelineJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.persistentResource != null && Object.hasOwnProperty.call(message, "persistentResource")) - $root.google.cloud.aiplatform.v1beta1.PersistentResource.encode(message.persistentResource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdatePersistentResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.verify|verify} messages. + * Encodes the specified BatchCancelPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdatePersistentResourceRequest} message UpdatePersistentResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse} message BatchCancelPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePersistentResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCancelPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer. + * Decodes a BatchCancelPipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse} BatchCancelPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePersistentResourceRequest.decode = function decode(reader, length) { + BatchCancelPipelineJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); break; } default: @@ -410673,177 +416684,156 @@ }; /** - * Decodes an UpdatePersistentResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCancelPipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse} BatchCancelPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePersistentResourceRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCancelPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePersistentResourceRequest message. + * Verifies a BatchCancelPipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePersistentResourceRequest.verify = function verify(message) { + BatchCancelPipelineJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) { - var error = $root.google.cloud.aiplatform.v1beta1.PersistentResource.verify(message.persistentResource); - if (error) - return "persistentResource." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } } return null; }; /** - * Creates an UpdatePersistentResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCancelPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} UpdatePersistentResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse} BatchCancelPipelineJobsResponse */ - UpdatePersistentResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) + BatchCancelPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest(); - if (object.persistentResource != null) { - if (typeof object.persistentResource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.persistentResource: object expected"); - message.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.fromObject(object.persistentResource); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); + } } return message; }; /** - * Creates a plain object from an UpdatePersistentResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCancelPipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} message UpdatePersistentResourceRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse} message BatchCancelPipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePersistentResourceRequest.toObject = function toObject(message, options) { + BatchCancelPipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.persistentResource = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.pipelineJobs = []; + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); } - if (message.persistentResource != null && message.hasOwnProperty("persistentResource")) - object.persistentResource = $root.google.cloud.aiplatform.v1beta1.PersistentResource.toObject(message.persistentResource, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdatePersistentResourceRequest to JSON. + * Converts this BatchCancelPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @instance * @returns {Object.} JSON object */ - UpdatePersistentResourceRequest.prototype.toJSON = function toJSON() { + BatchCancelPipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePersistentResourceRequest + * Gets the default type url for BatchCancelPipelineJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePersistentResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchCancelPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse"; }; - return UpdatePersistentResourceRequest; - })(); - - /** - * PipelineFailurePolicy enum. - * @name google.cloud.aiplatform.v1beta1.PipelineFailurePolicy - * @enum {number} - * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value - */ - v1beta1.PipelineFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; - values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; - return values; + return BatchCancelPipelineJobsResponse; })(); - v1beta1.PipelineJob = (function() { + v1beta1.TrainingPipeline = (function() { /** - * Properties of a PipelineJob. + * Properties of a TrainingPipeline. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineJob - * @property {string|null} [name] PipelineJob name - * @property {string|null} [displayName] PipelineJob displayName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime - * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec - * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] PipelineJob state - * @property {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail - * @property {google.rpc.IStatus|null} [error] PipelineJob error - * @property {Object.|null} [labels] PipelineJob labels - * @property {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec - * @property {string|null} [serviceAccount] PipelineJob serviceAccount - * @property {string|null} [network] PipelineJob network - * @property {Array.|null} [reservedIpRanges] PipelineJob reservedIpRanges - * @property {string|null} [templateUri] PipelineJob templateUri - * @property {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata - * @property {string|null} [scheduleName] PipelineJob scheduleName + * @interface ITrainingPipeline + * @property {string|null} [name] TrainingPipeline name + * @property {string|null} [displayName] TrainingPipeline displayName + * @property {google.cloud.aiplatform.v1beta1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig + * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition + * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs + * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata + * @property {google.cloud.aiplatform.v1beta1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload + * @property {string|null} [modelId] TrainingPipeline modelId + * @property {string|null} [parentModel] TrainingPipeline parentModel + * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] TrainingPipeline state + * @property {google.rpc.IStatus|null} [error] TrainingPipeline error + * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime + * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime + * @property {Object.|null} [labels] TrainingPipeline labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec */ /** - * Constructs a new PipelineJob. + * Constructs a new TrainingPipeline. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineJob. - * @implements IPipelineJob + * @classdesc Represents a TrainingPipeline. + * @implements ITrainingPipeline * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set */ - function PipelineJob(properties) { + function TrainingPipeline(properties) { this.labels = {}; - this.reservedIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -410851,252 +416841,231 @@ } /** - * PipelineJob name. + * TrainingPipeline name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.name = ""; + TrainingPipeline.prototype.name = ""; /** - * PipelineJob displayName. + * TrainingPipeline displayName. * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @instance - */ - PipelineJob.prototype.displayName = ""; - - /** - * PipelineJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @instance - */ - PipelineJob.prototype.createTime = null; - - /** - * PipelineJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.startTime = null; + TrainingPipeline.prototype.displayName = ""; /** - * PipelineJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline inputDataConfig. + * @member {google.cloud.aiplatform.v1beta1.IInputDataConfig|null|undefined} inputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.endTime = null; + TrainingPipeline.prototype.inputDataConfig = null; /** - * PipelineJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline trainingTaskDefinition. + * @member {string} trainingTaskDefinition + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.updateTime = null; + TrainingPipeline.prototype.trainingTaskDefinition = ""; /** - * PipelineJob pipelineSpec. - * @member {google.protobuf.IStruct|null|undefined} pipelineSpec - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline trainingTaskInputs. + * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.pipelineSpec = null; + TrainingPipeline.prototype.trainingTaskInputs = null; /** - * PipelineJob state. - * @member {google.cloud.aiplatform.v1beta1.PipelineState} state - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline trainingTaskMetadata. + * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.state = 0; + TrainingPipeline.prototype.trainingTaskMetadata = null; /** - * PipelineJob jobDetail. - * @member {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null|undefined} jobDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline modelToUpload. + * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} modelToUpload + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.jobDetail = null; + TrainingPipeline.prototype.modelToUpload = null; /** - * PipelineJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.error = null; + TrainingPipeline.prototype.modelId = ""; /** - * PipelineJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.labels = $util.emptyObject; + TrainingPipeline.prototype.parentModel = ""; /** - * PipelineJob runtimeConfig. - * @member {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline state. + * @member {google.cloud.aiplatform.v1beta1.PipelineState} state + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.runtimeConfig = null; + TrainingPipeline.prototype.state = 0; /** - * PipelineJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.encryptionSpec = null; + TrainingPipeline.prototype.error = null; /** - * PipelineJob serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.serviceAccount = ""; + TrainingPipeline.prototype.createTime = null; /** - * PipelineJob network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.network = ""; + TrainingPipeline.prototype.startTime = null; /** - * PipelineJob reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.reservedIpRanges = $util.emptyArray; + TrainingPipeline.prototype.endTime = null; /** - * PipelineJob templateUri. - * @member {string} templateUri - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.templateUri = ""; + TrainingPipeline.prototype.updateTime = null; /** - * PipelineJob templateMetadata. - * @member {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata|null|undefined} templateMetadata - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.templateMetadata = null; + TrainingPipeline.prototype.labels = $util.emptyObject; /** - * PipelineJob scheduleName. - * @member {string} scheduleName - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * TrainingPipeline encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - PipelineJob.prototype.scheduleName = ""; + TrainingPipeline.prototype.encryptionSpec = null; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new TrainingPipeline instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob instance + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline instance */ - PipelineJob.create = function create(properties) { - return new PipelineJob(properties); + TrainingPipeline.create = function create(properties) { + return new TrainingPipeline(properties); }; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encode = function encode(message, writer) { + TrainingPipeline.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) + $root.google.cloud.aiplatform.v1beta1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); + if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) + $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) + $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) - $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); - if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); - if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) - $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.scheduleName != null && Object.hasOwnProperty.call(message, "scheduleName")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.scheduleName); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 25, wireType 2 =*/202).string(message.reservedIpRanges[i]); + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { + TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decode = function decode(reader, length) { + TrainingPipeline.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -411109,38 +417078,58 @@ break; } case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.decode(reader, reader.uint32()); break; } case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.trainingTaskDefinition = reader.string(); break; } case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 7: { - message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); + break; + } + case 22: { + message.modelId = reader.string(); + break; + } + case 21: { + message.parentModel = reader.string(); + break; + } + case 9: { + message.state = reader.int32(); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 8: { - message.state = reader.int32(); + case 12: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 9: { - message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.decode(reader, reader.uint32()); + case 13: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + case 14: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 11: { + case 15: { if (message.labels === $util.emptyObject) message.labels = {}; var end2 = reader.uint32() + reader.pos; @@ -411163,38 +417152,8 @@ message.labels[key] = value; break; } - case 12: { - message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); - break; - } - case 16: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 17: { - message.serviceAccount = reader.string(); - break; - } case 18: { - message.network = reader.string(); - break; - } - case 25: { - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - } - case 19: { - message.templateUri = reader.string(); - break; - } - case 20: { - message.templateMetadata = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.decode(reader, reader.uint32()); - break; - } - case 22: { - message.scheduleName = reader.string(); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } default: @@ -411206,30 +417165,30 @@ }; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decodeDelimited = function decodeDelimited(reader) { + TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJob message. + * Verifies a TrainingPipeline message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.verify = function verify(message) { + TrainingPipeline.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -411238,31 +417197,35 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.verify(message.inputDataConfig); if (error) - return "startTime." + error; + return "inputDataConfig." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + if (!$util.isString(message.trainingTaskDefinition)) + return "trainingTaskDefinition: string expected"; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); if (error) - return "endTime." + error; + return "trainingTaskInputs." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); if (error) - return "updateTime." + error; + return "trainingTaskMetadata." + error; } - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { - var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.modelToUpload); if (error) - return "pipelineSpec." + error; + return "modelToUpload." + error; } + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -411278,16 +417241,31 @@ case 8: break; } - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify(message.jobDetail); - if (error) - return "jobDetail." + error; - } if (message.error != null && message.hasOwnProperty("error")) { var error = $root.google.rpc.Status.verify(message.error); if (error) return "error." + error; } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } if (message.labels != null && message.hasOwnProperty("labels")) { if (!$util.isObject(message.labels)) return "labels: object expected"; @@ -411296,84 +417274,56 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); - if (error) - return "runtimeConfig." + error; - } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); if (error) return "encryptionSpec." + error; } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; - } - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - if (!$util.isString(message.templateUri)) - return "templateUri: string expected"; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify(message.templateMetadata); - if (error) - return "templateMetadata." + error; - } - if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) - if (!$util.isString(message.scheduleName)) - return "scheduleName: string expected"; return null; }; /** - * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline */ - PipelineJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob) + TrainingPipeline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingPipeline) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(); + var message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + if (object.inputDataConfig != null) { + if (typeof object.inputDataConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.inputDataConfig: object expected"); + message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.fromObject(object.inputDataConfig); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.trainingTaskDefinition != null) + message.trainingTaskDefinition = String(object.trainingTaskDefinition); + if (object.trainingTaskInputs != null) { + if (typeof object.trainingTaskInputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskInputs: object expected"); + message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.trainingTaskMetadata != null) { + if (typeof object.trainingTaskMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskMetadata: object expected"); + message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); } - if (object.pipelineSpec != null) { - if (typeof object.pipelineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.pipelineSpec: object expected"); - message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + if (object.modelToUpload != null) { + if (typeof object.modelToUpload !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.modelToUpload: object expected"); + message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.modelToUpload); } + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); switch (object.state) { default: if (typeof object.state === "number") { @@ -411418,854 +417368,178 @@ message.state = 8; break; } - if (object.jobDetail != null) { - if (typeof object.jobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.jobDetail: object expected"); - message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.fromObject(object.jobDetail); - } if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.error: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.error: object expected"); message.error = $root.google.rpc.Status.fromObject(object.error); } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } if (object.labels) { if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.labels: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.labels: object expected"); message.labels = {}; for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } - if (object.runtimeConfig != null) { - if (typeof object.runtimeConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.runtimeConfig: object expected"); - message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); - } if (object.encryptionSpec != null) { if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.encryptionSpec: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.network != null) - message.network = String(object.network); - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); - } - if (object.templateUri != null) - message.templateUri = String(object.templateUri); - if (object.templateMetadata != null) { - if (typeof object.templateMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.templateMetadata: object expected"); - message.templateMetadata = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.fromObject(object.templateMetadata); - } - if (object.scheduleName != null) - message.scheduleName = String(object.scheduleName); return message; }; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob} message PipelineJob + * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} message TrainingPipeline * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJob.toObject = function toObject(message, options) { + TrainingPipeline.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.reservedIpRanges = []; if (options.objects || options.defaults) object.labels = {}; if (options.defaults) { object.name = ""; object.displayName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.pipelineSpec = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.jobDetail = null; - object.error = null; - object.runtimeConfig = null; - object.encryptionSpec = null; - object.serviceAccount = ""; - object.network = ""; - object.templateUri = ""; - object.templateMetadata = null; - object.scheduleName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) - object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) - object.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.toObject(message.jobDetail, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) - object.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - object.templateUri = message.templateUri; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) - object.templateMetadata = $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); - if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) - object.scheduleName = message.scheduleName; - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; - } - return object; - }; - - /** - * Converts this PipelineJob to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @instance - * @returns {Object.} JSON object - */ - PipelineJob.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PipelineJob - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob"; - }; - - PipelineJob.RuntimeConfig = (function() { - - /** - * Properties of a RuntimeConfig. - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @interface IRuntimeConfig - * @property {Object.|null} [parameters] RuntimeConfig parameters - * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory - * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues - * @property {google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy - * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts - */ - - /** - * Constructs a new RuntimeConfig. - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @classdesc Represents a RuntimeConfig. - * @implements IRuntimeConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - */ - function RuntimeConfig(properties) { - this.parameters = {}; - this.parameterValues = {}; - this.inputArtifacts = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RuntimeConfig parameters. - * @member {Object.} parameters - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameters = $util.emptyObject; - - /** - * RuntimeConfig gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.gcsOutputDirectory = ""; - - /** - * RuntimeConfig parameterValues. - * @member {Object.} parameterValues - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameterValues = $util.emptyObject; - - /** - * RuntimeConfig failurePolicy. - * @member {google.cloud.aiplatform.v1beta1.PipelineFailurePolicy} failurePolicy - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.failurePolicy = 0; - - /** - * RuntimeConfig inputArtifacts. - * @member {Object.} inputArtifacts - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig instance - */ - RuntimeConfig.create = function create(properties) { - return new RuntimeConfig(properties); - }; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); - if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) - for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); - if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) - for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - } - case 2: { - message.gcsOutputDirectory = reader.string(); - break; - } - case 3: { - if (message.parameterValues === $util.emptyObject) - message.parameterValues = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameterValues[key] = value; - break; - } - case 4: { - message.failurePolicy = reader.int32(); - break; - } - case 5: { - if (message.inputArtifacts === $util.emptyObject) - message.inputArtifacts = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputArtifacts[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RuntimeConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; - if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { - if (!$util.isObject(message.parameterValues)) - return "parameterValues: object expected"; - var key = Object.keys(message.parameterValues); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); - if (error) - return "parameterValues." + error; - } - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - switch (message.failurePolicy) { - default: - return "failurePolicy: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { - if (!$util.isObject(message.inputArtifacts)) - return "inputArtifacts: object expected"; - var key = Object.keys(message.inputArtifacts); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); - if (error) - return "inputArtifacts." + error; - } - } - return null; - }; - - /** - * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig - */ - RuntimeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Value.fromObject(object.parameters[keys[i]]); - } - } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); - if (object.parameterValues) { - if (typeof object.parameterValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues = {}; - for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { - if (typeof object.parameterValues[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); - } - } - switch (object.failurePolicy) { - default: - if (typeof object.failurePolicy === "number") { - message.failurePolicy = object.failurePolicy; - break; - } - break; - case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": - case 0: - message.failurePolicy = 0; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": - case 1: - message.failurePolicy = 1; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_FAST": - case 2: - message.failurePolicy = 2; - break; - } - if (object.inputArtifacts) { - if (typeof object.inputArtifacts !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts = {}; - for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { - if (typeof object.inputArtifacts[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} message RuntimeConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RuntimeConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.parameters = {}; - object.parameterValues = {}; - object.inputArtifacts = {}; - } - if (options.defaults) { - object.gcsOutputDirectory = ""; - object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; - } - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.Value.toObject(message.parameters[keys2[j]], options); - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - object.gcsOutputDirectory = message.gcsOutputDirectory; - if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { - object.parameterValues = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; - if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { - object.inputArtifacts = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); - } - return object; - }; - - /** - * Converts this RuntimeConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - * @returns {Object.} JSON object - */ - RuntimeConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RuntimeConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig"; - }; - - RuntimeConfig.InputArtifact = (function() { - - /** - * Properties of an InputArtifact. - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @interface IInputArtifact - * @property {string|null} [artifactId] InputArtifact artifactId - */ - - /** - * Constructs a new InputArtifact. - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @classdesc Represents an InputArtifact. - * @implements IInputArtifact - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - */ - function InputArtifact(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputArtifact artifactId. - * @member {string|null|undefined} artifactId - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - InputArtifact.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputArtifact kind. - * @member {"artifactId"|undefined} kind - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - Object.defineProperty(InputArtifact.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InputArtifact instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance - */ - InputArtifact.create = function create(properties) { - return new InputArtifact(properties); - }; - - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); - return writer; - }; - - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.artifactId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputArtifact message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputArtifact.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - properties.kind = 1; - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - } - return null; - }; - - /** - * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - */ - InputArtifact.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); - if (object.artifactId != null) - message.artifactId = String(object.artifactId); - return message; - }; - - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputArtifact.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - object.artifactId = message.artifactId; - if (options.oneofs) - object.kind = "artifactId"; - } - return object; - }; - - /** - * Converts this InputArtifact to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - * @returns {Object.} JSON object - */ - InputArtifact.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InputArtifact - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact"; - }; + object.inputDataConfig = null; + object.trainingTaskDefinition = ""; + object.trainingTaskInputs = null; + object.trainingTaskMetadata = null; + object.modelToUpload = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.error = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.parentModel = ""; + object.modelId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) + object.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.toObject(message.inputDataConfig, options); + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + object.trainingTaskDefinition = message.trainingTaskDefinition; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) + object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) + object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) + object.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.modelToUpload, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; + return object; + }; - return InputArtifact; - })(); + /** + * Converts this TrainingPipeline to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + * @returns {Object.} JSON object + */ + TrainingPipeline.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return RuntimeConfig; - })(); + /** + * Gets the default type url for TrainingPipeline + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.TrainingPipeline"; + }; - return PipelineJob; + return TrainingPipeline; })(); - v1beta1.PipelineTemplateMetadata = (function() { + v1beta1.InputDataConfig = (function() { /** - * Properties of a PipelineTemplateMetadata. + * Properties of an InputDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineTemplateMetadata - * @property {string|null} [version] PipelineTemplateMetadata version + * @interface IInputDataConfig + * @property {google.cloud.aiplatform.v1beta1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit + * @property {google.cloud.aiplatform.v1beta1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit + * @property {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit + * @property {google.cloud.aiplatform.v1beta1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit + * @property {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination + * @property {string|null} [datasetId] InputDataConfig datasetId + * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter + * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @property {string|null} [savedQueryId] InputDataConfig savedQueryId + * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment */ /** - * Constructs a new PipelineTemplateMetadata. + * Constructs a new InputDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineTemplateMetadata. - * @implements IPipelineTemplateMetadata + * @classdesc Represents an InputDataConfig. + * @implements IInputDataConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set */ - function PipelineTemplateMetadata(properties) { + function InputDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -412273,75 +417547,254 @@ } /** - * PipelineTemplateMetadata version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * InputDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1beta1.IFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @instance */ - PipelineTemplateMetadata.prototype.version = ""; + InputDataConfig.prototype.fractionSplit = null; /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. + * InputDataConfig filterSplit. + * @member {google.cloud.aiplatform.v1beta1.IFilterSplit|null|undefined} filterSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.filterSplit = null; + + /** + * InputDataConfig predefinedSplit. + * @member {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null|undefined} predefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.predefinedSplit = null; + + /** + * InputDataConfig timestampSplit. + * @member {google.cloud.aiplatform.v1beta1.ITimestampSplit|null|undefined} timestampSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.timestampSplit = null; + + /** + * InputDataConfig stratifiedSplit. + * @member {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null|undefined} stratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.stratifiedSplit = null; + + /** + * InputDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.gcsDestination = null; + + /** + * InputDataConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.bigqueryDestination = null; + + /** + * InputDataConfig datasetId. + * @member {string} datasetId + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.datasetId = ""; + + /** + * InputDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationsFilter = ""; + + /** + * InputDataConfig annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationSchemaUri = ""; + + /** + * InputDataConfig savedQueryId. + * @member {string} savedQueryId + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.savedQueryId = ""; + + /** + * InputDataConfig persistMlUseAssignment. + * @member {boolean} persistMlUseAssignment + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.persistMlUseAssignment = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputDataConfig split. + * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InputDataConfig destination. + * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig instance */ - PipelineTemplateMetadata.create = function create(properties) { - return new PipelineTemplateMetadata(properties); + InputDataConfig.create = function create(properties) { + return new InputDataConfig(properties); }; /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTemplateMetadata.encode = function encode(message, writer) { + InputDataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1beta1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) + $root.google.cloud.aiplatform.v1beta1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) + $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) + $root.google.cloud.aiplatform.v1beta1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); + if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); + if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); + if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) + $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.verify|verify} messages. + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { + InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decode = function decode(reader, length) { + InputDataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 2: { + message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.decode(reader, reader.uint32()); + break; + } case 3: { - message.version = reader.string(); + message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.decode(reader, reader.uint32()); + break; + } + case 4: { + message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.decode(reader, reader.uint32()); + break; + } + case 5: { + message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.decode(reader, reader.uint32()); + break; + } + case 12: { + message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.decode(reader, reader.uint32()); + break; + } + case 8: { + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 10: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.datasetId = reader.string(); + break; + } + case 6: { + message.annotationsFilter = reader.string(); + break; + } + case 9: { + message.annotationSchemaUri = reader.string(); + break; + } + case 7: { + message.savedQueryId = reader.string(); + break; + } + case 11: { + message.persistMlUseAssignment = reader.bool(); break; } default: @@ -412353,125 +417806,294 @@ }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + InputDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies an InputDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTemplateMetadata.verify = function verify(message) { + InputDataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + var properties = {}; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.FractionSplit.verify(message.fractionSplit); + if (error) + return "fractionSplit." + error; + } + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.FilterSplit.verify(message.filterSplit); + if (error) + return "filterSplit." + error; + } + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.verify(message.predefinedSplit); + if (error) + return "predefinedSplit." + error; + } + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.verify(message.timestampSplit); + if (error) + return "timestampSplit." + error; + } + } + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.verify(message.stratifiedSplit); + if (error) + return "stratifiedSplit." + error; + } + } + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.gcsDestination); + if (error) + return "gcsDestination." + error; + } + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + if (!$util.isString(message.savedQueryId)) + return "savedQueryId: string expected"; + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + if (typeof message.persistMlUseAssignment !== "boolean") + return "persistMlUseAssignment: boolean expected"; return null; }; /** - * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig */ - PipelineTemplateMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) + InputDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.InputDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.fromObject(object.fractionSplit); + } + if (object.filterSplit != null) { + if (typeof object.filterSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.filterSplit: object expected"); + message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.fromObject(object.filterSplit); + } + if (object.predefinedSplit != null) { + if (typeof object.predefinedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.predefinedSplit: object expected"); + message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.fromObject(object.predefinedSplit); + } + if (object.timestampSplit != null) { + if (typeof object.timestampSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.timestampSplit: object expected"); + message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.fromObject(object.timestampSplit); + } + if (object.stratifiedSplit != null) { + if (typeof object.stratifiedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.stratifiedSplit: object expected"); + message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.fromObject(object.stratifiedSplit); + } + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); + } + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.savedQueryId != null) + message.savedQueryId = String(object.savedQueryId); + if (object.persistMlUseAssignment != null) + message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); return message; }; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {google.cloud.aiplatform.v1beta1.InputDataConfig} message InputDataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTemplateMetadata.toObject = function toObject(message, options) { + InputDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) { + object.datasetId = ""; + object.annotationsFilter = ""; + object.savedQueryId = ""; + object.annotationSchemaUri = ""; + object.persistMlUseAssignment = false; + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + object.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.toObject(message.filterSplit, options); + if (options.oneofs) + object.split = "filterSplit"; + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + object.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.toObject(message.predefinedSplit, options); + if (options.oneofs) + object.split = "predefinedSplit"; + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + object.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.toObject(message.timestampSplit, options); + if (options.oneofs) + object.split = "timestampSplit"; + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.annotationsFilter; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + object.savedQueryId = message.savedQueryId; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + object.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcsDestination, options); + if (options.oneofs) + object.destination = "gcsDestination"; + } + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (options.oneofs) + object.destination = "bigqueryDestination"; + } + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + object.persistMlUseAssignment = message.persistMlUseAssignment; + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + object.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.toObject(message.stratifiedSplit, options); + if (options.oneofs) + object.split = "stratifiedSplit"; + } return object; }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this InputDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @instance * @returns {Object.} JSON object */ - PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + InputDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for InputDataConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.InputDataConfig"; }; - return PipelineTemplateMetadata; + return InputDataConfig; })(); - v1beta1.PipelineJobDetail = (function() { + v1beta1.FractionSplit = (function() { /** - * Properties of a PipelineJobDetail. + * Properties of a FractionSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineJobDetail - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext - * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails + * @interface IFractionSplit + * @property {number|null} [trainingFraction] FractionSplit trainingFraction + * @property {number|null} [validationFraction] FractionSplit validationFraction + * @property {number|null} [testFraction] FractionSplit testFraction */ /** - * Constructs a new PipelineJobDetail. + * Constructs a new FractionSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineJobDetail. - * @implements IPipelineJobDetail + * @classdesc Represents a FractionSplit. + * @implements IFractionSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set */ - function PipelineJobDetail(properties) { - this.taskDetails = []; + function FractionSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -412479,106 +418101,103 @@ } /** - * PipelineJobDetail pipelineContext. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineContext - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * FractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @instance */ - PipelineJobDetail.prototype.pipelineContext = null; + FractionSplit.prototype.trainingFraction = 0; /** - * PipelineJobDetail pipelineRunContext. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineRunContext - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * FractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @instance */ - PipelineJobDetail.prototype.pipelineRunContext = null; + FractionSplit.prototype.validationFraction = 0; /** - * PipelineJobDetail taskDetails. - * @member {Array.} taskDetails - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * FractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @instance */ - PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + FractionSplit.prototype.testFraction = 0; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new FractionSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail instance + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit instance */ - PipelineJobDetail.create = function create(properties) { - return new PipelineJobDetail(properties); + FractionSplit.create = function create(properties) { + return new FractionSplit(properties); }; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encode = function encode(message, writer) { + FractionSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskDetails != null && message.taskDetails.length) - for (var i = 0; i < message.taskDetails.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); return writer; }; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a FractionSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decode = function decode(reader, length) { + FractionSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + message.trainingFraction = reader.double(); break; } case 2: { - message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + message.validationFraction = reader.double(); break; } case 3: { - if (!(message.taskDetails && message.taskDetails.length)) - message.taskDetails = []; - message.taskDetails.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.decode(reader, reader.uint32())); + message.testFraction = reader.double(); break; } default: @@ -412590,182 +418209,141 @@ }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { + FractionSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJobDetail message. + * Verifies a FractionSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJobDetail.verify = function verify(message) { + FractionSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineContext); - if (error) - return "pipelineContext." + error; - } - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineRunContext); - if (error) - return "pipelineRunContext." + error; - } - if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { - if (!Array.isArray(message.taskDetails)) - return "taskDetails: array expected"; - for (var i = 0; i < message.taskDetails.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify(message.taskDetails[i]); - if (error) - return "taskDetails." + error; - } - } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; return null; }; /** - * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit */ - PipelineJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail) + FractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FractionSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); - if (object.pipelineContext != null) { - if (typeof object.pipelineContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineContext: object expected"); - message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineContext); - } - if (object.pipelineRunContext != null) { - if (typeof object.pipelineRunContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineRunContext: object expected"); - message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineRunContext); - } - if (object.taskDetails) { - if (!Array.isArray(object.taskDetails)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: array expected"); - message.taskDetails = []; - for (var i = 0; i < object.taskDetails.length; ++i) { - if (typeof object.taskDetails[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: object expected"); - message.taskDetails[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.fromObject(object.taskDetails[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); return message; }; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJobDetail} message PipelineJobDetail + * @param {google.cloud.aiplatform.v1beta1.FractionSplit} message FractionSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJobDetail.toObject = function toObject(message, options) { + FractionSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.taskDetails = []; if (options.defaults) { - object.pipelineContext = null; - object.pipelineRunContext = null; - } - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) - object.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineContext, options); - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) - object.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineRunContext, options); - if (message.taskDetails && message.taskDetails.length) { - object.taskDetails = []; - for (var j = 0; j < message.taskDetails.length; ++j) - object.taskDetails[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.toObject(message.taskDetails[j], options); + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; return object; }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this FractionSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @instance * @returns {Object.} JSON object */ - PipelineJobDetail.prototype.toJSON = function toJSON() { + FractionSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for FractionSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJobDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FractionSplit"; }; - return PipelineJobDetail; + return FractionSplit; })(); - v1beta1.PipelineTaskDetail = (function() { + v1beta1.FilterSplit = (function() { /** - * Properties of a PipelineTaskDetail. + * Properties of a FilterSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineTaskDetail - * @property {number|Long|null} [taskId] PipelineTaskDetail taskId - * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId - * @property {string|null} [taskName] PipelineTaskDetail taskName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime - * @property {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state - * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] PipelineTaskDetail execution - * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error - * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus - * @property {Object.|null} [inputs] PipelineTaskDetail inputs - * @property {Object.|null} [outputs] PipelineTaskDetail outputs + * @interface IFilterSplit + * @property {string|null} [trainingFilter] FilterSplit trainingFilter + * @property {string|null} [validationFilter] FilterSplit validationFilter + * @property {string|null} [testFilter] FilterSplit testFilter */ /** - * Constructs a new PipelineTaskDetail. + * Constructs a new FilterSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineTaskDetail. - * @implements IPipelineTaskDetail + * @classdesc Represents a FilterSplit. + * @implements IFilterSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set */ - function PipelineTaskDetail(properties) { - this.pipelineTaskStatus = []; - this.inputs = {}; - this.outputs = {}; + function FilterSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -412773,290 +418351,103 @@ } /** - * PipelineTaskDetail taskId. - * @member {number|Long} taskId - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PipelineTaskDetail parentTaskId. - * @member {number|Long} parentTaskId - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PipelineTaskDetail taskName. - * @member {string} taskName - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.taskName = ""; - - /** - * PipelineTaskDetail createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.createTime = null; - - /** - * PipelineTaskDetail startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.startTime = null; - - /** - * PipelineTaskDetail endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.endTime = null; - - /** - * PipelineTaskDetail executorDetail. - * @member {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null|undefined} executorDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.executorDetail = null; - - /** - * PipelineTaskDetail state. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.state = 0; - - /** - * PipelineTaskDetail execution. - * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.execution = null; - - /** - * PipelineTaskDetail error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.error = null; - - /** - * PipelineTaskDetail pipelineTaskStatus. - * @member {Array.} pipelineTaskStatus - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * FilterSplit trainingFilter. + * @member {string} trainingFilter + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance */ - PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; + FilterSplit.prototype.trainingFilter = ""; /** - * PipelineTaskDetail inputs. - * @member {Object.} inputs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * FilterSplit validationFilter. + * @member {string} validationFilter + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance */ - PipelineTaskDetail.prototype.inputs = $util.emptyObject; + FilterSplit.prototype.validationFilter = ""; /** - * PipelineTaskDetail outputs. - * @member {Object.} outputs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * FilterSplit testFilter. + * @member {string} testFilter + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance */ - PipelineTaskDetail.prototype.outputs = $util.emptyObject; + FilterSplit.prototype.testFilter = ""; /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail instance + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit instance */ - PipelineTaskDetail.create = function create(properties) { - return new PipelineTaskDetail(properties); + FilterSplit.create = function create(properties) { + return new FilterSplit(properties); }; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encode = function encode(message, writer) { + FilterSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); - if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) - for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) - for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); - if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); + if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); + if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); return writer; }; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decode = function decode(reader, length) { + FilterSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.taskId = reader.int64(); - break; - } - case 12: { - message.parentTaskId = reader.int64(); + message.trainingFilter = reader.string(); break; } case 2: { - message.taskName = reader.string(); + message.validationFilter = reader.string(); break; } case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); - break; - } - case 7: { - message.state = reader.int32(); - break; - } - case 8: { - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); - break; - } - case 9: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 13: { - if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) - message.pipelineTaskStatus = []; - message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); - break; - } - case 10: { - if (message.inputs === $util.emptyObject) - message.inputs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputs[key] = value; - break; - } - case 11: { - if (message.outputs === $util.emptyObject) - message.outputs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.outputs[key] = value; + message.testFilter = reader.string(); break; } default: @@ -413068,967 +418459,139 @@ }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { + FilterSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskDetail message. + * Verifies a FilterSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.verify = function verify(message) { + FilterSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) - return "taskId: integer|Long expected"; - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) - return "parentTaskId: integer|Long expected"; - if (message.taskName != null && message.hasOwnProperty("taskName")) - if (!$util.isString(message.taskName)) - return "taskName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify(message.executorDetail); - if (error) - return "executorDetail." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { - if (!Array.isArray(message.pipelineTaskStatus)) - return "pipelineTaskStatus: array expected"; - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); - if (error) - return "pipelineTaskStatus." + error; - } - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!$util.isObject(message.inputs)) - return "inputs: object expected"; - var key = Object.keys(message.inputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); - if (error) - return "inputs." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!$util.isObject(message.outputs)) - return "outputs: object expected"; - var key = Object.keys(message.outputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); - if (error) - return "outputs." + error; - } - } + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + if (!$util.isString(message.trainingFilter)) + return "trainingFilter: string expected"; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + if (!$util.isString(message.validationFilter)) + return "validationFilter: string expected"; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + if (!$util.isString(message.testFilter)) + return "testFilter: string expected"; return null; }; /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit */ - PipelineTaskDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail) + FilterSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FilterSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(); - if (object.taskId != null) - if ($util.Long) - (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; - else if (typeof object.taskId === "string") - message.taskId = parseInt(object.taskId, 10); - else if (typeof object.taskId === "number") - message.taskId = object.taskId; - else if (typeof object.taskId === "object") - message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); - if (object.parentTaskId != null) - if ($util.Long) - (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; - else if (typeof object.parentTaskId === "string") - message.parentTaskId = parseInt(object.parentTaskId, 10); - else if (typeof object.parentTaskId === "number") - message.parentTaskId = object.parentTaskId; - else if (typeof object.parentTaskId === "object") - message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); - if (object.taskName != null) - message.taskName = String(object.taskName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.executorDetail != null) { - if (typeof object.executorDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.executorDetail: object expected"); - message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.pipelineTaskStatus) { - if (!Array.isArray(object.pipelineTaskStatus)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: array expected"); - message.pipelineTaskStatus = []; - for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { - if (typeof object.pipelineTaskStatus[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: object expected"); - message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); - } - } - if (object.inputs) { - if (typeof object.inputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); - message.inputs = {}; - for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { - if (typeof object.inputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); - message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); - } - } - if (object.outputs) { - if (typeof object.outputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); - message.outputs = {}; - for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { - if (typeof object.outputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); - message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); + if (object.trainingFilter != null) + message.trainingFilter = String(object.trainingFilter); + if (object.validationFilter != null) + message.validationFilter = String(object.validationFilter); + if (object.testFilter != null) + message.testFilter = String(object.testFilter); return message; }; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} message PipelineTaskDetail + * @param {google.cloud.aiplatform.v1beta1.FilterSplit} message FilterSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskDetail.toObject = function toObject(message, options) { + FilterSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pipelineTaskStatus = []; - if (options.objects || options.defaults) { - object.inputs = {}; - object.outputs = {}; - } if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskId = options.longs === String ? "0" : 0; - object.taskName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.executorDetail = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.execution = null; - object.error = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parentTaskId = options.longs === String ? "0" : 0; - } - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (typeof message.taskId === "number") - object.taskId = options.longs === String ? String(message.taskId) : message.taskId; - else - object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; - if (message.taskName != null && message.hasOwnProperty("taskName")) - object.taskName = message.taskName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) - object.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { - object.inputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); - } - if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { - object.outputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); - } - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (typeof message.parentTaskId === "number") - object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; - else - object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; - if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { - object.pipelineTaskStatus = []; - for (var j = 0; j < message.pipelineTaskStatus.length; ++j) - object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); + object.trainingFilter = ""; + object.validationFilter = ""; + object.testFilter = ""; } + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + object.trainingFilter = message.trainingFilter; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + object.validationFilter = message.validationFilter; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + object.testFilter = message.testFilter; return object; }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this FilterSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.toJSON = function toJSON() { + FilterSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PipelineTaskDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskDetail"; - }; - - PipelineTaskDetail.PipelineTaskStatus = (function() { - - /** - * Properties of a PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @interface IPipelineTaskStatus - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state - * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error - */ - - /** - * Constructs a new PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @classdesc Represents a PipelineTaskStatus. - * @implements IPipelineTaskStatus - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - */ - function PipelineTaskStatus(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PipelineTaskStatus updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.updateTime = null; - - /** - * PipelineTaskStatus state. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.state = 0; - - /** - * PipelineTaskStatus error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.error = null; - - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance - */ - PipelineTaskStatus.create = function create(properties) { - return new PipelineTaskStatus(properties); - }; - - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.state = reader.int32(); - break; - } - case 3: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PipelineTaskStatus message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PipelineTaskStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - */ - PipelineTaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - return message; - }; - - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PipelineTaskStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.error = null; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - return object; - }; - - /** - * Converts this PipelineTaskStatus to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - * @returns {Object.} JSON object - */ - PipelineTaskStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PipelineTaskStatus - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus"; - }; - - return PipelineTaskStatus; - })(); - - PipelineTaskDetail.ArtifactList = (function() { - - /** - * Properties of an ArtifactList. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @interface IArtifactList - * @property {Array.|null} [artifacts] ArtifactList artifacts - */ - - /** - * Constructs a new ArtifactList. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @classdesc Represents an ArtifactList. - * @implements IArtifactList - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - */ - function ArtifactList(properties) { - this.artifacts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactList artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @instance - */ - ArtifactList.prototype.artifacts = $util.emptyArray; - - /** - * Creates a new ArtifactList instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList instance - */ - ArtifactList.create = function create(properties) { - return new ArtifactList(properties); - }; - - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ArtifactList message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - return null; - }; - - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList - */ - ArtifactList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} message ArtifactList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArtifactList.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); - } - return object; - }; - - /** - * Converts this ArtifactList to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @instance - * @returns {Object.} JSON object - */ - ArtifactList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ArtifactList - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList"; - }; - - return ArtifactList; - })(); - - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value - * @property {number} CANCELLING=5 CANCELLING value - * @property {number} CANCELLED=6 CANCELLED value - * @property {number} FAILED=7 FAILED value - * @property {number} SKIPPED=8 SKIPPED value - * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value - */ - PipelineTaskDetail.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "CANCEL_PENDING"] = 4; - values[valuesById[5] = "CANCELLING"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - values[valuesById[7] = "FAILED"] = 7; - values[valuesById[8] = "SKIPPED"] = 8; - values[valuesById[9] = "NOT_TRIGGERED"] = 9; - return values; - })(); + }; - return PipelineTaskDetail; + /** + * Gets the default type url for FilterSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FilterSplit"; + }; + + return FilterSplit; })(); - v1beta1.PipelineTaskExecutorDetail = (function() { + v1beta1.PredefinedSplit = (function() { /** - * Properties of a PipelineTaskExecutorDetail. + * Properties of a PredefinedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineTaskExecutorDetail - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail + * @interface IPredefinedSplit + * @property {string|null} [key] PredefinedSplit key */ /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new PredefinedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineTaskExecutorDetail. - * @implements IPipelineTaskExecutorDetail + * @classdesc Represents a PredefinedSplit. + * @implements IPredefinedSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set */ - function PipelineTaskExecutorDetail(properties) { + function PredefinedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -414036,103 +418599,75 @@ } /** - * PipelineTaskExecutorDetail containerDetail. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @instance - */ - PipelineTaskExecutorDetail.prototype.containerDetail = null; - - /** - * PipelineTaskExecutorDetail customJobDetail. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @instance - */ - PipelineTaskExecutorDetail.prototype.customJobDetail = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * PipelineTaskExecutorDetail details. - * @member {"containerDetail"|"customJobDetail"|undefined} details - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * PredefinedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @instance */ - Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { - get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), - set: $util.oneOfSetter($oneOfFields) - }); + PredefinedSplit.prototype.key = ""; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new PredefinedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit instance */ - PipelineTaskExecutorDetail.create = function create(properties) { - return new PipelineTaskExecutorDetail(properties); + PredefinedSplit.create = function create(properties) { + return new PredefinedSplit(properties); }; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encode = function encode(message, writer) { + PredefinedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); return writer; }; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { + PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a PredefinedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decode = function decode(reader, length) { + PredefinedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); - break; - } - case 2: { - message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); + message.key = reader.string(); break; } default: @@ -414144,732 +418679,398 @@ }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { + PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a PredefinedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskExecutorDetail.verify = function verify(message) { + PredefinedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); - if (error) - return "containerDetail." + error; - } - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - if (properties.details === 1) - return "details: multiple values"; - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); - if (error) - return "customJobDetail." + error; - } - } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit */ - PipelineTaskExecutorDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) + PredefinedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredefinedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); - if (object.containerDetail != null) { - if (typeof object.containerDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.containerDetail: object expected"); - message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); - } - if (object.customJobDetail != null) { - if (typeof object.customJobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.customJobDetail: object expected"); - message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail + * @param {google.cloud.aiplatform.v1beta1.PredefinedSplit} message PredefinedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskExecutorDetail.toObject = function toObject(message, options) { + PredefinedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - object.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); - if (options.oneofs) - object.details = "containerDetail"; - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - object.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); - if (options.oneofs) - object.details = "customJobDetail"; - } + if (options.defaults) + object.key = ""; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this PredefinedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @instance * @returns {Object.} JSON object */ - PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { + PredefinedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for PredefinedSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredefinedSplit"; }; - PipelineTaskExecutorDetail.ContainerDetail = (function() { + return PredefinedSplit; + })(); - /** - * Properties of a ContainerDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @interface IContainerDetail - * @property {string|null} [mainJob] ContainerDetail mainJob - * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob - * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs - * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs - */ + v1beta1.TimestampSplit = (function() { - /** - * Constructs a new ContainerDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @classdesc Represents a ContainerDetail. - * @implements IContainerDetail - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - */ - function ContainerDetail(properties) { - this.failedMainJobs = []; - this.failedPreCachingCheckJobs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a TimestampSplit. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ITimestampSplit + * @property {number|null} [trainingFraction] TimestampSplit trainingFraction + * @property {number|null} [validationFraction] TimestampSplit validationFraction + * @property {number|null} [testFraction] TimestampSplit testFraction + * @property {string|null} [key] TimestampSplit key + */ - /** - * ContainerDetail mainJob. - * @member {string} mainJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.mainJob = ""; + /** + * Constructs a new TimestampSplit. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a TimestampSplit. + * @implements ITimestampSplit + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set + */ + function TimestampSplit(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ContainerDetail preCachingCheckJob. - * @member {string} preCachingCheckJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.preCachingCheckJob = ""; + /** + * TimestampSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.trainingFraction = 0; - /** - * ContainerDetail failedMainJobs. - * @member {Array.} failedMainJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedMainJobs = $util.emptyArray; + /** + * TimestampSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.validationFraction = 0; - /** - * ContainerDetail failedPreCachingCheckJobs. - * @member {Array.} failedPreCachingCheckJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; + /** + * TimestampSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.testFraction = 0; - /** - * Creates a new ContainerDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance - */ - ContainerDetail.create = function create(properties) { - return new ContainerDetail(properties); - }; + /** + * TimestampSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.key = ""; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); - if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); - if (message.failedMainJobs != null && message.failedMainJobs.length) - for (var i = 0; i < message.failedMainJobs.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); - if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); - return writer; - }; + /** + * Creates a new TimestampSplit instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit instance + */ + TimestampSplit.create = function create(properties) { + return new TimestampSplit(properties); + }; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampSplit.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + return writer; + }; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.mainJob = reader.string(); - break; - } - case 2: { - message.preCachingCheckJob = reader.string(); - break; - } - case 3: { - if (!(message.failedMainJobs && message.failedMainJobs.length)) - message.failedMainJobs = []; - message.failedMainJobs.push(reader.string()); - break; - } - case 4: { - if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) - message.failedPreCachingCheckJobs = []; - message.failedPreCachingCheckJobs.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimestampSplit message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampSplit.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainingFraction = reader.double(); break; } - } - return message; - }; - - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ContainerDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - if (!$util.isString(message.mainJob)) - return "mainJob: string expected"; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - if (!$util.isString(message.preCachingCheckJob)) - return "preCachingCheckJob: string expected"; - if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { - if (!Array.isArray(message.failedMainJobs)) - return "failedMainJobs: array expected"; - for (var i = 0; i < message.failedMainJobs.length; ++i) - if (!$util.isString(message.failedMainJobs[i])) - return "failedMainJobs: string[] expected"; - } - if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { - if (!Array.isArray(message.failedPreCachingCheckJobs)) - return "failedPreCachingCheckJobs: array expected"; - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - if (!$util.isString(message.failedPreCachingCheckJobs[i])) - return "failedPreCachingCheckJobs: string[] expected"; - } - return null; - }; - - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - */ - ContainerDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); - if (object.mainJob != null) - message.mainJob = String(object.mainJob); - if (object.preCachingCheckJob != null) - message.preCachingCheckJob = String(object.preCachingCheckJob); - if (object.failedMainJobs) { - if (!Array.isArray(object.failedMainJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); - message.failedMainJobs = []; - for (var i = 0; i < object.failedMainJobs.length; ++i) - message.failedMainJobs[i] = String(object.failedMainJobs[i]); - } - if (object.failedPreCachingCheckJobs) { - if (!Array.isArray(object.failedPreCachingCheckJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); - message.failedPreCachingCheckJobs = []; - for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) - message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); - } - return message; - }; - - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContainerDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.failedMainJobs = []; - object.failedPreCachingCheckJobs = []; - } - if (options.defaults) { - object.mainJob = ""; - object.preCachingCheckJob = ""; - } - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - object.mainJob = message.mainJob; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - object.preCachingCheckJob = message.preCachingCheckJob; - if (message.failedMainJobs && message.failedMainJobs.length) { - object.failedMainJobs = []; - for (var j = 0; j < message.failedMainJobs.length; ++j) - object.failedMainJobs[j] = message.failedMainJobs[j]; - } - if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { - object.failedPreCachingCheckJobs = []; - for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) - object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; - } - return object; - }; - - /** - * Converts this ContainerDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - * @returns {Object.} JSON object - */ - ContainerDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ContainerDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail"; - }; - - return ContainerDetail; - })(); - - PipelineTaskExecutorDetail.CustomJobDetail = (function() { - - /** - * Properties of a CustomJobDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @interface ICustomJobDetail - * @property {string|null} [job] CustomJobDetail job - * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs - */ - - /** - * Constructs a new CustomJobDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @classdesc Represents a CustomJobDetail. - * @implements ICustomJobDetail - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - */ - function CustomJobDetail(properties) { - this.failedJobs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CustomJobDetail job. - * @member {string} job - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - */ - CustomJobDetail.prototype.job = ""; - - /** - * CustomJobDetail failedJobs. - * @member {Array.} failedJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - */ - CustomJobDetail.prototype.failedJobs = $util.emptyArray; - - /** - * Creates a new CustomJobDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance - */ - CustomJobDetail.create = function create(properties) { - return new CustomJobDetail(properties); - }; - - /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); - if (message.failedJobs != null && message.failedJobs.length) - for (var i = 0; i < message.failedJobs.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); - return writer; - }; - - /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.job = reader.string(); - break; - } - case 3: { - if (!(message.failedJobs && message.failedJobs.length)) - message.failedJobs = []; - message.failedJobs.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + case 2: { + message.validationFraction = reader.double(); + break; + } + case 3: { + message.testFraction = reader.double(); + break; + } + case 4: { + message.key = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a CustomJobDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomJobDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.job != null && message.hasOwnProperty("job")) - if (!$util.isString(message.job)) - return "job: string expected"; - if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { - if (!Array.isArray(message.failedJobs)) - return "failedJobs: array expected"; - for (var i = 0; i < message.failedJobs.length; ++i) - if (!$util.isString(message.failedJobs[i])) - return "failedJobs: string[] expected"; - } - return null; - }; + /** + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - */ - CustomJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); - if (object.job != null) - message.job = String(object.job); - if (object.failedJobs) { - if (!Array.isArray(object.failedJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); - message.failedJobs = []; - for (var i = 0; i < object.failedJobs.length; ++i) - message.failedJobs[i] = String(object.failedJobs[i]); - } - return message; - }; + /** + * Verifies a TimestampSplit message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampSplit.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; - /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomJobDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.failedJobs = []; - if (options.defaults) - object.job = ""; - if (message.job != null && message.hasOwnProperty("job")) - object.job = message.job; - if (message.failedJobs && message.failedJobs.length) { - object.failedJobs = []; - for (var j = 0; j < message.failedJobs.length; ++j) - object.failedJobs[j] = message.failedJobs[j]; - } + /** + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + */ + TimestampSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TimestampSplit) return object; - }; - - /** - * Converts this CustomJobDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - * @returns {Object.} JSON object - */ - CustomJobDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); + return message; + }; - /** - * Gets the default type url for CustomJobDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail"; - }; + /** + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {google.cloud.aiplatform.v1beta1.TimestampSplit} message TimestampSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; - return CustomJobDetail; - })(); + /** + * Converts this TimestampSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + * @returns {Object.} JSON object + */ + TimestampSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PipelineTaskExecutorDetail; - })(); + /** + * Gets the default type url for TimestampSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.TimestampSplit"; + }; - /** - * PipelineState enum. - * @name google.cloud.aiplatform.v1beta1.PipelineState - * @enum {number} - * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value - * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value - * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value - * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value - * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value - * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value - * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value - * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value - * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value - */ - v1beta1.PipelineState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; - values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; - values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; - values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; - values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; - values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; - values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; - values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; - return values; + return TimestampSplit; })(); - v1beta1.Value = (function() { + v1beta1.StratifiedSplit = (function() { /** - * Properties of a Value. + * Properties of a StratifiedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IValue - * @property {number|Long|null} [intValue] Value intValue - * @property {number|null} [doubleValue] Value doubleValue - * @property {string|null} [stringValue] Value stringValue + * @interface IStratifiedSplit + * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction + * @property {number|null} [validationFraction] StratifiedSplit validationFraction + * @property {number|null} [testFraction] StratifiedSplit testFraction + * @property {string|null} [key] StratifiedSplit key */ /** - * Constructs a new Value. + * Constructs a new StratifiedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Value. - * @implements IValue + * @classdesc Represents a StratifiedSplit. + * @implements IStratifiedSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set */ - function Value(properties) { + function StratifiedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -414877,117 +419078,117 @@ } /** - * Value intValue. - * @member {number|Long|null|undefined} intValue - * @memberof google.cloud.aiplatform.v1beta1.Value + * StratifiedSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance */ - Value.prototype.intValue = null; + StratifiedSplit.prototype.trainingFraction = 0; /** - * Value doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1beta1.Value + * StratifiedSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance */ - Value.prototype.doubleValue = null; + StratifiedSplit.prototype.validationFraction = 0; /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1beta1.Value + * StratifiedSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance */ - Value.prototype.stringValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + StratifiedSplit.prototype.testFraction = 0; /** - * Value value. - * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.Value + * StratifiedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance */ - Object.defineProperty(Value.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + StratifiedSplit.prototype.key = ""; /** - * Creates a new Value instance using the specified properties. + * Creates a new StratifiedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Value} Value instance + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit instance */ - Value.create = function create(properties) { - return new Value(properties); + StratifiedSplit.create = function create(properties) { + return new StratifiedSplit(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + StratifiedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a StratifiedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Value} Value + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decode = function decode(reader, length) { + StratifiedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Value(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.intValue = reader.int64(); + message.trainingFraction = reader.double(); break; } case 2: { - message.doubleValue = reader.double(); + message.validationFraction = reader.double(); break; } case 3: { - message.stringValue = reader.string(); + message.testFraction = reader.double(); + break; + } + case 4: { + message.key = reader.string(); break; } default: @@ -414999,563 +419200,614 @@ }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Value} Value + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decodeDelimited = function decodeDelimited(reader) { + StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies a StratifiedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Value.verify = function verify(message) { + StratifiedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - properties.value = 1; - if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) - return "intValue: integer|Long expected"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Value} Value + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Value) + StratifiedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StratifiedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Value(); - if (object.intValue != null) - if ($util.Long) - (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; - else if (typeof object.intValue === "string") - message.intValue = parseInt(object.intValue, 10); - else if (typeof object.intValue === "number") - message.intValue = object.intValue; - else if (typeof object.intValue === "object") - message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); + var message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.Value} message Value + * @param {google.cloud.aiplatform.v1beta1.StratifiedSplit} message StratifiedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + StratifiedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (typeof message.intValue === "number") - object.intValue = options.longs === String ? String(message.intValue) : message.intValue; - else - object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; - if (options.oneofs) - object.value = "intValue"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.value = "doubleValue"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this Value to JSON. + * Converts this StratifiedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + StratifiedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Value + * Gets the default type url for StratifiedSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Value + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Value"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StratifiedSplit"; }; - return Value; + return StratifiedSplit; })(); - v1beta1.PipelineService = (function() { + v1beta1.PredictionService = (function() { /** - * Constructs a new PipelineService service. + * Constructs a new PredictionService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineService + * @classdesc Represents a PredictionService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function PipelineService(rpcImpl, requestDelimited, responseDelimited) { + function PredictionService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; + (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; /** - * Creates new PipelineService service using the specified rpc implementation. + * Creates new PredictionService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. + * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. */ - PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CreateTrainingPipelineCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|predict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef PredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline + * @param {google.cloud.aiplatform.v1beta1.PredictResponse} [response] PredictResponse */ /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} request PredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { - return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); - }, "name", { value: "CreateTrainingPipeline" }); + Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { + return this.rpcCall(predict, $root.google.cloud.aiplatform.v1beta1.PredictRequest, $root.google.cloud.aiplatform.v1beta1.PredictResponse, request, callback); + }, "name", { value: "Predict" }); /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} request PredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef GetTrainingPipelineCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|rawPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef RawPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline + * @param {google.api.HttpBody} [response] HttpBody */ /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} request RawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { - return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); - }, "name", { value: "GetTrainingPipeline" }); + Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { + return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1beta1.RawPredictRequest, $root.google.api.HttpBody, request, callback); + }, "name", { value: "RawPredict" }); /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} request RawPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listTrainingPipelines}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef ListTrainingPipelinesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef DirectPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1beta1.DirectPredictResponse} [response] DirectPredictResponse */ /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls DirectPredict. + * @function directPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} request DirectPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.DirectPredictCallback} callback Node-style callback called with the error, if any, and DirectPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { - return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, request, callback); - }, "name", { value: "ListTrainingPipelines" }); + Object.defineProperty(PredictionService.prototype.directPredict = function directPredict(request, callback) { + return this.rpcCall(directPredict, $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest, $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse, request, callback); + }, "name", { value: "DirectPredict" }); /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls DirectPredict. + * @function directPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} request DirectPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deleteTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef DeleteTrainingPipelineCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directRawPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef DirectRawPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} [response] DirectRawPredictResponse */ /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls DirectRawPredict. + * @function directRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} request DirectRawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.DirectRawPredictCallback} callback Node-style callback called with the error, if any, and DirectRawPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { - return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteTrainingPipeline" }); + Object.defineProperty(PredictionService.prototype.directRawPredict = function directRawPredict(request, callback) { + return this.rpcCall(directRawPredict, $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest, $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse, request, callback); + }, "name", { value: "DirectRawPredict" }); /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls DirectRawPredict. + * @function directRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} request DirectRawPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CancelTrainingPipelineCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef StreamDirectPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} [response] StreamDirectPredictResponse */ /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamDirectPredict. + * @function streamDirectPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} request StreamDirectPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectPredictCallback} callback Node-style callback called with the error, if any, and StreamDirectPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { - return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelTrainingPipeline" }); + Object.defineProperty(PredictionService.prototype.streamDirectPredict = function streamDirectPredict(request, callback) { + return this.rpcCall(streamDirectPredict, $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse, request, callback); + }, "name", { value: "StreamDirectPredict" }); /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamDirectPredict. + * @function streamDirectPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} request StreamDirectPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|createPipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CreatePipelineJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamDirectRawPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef StreamDirectRawPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob + * @param {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} [response] StreamDirectRawPredictResponse */ /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamDirectRawPredict. + * @function streamDirectRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} request StreamDirectRawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectRawPredictCallback} callback Node-style callback called with the error, if any, and StreamDirectRawPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { - return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); - }, "name", { value: "CreatePipelineJob" }); + Object.defineProperty(PredictionService.prototype.streamDirectRawPredict = function streamDirectRawPredict(request, callback) { + return this.rpcCall(streamDirectRawPredict, $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse, request, callback); + }, "name", { value: "StreamDirectRawPredict" }); /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamDirectRawPredict. + * @function streamDirectRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} request StreamDirectRawPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|getPipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef GetPipelineJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef StreamingPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob + * @param {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} [response] StreamingPredictResponse */ /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamingPredict. + * @function streamingPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamingPredictCallback} callback Node-style callback called with the error, if any, and StreamingPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { - return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); - }, "name", { value: "GetPipelineJob" }); + Object.defineProperty(PredictionService.prototype.streamingPredict = function streamingPredict(request, callback) { + return this.rpcCall(streamingPredict, $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse, request, callback); + }, "name", { value: "StreamingPredict" }); /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamingPredict. + * @function streamingPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|listPipelineJobs}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef ListPipelineJobsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|serverStreamingPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef ServerStreamingPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse + * @param {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} [response] StreamingPredictResponse */ /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls ServerStreamingPredict. + * @function serverStreamingPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.ServerStreamingPredictCallback} callback Node-style callback called with the error, if any, and StreamingPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { - return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, request, callback); - }, "name", { value: "ListPipelineJobs" }); + Object.defineProperty(PredictionService.prototype.serverStreamingPredict = function serverStreamingPredict(request, callback) { + return this.rpcCall(serverStreamingPredict, $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse, request, callback); + }, "name", { value: "ServerStreamingPredict" }); /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls ServerStreamingPredict. + * @function serverStreamingPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|deletePipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef DeletePipelineJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamingRawPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef StreamingRawPredictCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} [response] StreamingRawPredictResponse */ /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamingRawPredict. + * @function streamingRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} request StreamingRawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamingRawPredictCallback} callback Node-style callback called with the error, if any, and StreamingRawPredictResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { - return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePipelineJob" }); + Object.defineProperty(PredictionService.prototype.streamingRawPredict = function streamingRawPredict(request, callback) { + return this.rpcCall(streamingRawPredict, $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest, $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse, request, callback); + }, "name", { value: "StreamingRawPredict" }); /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls StreamingRawPredict. + * @function streamingRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} request StreamingRawPredictRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchDeletePipelineJobs}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef BatchDeletePipelineJobsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|explain}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef ExplainCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse} [response] ExplainResponse */ /** - * Calls BatchDeletePipelineJobs. - * @function batchDeletePipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} request BatchDeletePipelineJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobsCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} request ExplainRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.batchDeletePipelineJobs = function batchDeletePipelineJobs(request, callback) { - return this.rpcCall(batchDeletePipelineJobs, $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchDeletePipelineJobs" }); + Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { + return this.rpcCall(explain, $root.google.cloud.aiplatform.v1beta1.ExplainRequest, $root.google.cloud.aiplatform.v1beta1.ExplainResponse, request, callback); + }, "name", { value: "Explain" }); /** - * Calls BatchDeletePipelineJobs. - * @function batchDeletePipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} request BatchDeletePipelineJobsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} request ExplainRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelPipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CancelPipelineJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|countTokens}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef CountTokensCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.cloud.aiplatform.v1beta1.CountTokensResponse} [response] CountTokensResponse */ /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls CountTokens. + * @function countTokens + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} request CountTokensRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.CountTokensCallback} callback Node-style callback called with the error, if any, and CountTokensResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { - return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelPipelineJob" }); + Object.defineProperty(PredictionService.prototype.countTokens = function countTokens(request, callback) { + return this.rpcCall(countTokens, $root.google.cloud.aiplatform.v1beta1.CountTokensRequest, $root.google.cloud.aiplatform.v1beta1.CountTokensResponse, request, callback); + }, "name", { value: "CountTokens" }); /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Calls CountTokens. + * @function countTokens + * @memberof google.cloud.aiplatform.v1beta1.PredictionService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} request CountTokensRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return PipelineService; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|generateContent}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef GenerateContentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse} [response] GenerateContentResponse + */ + + /** + * Calls GenerateContent. + * @function generateContent + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.GenerateContentCallback} callback Node-style callback called with the error, if any, and GenerateContentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.generateContent = function generateContent(request, callback) { + return this.rpcCall(generateContent, $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest, $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse, request, callback); + }, "name", { value: "GenerateContent" }); + + /** + * Calls GenerateContent. + * @function generateContent + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamGenerateContent}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef StreamGenerateContentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse} [response] GenerateContentResponse + */ + + /** + * Calls StreamGenerateContent. + * @function streamGenerateContent + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamGenerateContentCallback} callback Node-style callback called with the error, if any, and GenerateContentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.streamGenerateContent = function streamGenerateContent(request, callback) { + return this.rpcCall(streamGenerateContent, $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest, $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse, request, callback); + }, "name", { value: "StreamGenerateContent" }); + + /** + * Calls StreamGenerateContent. + * @function streamGenerateContent + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} request GenerateContentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PredictionService; })(); - v1beta1.CreateTrainingPipelineRequest = (function() { + v1beta1.PredictRequest = (function() { /** - * Properties of a CreateTrainingPipelineRequest. + * Properties of a PredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateTrainingPipelineRequest - * @property {string|null} [parent] CreateTrainingPipelineRequest parent - * @property {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + * @interface IPredictRequest + * @property {string|null} [endpoint] PredictRequest endpoint + * @property {Array.|null} [instances] PredictRequest instances + * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters */ /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new PredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateTrainingPipelineRequest. - * @implements ICreateTrainingPipelineRequest + * @classdesc Represents a PredictRequest. + * @implements IPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredictRequest=} [properties] Properties to set */ - function CreateTrainingPipelineRequest(properties) { + function PredictRequest(properties) { + this.instances = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -415563,89 +419815,106 @@ } /** - * CreateTrainingPipelineRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * PredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @instance */ - CreateTrainingPipelineRequest.prototype.parent = ""; + PredictRequest.prototype.endpoint = ""; /** - * CreateTrainingPipelineRequest trainingPipeline. - * @member {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null|undefined} trainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * PredictRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @instance */ - CreateTrainingPipelineRequest.prototype.trainingPipeline = null; + PredictRequest.prototype.instances = $util.emptyArray; /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * PredictRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest + * @instance + */ + PredictRequest.prototype.parameters = null; + + /** + * Creates a new PredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest instance */ - CreateTrainingPipelineRequest.create = function create(properties) { - return new CreateTrainingPipelineRequest(properties); + PredictRequest.create = function create(properties) { + return new PredictRequest(properties); }; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} message PredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encode = function encode(message, writer) { + PredictRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) - $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictRequest} message PredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a PredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decode = function decode(reader, length) { + PredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.endpoint = reader.string(); break; } case 2: { - message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32()); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -415657,136 +419926,168 @@ }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + PredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a PredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTrainingPipelineRequest.verify = function verify(message) { + PredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { - var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipeline); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Value.verify(message.parameters); if (error) - return "trainingPipeline." + error; + return "parameters." + error; } return null; }; /** - * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequest} PredictRequest */ - CreateTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest) + PredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.trainingPipeline != null) { - if (typeof object.trainingPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); - message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipeline); + var message = new $root.google.cloud.aiplatform.v1beta1.PredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequest.parameters: object expected"); + message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); } return message; }; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.PredictRequest} message PredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTrainingPipelineRequest.toObject = function toObject(message, options) { + PredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.instances = []; if (options.defaults) { - object.parent = ""; - object.trainingPipeline = null; + object.endpoint = ""; + object.parameters = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - object.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipeline, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); return object; }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this PredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @instance * @returns {Object.} JSON object */ - CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { + PredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTrainingPipelineRequest + * Gets the default type url for PredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredictRequest"; }; - return CreateTrainingPipelineRequest; + return PredictRequest; })(); - v1beta1.GetTrainingPipelineRequest = (function() { + v1beta1.PredictResponse = (function() { /** - * Properties of a GetTrainingPipelineRequest. + * Properties of a PredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetTrainingPipelineRequest - * @property {string|null} [name] GetTrainingPipelineRequest name + * @interface IPredictResponse + * @property {Array.|null} [predictions] PredictResponse predictions + * @property {string|null} [deployedModelId] PredictResponse deployedModelId + * @property {string|null} [model] PredictResponse model + * @property {string|null} [modelVersionId] PredictResponse modelVersionId + * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName + * @property {google.protobuf.IValue|null} [metadata] PredictResponse metadata */ /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new PredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetTrainingPipelineRequest. - * @implements IGetTrainingPipelineRequest + * @classdesc Represents a PredictResponse. + * @implements IPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredictResponse=} [properties] Properties to set */ - function GetTrainingPipelineRequest(properties) { + function PredictResponse(properties) { + this.predictions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -415794,75 +420095,148 @@ } /** - * GetTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * PredictResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @instance */ - GetTrainingPipelineRequest.prototype.name = ""; + PredictResponse.prototype.predictions = $util.emptyArray; /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * PredictResponse deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse + * @instance + */ + PredictResponse.prototype.deployedModelId = ""; + + /** + * PredictResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse + * @instance + */ + PredictResponse.prototype.model = ""; + + /** + * PredictResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelVersionId = ""; + + /** + * PredictResponse modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelDisplayName = ""; + + /** + * PredictResponse metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse + * @instance + */ + PredictResponse.prototype.metadata = null; + + /** + * Creates a new PredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse instance */ - GetTrainingPipelineRequest.create = function create(properties) { - return new GetTrainingPipelineRequest(properties); + PredictResponse.create = function create(properties) { + return new PredictResponse(properties); }; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTrainingPipelineRequest.encode = function encode(message, writer) { + PredictResponse.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); + writer = $Writer.create(); + if (message.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a PredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTrainingPipelineRequest.decode = function decode(reader, length) { + PredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.model = reader.string(); + break; + } + case 5: { + message.modelVersionId = reader.string(); + break; + } + case 4: { + message.modelDisplayName = reader.string(); + break; + } + case 6: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -415874,126 +420248,187 @@ }; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + PredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTrainingPipelineRequest message. + * Verifies a PredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTrainingPipelineRequest.verify = function verify(message) { + PredictResponse.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.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; + } + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; + } return null; }; /** - * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictResponse} PredictResponse */ - GetTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest) + PredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.PredictResponse(); + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictResponse.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictResponse.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictResponse.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } return message; }; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.PredictResponse} message PredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTrainingPipelineRequest.toObject = function toObject(message, options) { + PredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.predictions = []; + if (options.defaults) { + object.deployedModelId = ""; + object.model = ""; + object.modelDisplayName = ""; + object.modelVersionId = ""; + object.metadata = null; + } + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this PredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @instance * @returns {Object.} JSON object */ - GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { + PredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTrainingPipelineRequest + * Gets the default type url for PredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredictResponse"; }; - return GetTrainingPipelineRequest; + return PredictResponse; })(); - v1beta1.ListTrainingPipelinesRequest = (function() { + v1beta1.RawPredictRequest = (function() { /** - * Properties of a ListTrainingPipelinesRequest. + * Properties of a RawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListTrainingPipelinesRequest - * @property {string|null} [parent] ListTrainingPipelinesRequest parent - * @property {string|null} [filter] ListTrainingPipelinesRequest filter - * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize - * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask + * @interface IRawPredictRequest + * @property {string|null} [endpoint] RawPredictRequest endpoint + * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody */ /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new RawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListTrainingPipelinesRequest. - * @implements IListTrainingPipelinesRequest + * @classdesc Represents a RawPredictRequest. + * @implements IRawPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest=} [properties] Properties to set */ - function ListTrainingPipelinesRequest(properties) { + function RawPredictRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -416001,131 +420436,89 @@ } /** - * ListTrainingPipelinesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest - * @instance - */ - ListTrainingPipelinesRequest.prototype.parent = ""; - - /** - * ListTrainingPipelinesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest - * @instance - */ - ListTrainingPipelinesRequest.prototype.filter = ""; - - /** - * ListTrainingPipelinesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest - * @instance - */ - ListTrainingPipelinesRequest.prototype.pageSize = 0; - - /** - * ListTrainingPipelinesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * RawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @instance */ - ListTrainingPipelinesRequest.prototype.pageToken = ""; + RawPredictRequest.prototype.endpoint = ""; /** - * ListTrainingPipelinesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * RawPredictRequest httpBody. + * @member {google.api.IHttpBody|null|undefined} httpBody + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @instance */ - ListTrainingPipelinesRequest.prototype.readMask = null; + RawPredictRequest.prototype.httpBody = null; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new RawPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest instance */ - ListTrainingPipelinesRequest.create = function create(properties) { - return new ListTrainingPipelinesRequest(properties); + RawPredictRequest.create = function create(properties) { + return new RawPredictRequest(properties); }; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} message RawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encode = function encode(message, writer) { + RawPredictRequest.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.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) + $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RawPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRawPredictRequest} message RawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { + RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a RawPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decode = function decode(reader, length) { + RawPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RawPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.endpoint = 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.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); break; } default: @@ -416137,162 +420530,139 @@ }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { + RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a RawPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesRequest.verify = function verify(message) { + RawPredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) { + var error = $root.google.api.HttpBody.verify(message.httpBody); if (error) - return "readMask." + error; + return "httpBody." + error; } return null; }; /** - * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1beta1.RawPredictRequest} RawPredictRequest */ - ListTrainingPipelinesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest) + RawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RawPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.RawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.httpBody != null) { + if (typeof object.httpBody !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RawPredictRequest.httpBody: object expected"); + message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); } return message; }; /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest + * @param {google.cloud.aiplatform.v1beta1.RawPredictRequest} message RawPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesRequest.toObject = function toObject(message, options) { + RawPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.endpoint = ""; + object.httpBody = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) + object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); return object; }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this RawPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { + RawPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for RawPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.RawPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RawPredictRequest"; }; - return ListTrainingPipelinesRequest; + return RawPredictRequest; })(); - v1beta1.ListTrainingPipelinesResponse = (function() { + v1beta1.DirectPredictRequest = (function() { /** - * Properties of a ListTrainingPipelinesResponse. + * Properties of a DirectPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListTrainingPipelinesResponse - * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines - * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken + * @interface IDirectPredictRequest + * @property {string|null} [endpoint] DirectPredictRequest endpoint + * @property {Array.|null} [inputs] DirectPredictRequest inputs + * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] DirectPredictRequest parameters */ /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new DirectPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListTrainingPipelinesResponse. - * @implements IListTrainingPipelinesResponse + * @classdesc Represents a DirectPredictRequest. + * @implements IDirectPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest=} [properties] Properties to set */ - function ListTrainingPipelinesResponse(properties) { - this.trainingPipelines = []; + function DirectPredictRequest(properties) { + this.inputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -416300,92 +420670,106 @@ } /** - * ListTrainingPipelinesResponse trainingPipelines. - * @member {Array.} trainingPipelines - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * DirectPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @instance */ - ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; + DirectPredictRequest.prototype.endpoint = ""; /** - * ListTrainingPipelinesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * DirectPredictRequest inputs. + * @member {Array.} inputs + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @instance */ - ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + DirectPredictRequest.prototype.inputs = $util.emptyArray; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * DirectPredictRequest parameters. + * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest + * @instance + */ + DirectPredictRequest.prototype.parameters = null; + + /** + * Creates a new DirectPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest instance */ - ListTrainingPipelinesResponse.create = function create(properties) { - return new ListTrainingPipelinesResponse(properties); + DirectPredictRequest.create = function create(properties) { + return new DirectPredictRequest(properties); }; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified DirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} message DirectPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encode = function encode(message, writer) { + DirectPredictRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingPipelines != null && message.trainingPipelines.length) - for (var i = 0; i < message.trainingPipelines.length; ++i) - $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified DirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictRequest} message DirectPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DirectPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes a DirectPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decode = function decode(reader, length) { + DirectPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.trainingPipelines && message.trainingPipelines.length)) - message.trainingPipelines = []; - message.trainingPipelines.push($root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32())); + message.endpoint = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -416397,148 +420781,164 @@ }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes a DirectPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { + DirectPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies a DirectPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesResponse.verify = function verify(message) { + DirectPredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { - if (!Array.isArray(message.trainingPipelines)) - return "trainingPipelines: array expected"; - for (var i = 0; i < message.trainingPipelines.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipelines[i]); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.inputs[i]); if (error) - return "trainingPipelines." + error; + return "inputs." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; + } return null; }; /** - * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DirectPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictRequest} DirectPredictRequest */ - ListTrainingPipelinesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) + DirectPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); - if (object.trainingPipelines) { - if (!Array.isArray(object.trainingPipelines)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); - message.trainingPipelines = []; - for (var i = 0; i < object.trainingPipelines.length; ++i) { - if (typeof object.trainingPipelines[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); - message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.inputs) { + if (!Array.isArray(object.inputs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictRequest.inputs: array expected"); + message.inputs = []; + for (var i = 0; i < object.inputs.length; ++i) { + if (typeof object.inputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictRequest.inputs: object expected"); + message.inputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.inputs[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictRequest.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + } return message; }; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DirectPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1beta1.DirectPredictRequest} message DirectPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesResponse.toObject = function toObject(message, options) { + DirectPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.trainingPipelines = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.trainingPipelines && message.trainingPipelines.length) { - object.trainingPipelines = []; - for (var j = 0; j < message.trainingPipelines.length; ++j) - object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipelines[j], options); + object.inputs = []; + if (options.defaults) { + object.endpoint = ""; + object.parameters = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.inputs && message.inputs.length) { + object.inputs = []; + for (var j = 0; j < message.inputs.length; ++j) + object.inputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.inputs[j], options); + } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this DirectPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { + DirectPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesResponse + * Gets the default type url for DirectPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DirectPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectPredictRequest"; }; - return ListTrainingPipelinesResponse; + return DirectPredictRequest; })(); - v1beta1.DeleteTrainingPipelineRequest = (function() { + v1beta1.DirectPredictResponse = (function() { /** - * Properties of a DeleteTrainingPipelineRequest. + * Properties of a DirectPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteTrainingPipelineRequest - * @property {string|null} [name] DeleteTrainingPipelineRequest name + * @interface IDirectPredictResponse + * @property {Array.|null} [outputs] DirectPredictResponse outputs + * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] DirectPredictResponse parameters */ /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new DirectPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteTrainingPipelineRequest. - * @implements IDeleteTrainingPipelineRequest + * @classdesc Represents a DirectPredictResponse. + * @implements IDirectPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse=} [properties] Properties to set */ - function DeleteTrainingPipelineRequest(properties) { + function DirectPredictResponse(properties) { + this.outputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -416546,75 +420946,92 @@ } /** - * DeleteTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * DirectPredictResponse outputs. + * @member {Array.} outputs + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @instance */ - DeleteTrainingPipelineRequest.prototype.name = ""; + DirectPredictResponse.prototype.outputs = $util.emptyArray; /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * DirectPredictResponse parameters. + * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse + * @instance + */ + DirectPredictResponse.prototype.parameters = null; + + /** + * Creates a new DirectPredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse instance */ - DeleteTrainingPipelineRequest.create = function create(properties) { - return new DeleteTrainingPipelineRequest(properties); + DirectPredictResponse.create = function create(properties) { + return new DirectPredictResponse(properties); }; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse} message DirectPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTrainingPipelineRequest.encode = function encode(message, writer) { + DirectPredictResponse.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.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectPredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectPredictResponse} message DirectPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + DirectPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a DirectPredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTrainingPipelineRequest.decode = function decode(reader, length) { + DirectPredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + break; + } + case 2: { + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -416626,122 +421043,155 @@ }; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectPredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + DirectPredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTrainingPipelineRequest message. + * Verifies a DirectPredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTrainingPipelineRequest.verify = function verify(message) { + DirectPredictResponse.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.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; + } return null; }; /** - * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectPredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectPredictResponse} DirectPredictResponse */ - DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest) + DirectPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.DirectPredictResponse(); + if (object.outputs) { + if (!Array.isArray(object.outputs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictResponse.outputs: array expected"); + message.outputs = []; + for (var i = 0; i < object.outputs.length; ++i) { + if (typeof object.outputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictResponse.outputs: object expected"); + message.outputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.outputs[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DirectPredictResponse.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + } return message; }; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a DirectPredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.DirectPredictResponse} message DirectPredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { + DirectPredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.outputs = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.parameters = null; + if (message.outputs && message.outputs.length) { + object.outputs = []; + for (var j = 0; j < message.outputs.length; ++j) + object.outputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.outputs[j], options); + } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this DirectPredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @instance * @returns {Object.} JSON object */ - DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { + DirectPredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTrainingPipelineRequest + * Gets the default type url for DirectPredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectPredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DirectPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectPredictResponse"; }; - return DeleteTrainingPipelineRequest; + return DirectPredictResponse; })(); - v1beta1.CancelTrainingPipelineRequest = (function() { + v1beta1.DirectRawPredictRequest = (function() { /** - * Properties of a CancelTrainingPipelineRequest. + * Properties of a DirectRawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelTrainingPipelineRequest - * @property {string|null} [name] CancelTrainingPipelineRequest name + * @interface IDirectRawPredictRequest + * @property {string|null} [endpoint] DirectRawPredictRequest endpoint + * @property {string|null} [methodName] DirectRawPredictRequest methodName + * @property {Uint8Array|null} [input] DirectRawPredictRequest input */ /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new DirectRawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelTrainingPipelineRequest. - * @implements ICancelTrainingPipelineRequest + * @classdesc Represents a DirectRawPredictRequest. + * @implements IDirectRawPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest=} [properties] Properties to set */ - function CancelTrainingPipelineRequest(properties) { + function DirectRawPredictRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -416749,75 +421199,103 @@ } /** - * CancelTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * DirectRawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @instance */ - CancelTrainingPipelineRequest.prototype.name = ""; + DirectRawPredictRequest.prototype.endpoint = ""; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * DirectRawPredictRequest methodName. + * @member {string} methodName + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @instance + */ + DirectRawPredictRequest.prototype.methodName = ""; + + /** + * DirectRawPredictRequest input. + * @member {Uint8Array} input + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest + * @instance + */ + DirectRawPredictRequest.prototype.input = $util.newBuffer([]); + + /** + * Creates a new DirectRawPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest instance */ - CancelTrainingPipelineRequest.create = function create(properties) { - return new CancelTrainingPipelineRequest(properties); + DirectRawPredictRequest.create = function create(properties) { + return new DirectRawPredictRequest(properties); }; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} message DirectRawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encode = function encode(message, writer) { + DirectRawPredictRequest.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.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.methodName != null && Object.hasOwnProperty.call(message, "methodName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.methodName); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.input); return writer; }; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictRequest} message DirectRawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + DirectRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a DirectRawPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decode = function decode(reader, length) { + DirectRawPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.endpoint = reader.string(); + break; + } + case 2: { + message.methodName = reader.string(); + break; + } + case 3: { + message.input = reader.bytes(); break; } default: @@ -416829,124 +421307,148 @@ }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectRawPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + DirectRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a DirectRawPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelTrainingPipelineRequest.verify = function verify(message) { + DirectRawPredictRequest.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.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.methodName != null && message.hasOwnProperty("methodName")) + if (!$util.isString(message.methodName)) + return "methodName: string expected"; + if (message.input != null && message.hasOwnProperty("input")) + if (!(message.input && typeof message.input.length === "number" || $util.isString(message.input))) + return "input: buffer expected"; return null; }; /** - * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} DirectRawPredictRequest */ - CancelTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest) + DirectRawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.methodName != null) + message.methodName = String(object.methodName); + if (object.input != null) + if (typeof object.input === "string") + $util.base64.decode(object.input, message.input = $util.newBuffer($util.base64.length(object.input)), 0); + else if (object.input.length >= 0) + message.input = object.input; return message; }; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a DirectRawPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.DirectRawPredictRequest} message DirectRawPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelTrainingPipelineRequest.toObject = function toObject(message, options) { + DirectRawPredictRequest.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.endpoint = ""; + object.methodName = ""; + if (options.bytes === String) + object.input = ""; + else { + object.input = []; + if (options.bytes !== Array) + object.input = $util.newBuffer(object.input); + } + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.methodName != null && message.hasOwnProperty("methodName")) + object.methodName = message.methodName; + if (message.input != null && message.hasOwnProperty("input")) + object.input = options.bytes === String ? $util.base64.encode(message.input, 0, message.input.length) : options.bytes === Array ? Array.prototype.slice.call(message.input) : message.input; return object; }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this DirectRawPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @instance * @returns {Object.} JSON object */ - CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + DirectRawPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelTrainingPipelineRequest + * Gets the default type url for DirectRawPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DirectRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectRawPredictRequest"; }; - return CancelTrainingPipelineRequest; + return DirectRawPredictRequest; })(); - v1beta1.CreatePipelineJobRequest = (function() { + v1beta1.DirectRawPredictResponse = (function() { /** - * Properties of a CreatePipelineJobRequest. + * Properties of a DirectRawPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreatePipelineJobRequest - * @property {string|null} [parent] CreatePipelineJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob - * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId + * @interface IDirectRawPredictResponse + * @property {Uint8Array|null} [output] DirectRawPredictResponse output */ /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new DirectRawPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreatePipelineJobRequest. - * @implements ICreatePipelineJobRequest + * @classdesc Represents a DirectRawPredictResponse. + * @implements IDirectRawPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse=} [properties] Properties to set */ - function CreatePipelineJobRequest(properties) { + function DirectRawPredictResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -416954,103 +421456,75 @@ } /** - * CreatePipelineJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest - * @instance - */ - CreatePipelineJobRequest.prototype.parent = ""; - - /** - * CreatePipelineJobRequest pipelineJob. - * @member {google.cloud.aiplatform.v1beta1.IPipelineJob|null|undefined} pipelineJob - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest - * @instance - */ - CreatePipelineJobRequest.prototype.pipelineJob = null; - - /** - * CreatePipelineJobRequest pipelineJobId. - * @member {string} pipelineJobId - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * DirectRawPredictResponse output. + * @member {Uint8Array} output + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @instance */ - CreatePipelineJobRequest.prototype.pipelineJobId = ""; + DirectRawPredictResponse.prototype.output = $util.newBuffer([]); /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * Creates a new DirectRawPredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse instance */ - CreatePipelineJobRequest.create = function create(properties) { - return new CreatePipelineJobRequest(properties); + DirectRawPredictResponse.create = function create(properties) { + return new DirectRawPredictResponse(properties); }; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * Encodes the specified DirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse} message DirectRawPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encode = function encode(message, writer) { + DirectRawPredictResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); + if (message.output != null && Object.hasOwnProperty.call(message, "output")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.output); return writer; }; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * Encodes the specified DirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DirectRawPredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDirectRawPredictResponse} message DirectRawPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DirectRawPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a DirectRawPredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decode = function decode(reader, length) { + DirectRawPredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32()); - break; - } - case 3: { - message.pipelineJobId = reader.string(); + message.output = reader.bytes(); break; } default: @@ -417062,144 +421536,134 @@ }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DirectRawPredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + DirectRawPredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a DirectRawPredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePipelineJobRequest.verify = function verify(message) { + DirectRawPredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJob); - if (error) - return "pipelineJob." + error; - } - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - if (!$util.isString(message.pipelineJobId)) - return "pipelineJobId: string expected"; + if (message.output != null && message.hasOwnProperty("output")) + if (!(message.output && typeof message.output.length === "number" || $util.isString(message.output))) + return "output: buffer expected"; return null; }; /** - * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} DirectRawPredictResponse */ - CreatePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) + DirectRawPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pipelineJob != null) { - if (typeof object.pipelineJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.pipelineJob: object expected"); - message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJob); - } - if (object.pipelineJobId != null) - message.pipelineJobId = String(object.pipelineJobId); + var message = new $root.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse(); + if (object.output != null) + if (typeof object.output === "string") + $util.base64.decode(object.output, message.output = $util.newBuffer($util.base64.length(object.output)), 0); + else if (object.output.length >= 0) + message.output = object.output; return message; }; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DirectRawPredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} message CreatePipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.DirectRawPredictResponse} message DirectRawPredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePipelineJobRequest.toObject = function toObject(message, options) { + DirectRawPredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pipelineJob = null; - object.pipelineJobId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) - object.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJob, options); - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - object.pipelineJobId = message.pipelineJobId; + if (options.defaults) + if (options.bytes === String) + object.output = ""; + else { + object.output = []; + if (options.bytes !== Array) + object.output = $util.newBuffer(object.output); + } + if (message.output != null && message.hasOwnProperty("output")) + object.output = options.bytes === String ? $util.base64.encode(message.output, 0, message.output.length) : options.bytes === Array ? Array.prototype.slice.call(message.output) : message.output; return object; }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this DirectRawPredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @instance * @returns {Object.} JSON object */ - CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + DirectRawPredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for DirectRawPredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DirectRawPredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DirectRawPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DirectRawPredictResponse"; }; - return CreatePipelineJobRequest; + return DirectRawPredictResponse; })(); - v1beta1.GetPipelineJobRequest = (function() { + v1beta1.StreamDirectPredictRequest = (function() { /** - * Properties of a GetPipelineJobRequest. + * Properties of a StreamDirectPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetPipelineJobRequest - * @property {string|null} [name] GetPipelineJobRequest name + * @interface IStreamDirectPredictRequest + * @property {string|null} [endpoint] StreamDirectPredictRequest endpoint + * @property {Array.|null} [inputs] StreamDirectPredictRequest inputs + * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamDirectPredictRequest parameters */ /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new StreamDirectPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetPipelineJobRequest. - * @implements IGetPipelineJobRequest + * @classdesc Represents a StreamDirectPredictRequest. + * @implements IStreamDirectPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest=} [properties] Properties to set */ - function GetPipelineJobRequest(properties) { + function StreamDirectPredictRequest(properties) { + this.inputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -417207,75 +421671,106 @@ } /** - * GetPipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * StreamDirectPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @instance */ - GetPipelineJobRequest.prototype.name = ""; + StreamDirectPredictRequest.prototype.endpoint = ""; /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * StreamDirectPredictRequest inputs. + * @member {Array.} inputs + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest + * @instance + */ + StreamDirectPredictRequest.prototype.inputs = $util.emptyArray; + + /** + * StreamDirectPredictRequest parameters. + * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest + * @instance + */ + StreamDirectPredictRequest.prototype.parameters = null; + + /** + * Creates a new StreamDirectPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest instance */ - GetPipelineJobRequest.create = function create(properties) { - return new GetPipelineJobRequest(properties); + StreamDirectPredictRequest.create = function create(properties) { + return new StreamDirectPredictRequest(properties); }; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified StreamDirectPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} message StreamDirectPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encode = function encode(message, writer) { + StreamDirectPredictRequest.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.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified StreamDirectPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictRequest} message StreamDirectPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamDirectPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a StreamDirectPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decode = function decode(reader, length) { + StreamDirectPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -417287,127 +421782,164 @@ }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + StreamDirectPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a StreamDirectPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPipelineJobRequest.verify = function verify(message) { + StreamDirectPredictRequest.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.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.inputs[i]); + if (error) + return "inputs." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; + } return null; }; /** - * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} StreamDirectPredictRequest */ - GetPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) + StreamDirectPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.inputs) { + if (!Array.isArray(object.inputs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.inputs: array expected"); + message.inputs = []; + for (var i = 0; i < object.inputs.length; ++i) { + if (typeof object.inputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.inputs: object expected"); + message.inputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.inputs[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + } return message; }; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamDirectPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} message GetPipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest} message StreamDirectPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPipelineJobRequest.toObject = function toObject(message, options) { + StreamDirectPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.inputs = []; + if (options.defaults) { + object.endpoint = ""; + object.parameters = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.inputs && message.inputs.length) { + object.inputs = []; + for (var j = 0; j < message.inputs.length; ++j) + object.inputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.inputs[j], options); + } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this StreamDirectPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @instance * @returns {Object.} JSON object */ - GetPipelineJobRequest.prototype.toJSON = function toJSON() { + StreamDirectPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for StreamDirectPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamDirectPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectPredictRequest"; }; - return GetPipelineJobRequest; + return StreamDirectPredictRequest; })(); - v1beta1.ListPipelineJobsRequest = (function() { + v1beta1.StreamDirectPredictResponse = (function() { /** - * Properties of a ListPipelineJobsRequest. + * Properties of a StreamDirectPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPipelineJobsRequest - * @property {string|null} [parent] ListPipelineJobsRequest parent - * @property {string|null} [filter] ListPipelineJobsRequest filter - * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize - * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken - * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask + * @interface IStreamDirectPredictResponse + * @property {Array.|null} [outputs] StreamDirectPredictResponse outputs + * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamDirectPredictResponse parameters */ /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new StreamDirectPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPipelineJobsRequest. - * @implements IListPipelineJobsRequest + * @classdesc Represents a StreamDirectPredictResponse. + * @implements IStreamDirectPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse=} [properties] Properties to set */ - function ListPipelineJobsRequest(properties) { + function StreamDirectPredictResponse(properties) { + this.outputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -417415,145 +421947,92 @@ } /** - * ListPipelineJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.parent = ""; - - /** - * ListPipelineJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.filter = ""; - - /** - * ListPipelineJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.pageSize = 0; - - /** - * ListPipelineJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.pageToken = ""; - - /** - * ListPipelineJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * StreamDirectPredictResponse outputs. + * @member {Array.} outputs + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @instance */ - ListPipelineJobsRequest.prototype.orderBy = ""; + StreamDirectPredictResponse.prototype.outputs = $util.emptyArray; /** - * ListPipelineJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * StreamDirectPredictResponse parameters. + * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @instance */ - ListPipelineJobsRequest.prototype.readMask = null; + StreamDirectPredictResponse.prototype.parameters = null; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new StreamDirectPredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse instance */ - ListPipelineJobsRequest.create = function create(properties) { - return new ListPipelineJobsRequest(properties); + StreamDirectPredictResponse.create = function create(properties) { + return new StreamDirectPredictResponse(properties); }; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified StreamDirectPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse} message StreamDirectPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encode = function encode(message, writer) { + StreamDirectPredictResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified StreamDirectPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectPredictResponse} message StreamDirectPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamDirectPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a StreamDirectPredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decode = function decode(reader, length) { + StreamDirectPredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 6: { - message.orderBy = reader.string(); - break; - } - case 7: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -417565,170 +422044,155 @@ }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectPredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + StreamDirectPredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a StreamDirectPredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsRequest.verify = function verify(message) { + StreamDirectPredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); if (error) - return "readMask." + error; + return "parameters." + error; } return null; }; /** - * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectPredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} StreamDirectPredictResponse */ - ListPipelineJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) + StreamDirectPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse(); + if (object.outputs) { + if (!Array.isArray(object.outputs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.outputs: array expected"); + message.outputs = []; + for (var i = 0; i < object.outputs.length; ++i) { + if (typeof object.outputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.outputs: object expected"); + message.outputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.outputs[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); } return message; }; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamDirectPredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} message ListPipelineJobsRequest + * @param {google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse} message StreamDirectPredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsRequest.toObject = function toObject(message, options) { + StreamDirectPredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.readMask = null; + if (options.arrays || options.defaults) + object.outputs = []; + if (options.defaults) + object.parameters = null; + if (message.outputs && message.outputs.length) { + object.outputs = []; + for (var j = 0; j < message.outputs.length; ++j) + object.outputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.outputs[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this StreamDirectPredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @instance * @returns {Object.} JSON object */ - ListPipelineJobsRequest.prototype.toJSON = function toJSON() { + StreamDirectPredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsRequest + * Gets the default type url for StreamDirectPredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamDirectPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse"; }; - return ListPipelineJobsRequest; + return StreamDirectPredictResponse; })(); - v1beta1.ListPipelineJobsResponse = (function() { + v1beta1.StreamDirectRawPredictRequest = (function() { /** - * Properties of a ListPipelineJobsResponse. + * Properties of a StreamDirectRawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPipelineJobsResponse - * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs - * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken + * @interface IStreamDirectRawPredictRequest + * @property {string|null} [endpoint] StreamDirectRawPredictRequest endpoint + * @property {string|null} [methodName] StreamDirectRawPredictRequest methodName + * @property {Uint8Array|null} [input] StreamDirectRawPredictRequest input */ /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new StreamDirectRawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPipelineJobsResponse. - * @implements IListPipelineJobsResponse + * @classdesc Represents a StreamDirectRawPredictRequest. + * @implements IStreamDirectRawPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest=} [properties] Properties to set */ - function ListPipelineJobsResponse(properties) { - this.pipelineJobs = []; + function StreamDirectRawPredictRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -417736,92 +422200,103 @@ } /** - * ListPipelineJobsResponse pipelineJobs. - * @member {Array.} pipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * StreamDirectRawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @instance */ - ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; + StreamDirectRawPredictRequest.prototype.endpoint = ""; /** - * ListPipelineJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * StreamDirectRawPredictRequest methodName. + * @member {string} methodName + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @instance */ - ListPipelineJobsResponse.prototype.nextPageToken = ""; + StreamDirectRawPredictRequest.prototype.methodName = ""; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * StreamDirectRawPredictRequest input. + * @member {Uint8Array} input + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest + * @instance + */ + StreamDirectRawPredictRequest.prototype.input = $util.newBuffer([]); + + /** + * Creates a new StreamDirectRawPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest instance */ - ListPipelineJobsResponse.create = function create(properties) { - return new ListPipelineJobsResponse(properties); + StreamDirectRawPredictRequest.create = function create(properties) { + return new StreamDirectRawPredictRequest(properties); }; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified StreamDirectRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} message StreamDirectRawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encode = function encode(message, writer) { + StreamDirectRawPredictRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineJobs != null && message.pipelineJobs.length) - for (var i = 0; i < message.pipelineJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.methodName != null && Object.hasOwnProperty.call(message, "methodName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.methodName); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.input); return writer; }; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified StreamDirectRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictRequest} message StreamDirectRawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamDirectRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decode = function decode(reader, length) { + StreamDirectRawPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pipelineJobs && message.pipelineJobs.length)) - message.pipelineJobs = []; - message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); + message.endpoint = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.methodName = reader.string(); + break; + } + case 3: { + message.input = reader.bytes(); break; } default: @@ -417833,148 +422308,148 @@ }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectRawPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { + StreamDirectRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a StreamDirectRawPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsResponse.verify = function verify(message) { + StreamDirectRawPredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { - if (!Array.isArray(message.pipelineJobs)) - return "pipelineJobs: array expected"; - for (var i = 0; i < message.pipelineJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); - if (error) - return "pipelineJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.methodName != null && message.hasOwnProperty("methodName")) + if (!$util.isString(message.methodName)) + return "methodName: string expected"; + if (message.input != null && message.hasOwnProperty("input")) + if (!(message.input && typeof message.input.length === "number" || $util.isString(message.input))) + return "input: buffer expected"; return null; }; /** - * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectRawPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} StreamDirectRawPredictRequest */ - ListPipelineJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) + StreamDirectRawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); - if (object.pipelineJobs) { - if (!Array.isArray(object.pipelineJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: array expected"); - message.pipelineJobs = []; - for (var i = 0; i < object.pipelineJobs.length; ++i) { - if (typeof object.pipelineJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: object expected"); - message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.methodName != null) + message.methodName = String(object.methodName); + if (object.input != null) + if (typeof object.input === "string") + $util.base64.decode(object.input, message.input = $util.newBuffer($util.base64.length(object.input)), 0); + else if (object.input.length >= 0) + message.input = object.input; return message; }; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamDirectRawPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} message ListPipelineJobsResponse + * @param {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest} message StreamDirectRawPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsResponse.toObject = function toObject(message, options) { + StreamDirectRawPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pipelineJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.pipelineJobs && message.pipelineJobs.length) { - object.pipelineJobs = []; - for (var j = 0; j < message.pipelineJobs.length; ++j) - object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); + if (options.defaults) { + object.endpoint = ""; + object.methodName = ""; + if (options.bytes === String) + object.input = ""; + else { + object.input = []; + if (options.bytes !== Array) + object.input = $util.newBuffer(object.input); + } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.methodName != null && message.hasOwnProperty("methodName")) + object.methodName = message.methodName; + if (message.input != null && message.hasOwnProperty("input")) + object.input = options.bytes === String ? $util.base64.encode(message.input, 0, message.input.length) : options.bytes === Array ? Array.prototype.slice.call(message.input) : message.input; return object; }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this StreamDirectRawPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @instance * @returns {Object.} JSON object */ - ListPipelineJobsResponse.prototype.toJSON = function toJSON() { + StreamDirectRawPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for StreamDirectRawPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamDirectRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest"; }; - return ListPipelineJobsResponse; + return StreamDirectRawPredictRequest; })(); - v1beta1.DeletePipelineJobRequest = (function() { + v1beta1.StreamDirectRawPredictResponse = (function() { /** - * Properties of a DeletePipelineJobRequest. + * Properties of a StreamDirectRawPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeletePipelineJobRequest - * @property {string|null} [name] DeletePipelineJobRequest name + * @interface IStreamDirectRawPredictResponse + * @property {Uint8Array|null} [output] StreamDirectRawPredictResponse output */ /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new StreamDirectRawPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeletePipelineJobRequest. - * @implements IDeletePipelineJobRequest + * @classdesc Represents a StreamDirectRawPredictResponse. + * @implements IStreamDirectRawPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse=} [properties] Properties to set */ - function DeletePipelineJobRequest(properties) { + function StreamDirectRawPredictResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -417982,75 +422457,75 @@ } /** - * DeletePipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * StreamDirectRawPredictResponse output. + * @member {Uint8Array} output + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @instance */ - DeletePipelineJobRequest.prototype.name = ""; + StreamDirectRawPredictResponse.prototype.output = $util.newBuffer([]); /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new StreamDirectRawPredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse instance */ - DeletePipelineJobRequest.create = function create(properties) { - return new DeletePipelineJobRequest(properties); + StreamDirectRawPredictResponse.create = function create(properties) { + return new StreamDirectRawPredictResponse(properties); }; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified StreamDirectRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse} message StreamDirectRawPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encode = function encode(message, writer) { + StreamDirectRawPredictResponse.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.output != null && Object.hasOwnProperty.call(message, "output")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.output); return writer; }; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified StreamDirectRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamDirectRawPredictResponse} message StreamDirectRawPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamDirectRawPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decode = function decode(reader, length) { + StreamDirectRawPredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.output = reader.bytes(); break; } default: @@ -418062,124 +422537,134 @@ }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamDirectRawPredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + StreamDirectRawPredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a StreamDirectRawPredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePipelineJobRequest.verify = function verify(message) { + StreamDirectRawPredictResponse.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.output != null && message.hasOwnProperty("output")) + if (!(message.output && typeof message.output.length === "number" || $util.isString(message.output))) + return "output: buffer expected"; return null; }; /** - * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamDirectRawPredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} StreamDirectRawPredictResponse */ - DeletePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) + StreamDirectRawPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse(); + if (object.output != null) + if (typeof object.output === "string") + $util.base64.decode(object.output, message.output = $util.newBuffer($util.base64.length(object.output)), 0); + else if (object.output.length >= 0) + message.output = object.output; return message; }; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamDirectRawPredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} message DeletePipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse} message StreamDirectRawPredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePipelineJobRequest.toObject = function toObject(message, options) { + StreamDirectRawPredictResponse.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.bytes === String) + object.output = ""; + else { + object.output = []; + if (options.bytes !== Array) + object.output = $util.newBuffer(object.output); + } + if (message.output != null && message.hasOwnProperty("output")) + object.output = options.bytes === String ? $util.base64.encode(message.output, 0, message.output.length) : options.bytes === Array ? Array.prototype.slice.call(message.output) : message.output; return object; }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this StreamDirectRawPredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @instance * @returns {Object.} JSON object */ - DeletePipelineJobRequest.prototype.toJSON = function toJSON() { + StreamDirectRawPredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for StreamDirectRawPredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamDirectRawPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse"; }; - return DeletePipelineJobRequest; + return StreamDirectRawPredictResponse; })(); - v1beta1.BatchDeletePipelineJobsRequest = (function() { + v1beta1.StreamingPredictRequest = (function() { /** - * Properties of a BatchDeletePipelineJobsRequest. + * Properties of a StreamingPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchDeletePipelineJobsRequest - * @property {string|null} [parent] BatchDeletePipelineJobsRequest parent - * @property {Array.|null} [names] BatchDeletePipelineJobsRequest names + * @interface IStreamingPredictRequest + * @property {string|null} [endpoint] StreamingPredictRequest endpoint + * @property {Array.|null} [inputs] StreamingPredictRequest inputs + * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamingPredictRequest parameters */ /** - * Constructs a new BatchDeletePipelineJobsRequest. + * Constructs a new StreamingPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchDeletePipelineJobsRequest. - * @implements IBatchDeletePipelineJobsRequest + * @classdesc Represents a StreamingPredictRequest. + * @implements IStreamingPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest=} [properties] Properties to set */ - function BatchDeletePipelineJobsRequest(properties) { - this.names = []; + function StreamingPredictRequest(properties) { + this.inputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -418187,92 +422672,106 @@ } /** - * BatchDeletePipelineJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * StreamingPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @instance */ - BatchDeletePipelineJobsRequest.prototype.parent = ""; + StreamingPredictRequest.prototype.endpoint = ""; /** - * BatchDeletePipelineJobsRequest names. - * @member {Array.} names - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * StreamingPredictRequest inputs. + * @member {Array.} inputs + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @instance */ - BatchDeletePipelineJobsRequest.prototype.names = $util.emptyArray; + StreamingPredictRequest.prototype.inputs = $util.emptyArray; /** - * Creates a new BatchDeletePipelineJobsRequest instance using the specified properties. + * StreamingPredictRequest parameters. + * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest + * @instance + */ + StreamingPredictRequest.prototype.parameters = null; + + /** + * Creates a new StreamingPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest instance */ - BatchDeletePipelineJobsRequest.create = function create(properties) { - return new BatchDeletePipelineJobsRequest(properties); + StreamingPredictRequest.create = function create(properties) { + return new StreamingPredictRequest(properties); }; /** - * Encodes the specified BatchDeletePipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeletePipelineJobsRequest.encode = function encode(message, writer) { + StreamingPredictRequest.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.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchDeletePipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeletePipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer. + * Decodes a StreamingPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeletePipelineJobsRequest.decode = function decode(reader, length) { + StreamingPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.endpoint = reader.string(); break; } case 2: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -418284,144 +422783,164 @@ }; /** - * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeletePipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeletePipelineJobsRequest message. + * Verifies a StreamingPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeletePipelineJobsRequest.verify = function verify(message) { + StreamingPredictRequest.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.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.inputs[i]); + if (error) + return "inputs." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; } return null; }; /** - * Creates a BatchDeletePipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} StreamingPredictRequest */ - BatchDeletePipelineJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest) + StreamingPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.inputs) { + if (!Array.isArray(object.inputs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictRequest.inputs: array expected"); + message.inputs = []; + for (var i = 0; i < object.inputs.length; ++i) { + if (typeof object.inputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictRequest.inputs: object expected"); + message.inputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.inputs[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictRequest.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); } return message; }; /** - * Creates a plain object from a BatchDeletePipelineJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest + * @param {google.cloud.aiplatform.v1beta1.StreamingPredictRequest} message StreamingPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeletePipelineJobsRequest.toObject = function toObject(message, options) { + StreamingPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.names = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + object.inputs = []; + if (options.defaults) { + object.endpoint = ""; + object.parameters = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.inputs && message.inputs.length) { + object.inputs = []; + for (var j = 0; j < message.inputs.length; ++j) + object.inputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.inputs[j], options); } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this BatchDeletePipelineJobsRequest to JSON. + * Converts this StreamingPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @instance * @returns {Object.} JSON object */ - BatchDeletePipelineJobsRequest.prototype.toJSON = function toJSON() { + StreamingPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchDeletePipelineJobsRequest + * Gets the default type url for StreamingPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchDeletePipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingPredictRequest"; }; - return BatchDeletePipelineJobsRequest; + return StreamingPredictRequest; })(); - v1beta1.BatchDeletePipelineJobsResponse = (function() { + v1beta1.StreamingPredictResponse = (function() { /** - * Properties of a BatchDeletePipelineJobsResponse. + * Properties of a StreamingPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchDeletePipelineJobsResponse - * @property {Array.|null} [pipelineJobs] BatchDeletePipelineJobsResponse pipelineJobs + * @interface IStreamingPredictResponse + * @property {Array.|null} [outputs] StreamingPredictResponse outputs + * @property {google.cloud.aiplatform.v1beta1.ITensor|null} [parameters] StreamingPredictResponse parameters */ /** - * Constructs a new BatchDeletePipelineJobsResponse. + * Constructs a new StreamingPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchDeletePipelineJobsResponse. - * @implements IBatchDeletePipelineJobsResponse + * @classdesc Represents a StreamingPredictResponse. + * @implements IStreamingPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse=} [properties] Properties to set */ - function BatchDeletePipelineJobsResponse(properties) { - this.pipelineJobs = []; + function StreamingPredictResponse(properties) { + this.outputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -418429,78 +422948,92 @@ } /** - * BatchDeletePipelineJobsResponse pipelineJobs. - * @member {Array.} pipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * StreamingPredictResponse outputs. + * @member {Array.} outputs + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @instance */ - BatchDeletePipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; + StreamingPredictResponse.prototype.outputs = $util.emptyArray; /** - * Creates a new BatchDeletePipelineJobsResponse instance using the specified properties. + * StreamingPredictResponse parameters. + * @member {google.cloud.aiplatform.v1beta1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse + * @instance + */ + StreamingPredictResponse.prototype.parameters = null; + + /** + * Creates a new StreamingPredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse instance */ - BatchDeletePipelineJobsResponse.create = function create(properties) { - return new BatchDeletePipelineJobsResponse(properties); + StreamingPredictResponse.create = function create(properties) { + return new StreamingPredictResponse(properties); }; /** - * Encodes the specified BatchDeletePipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeletePipelineJobsResponse.encode = function encode(message, writer) { + StreamingPredictResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineJobs != null && message.pipelineJobs.length) - for (var i = 0; i < message.pipelineJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1beta1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchDeletePipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingPredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeletePipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamingPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer. + * Decodes a StreamingPredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeletePipelineJobsResponse.decode = function decode(reader, length) { + StreamingPredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pipelineJobs && message.pipelineJobs.length)) - message.pipelineJobs = []; - message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32())); + break; + } + case 2: { + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -418512,139 +423045,155 @@ }; /** - * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeletePipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { + StreamingPredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeletePipelineJobsResponse message. + * Verifies a StreamingPredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeletePipelineJobsResponse.verify = function verify(message) { + StreamingPredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { - if (!Array.isArray(message.pipelineJobs)) - return "pipelineJobs: array expected"; - for (var i = 0; i < message.pipelineJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.outputs[i]); if (error) - return "pipelineJobs." + error; + return "outputs." + error; } } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1beta1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; + } return null; }; /** - * Creates a BatchDeletePipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} StreamingPredictResponse */ - BatchDeletePipelineJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse) + StreamingPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse(); - if (object.pipelineJobs) { - if (!Array.isArray(object.pipelineJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.pipelineJobs: array expected"); - message.pipelineJobs = []; - for (var i = 0; i < object.pipelineJobs.length; ++i) { - if (typeof object.pipelineJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.pipelineJobs: object expected"); - message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamingPredictResponse(); + if (object.outputs) { + if (!Array.isArray(object.outputs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictResponse.outputs: array expected"); + message.outputs = []; + for (var i = 0; i < object.outputs.length; ++i) { + if (typeof object.outputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictResponse.outputs: object expected"); + message.outputs[i] = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.outputs[i]); } } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingPredictResponse.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.fromObject(object.parameters); + } return message; }; /** - * Creates a plain object from a BatchDeletePipelineJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse + * @param {google.cloud.aiplatform.v1beta1.StreamingPredictResponse} message StreamingPredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeletePipelineJobsResponse.toObject = function toObject(message, options) { + StreamingPredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.pipelineJobs = []; - if (message.pipelineJobs && message.pipelineJobs.length) { - object.pipelineJobs = []; - for (var j = 0; j < message.pipelineJobs.length; ++j) - object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); + object.outputs = []; + if (options.defaults) + object.parameters = null; + if (message.outputs && message.outputs.length) { + object.outputs = []; + for (var j = 0; j < message.outputs.length; ++j) + object.outputs[j] = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.outputs[j], options); } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1beta1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this BatchDeletePipelineJobsResponse to JSON. + * Converts this StreamingPredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @instance * @returns {Object.} JSON object */ - BatchDeletePipelineJobsResponse.prototype.toJSON = function toJSON() { + StreamingPredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchDeletePipelineJobsResponse + * Gets the default type url for StreamingPredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.StreamingPredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchDeletePipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingPredictResponse"; }; - return BatchDeletePipelineJobsResponse; + return StreamingPredictResponse; })(); - v1beta1.CancelPipelineJobRequest = (function() { + v1beta1.StreamingRawPredictRequest = (function() { /** - * Properties of a CancelPipelineJobRequest. + * Properties of a StreamingRawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelPipelineJobRequest - * @property {string|null} [name] CancelPipelineJobRequest name + * @interface IStreamingRawPredictRequest + * @property {string|null} [endpoint] StreamingRawPredictRequest endpoint + * @property {string|null} [methodName] StreamingRawPredictRequest methodName + * @property {Uint8Array|null} [input] StreamingRawPredictRequest input */ /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new StreamingRawPredictRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelPipelineJobRequest. - * @implements ICancelPipelineJobRequest + * @classdesc Represents a StreamingRawPredictRequest. + * @implements IStreamingRawPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest=} [properties] Properties to set */ - function CancelPipelineJobRequest(properties) { + function StreamingRawPredictRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -418652,75 +423201,103 @@ } /** - * CancelPipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * StreamingRawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @instance */ - CancelPipelineJobRequest.prototype.name = ""; + StreamingRawPredictRequest.prototype.endpoint = ""; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * StreamingRawPredictRequest methodName. + * @member {string} methodName + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @instance + */ + StreamingRawPredictRequest.prototype.methodName = ""; + + /** + * StreamingRawPredictRequest input. + * @member {Uint8Array} input + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest + * @instance + */ + StreamingRawPredictRequest.prototype.input = $util.newBuffer([]); + + /** + * Creates a new StreamingRawPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest instance */ - CancelPipelineJobRequest.create = function create(properties) { - return new CancelPipelineJobRequest(properties); + StreamingRawPredictRequest.create = function create(properties) { + return new StreamingRawPredictRequest(properties); }; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified StreamingRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} message StreamingRawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encode = function encode(message, writer) { + StreamingRawPredictRequest.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.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.methodName != null && Object.hasOwnProperty.call(message, "methodName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.methodName); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.input); return writer; }; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified StreamingRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictRequest} message StreamingRawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a StreamingRawPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decode = function decode(reader, length) { + StreamingRawPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.endpoint = reader.string(); + break; + } + case 2: { + message.methodName = reader.string(); + break; + } + case 3: { + message.input = reader.bytes(); break; } default: @@ -418732,139 +423309,148 @@ }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRawPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a StreamingRawPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelPipelineJobRequest.verify = function verify(message) { + StreamingRawPredictRequest.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.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.methodName != null && message.hasOwnProperty("methodName")) + if (!$util.isString(message.methodName)) + return "methodName: string expected"; + if (message.input != null && message.hasOwnProperty("input")) + if (!(message.input && typeof message.input.length === "number" || $util.isString(message.input))) + return "input: buffer expected"; return null; }; /** - * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRawPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} StreamingRawPredictRequest */ - CancelPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) + StreamingRawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.methodName != null) + message.methodName = String(object.methodName); + if (object.input != null) + if (typeof object.input === "string") + $util.base64.decode(object.input, message.input = $util.newBuffer($util.base64.length(object.input)), 0); + else if (object.input.length >= 0) + message.input = object.input; return message; }; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingRawPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} message CancelPipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest} message StreamingRawPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelPipelineJobRequest.toObject = function toObject(message, options) { + StreamingRawPredictRequest.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.endpoint = ""; + object.methodName = ""; + if (options.bytes === String) + object.input = ""; + else { + object.input = []; + if (options.bytes !== Array) + object.input = $util.newBuffer(object.input); + } + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.methodName != null && message.hasOwnProperty("methodName")) + object.methodName = message.methodName; + if (message.input != null && message.hasOwnProperty("input")) + object.input = options.bytes === String ? $util.base64.encode(message.input, 0, message.input.length) : options.bytes === Array ? Array.prototype.slice.call(message.input) : message.input; return object; }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this StreamingRawPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @instance * @returns {Object.} JSON object */ - CancelPipelineJobRequest.prototype.toJSON = function toJSON() { + StreamingRawPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for StreamingRawPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest"; }; - return CancelPipelineJobRequest; + return StreamingRawPredictRequest; })(); - v1beta1.TrainingPipeline = (function() { + v1beta1.StreamingRawPredictResponse = (function() { /** - * Properties of a TrainingPipeline. + * Properties of a StreamingRawPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITrainingPipeline - * @property {string|null} [name] TrainingPipeline name - * @property {string|null} [displayName] TrainingPipeline displayName - * @property {google.cloud.aiplatform.v1beta1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig - * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition - * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs - * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata - * @property {google.cloud.aiplatform.v1beta1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload - * @property {string|null} [modelId] TrainingPipeline modelId - * @property {string|null} [parentModel] TrainingPipeline parentModel - * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] TrainingPipeline state - * @property {google.rpc.IStatus|null} [error] TrainingPipeline error - * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime - * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime - * @property {Object.|null} [labels] TrainingPipeline labels - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec + * @interface IStreamingRawPredictResponse + * @property {Uint8Array|null} [output] StreamingRawPredictResponse output */ /** - * Constructs a new TrainingPipeline. + * Constructs a new StreamingRawPredictResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a TrainingPipeline. - * @implements ITrainingPipeline + * @classdesc Represents a StreamingRawPredictResponse. + * @implements IStreamingRawPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse=} [properties] Properties to set */ - function TrainingPipeline(properties) { - this.labels = {}; + function StreamingRawPredictResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -418872,319 +423458,75 @@ } /** - * TrainingPipeline name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.name = ""; - - /** - * TrainingPipeline displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.displayName = ""; - - /** - * TrainingPipeline inputDataConfig. - * @member {google.cloud.aiplatform.v1beta1.IInputDataConfig|null|undefined} inputDataConfig - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.inputDataConfig = null; - - /** - * TrainingPipeline trainingTaskDefinition. - * @member {string} trainingTaskDefinition - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.trainingTaskDefinition = ""; - - /** - * TrainingPipeline trainingTaskInputs. - * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.trainingTaskInputs = null; - - /** - * TrainingPipeline trainingTaskMetadata. - * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.trainingTaskMetadata = null; - - /** - * TrainingPipeline modelToUpload. - * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} modelToUpload - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.modelToUpload = null; - - /** - * TrainingPipeline modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.modelId = ""; - - /** - * TrainingPipeline parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.parentModel = ""; - - /** - * TrainingPipeline state. - * @member {google.cloud.aiplatform.v1beta1.PipelineState} state - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.state = 0; - - /** - * TrainingPipeline error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.error = null; - - /** - * TrainingPipeline createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.createTime = null; - - /** - * TrainingPipeline startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.startTime = null; - - /** - * TrainingPipeline endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.endTime = null; - - /** - * TrainingPipeline updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.updateTime = null; - - /** - * TrainingPipeline labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.labels = $util.emptyObject; - - /** - * TrainingPipeline encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * StreamingRawPredictResponse output. + * @member {Uint8Array} output + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @instance */ - TrainingPipeline.prototype.encryptionSpec = null; + StreamingRawPredictResponse.prototype.output = $util.newBuffer([]); /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new StreamingRawPredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse instance */ - TrainingPipeline.create = function create(properties) { - return new TrainingPipeline(properties); + StreamingRawPredictResponse.create = function create(properties) { + return new StreamingRawPredictResponse(properties); }; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. + * Encodes the specified StreamingRawPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPipeline.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) - $root.google.cloud.aiplatform.v1beta1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); - if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) - $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) - $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); - return writer; - }; - - /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TrainingPipeline message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPipeline.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingTaskDefinition = reader.string(); - break; - } - case 5: { - message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 6: { - message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); - break; - } - case 22: { - message.modelId = reader.string(); - break; - } - case 21: { - message.parentModel = reader.string(); - break; - } - case 9: { - message.state = reader.int32(); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 12: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 15: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 18: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse} message StreamingRawPredictResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamingRawPredictResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.output != null && Object.hasOwnProperty.call(message, "output")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.output); + return writer; + }; + + /** + * Encodes the specified StreamingRawPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IStreamingRawPredictResponse} message StreamingRawPredictResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamingRawPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StreamingRawPredictResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamingRawPredictResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.output = reader.bytes(); break; } default: @@ -419196,381 +423538,138 @@ }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a StreamingRawPredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { + StreamingRawPredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingPipeline message. + * Verifies a StreamingRawPredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingPipeline.verify = function verify(message) { + StreamingRawPredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.verify(message.inputDataConfig); - if (error) - return "inputDataConfig." + error; - } - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - if (!$util.isString(message.trainingTaskDefinition)) - return "trainingTaskDefinition: string expected"; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); - if (error) - return "trainingTaskInputs." + error; - } - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); - if (error) - return "trainingTaskMetadata." + error; - } - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.modelToUpload); - if (error) - return "modelToUpload." + error; - } - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } + if (message.output != null && message.hasOwnProperty("output")) + if (!(message.output && typeof message.output.length === "number" || $util.isString(message.output))) + return "output: buffer expected"; return null; }; /** - * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRawPredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} StreamingRawPredictResponse */ - TrainingPipeline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingPipeline) + StreamingRawPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.inputDataConfig != null) { - if (typeof object.inputDataConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.inputDataConfig: object expected"); - message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.fromObject(object.inputDataConfig); - } - if (object.trainingTaskDefinition != null) - message.trainingTaskDefinition = String(object.trainingTaskDefinition); - if (object.trainingTaskInputs != null) { - if (typeof object.trainingTaskInputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskInputs: object expected"); - message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); - } - if (object.trainingTaskMetadata != null) { - if (typeof object.trainingTaskMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskMetadata: object expected"); - message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); - } - if (object.modelToUpload != null) { - if (typeof object.modelToUpload !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.modelToUpload: object expected"); - message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.modelToUpload); - } - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); - } + var message = new $root.google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse(); + if (object.output != null) + if (typeof object.output === "string") + $util.base64.decode(object.output, message.output = $util.newBuffer($util.base64.length(object.output)), 0); + else if (object.output.length >= 0) + message.output = object.output; return message; }; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * Creates a plain object from a StreamingRawPredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static - * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} message TrainingPipeline + * @param {google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse} message StreamingRawPredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingPipeline.toObject = function toObject(message, options) { + StreamingRawPredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.inputDataConfig = null; - object.trainingTaskDefinition = ""; - object.trainingTaskInputs = null; - object.trainingTaskMetadata = null; - object.modelToUpload = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.error = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.parentModel = ""; - object.modelId = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) - object.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.toObject(message.inputDataConfig, options); - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - object.trainingTaskDefinition = message.trainingTaskDefinition; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) - object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) - object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) - object.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.modelToUpload, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; + if (options.defaults) + if (options.bytes === String) + object.output = ""; + else { + object.output = []; + if (options.bytes !== Array) + object.output = $util.newBuffer(object.output); + } + if (message.output != null && message.hasOwnProperty("output")) + object.output = options.bytes === String ? $util.base64.encode(message.output, 0, message.output.length) : options.bytes === Array ? Array.prototype.slice.call(message.output) : message.output; return object; }; /** - * Converts this TrainingPipeline to JSON. + * Converts this StreamingRawPredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @instance * @returns {Object.} JSON object */ - TrainingPipeline.prototype.toJSON = function toJSON() { + StreamingRawPredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingPipeline + * Gets the default type url for StreamingRawPredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingRawPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.TrainingPipeline"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse"; }; - return TrainingPipeline; + return StreamingRawPredictResponse; })(); - v1beta1.InputDataConfig = (function() { + v1beta1.ExplainRequest = (function() { /** - * Properties of an InputDataConfig. + * Properties of an ExplainRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IInputDataConfig - * @property {google.cloud.aiplatform.v1beta1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit - * @property {google.cloud.aiplatform.v1beta1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit - * @property {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit - * @property {google.cloud.aiplatform.v1beta1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit - * @property {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination - * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination - * @property {string|null} [datasetId] InputDataConfig datasetId - * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter - * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri - * @property {string|null} [savedQueryId] InputDataConfig savedQueryId - * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment + * @interface IExplainRequest + * @property {string|null} [endpoint] ExplainRequest endpoint + * @property {Array.|null} [instances] ExplainRequest instances + * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters + * @property {google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride + * @property {Object.|null} [concurrentExplanationSpecOverride] ExplainRequest concurrentExplanationSpecOverride + * @property {string|null} [deployedModelId] ExplainRequest deployedModelId */ /** - * Constructs a new InputDataConfig. + * Constructs a new ExplainRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an InputDataConfig. - * @implements IInputDataConfig + * @classdesc Represents an ExplainRequest. + * @implements IExplainRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExplainRequest=} [properties] Properties to set */ - function InputDataConfig(properties) { + function ExplainRequest(properties) { + this.instances = []; + this.concurrentExplanationSpecOverride = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -419578,254 +423677,170 @@ } /** - * InputDataConfig fractionSplit. - * @member {google.cloud.aiplatform.v1beta1.IFractionSplit|null|undefined} fractionSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.fractionSplit = null; - - /** - * InputDataConfig filterSplit. - * @member {google.cloud.aiplatform.v1beta1.IFilterSplit|null|undefined} filterSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.filterSplit = null; - - /** - * InputDataConfig predefinedSplit. - * @member {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null|undefined} predefinedSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.predefinedSplit = null; - - /** - * InputDataConfig timestampSplit. - * @member {google.cloud.aiplatform.v1beta1.ITimestampSplit|null|undefined} timestampSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.timestampSplit = null; - - /** - * InputDataConfig stratifiedSplit. - * @member {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null|undefined} stratifiedSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.stratifiedSplit = null; - - /** - * InputDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.gcsDestination = null; - - /** - * InputDataConfig bigqueryDestination. - * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.bigqueryDestination = null; - - /** - * InputDataConfig datasetId. - * @member {string} datasetId - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.datasetId = ""; - - /** - * InputDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ExplainRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance */ - InputDataConfig.prototype.annotationsFilter = ""; + ExplainRequest.prototype.endpoint = ""; /** - * InputDataConfig annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ExplainRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance */ - InputDataConfig.prototype.annotationSchemaUri = ""; + ExplainRequest.prototype.instances = $util.emptyArray; /** - * InputDataConfig savedQueryId. - * @member {string} savedQueryId - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ExplainRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance */ - InputDataConfig.prototype.savedQueryId = ""; + ExplainRequest.prototype.parameters = null; /** - * InputDataConfig persistMlUseAssignment. - * @member {boolean} persistMlUseAssignment - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ExplainRequest explanationSpecOverride. + * @member {google.cloud.aiplatform.v1beta1.IExplanationSpecOverride|null|undefined} explanationSpecOverride + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance */ - InputDataConfig.prototype.persistMlUseAssignment = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ExplainRequest.prototype.explanationSpecOverride = null; /** - * InputDataConfig split. - * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ExplainRequest concurrentExplanationSpecOverride. + * @member {Object.} concurrentExplanationSpecOverride + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance */ - Object.defineProperty(InputDataConfig.prototype, "split", { - get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExplainRequest.prototype.concurrentExplanationSpecOverride = $util.emptyObject; /** - * InputDataConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ExplainRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance */ - Object.defineProperty(InputDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExplainRequest.prototype.deployedModelId = ""; /** - * Creates a new InputDataConfig instance using the specified properties. + * Creates a new ExplainRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig instance + * @param {google.cloud.aiplatform.v1beta1.IExplainRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest instance */ - InputDataConfig.create = function create(properties) { - return new InputDataConfig(properties); + ExplainRequest.create = function create(properties) { + return new ExplainRequest(properties); }; /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} message ExplainRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputDataConfig.encode = function encode(message, writer) { + ExplainRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); - if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) - $root.google.cloud.aiplatform.v1beta1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) - $root.google.cloud.aiplatform.v1beta1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) - $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) - $root.google.cloud.aiplatform.v1beta1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); - if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); - if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); - if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) - $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) + $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.concurrentExplanationSpecOverride != null && Object.hasOwnProperty.call(message, "concurrentExplanationSpecOverride")) + for (var keys = Object.keys(message.concurrentExplanationSpecOverride), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.encode(message.concurrentExplanationSpecOverride[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExplainRequest} message ExplainRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputDataConfig message from the specified reader or buffer. + * Decodes an ExplainRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decode = function decode(reader, length) { + ExplainRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExplainRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.decode(reader, reader.uint32()); + case 1: { + message.endpoint = reader.string(); break; } - case 3: { - message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.decode(reader, reader.uint32()); + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } case 4: { - message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.decode(reader, reader.uint32()); + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 5: { - message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.decode(reader, reader.uint32()); - break; - } - case 12: { - message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.decode(reader, reader.uint32()); - break; - } - case 8: { - message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 10: { - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 1: { - message.datasetId = reader.string(); + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.decode(reader, reader.uint32()); break; } case 6: { - message.annotationsFilter = reader.string(); - break; - } - case 9: { - message.annotationSchemaUri = reader.string(); - break; - } - case 7: { - message.savedQueryId = reader.string(); + if (message.concurrentExplanationSpecOverride === $util.emptyObject) + message.concurrentExplanationSpecOverride = {}; + 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.ExplanationSpecOverride.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.concurrentExplanationSpecOverride[key] = value; break; } - case 11: { - message.persistMlUseAssignment = reader.bool(); + case 3: { + message.deployedModelId = reader.string(); break; } default: @@ -419837,294 +423852,217 @@ }; /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decodeDelimited = function decodeDelimited(reader) { + ExplainRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputDataConfig message. + * Verifies an ExplainRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputDataConfig.verify = function verify(message) { + ExplainRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.FractionSplit.verify(message.fractionSplit); - if (error) - return "fractionSplit." + error; - } - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.FilterSplit.verify(message.filterSplit); - if (error) - return "filterSplit." + error; - } - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.verify(message.predefinedSplit); - if (error) - return "predefinedSplit." + error; - } - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.verify(message.timestampSplit); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); if (error) - return "timestampSplit." + error; + return "instances." + error; } } - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.verify(message.stratifiedSplit); - if (error) - return "stratifiedSplit." + error; - } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Value.verify(message.parameters); + if (error) + return "parameters." + error; } - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.gcsDestination); - if (error) - return "gcsDestination." + error; - } + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify(message.explanationSpecOverride); + if (error) + return "explanationSpecOverride." + error; } - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (message.concurrentExplanationSpecOverride != null && message.hasOwnProperty("concurrentExplanationSpecOverride")) { + if (!$util.isObject(message.concurrentExplanationSpecOverride)) + return "concurrentExplanationSpecOverride: object expected"; + var key = Object.keys(message.concurrentExplanationSpecOverride); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify(message.concurrentExplanationSpecOverride[key[i]]); if (error) - return "bigqueryDestination." + error; + return "concurrentExplanationSpecOverride." + error; } } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - if (!$util.isString(message.savedQueryId)) - return "savedQueryId: string expected"; - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - if (typeof message.persistMlUseAssignment !== "boolean") - return "persistMlUseAssignment: boolean expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; return null; }; /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1beta1.ExplainRequest} ExplainRequest */ - InputDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.InputDataConfig) + ExplainRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExplainRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); - if (object.fractionSplit != null) { - if (typeof object.fractionSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.fractionSplit: object expected"); - message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.fromObject(object.fractionSplit); - } - if (object.filterSplit != null) { - if (typeof object.filterSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.filterSplit: object expected"); - message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.fromObject(object.filterSplit); - } - if (object.predefinedSplit != null) { - if (typeof object.predefinedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.predefinedSplit: object expected"); - message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.fromObject(object.predefinedSplit); - } - if (object.timestampSplit != null) { - if (typeof object.timestampSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.timestampSplit: object expected"); - message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.fromObject(object.timestampSplit); + var message = new $root.google.cloud.aiplatform.v1beta1.ExplainRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } } - if (object.stratifiedSplit != null) { - if (typeof object.stratifiedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.stratifiedSplit: object expected"); - message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.fromObject(object.stratifiedSplit); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.parameters: object expected"); + message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); } - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); + if (object.explanationSpecOverride != null) { + if (typeof object.explanationSpecOverride !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.explanationSpecOverride: object expected"); + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); } - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + if (object.concurrentExplanationSpecOverride) { + if (typeof object.concurrentExplanationSpecOverride !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.concurrentExplanationSpecOverride: object expected"); + message.concurrentExplanationSpecOverride = {}; + for (var keys = Object.keys(object.concurrentExplanationSpecOverride), i = 0; i < keys.length; ++i) { + if (typeof object.concurrentExplanationSpecOverride[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainRequest.concurrentExplanationSpecOverride: object expected"); + message.concurrentExplanationSpecOverride[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.fromObject(object.concurrentExplanationSpecOverride[keys[i]]); + } } - if (object.datasetId != null) - message.datasetId = String(object.datasetId); - if (object.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); - if (object.savedQueryId != null) - message.savedQueryId = String(object.savedQueryId); - if (object.persistMlUseAssignment != null) - message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); return message; }; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static - * @param {google.cloud.aiplatform.v1beta1.InputDataConfig} message InputDataConfig + * @param {google.cloud.aiplatform.v1beta1.ExplainRequest} message ExplainRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputDataConfig.toObject = function toObject(message, options) { + ExplainRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.objects || options.defaults) + object.concurrentExplanationSpecOverride = {}; if (options.defaults) { - object.datasetId = ""; - object.annotationsFilter = ""; - object.savedQueryId = ""; - object.annotationSchemaUri = ""; - object.persistMlUseAssignment = false; - } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - object.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.toObject(message.fractionSplit, options); - if (options.oneofs) - object.split = "fractionSplit"; - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - object.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.toObject(message.filterSplit, options); - if (options.oneofs) - object.split = "filterSplit"; - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - object.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.toObject(message.predefinedSplit, options); - if (options.oneofs) - object.split = "predefinedSplit"; - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - object.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.toObject(message.timestampSplit, options); - if (options.oneofs) - object.split = "timestampSplit"; - } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.annotationsFilter; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - object.savedQueryId = message.savedQueryId; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - object.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcsDestination, options); - if (options.oneofs) - object.destination = "gcsDestination"; + object.endpoint = ""; + object.deployedModelId = ""; + object.parameters = null; + object.explanationSpecOverride = null; } - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); - if (options.oneofs) - object.destination = "bigqueryDestination"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); } - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - object.persistMlUseAssignment = message.persistMlUseAssignment; - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - object.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.toObject(message.stratifiedSplit, options); - if (options.oneofs) - object.split = "stratifiedSplit"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) + object.explanationSpecOverride = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); + var keys2; + if (message.concurrentExplanationSpecOverride && (keys2 = Object.keys(message.concurrentExplanationSpecOverride)).length) { + object.concurrentExplanationSpecOverride = {}; + for (var j = 0; j < keys2.length; ++j) + object.concurrentExplanationSpecOverride[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.toObject(message.concurrentExplanationSpecOverride[keys2[j]], options); } return object; }; /** - * Converts this InputDataConfig to JSON. + * Converts this ExplainRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @instance * @returns {Object.} JSON object */ - InputDataConfig.prototype.toJSON = function toJSON() { + ExplainRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InputDataConfig + * Gets the default type url for ExplainRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ExplainRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.InputDataConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExplainRequest"; }; - return InputDataConfig; + return ExplainRequest; })(); - v1beta1.FractionSplit = (function() { + v1beta1.ExplainResponse = (function() { /** - * Properties of a FractionSplit. + * Properties of an ExplainResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFractionSplit - * @property {number|null} [trainingFraction] FractionSplit trainingFraction - * @property {number|null} [validationFraction] FractionSplit validationFraction - * @property {number|null} [testFraction] FractionSplit testFraction + * @interface IExplainResponse + * @property {Array.|null} [explanations] ExplainResponse explanations + * @property {Object.|null} [concurrentExplanations] ExplainResponse concurrentExplanations + * @property {string|null} [deployedModelId] ExplainResponse deployedModelId + * @property {Array.|null} [predictions] ExplainResponse predictions */ /** - * Constructs a new FractionSplit. + * Constructs a new ExplainResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FractionSplit. - * @implements IFractionSplit + * @classdesc Represents an ExplainResponse. + * @implements IExplainResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExplainResponse=} [properties] Properties to set */ - function FractionSplit(properties) { + function ExplainResponse(properties) { + this.explanations = []; + this.concurrentExplanations = {}; + this.predictions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -420132,103 +424070,145 @@ } /** - * FractionSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * ExplainResponse explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @instance */ - FractionSplit.prototype.trainingFraction = 0; + ExplainResponse.prototype.explanations = $util.emptyArray; /** - * FractionSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * ExplainResponse concurrentExplanations. + * @member {Object.} concurrentExplanations + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @instance */ - FractionSplit.prototype.validationFraction = 0; + ExplainResponse.prototype.concurrentExplanations = $util.emptyObject; /** - * FractionSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * ExplainResponse deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @instance */ - FractionSplit.prototype.testFraction = 0; + ExplainResponse.prototype.deployedModelId = ""; /** - * Creates a new FractionSplit instance using the specified properties. + * ExplainResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.predictions = $util.emptyArray; + + /** + * Creates a new ExplainResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit instance + * @param {google.cloud.aiplatform.v1beta1.IExplainResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse instance */ - FractionSplit.create = function create(properties) { - return new FractionSplit(properties); + ExplainResponse.create = function create(properties) { + return new ExplainResponse(properties); }; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExplainResponse} message ExplainResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encode = function encode(message, writer) { + ExplainResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.concurrentExplanations != null && Object.hasOwnProperty.call(message, "concurrentExplanations")) + for (var keys = Object.keys(message.concurrentExplanations), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.encode(message.concurrentExplanations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExplainResponse} message ExplainResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes an ExplainResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decode = function decode(reader, length) { + ExplainResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1beta1.Explanation.decode(reader, reader.uint32())); + break; + } + case 4: { + if (message.concurrentExplanations === $util.emptyObject) + message.concurrentExplanations = {}; + 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.ExplainResponse.ConcurrentExplanation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.concurrentExplanations[key] = value; break; } case 2: { - message.validationFraction = reader.double(); + message.deployedModelId = reader.string(); break; } case 3: { - message.testFraction = reader.double(); + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } default: @@ -420240,141 +424220,431 @@ }; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decodeDelimited = function decodeDelimited(reader) { + ExplainResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FractionSplit message. + * Verifies an ExplainResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FractionSplit.verify = function verify(message) { + ExplainResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; + if (message.explanations != null && message.hasOwnProperty("explanations")) { + if (!Array.isArray(message.explanations)) + return "explanations: array expected"; + for (var i = 0; i < message.explanations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Explanation.verify(message.explanations[i]); + if (error) + return "explanations." + error; + } + } + if (message.concurrentExplanations != null && message.hasOwnProperty("concurrentExplanations")) { + if (!$util.isObject(message.concurrentExplanations)) + return "concurrentExplanations: object expected"; + var key = Object.keys(message.concurrentExplanations); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify(message.concurrentExplanations[key[i]]); + if (error) + return "concurrentExplanations." + error; + } + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; + } + } return null; }; /** - * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse} ExplainResponse */ - FractionSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FractionSplit) + ExplainResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExplainResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); + var message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse(); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.explanations: array expected"); + message.explanations = []; + for (var i = 0; i < object.explanations.length; ++i) { + if (typeof object.explanations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1beta1.Explanation.fromObject(object.explanations[i]); + } + } + if (object.concurrentExplanations) { + if (typeof object.concurrentExplanations !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.concurrentExplanations: object expected"); + message.concurrentExplanations = {}; + for (var keys = Object.keys(object.concurrentExplanations), i = 0; i < keys.length; ++i) { + if (typeof object.concurrentExplanations[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.concurrentExplanations: object expected"); + message.concurrentExplanations[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.fromObject(object.concurrentExplanations[keys[i]]); + } + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } + } return message; }; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1beta1.FractionSplit} message FractionSplit + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse} message ExplainResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FractionSplit.toObject = function toObject(message, options) { + ExplainResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; + if (options.arrays || options.defaults) { + object.explanations = []; + object.predictions = []; + } + if (options.objects || options.defaults) + object.concurrentExplanations = {}; + if (options.defaults) + object.deployedModelId = ""; + if (message.explanations && message.explanations.length) { + object.explanations = []; + for (var j = 0; j < message.explanations.length; ++j) + object.explanations[j] = $root.google.cloud.aiplatform.v1beta1.Explanation.toObject(message.explanations[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + } + var keys2; + if (message.concurrentExplanations && (keys2 = Object.keys(message.concurrentExplanations)).length) { + object.concurrentExplanations = {}; + for (var j = 0; j < keys2.length; ++j) + object.concurrentExplanations[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.toObject(message.concurrentExplanations[keys2[j]], options); } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; return object; }; /** - * Converts this FractionSplit to JSON. + * Converts this ExplainResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @instance * @returns {Object.} JSON object */ - FractionSplit.prototype.toJSON = function toJSON() { + ExplainResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for ExplainResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExplainResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FractionSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExplainResponse"; }; - return FractionSplit; + ExplainResponse.ConcurrentExplanation = (function() { + + /** + * Properties of a ConcurrentExplanation. + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @interface IConcurrentExplanation + * @property {Array.|null} [explanations] ConcurrentExplanation explanations + */ + + /** + * Constructs a new ConcurrentExplanation. + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse + * @classdesc Represents a ConcurrentExplanation. + * @implements IConcurrentExplanation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation=} [properties] Properties to set + */ + function ConcurrentExplanation(properties) { + this.explanations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConcurrentExplanation explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @instance + */ + ConcurrentExplanation.prototype.explanations = $util.emptyArray; + + /** + * Creates a new ConcurrentExplanation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation instance + */ + ConcurrentExplanation.create = function create(properties) { + return new ConcurrentExplanation(properties); + }; + + /** + * Encodes the specified ConcurrentExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation} message ConcurrentExplanation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConcurrentExplanation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConcurrentExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.IConcurrentExplanation} message ConcurrentExplanation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConcurrentExplanation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConcurrentExplanation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConcurrentExplanation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1beta1.Explanation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConcurrentExplanation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConcurrentExplanation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConcurrentExplanation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConcurrentExplanation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.explanations != null && message.hasOwnProperty("explanations")) { + if (!Array.isArray(message.explanations)) + return "explanations: array expected"; + for (var i = 0; i < message.explanations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Explanation.verify(message.explanations[i]); + if (error) + return "explanations." + error; + } + } + return null; + }; + + /** + * Creates a ConcurrentExplanation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} ConcurrentExplanation + */ + ConcurrentExplanation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation(); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.explanations: array expected"); + message.explanations = []; + for (var i = 0; i < object.explanations.length; ++i) { + if (typeof object.explanations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1beta1.Explanation.fromObject(object.explanations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ConcurrentExplanation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation} message ConcurrentExplanation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConcurrentExplanation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.explanations = []; + if (message.explanations && message.explanations.length) { + object.explanations = []; + for (var j = 0; j < message.explanations.length; ++j) + object.explanations[j] = $root.google.cloud.aiplatform.v1beta1.Explanation.toObject(message.explanations[j], options); + } + return object; + }; + + /** + * Converts this ConcurrentExplanation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @instance + * @returns {Object.} JSON object + */ + ConcurrentExplanation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConcurrentExplanation + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConcurrentExplanation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanation"; + }; + + return ConcurrentExplanation; + })(); + + return ExplainResponse; })(); - v1beta1.FilterSplit = (function() { + v1beta1.CountTokensRequest = (function() { /** - * Properties of a FilterSplit. + * Properties of a CountTokensRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFilterSplit - * @property {string|null} [trainingFilter] FilterSplit trainingFilter - * @property {string|null} [validationFilter] FilterSplit validationFilter - * @property {string|null} [testFilter] FilterSplit testFilter + * @interface ICountTokensRequest + * @property {string|null} [endpoint] CountTokensRequest endpoint + * @property {string|null} [model] CountTokensRequest model + * @property {Array.|null} [instances] CountTokensRequest instances + * @property {Array.|null} [contents] CountTokensRequest contents */ /** - * Constructs a new FilterSplit. + * Constructs a new CountTokensRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FilterSplit. - * @implements IFilterSplit + * @classdesc Represents a CountTokensRequest. + * @implements ICountTokensRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest=} [properties] Properties to set */ - function FilterSplit(properties) { + function CountTokensRequest(properties) { + this.instances = []; + this.contents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -420382,103 +424652,123 @@ } /** - * FilterSplit trainingFilter. - * @member {string} trainingFilter - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * CountTokensRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @instance */ - FilterSplit.prototype.trainingFilter = ""; + CountTokensRequest.prototype.endpoint = ""; /** - * FilterSplit validationFilter. - * @member {string} validationFilter - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * CountTokensRequest model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @instance */ - FilterSplit.prototype.validationFilter = ""; + CountTokensRequest.prototype.model = ""; /** - * FilterSplit testFilter. - * @member {string} testFilter - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * CountTokensRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @instance */ - FilterSplit.prototype.testFilter = ""; + CountTokensRequest.prototype.instances = $util.emptyArray; /** - * Creates a new FilterSplit instance using the specified properties. + * CountTokensRequest contents. + * @member {Array.} contents + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @instance + */ + CountTokensRequest.prototype.contents = $util.emptyArray; + + /** + * Creates a new CountTokensRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit instance + * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest instance */ - FilterSplit.create = function create(properties) { - return new FilterSplit(properties); + CountTokensRequest.create = function create(properties) { + return new CountTokensRequest(properties); }; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * Encodes the specified CountTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} message CountTokensRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encode = function encode(message, writer) { + CountTokensRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); - if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); - if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.contents != null && message.contents.length) + for (var i = 0; i < message.contents.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Content.encode(message.contents[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * Encodes the specified CountTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICountTokensRequest} message CountTokensRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { + CountTokensRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a CountTokensRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decode = function decode(reader, length) { + CountTokensRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CountTokensRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFilter = reader.string(); + message.endpoint = reader.string(); + break; + } + case 3: { + message.model = reader.string(); break; } case 2: { - message.validationFilter = reader.string(); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } - case 3: { - message.testFilter = reader.string(); + case 4: { + if (!(message.contents && message.contents.length)) + message.contents = []; + message.contents.push($root.google.cloud.aiplatform.v1beta1.Content.decode(reader, reader.uint32())); break; } default: @@ -420490,139 +424780,184 @@ }; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a CountTokensRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decodeDelimited = function decodeDelimited(reader) { + CountTokensRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilterSplit message. + * Verifies a CountTokensRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilterSplit.verify = function verify(message) { + CountTokensRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - if (!$util.isString(message.trainingFilter)) - return "trainingFilter: string expected"; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - if (!$util.isString(message.validationFilter)) - return "validationFilter: string expected"; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - if (!$util.isString(message.testFilter)) - return "testFilter: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.contents != null && message.hasOwnProperty("contents")) { + if (!Array.isArray(message.contents)) + return "contents: array expected"; + for (var i = 0; i < message.contents.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Content.verify(message.contents[i]); + if (error) + return "contents." + error; + } + } return null; }; /** - * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1beta1.CountTokensRequest} CountTokensRequest */ - FilterSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FilterSplit) + CountTokensRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CountTokensRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); - if (object.trainingFilter != null) - message.trainingFilter = String(object.trainingFilter); - if (object.validationFilter != null) - message.validationFilter = String(object.validationFilter); - if (object.testFilter != null) - message.testFilter = String(object.testFilter); + var message = new $root.google.cloud.aiplatform.v1beta1.CountTokensRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.model != null) + message.model = String(object.model); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + if (object.contents) { + if (!Array.isArray(object.contents)) + throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.contents: array expected"); + message.contents = []; + for (var i = 0; i < object.contents.length; ++i) { + if (typeof object.contents[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.contents: object expected"); + message.contents[i] = $root.google.cloud.aiplatform.v1beta1.Content.fromObject(object.contents[i]); + } + } return message; }; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * Creates a plain object from a CountTokensRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FilterSplit} message FilterSplit + * @param {google.cloud.aiplatform.v1beta1.CountTokensRequest} message CountTokensRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilterSplit.toObject = function toObject(message, options) { + CountTokensRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.instances = []; + object.contents = []; + } if (options.defaults) { - object.trainingFilter = ""; - object.validationFilter = ""; - object.testFilter = ""; + object.endpoint = ""; + object.model = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.contents && message.contents.length) { + object.contents = []; + for (var j = 0; j < message.contents.length; ++j) + object.contents[j] = $root.google.cloud.aiplatform.v1beta1.Content.toObject(message.contents[j], options); } - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - object.trainingFilter = message.trainingFilter; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - object.validationFilter = message.validationFilter; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - object.testFilter = message.testFilter; return object; }; /** - * Converts this FilterSplit to JSON. + * Converts this CountTokensRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @instance * @returns {Object.} JSON object */ - FilterSplit.prototype.toJSON = function toJSON() { + CountTokensRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for CountTokensRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CountTokensRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FilterSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CountTokensRequest"; }; - return FilterSplit; + return CountTokensRequest; })(); - v1beta1.PredefinedSplit = (function() { + v1beta1.CountTokensResponse = (function() { /** - * Properties of a PredefinedSplit. + * Properties of a CountTokensResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPredefinedSplit - * @property {string|null} [key] PredefinedSplit key + * @interface ICountTokensResponse + * @property {number|null} [totalTokens] CountTokensResponse totalTokens + * @property {number|null} [totalBillableCharacters] CountTokensResponse totalBillableCharacters */ /** - * Constructs a new PredefinedSplit. + * Constructs a new CountTokensResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredefinedSplit. - * @implements IPredefinedSplit + * @classdesc Represents a CountTokensResponse. + * @implements ICountTokensResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse=} [properties] Properties to set */ - function PredefinedSplit(properties) { + function CountTokensResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -420630,75 +424965,89 @@ } /** - * PredefinedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * CountTokensResponse totalTokens. + * @member {number} totalTokens + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @instance */ - PredefinedSplit.prototype.key = ""; + CountTokensResponse.prototype.totalTokens = 0; /** - * Creates a new PredefinedSplit instance using the specified properties. + * CountTokensResponse totalBillableCharacters. + * @member {number} totalBillableCharacters + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse + * @instance + */ + CountTokensResponse.prototype.totalBillableCharacters = 0; + + /** + * Creates a new CountTokensResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit instance + * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse instance */ - PredefinedSplit.create = function create(properties) { - return new PredefinedSplit(properties); + CountTokensResponse.create = function create(properties) { + return new CountTokensResponse(properties); }; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. + * Encodes the specified CountTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse} message CountTokensResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encode = function encode(message, writer) { + CountTokensResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.totalTokens != null && Object.hasOwnProperty.call(message, "totalTokens")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.totalTokens); + if (message.totalBillableCharacters != null && Object.hasOwnProperty.call(message, "totalBillableCharacters")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalBillableCharacters); return writer; }; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. + * Encodes the specified CountTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CountTokensResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICountTokensResponse} message CountTokensResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { + CountTokensResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a CountTokensResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decode = function decode(reader, length) { + CountTokensResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CountTokensResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.key = reader.string(); + message.totalTokens = reader.int32(); + break; + } + case 2: { + message.totalBillableCharacters = reader.int32(); break; } default: @@ -420710,125 +425059,138 @@ }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a CountTokensResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { + CountTokensResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredefinedSplit message. + * Verifies a CountTokensResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredefinedSplit.verify = function verify(message) { + CountTokensResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.totalTokens != null && message.hasOwnProperty("totalTokens")) + if (!$util.isInteger(message.totalTokens)) + return "totalTokens: integer expected"; + if (message.totalBillableCharacters != null && message.hasOwnProperty("totalBillableCharacters")) + if (!$util.isInteger(message.totalBillableCharacters)) + return "totalBillableCharacters: integer expected"; return null; }; /** - * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1beta1.CountTokensResponse} CountTokensResponse */ - PredefinedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredefinedSplit) + CountTokensResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CountTokensResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1beta1.CountTokensResponse(); + if (object.totalTokens != null) + message.totalTokens = object.totalTokens | 0; + if (object.totalBillableCharacters != null) + message.totalBillableCharacters = object.totalBillableCharacters | 0; return message; }; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. + * Creates a plain object from a CountTokensResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PredefinedSplit} message PredefinedSplit + * @param {google.cloud.aiplatform.v1beta1.CountTokensResponse} message CountTokensResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredefinedSplit.toObject = function toObject(message, options) { + CountTokensResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.key = ""; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (options.defaults) { + object.totalTokens = 0; + object.totalBillableCharacters = 0; + } + if (message.totalTokens != null && message.hasOwnProperty("totalTokens")) + object.totalTokens = message.totalTokens; + if (message.totalBillableCharacters != null && message.hasOwnProperty("totalBillableCharacters")) + object.totalBillableCharacters = message.totalBillableCharacters; return object; }; /** - * Converts this PredefinedSplit to JSON. + * Converts this CountTokensResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @instance * @returns {Object.} JSON object */ - PredefinedSplit.prototype.toJSON = function toJSON() { + CountTokensResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for CountTokensResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.CountTokensResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CountTokensResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PredefinedSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CountTokensResponse"; }; - return PredefinedSplit; + return CountTokensResponse; })(); - v1beta1.TimestampSplit = (function() { + v1beta1.GenerateContentRequest = (function() { /** - * Properties of a TimestampSplit. + * Properties of a GenerateContentRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITimestampSplit - * @property {number|null} [trainingFraction] TimestampSplit trainingFraction - * @property {number|null} [validationFraction] TimestampSplit validationFraction - * @property {number|null} [testFraction] TimestampSplit testFraction - * @property {string|null} [key] TimestampSplit key + * @interface IGenerateContentRequest + * @property {string|null} [model] GenerateContentRequest model + * @property {Array.|null} [contents] GenerateContentRequest contents + * @property {Array.|null} [tools] GenerateContentRequest tools + * @property {Array.|null} [safetySettings] GenerateContentRequest safetySettings + * @property {google.cloud.aiplatform.v1beta1.IGenerationConfig|null} [generationConfig] GenerateContentRequest generationConfig */ /** - * Constructs a new TimestampSplit. + * Constructs a new GenerateContentRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a TimestampSplit. - * @implements ITimestampSplit + * @classdesc Represents a GenerateContentRequest. + * @implements IGenerateContentRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest=} [properties] Properties to set */ - function TimestampSplit(properties) { + function GenerateContentRequest(properties) { + this.contents = []; + this.tools = []; + this.safetySettings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -420836,117 +425198,140 @@ } /** - * TimestampSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * GenerateContentRequest model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @instance */ - TimestampSplit.prototype.trainingFraction = 0; + GenerateContentRequest.prototype.model = ""; /** - * TimestampSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * GenerateContentRequest contents. + * @member {Array.} contents + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @instance */ - TimestampSplit.prototype.validationFraction = 0; + GenerateContentRequest.prototype.contents = $util.emptyArray; /** - * TimestampSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * GenerateContentRequest tools. + * @member {Array.} tools + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @instance */ - TimestampSplit.prototype.testFraction = 0; + GenerateContentRequest.prototype.tools = $util.emptyArray; /** - * TimestampSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * GenerateContentRequest safetySettings. + * @member {Array.} safetySettings + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @instance */ - TimestampSplit.prototype.key = ""; + GenerateContentRequest.prototype.safetySettings = $util.emptyArray; /** - * Creates a new TimestampSplit instance using the specified properties. + * GenerateContentRequest generationConfig. + * @member {google.cloud.aiplatform.v1beta1.IGenerationConfig|null|undefined} generationConfig + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @instance + */ + GenerateContentRequest.prototype.generationConfig = null; + + /** + * Creates a new GenerateContentRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit instance + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest instance */ - TimestampSplit.create = function create(properties) { - return new TimestampSplit(properties); + GenerateContentRequest.create = function create(properties) { + return new GenerateContentRequest(properties); }; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * Encodes the specified GenerateContentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} message GenerateContentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encode = function encode(message, writer) { + GenerateContentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.contents != null && message.contents.length) + for (var i = 0; i < message.contents.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Content.encode(message.contents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.safetySettings != null && message.safetySettings.length) + for (var i = 0; i < message.safetySettings.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SafetySetting.encode(message.safetySettings[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.generationConfig != null && Object.hasOwnProperty.call(message, "generationConfig")) + $root.google.cloud.aiplatform.v1beta1.GenerationConfig.encode(message.generationConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.model); + if (message.tools != null && message.tools.length) + for (var i = 0; i < message.tools.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Tool.encode(message.tools[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * Encodes the specified GenerateContentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentRequest} message GenerateContentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { + GenerateContentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * Decodes a GenerateContentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decode = function decode(reader, length) { + GenerateContentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.trainingFraction = reader.double(); + case 5: { + message.model = reader.string(); break; } case 2: { - message.validationFraction = reader.double(); + if (!(message.contents && message.contents.length)) + message.contents = []; + message.contents.push($root.google.cloud.aiplatform.v1beta1.Content.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.tools && message.tools.length)) + message.tools = []; + message.tools.push($root.google.cloud.aiplatform.v1beta1.Tool.decode(reader, reader.uint32())); break; } case 3: { - message.testFraction = reader.double(); + if (!(message.safetySettings && message.safetySettings.length)) + message.safetySettings = []; + message.safetySettings.push($root.google.cloud.aiplatform.v1beta1.SafetySetting.decode(reader, reader.uint32())); break; } case 4: { - message.key = reader.string(); + message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.decode(reader, reader.uint32()); break; } default: @@ -420958,150 +425343,216 @@ }; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a GenerateContentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + GenerateContentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampSplit message. + * Verifies a GenerateContentRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampSplit.verify = function verify(message) { + GenerateContentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.contents != null && message.hasOwnProperty("contents")) { + if (!Array.isArray(message.contents)) + return "contents: array expected"; + for (var i = 0; i < message.contents.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Content.verify(message.contents[i]); + if (error) + return "contents." + error; + } + } + if (message.tools != null && message.hasOwnProperty("tools")) { + if (!Array.isArray(message.tools)) + return "tools: array expected"; + for (var i = 0; i < message.tools.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Tool.verify(message.tools[i]); + if (error) + return "tools." + error; + } + } + if (message.safetySettings != null && message.hasOwnProperty("safetySettings")) { + if (!Array.isArray(message.safetySettings)) + return "safetySettings: array expected"; + for (var i = 0; i < message.safetySettings.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SafetySetting.verify(message.safetySettings[i]); + if (error) + return "safetySettings." + error; + } + } + if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.verify(message.generationConfig); + if (error) + return "generationConfig." + error; + } return null; }; /** - * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateContentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentRequest} GenerateContentRequest */ - TimestampSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.TimestampSplit) + GenerateContentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest(); + if (object.model != null) + message.model = String(object.model); + if (object.contents) { + if (!Array.isArray(object.contents)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.contents: array expected"); + message.contents = []; + for (var i = 0; i < object.contents.length; ++i) { + if (typeof object.contents[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.contents: object expected"); + message.contents[i] = $root.google.cloud.aiplatform.v1beta1.Content.fromObject(object.contents[i]); + } + } + if (object.tools) { + if (!Array.isArray(object.tools)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.tools: array expected"); + message.tools = []; + for (var i = 0; i < object.tools.length; ++i) { + if (typeof object.tools[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.tools: object expected"); + message.tools[i] = $root.google.cloud.aiplatform.v1beta1.Tool.fromObject(object.tools[i]); + } + } + if (object.safetySettings) { + if (!Array.isArray(object.safetySettings)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.safetySettings: array expected"); + message.safetySettings = []; + for (var i = 0; i < object.safetySettings.length; ++i) { + if (typeof object.safetySettings[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.safetySettings: object expected"); + message.safetySettings[i] = $root.google.cloud.aiplatform.v1beta1.SafetySetting.fromObject(object.safetySettings[i]); + } + } + if (object.generationConfig != null) { + if (typeof object.generationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.generationConfig: object expected"); + message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.fromObject(object.generationConfig); + } return message; }; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * Creates a plain object from a GenerateContentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static - * @param {google.cloud.aiplatform.v1beta1.TimestampSplit} message TimestampSplit + * @param {google.cloud.aiplatform.v1beta1.GenerateContentRequest} message GenerateContentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampSplit.toObject = function toObject(message, options) { + GenerateContentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.contents = []; + object.safetySettings = []; + object.tools = []; + } if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; + object.generationConfig = null; + object.model = ""; + } + if (message.contents && message.contents.length) { + object.contents = []; + for (var j = 0; j < message.contents.length; ++j) + object.contents[j] = $root.google.cloud.aiplatform.v1beta1.Content.toObject(message.contents[j], options); + } + if (message.safetySettings && message.safetySettings.length) { + object.safetySettings = []; + for (var j = 0; j < message.safetySettings.length; ++j) + object.safetySettings[j] = $root.google.cloud.aiplatform.v1beta1.SafetySetting.toObject(message.safetySettings[j], options); + } + if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) + object.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.toObject(message.generationConfig, options); + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.tools && message.tools.length) { + object.tools = []; + for (var j = 0; j < message.tools.length; ++j) + object.tools[j] = $root.google.cloud.aiplatform.v1beta1.Tool.toObject(message.tools[j], options); } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; return object; }; /** - * Converts this TimestampSplit to JSON. + * Converts this GenerateContentRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @instance * @returns {Object.} JSON object */ - TimestampSplit.prototype.toJSON = function toJSON() { + GenerateContentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimestampSplit + * Gets the default type url for GenerateContentRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GenerateContentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.TimestampSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentRequest"; }; - return TimestampSplit; + return GenerateContentRequest; })(); - v1beta1.StratifiedSplit = (function() { + v1beta1.GenerateContentResponse = (function() { /** - * Properties of a StratifiedSplit. + * Properties of a GenerateContentResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStratifiedSplit - * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction - * @property {number|null} [validationFraction] StratifiedSplit validationFraction - * @property {number|null} [testFraction] StratifiedSplit testFraction - * @property {string|null} [key] StratifiedSplit key + * @interface IGenerateContentResponse + * @property {Array.|null} [candidates] GenerateContentResponse candidates + * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null} [promptFeedback] GenerateContentResponse promptFeedback + * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null} [usageMetadata] GenerateContentResponse usageMetadata */ /** - * Constructs a new StratifiedSplit. + * Constructs a new GenerateContentResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StratifiedSplit. - * @implements IStratifiedSplit + * @classdesc Represents a GenerateContentResponse. + * @implements IGenerateContentResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse=} [properties] Properties to set */ - function StratifiedSplit(properties) { + function GenerateContentResponse(properties) { + this.candidates = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -421109,117 +425560,106 @@ } /** - * StratifiedSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.trainingFraction = 0; - - /** - * StratifiedSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * GenerateContentResponse candidates. + * @member {Array.} candidates + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @instance */ - StratifiedSplit.prototype.validationFraction = 0; + GenerateContentResponse.prototype.candidates = $util.emptyArray; /** - * StratifiedSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * GenerateContentResponse promptFeedback. + * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null|undefined} promptFeedback + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @instance */ - StratifiedSplit.prototype.testFraction = 0; + GenerateContentResponse.prototype.promptFeedback = null; /** - * StratifiedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * GenerateContentResponse usageMetadata. + * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null|undefined} usageMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @instance */ - StratifiedSplit.prototype.key = ""; + GenerateContentResponse.prototype.usageMetadata = null; /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new GenerateContentResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit instance + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse instance */ - StratifiedSplit.create = function create(properties) { - return new StratifiedSplit(properties); + GenerateContentResponse.create = function create(properties) { + return new GenerateContentResponse(properties); }; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. + * Encodes the specified GenerateContentResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse} message GenerateContentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encode = function encode(message, writer) { + GenerateContentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.candidates != null && message.candidates.length) + for (var i = 0; i < message.candidates.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Candidate.encode(message.candidates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.promptFeedback != null && Object.hasOwnProperty.call(message, "promptFeedback")) + $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.encode(message.promptFeedback, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.usageMetadata != null && Object.hasOwnProperty.call(message, "usageMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.encode(message.usageMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. + * Encodes the specified GenerateContentResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGenerateContentResponse} message GenerateContentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + GenerateContentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes a GenerateContentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decode = function decode(reader, length) { + GenerateContentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.trainingFraction = reader.double(); - break; - } case 2: { - message.validationFraction = reader.double(); + if (!(message.candidates && message.candidates.length)) + message.candidates = []; + message.candidates.push($root.google.cloud.aiplatform.v1beta1.Candidate.decode(reader, reader.uint32())); break; } case 3: { - message.testFraction = reader.double(); + message.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.decode(reader, reader.uint32()); break; } case 4: { - message.key = reader.string(); + message.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.decode(reader, reader.uint32()); break; } default: @@ -421231,127 +425671,709 @@ }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes a GenerateContentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { + GenerateContentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StratifiedSplit message. + * Verifies a GenerateContentResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StratifiedSplit.verify = function verify(message) { + GenerateContentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.candidates != null && message.hasOwnProperty("candidates")) { + if (!Array.isArray(message.candidates)) + return "candidates: array expected"; + for (var i = 0; i < message.candidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Candidate.verify(message.candidates[i]); + if (error) + return "candidates." + error; + } + } + if (message.promptFeedback != null && message.hasOwnProperty("promptFeedback")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify(message.promptFeedback); + if (error) + return "promptFeedback." + error; + } + if (message.usageMetadata != null && message.hasOwnProperty("usageMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify(message.usageMetadata); + if (error) + return "usageMetadata." + error; + } return null; }; /** - * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateContentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse} GenerateContentResponse */ - StratifiedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StratifiedSplit) + GenerateContentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse(); + if (object.candidates) { + if (!Array.isArray(object.candidates)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.candidates: array expected"); + message.candidates = []; + for (var i = 0; i < object.candidates.length; ++i) { + if (typeof object.candidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.candidates: object expected"); + message.candidates[i] = $root.google.cloud.aiplatform.v1beta1.Candidate.fromObject(object.candidates[i]); + } + } + if (object.promptFeedback != null) { + if (typeof object.promptFeedback !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.promptFeedback: object expected"); + message.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.fromObject(object.promptFeedback); + } + if (object.usageMetadata != null) { + if (typeof object.usageMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.usageMetadata: object expected"); + message.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.fromObject(object.usageMetadata); + } return message; }; /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * Creates a plain object from a GenerateContentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static - * @param {google.cloud.aiplatform.v1beta1.StratifiedSplit} message StratifiedSplit + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse} message GenerateContentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StratifiedSplit.toObject = function toObject(message, options) { + GenerateContentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.candidates = []; if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; + object.promptFeedback = null; + object.usageMetadata = null; } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (message.candidates && message.candidates.length) { + object.candidates = []; + for (var j = 0; j < message.candidates.length; ++j) + object.candidates[j] = $root.google.cloud.aiplatform.v1beta1.Candidate.toObject(message.candidates[j], options); + } + if (message.promptFeedback != null && message.hasOwnProperty("promptFeedback")) + object.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.toObject(message.promptFeedback, options); + if (message.usageMetadata != null && message.hasOwnProperty("usageMetadata")) + object.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.toObject(message.usageMetadata, options); return object; }; /** - * Converts this StratifiedSplit to JSON. + * Converts this GenerateContentResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @instance * @returns {Object.} JSON object */ - StratifiedSplit.prototype.toJSON = function toJSON() { + GenerateContentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for GenerateContentResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GenerateContentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StratifiedSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentResponse"; }; - return StratifiedSplit; + GenerateContentResponse.PromptFeedback = (function() { + + /** + * Properties of a PromptFeedback. + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @interface IPromptFeedback + * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason|null} [blockReason] PromptFeedback blockReason + * @property {Array.|null} [safetyRatings] PromptFeedback safetyRatings + * @property {string|null} [blockReasonMessage] PromptFeedback blockReasonMessage + */ + + /** + * Constructs a new PromptFeedback. + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @classdesc Represents a PromptFeedback. + * @implements IPromptFeedback + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback=} [properties] Properties to set + */ + function PromptFeedback(properties) { + this.safetyRatings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PromptFeedback blockReason. + * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason} blockReason + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @instance + */ + PromptFeedback.prototype.blockReason = 0; + + /** + * PromptFeedback safetyRatings. + * @member {Array.} safetyRatings + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @instance + */ + PromptFeedback.prototype.safetyRatings = $util.emptyArray; + + /** + * PromptFeedback blockReasonMessage. + * @member {string} blockReasonMessage + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @instance + */ + PromptFeedback.prototype.blockReasonMessage = ""; + + /** + * Creates a new PromptFeedback instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback instance + */ + PromptFeedback.create = function create(properties) { + return new PromptFeedback(properties); + }; + + /** + * Encodes the specified PromptFeedback message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback} message PromptFeedback message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PromptFeedback.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.blockReason != null && Object.hasOwnProperty.call(message, "blockReason")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.blockReason); + if (message.safetyRatings != null && message.safetyRatings.length) + for (var i = 0; i < message.safetyRatings.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SafetyRating.encode(message.safetyRatings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.blockReasonMessage != null && Object.hasOwnProperty.call(message, "blockReasonMessage")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.blockReasonMessage); + return writer; + }; + + /** + * Encodes the specified PromptFeedback message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback} message PromptFeedback message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PromptFeedback.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PromptFeedback message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PromptFeedback.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.blockReason = reader.int32(); + break; + } + case 2: { + if (!(message.safetyRatings && message.safetyRatings.length)) + message.safetyRatings = []; + message.safetyRatings.push($root.google.cloud.aiplatform.v1beta1.SafetyRating.decode(reader, reader.uint32())); + break; + } + case 3: { + message.blockReasonMessage = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PromptFeedback message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PromptFeedback.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PromptFeedback message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PromptFeedback.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.blockReason != null && message.hasOwnProperty("blockReason")) + switch (message.blockReason) { + default: + return "blockReason: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.safetyRatings != null && message.hasOwnProperty("safetyRatings")) { + if (!Array.isArray(message.safetyRatings)) + return "safetyRatings: array expected"; + for (var i = 0; i < message.safetyRatings.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SafetyRating.verify(message.safetyRatings[i]); + if (error) + return "safetyRatings." + error; + } + } + if (message.blockReasonMessage != null && message.hasOwnProperty("blockReasonMessage")) + if (!$util.isString(message.blockReasonMessage)) + return "blockReasonMessage: string expected"; + return null; + }; + + /** + * Creates a PromptFeedback message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} PromptFeedback + */ + PromptFeedback.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback(); + switch (object.blockReason) { + default: + if (typeof object.blockReason === "number") { + message.blockReason = object.blockReason; + break; + } + break; + case "BLOCKED_REASON_UNSPECIFIED": + case 0: + message.blockReason = 0; + break; + case "SAFETY": + case 1: + message.blockReason = 1; + break; + case "OTHER": + case 2: + message.blockReason = 2; + break; + } + if (object.safetyRatings) { + if (!Array.isArray(object.safetyRatings)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.safetyRatings: array expected"); + message.safetyRatings = []; + for (var i = 0; i < object.safetyRatings.length; ++i) { + if (typeof object.safetyRatings[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.safetyRatings: object expected"); + message.safetyRatings[i] = $root.google.cloud.aiplatform.v1beta1.SafetyRating.fromObject(object.safetyRatings[i]); + } + } + if (object.blockReasonMessage != null) + message.blockReasonMessage = String(object.blockReasonMessage); + return message; + }; + + /** + * Creates a plain object from a PromptFeedback message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback} message PromptFeedback + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PromptFeedback.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.safetyRatings = []; + if (options.defaults) { + object.blockReason = options.enums === String ? "BLOCKED_REASON_UNSPECIFIED" : 0; + object.blockReasonMessage = ""; + } + if (message.blockReason != null && message.hasOwnProperty("blockReason")) + object.blockReason = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason[message.blockReason] === undefined ? message.blockReason : $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason[message.blockReason] : message.blockReason; + if (message.safetyRatings && message.safetyRatings.length) { + object.safetyRatings = []; + for (var j = 0; j < message.safetyRatings.length; ++j) + object.safetyRatings[j] = $root.google.cloud.aiplatform.v1beta1.SafetyRating.toObject(message.safetyRatings[j], options); + } + if (message.blockReasonMessage != null && message.hasOwnProperty("blockReasonMessage")) + object.blockReasonMessage = message.blockReasonMessage; + return object; + }; + + /** + * Converts this PromptFeedback to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @instance + * @returns {Object.} JSON object + */ + PromptFeedback.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PromptFeedback + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PromptFeedback.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback"; + }; + + /** + * BlockedReason enum. + * @name google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.BlockedReason + * @enum {number} + * @property {number} BLOCKED_REASON_UNSPECIFIED=0 BLOCKED_REASON_UNSPECIFIED value + * @property {number} SAFETY=1 SAFETY value + * @property {number} OTHER=2 OTHER value + */ + PromptFeedback.BlockedReason = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BLOCKED_REASON_UNSPECIFIED"] = 0; + values[valuesById[1] = "SAFETY"] = 1; + values[valuesById[2] = "OTHER"] = 2; + return values; + })(); + + return PromptFeedback; + })(); + + GenerateContentResponse.UsageMetadata = (function() { + + /** + * Properties of a UsageMetadata. + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @interface IUsageMetadata + * @property {number|null} [promptTokenCount] UsageMetadata promptTokenCount + * @property {number|null} [candidatesTokenCount] UsageMetadata candidatesTokenCount + * @property {number|null} [totalTokenCount] UsageMetadata totalTokenCount + */ + + /** + * Constructs a new UsageMetadata. + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @classdesc Represents a UsageMetadata. + * @implements IUsageMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata=} [properties] Properties to set + */ + function UsageMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UsageMetadata promptTokenCount. + * @member {number} promptTokenCount + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @instance + */ + UsageMetadata.prototype.promptTokenCount = 0; + + /** + * UsageMetadata candidatesTokenCount. + * @member {number} candidatesTokenCount + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @instance + */ + UsageMetadata.prototype.candidatesTokenCount = 0; + + /** + * UsageMetadata totalTokenCount. + * @member {number} totalTokenCount + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @instance + */ + UsageMetadata.prototype.totalTokenCount = 0; + + /** + * Creates a new UsageMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata instance + */ + UsageMetadata.create = function create(properties) { + return new UsageMetadata(properties); + }; + + /** + * Encodes the specified UsageMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata} message UsageMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UsageMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.promptTokenCount != null && Object.hasOwnProperty.call(message, "promptTokenCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.promptTokenCount); + if (message.candidatesTokenCount != null && Object.hasOwnProperty.call(message, "candidatesTokenCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.candidatesTokenCount); + if (message.totalTokenCount != null && Object.hasOwnProperty.call(message, "totalTokenCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.totalTokenCount); + return writer; + }; + + /** + * Encodes the specified UsageMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata} message UsageMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UsageMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UsageMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UsageMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.promptTokenCount = reader.int32(); + break; + } + case 2: { + message.candidatesTokenCount = reader.int32(); + break; + } + case 3: { + message.totalTokenCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UsageMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UsageMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UsageMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UsageMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.promptTokenCount != null && message.hasOwnProperty("promptTokenCount")) + if (!$util.isInteger(message.promptTokenCount)) + return "promptTokenCount: integer expected"; + if (message.candidatesTokenCount != null && message.hasOwnProperty("candidatesTokenCount")) + if (!$util.isInteger(message.candidatesTokenCount)) + return "candidatesTokenCount: integer expected"; + if (message.totalTokenCount != null && message.hasOwnProperty("totalTokenCount")) + if (!$util.isInteger(message.totalTokenCount)) + return "totalTokenCount: integer expected"; + return null; + }; + + /** + * Creates a UsageMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} UsageMetadata + */ + UsageMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata(); + if (object.promptTokenCount != null) + message.promptTokenCount = object.promptTokenCount | 0; + if (object.candidatesTokenCount != null) + message.candidatesTokenCount = object.candidatesTokenCount | 0; + if (object.totalTokenCount != null) + message.totalTokenCount = object.totalTokenCount | 0; + return message; + }; + + /** + * Creates a plain object from a UsageMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata} message UsageMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UsageMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.promptTokenCount = 0; + object.candidatesTokenCount = 0; + object.totalTokenCount = 0; + } + if (message.promptTokenCount != null && message.hasOwnProperty("promptTokenCount")) + object.promptTokenCount = message.promptTokenCount; + if (message.candidatesTokenCount != null && message.hasOwnProperty("candidatesTokenCount")) + object.candidatesTokenCount = message.candidatesTokenCount; + if (message.totalTokenCount != null && message.hasOwnProperty("totalTokenCount")) + object.totalTokenCount = message.totalTokenCount; + return object; + }; + + /** + * Converts this UsageMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @instance + * @returns {Object.} JSON object + */ + UsageMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UsageMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UsageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata"; + }; + + return UsageMetadata; + })(); + + return GenerateContentResponse; })(); v1beta1.Schedule = (function() { diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 936bc6399627..4c01ce907bad 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -1978,7 +1978,8 @@ "BQML": 3, "MODEL_GARDEN": 4, "GENIE": 5, - "CUSTOM_TEXT_EMBEDDING": 6 + "CUSTOM_TEXT_EMBEDDING": 6, + "MARKETPLACE": 7 } } } @@ -2991,13 +2992,6 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } - }, - "maxWaitDuration": { - "type": "google.protobuf.Duration", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } } }, @@ -11224,6 +11218,14 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "pscAutomatedEndpoints": { + "rule": "repeated", + "type": "PscAutomatedEndpoints", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -11243,6 +11245,22 @@ } } }, + "PscAutomatedEndpoints": { + "fields": { + "projectId": { + "type": "string", + "id": 1 + }, + "network": { + "type": "string", + "id": 2 + }, + "matchAddress": { + "type": "string", + "id": 3 + } + } + }, "IndexEndpointService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -11970,6 +11988,13 @@ "rule": "repeated", "type": "IndexDatapoint", "id": 2 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -12042,7 +12067,13 @@ "INVALID_AVRO_SYNTAX": 4, "INVALID_EMBEDDING_ID": 5, "EMBEDDING_SIZE_MISMATCH": 6, - "NAMESPACE_MISSING": 7 + "NAMESPACE_MISSING": 7, + "PARSING_ERROR": 8, + "DUPLICATE_NAMESPACE": 9, + "OP_IN_DATAPOINT": 10, + "MULTIPLE_VALUES": 11, + "INVALID_NUMERIC_VALUE": 12, + "INVALID_ENCODING": 13 } } } @@ -13721,6 +13752,13 @@ "bigqueryTablePath": { "type": "string", "id": 3 + }, + "requestResponseLoggingSchemaVersion": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -17868,11 +17906,17 @@ }, "useCase": { "type": "string", - "id": 3 + "id": 3, + "options": { + "deprecated": true + } }, "description": { "type": "string", - "id": 4 + "id": 4, + "options": { + "deprecated": true + } } } }, @@ -17895,6 +17939,18 @@ } }, "CallToAction": { + "oneofs": { + "_openNotebooks": { + "oneof": [ + "openNotebooks" + ] + }, + "_openFineTuningPipelines": { + "oneof": [ + "openFineTuningPipelines" + ] + } + }, "fields": { "viewRestApi": { "type": "ViewRestApi", @@ -17910,6 +17966,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "openNotebooks": { + "type": "OpenNotebooks", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "createApplication": { "type": "RegionalResourceReferences", "id": 3, @@ -17924,6 +17988,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "openFineTuningPipelines": { + "type": "OpenFineTuningPipelines", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "openPromptTuningPipeline": { "type": "RegionalResourceReferences", "id": 5, @@ -17945,6 +18017,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "deployGke": { + "type": "DeployGke", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "openGenerationAiStudio": { "type": "RegionalResourceReferences", "id": 8, @@ -17969,6 +18048,23 @@ }, "nested": { "RegionalResourceReferences": { + "oneofs": { + "_resourceTitle": { + "oneof": [ + "resourceTitle" + ] + }, + "_resourceUseCase": { + "oneof": [ + "resourceUseCase" + ] + }, + "_resourceDescription": { + "oneof": [ + "resourceDescription" + ] + } + }, "fields": { "references": { "keyType": "string", @@ -17984,6 +18080,30 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "resourceTitle": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "resourceUseCase": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "resourceDescription": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -18006,6 +18126,30 @@ } } }, + "OpenNotebooks": { + "fields": { + "notebooks": { + "rule": "repeated", + "type": "RegionalResourceReferences", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "OpenFineTuningPipelines": { + "fields": { + "fineTuningPipelines": { + "rule": "repeated", + "type": "RegionalResourceReferences", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "Deploy": { "oneofs": { "predictionResources": { @@ -18072,6 +18216,18 @@ } } } + }, + "DeployGke": { + "fields": { + "gkeYamlConfigs": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, @@ -26235,6 +26391,13 @@ "bigqueryTablePath": { "type": "string", "id": 3 + }, + "requestResponseLoggingSchemaVersion": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -27005,7 +27168,8 @@ "BQML": 3, "MODEL_GARDEN": 4, "GENIE": 5, - "CUSTOM_TEXT_EMBEDDING": 6 + "CUSTOM_TEXT_EMBEDDING": 6, + "MARKETPLACE": 7 } } } @@ -27479,6 +27643,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "groundingMetadata": { + "type": "GroundingMetadata", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -27494,6 +27665,109 @@ } } }, + "Segment": { + "fields": { + "partIndex": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "startIndex": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endIndex": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "GroundingAttribution": { + "oneofs": { + "reference": { + "oneof": [ + "web" + ] + }, + "_confidenceScore": { + "oneof": [ + "confidenceScore" + ] + } + }, + "fields": { + "web": { + "type": "Web", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "segment": { + "type": "Segment", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidenceScore": { + "type": "float", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + }, + "nested": { + "Web": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "title": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, + "GroundingMetadata": { + "fields": { + "webSearchQueries": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "groundingAttributions": { + "rule": "repeated", + "type": "GroundingAttribution", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "Tool": { "fields": { "functionDeclarations": { @@ -27503,6 +27777,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "retrieval": { + "type": "Retrieval", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "googleSearchRetrieval": { + "type": "GoogleSearchRetrieval", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -27567,6 +27855,50 @@ } } }, + "Retrieval": { + "oneofs": { + "source": { + "oneof": [ + "vertexAiSearch" + ] + } + }, + "fields": { + "vertexAiSearch": { + "type": "VertexAISearch", + "id": 2 + }, + "disableAttribution": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "VertexAISearch": { + "fields": { + "datastore": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GoogleSearchRetrieval": { + "fields": { + "disableAttribution": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "Type": { "values": { "TYPE_UNSPECIFIED": 0, @@ -28026,13 +28358,6 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } - }, - "maxWaitDuration": { - "type": "google.protobuf.Duration", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } } }, @@ -31398,6 +31723,22 @@ } } }, + "PscAutomatedEndpoints": { + "fields": { + "projectId": { + "type": "string", + "id": 1 + }, + "network": { + "type": "string", + "id": 2 + }, + "matchAddress": { + "type": "string", + "id": 3 + } + } + }, "FeatureOnlineStoreAdminService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -36465,6 +36806,14 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "pscAutomatedEndpoints": { + "rule": "repeated", + "type": "PscAutomatedEndpoints", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -37195,6 +37544,13 @@ "rule": "repeated", "type": "IndexDatapoint", "id": 2 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -37267,7 +37623,13 @@ "INVALID_AVRO_SYNTAX": 4, "INVALID_EMBEDDING_ID": 5, "EMBEDDING_SIZE_MISMATCH": 6, - "NAMESPACE_MISSING": 7 + "NAMESPACE_MISSING": 7, + "PARSING_ERROR": 8, + "DUPLICATE_NAMESPACE": 9, + "OP_IN_DATAPOINT": 10, + "MULTIPLE_VALUES": 11, + "INVALID_NUMERIC_VALUE": 12, + "INVALID_ENCODING": 13 } } } @@ -39132,32 +39494,6 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { - "CountTokens": { - "requestType": "CountTokensRequest", - "responseType": "CountTokensResponse", - "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "endpoint,instances" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", - "body": "*" - } - } - }, - { - "(google.api.method_signature)": "endpoint,instances" - } - ] - }, "ComputeTokens": { "requestType": "ComputeTokensRequest", "responseType": "ComputeTokensResponse", @@ -39229,1149 +39565,392 @@ } } }, - "PredictionService": { + "MatchService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { - "Predict": { - "requestType": "PredictRequest", - "responseType": "PredictResponse", + "FindNeighbors": { + "requestType": "FindNeighborsRequest", + "responseType": "FindNeighborsResponse", "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:predict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "endpoint,instances,parameters" + "(google.api.http).post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors", + "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:predict", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", - "body": "*" - } + "post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors", + "body": "*" } - }, + } + ] + }, + "ReadIndexDatapoints": { + "requestType": "ReadIndexDatapointsRequest", + "responseType": "ReadIndexDatapointsResponse", + "options": { + "(google.api.http).post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints", + "(google.api.http).body": "*" + }, + "parsedOptions": [ { - "(google.api.method_signature)": "endpoint,instances,parameters" + "(google.api.http)": { + "post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints", + "body": "*" + } } ] + } + } + }, + "FindNeighborsRequest": { + "fields": { + "indexEndpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/IndexEndpoint" + } }, - "RawPredict": { - "requestType": "RawPredictRequest", - "responseType": "google.api.HttpBody", + "deployedIndexId": { + "type": "string", + "id": 2 + }, + "queries": { + "rule": "repeated", + "type": "Query", + "id": 3 + }, + "returnFullDatapoint": { + "type": "bool", + "id": 4 + } + }, + "nested": { + "Query": { + "fields": { + "datapoint": { + "type": "IndexDatapoint", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "neighborCount": { + "type": "int32", + "id": 2 + }, + "perCrowdingAttributeNeighborCount": { + "type": "int32", + "id": 3 + }, + "approximateNeighborCount": { + "type": "int32", + "id": 4 + }, + "fractionLeafNodesToSearchOverride": { + "type": "double", + "id": 5 + } + } + } + } + }, + "FindNeighborsResponse": { + "fields": { + "nearestNeighbors": { + "rule": "repeated", + "type": "NearestNeighbors", + "id": 1 + } + }, + "nested": { + "Neighbor": { + "fields": { + "datapoint": { + "type": "IndexDatapoint", + "id": 1 + }, + "distance": { + "type": "double", + "id": 2 + } + } + }, + "NearestNeighbors": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "neighbors": { + "rule": "repeated", + "type": "Neighbor", + "id": 2 + } + } + } + } + }, + "ReadIndexDatapointsRequest": { + "fields": { + "indexEndpoint": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "endpoint,http_body" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/IndexEndpoint" + } + }, + "deployedIndexId": { + "type": "string", + "id": 2 + }, + "ids": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "ReadIndexDatapointsResponse": { + "fields": { + "datapoints": { + "rule": "repeated", + "type": "IndexDatapoint", + "id": 1 + } + } + }, + "MetadataSchema": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "schemaVersion": { + "type": "string", + "id": 2 + }, + "schema": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "schemaType": { + "type": "MetadataSchemaType", + "id": 4 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "description": { + "type": "string", + "id": 6 + } + }, + "nested": { + "MetadataSchemaType": { + "values": { + "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, + "ARTIFACT_TYPE": 1, + "EXECUTION_TYPE": 2, + "CONTEXT_TYPE": 3 + } + } + } + }, + "MetadataService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateMetadataStore": { + "requestType": "CreateMetadataStoreRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", + "(google.api.http).body": "metadata_store", + "(google.api.method_signature)": "parent,metadata_store,metadata_store_id", + "(google.longrunning.operation_info).response_type": "MetadataStore", + "(google.longrunning.operation_info).metadata_type": "CreateMetadataStoreOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", - "body": "*" - } + "post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", + "body": "metadata_store" } }, { - "(google.api.method_signature)": "endpoint,http_body" + "(google.api.method_signature)": "parent,metadata_store,metadata_store_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "MetadataStore", + "metadata_type": "CreateMetadataStoreOperationMetadata" + } } ] }, - "DirectPredict": { - "requestType": "DirectPredictRequest", - "responseType": "DirectPredictResponse", + "GetMetadataStore": { + "requestType": "GetMetadataStoreRequest", + "responseType": "MetadataStore", "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict", - "(google.api.http).body": "*" + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict", - "body": "*" + "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" } + }, + { + "(google.api.method_signature)": "name" } ] }, - "DirectRawPredict": { - "requestType": "DirectRawPredictRequest", - "responseType": "DirectRawPredictResponse", + "ListMetadataStores": { + "requestType": "ListMetadataStoresRequest", + "responseType": "ListMetadataStoresResponse", "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict", - "(google.api.http).body": "*" + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", + "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict", - "body": "*" + "get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores" } + }, + { + "(google.api.method_signature)": "parent" } ] }, - "StreamDirectPredict": { - "requestType": "StreamDirectPredictRequest", - "requestStream": true, - "responseType": "StreamDirectPredictResponse", - "responseStream": true - }, - "StreamDirectRawPredict": { - "requestType": "StreamDirectRawPredictRequest", - "requestStream": true, - "responseType": "StreamDirectRawPredictResponse", - "responseStream": true - }, - "StreamingPredict": { - "requestType": "StreamingPredictRequest", - "requestStream": true, - "responseType": "StreamingPredictResponse", - "responseStream": true - }, - "ServerStreamingPredict": { - "requestType": "StreamingPredictRequest", - "responseType": "StreamingPredictResponse", - "responseStream": true, + "DeleteMetadataStore": { + "requestType": "DeleteMetadataStoreRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteMetadataStoreOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", - "body": "*" - } + "delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteMetadataStoreOperationMetadata" } } ] }, - "StreamingRawPredict": { - "requestType": "StreamingRawPredictRequest", - "requestStream": true, - "responseType": "StreamingRawPredictResponse", - "responseStream": true - }, - "Explain": { - "requestType": "ExplainRequest", - "responseType": "ExplainResponse", + "CreateArtifact": { + "requestType": "CreateArtifactRequest", + "responseType": "Artifact", "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:explain", - "(google.api.http).body": "*", - "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", + "(google.api.http).body": "artifact", + "(google.api.method_signature)": "parent,artifact,artifact_id" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:explain", - "body": "*" + "post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", + "body": "artifact" } }, { - "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" + "(google.api.method_signature)": "parent,artifact,artifact_id" } ] }, - "CountTokens": { - "requestType": "CountTokensRequest", - "responseType": "CountTokensResponse", + "GetArtifact": { + "requestType": "GetArtifactRequest", + "responseType": "Artifact", "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "endpoint,instances" + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", - "body": "*" - } + "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}" } }, { - "(google.api.method_signature)": "endpoint,instances" + "(google.api.method_signature)": "name" } ] }, - "GenerateContent": { - "requestType": "GenerateContentRequest", - "responseType": "GenerateContentResponse", + "ListArtifacts": { + "requestType": "ListArtifactsRequest", + "responseType": "ListArtifactsResponse", "options": { - "(google.api.http).post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "model,contents" + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", + "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", - "body": "*" - } + "get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts" } }, { - "(google.api.method_signature)": "model,contents" + "(google.api.method_signature)": "parent" } ] }, - "StreamGenerateContent": { - "requestType": "GenerateContentRequest", - "responseType": "GenerateContentResponse", - "responseStream": true, + "UpdateArtifact": { + "requestType": "UpdateArtifactRequest", + "responseType": "Artifact", "options": { - "(google.api.http).post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "model,contents" + "(google.api.http).patch": "/v1beta1/{artifact.name=projects/*/locations/*/metadataStores/*/artifacts/*}", + "(google.api.http).body": "artifact", + "(google.api.method_signature)": "artifact,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", - "body": "*", - "additional_bindings": { - "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", - "body": "*" - } + "patch": "/v1beta1/{artifact.name=projects/*/locations/*/metadataStores/*/artifacts/*}", + "body": "artifact" } }, { - "(google.api.method_signature)": "model,contents" + "(google.api.method_signature)": "artifact,update_mask" } ] - } - } - }, - "PredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } }, - "instances": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parameters": { - "type": "google.protobuf.Value", - "id": 3 - } - } - }, - "PredictResponse": { - "fields": { - "predictions": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 1 - }, - "deployedModelId": { - "type": "string", - "id": 2 - }, - "model": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" - } - }, - "modelVersionId": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "modelDisplayName": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "metadata": { - "type": "google.protobuf.Value", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, - "RawPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "httpBody": { - "type": "google.api.HttpBody", - "id": 2 - } - } - }, - "DirectPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "inputs": { - "rule": "repeated", - "type": "Tensor", - "id": 2 - }, - "parameters": { - "type": "Tensor", - "id": 3 - } - } - }, - "DirectPredictResponse": { - "fields": { - "outputs": { - "rule": "repeated", - "type": "Tensor", - "id": 1 - }, - "parameters": { - "type": "Tensor", - "id": 2 - } - } - }, - "DirectRawPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "methodName": { - "type": "string", - "id": 2 - }, - "input": { - "type": "bytes", - "id": 3 - } - } - }, - "DirectRawPredictResponse": { - "fields": { - "output": { - "type": "bytes", - "id": 1 - } - } - }, - "StreamDirectPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "inputs": { - "rule": "repeated", - "type": "Tensor", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "parameters": { - "type": "Tensor", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "StreamDirectPredictResponse": { - "fields": { - "outputs": { - "rule": "repeated", - "type": "Tensor", - "id": 1 - }, - "parameters": { - "type": "Tensor", - "id": 2 - } - } - }, - "StreamDirectRawPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "methodName": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "input": { - "type": "bytes", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "StreamDirectRawPredictResponse": { - "fields": { - "output": { - "type": "bytes", - "id": 1 - } - } - }, - "StreamingPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "inputs": { - "rule": "repeated", - "type": "Tensor", - "id": 2 - }, - "parameters": { - "type": "Tensor", - "id": 3 - } - } - }, - "StreamingPredictResponse": { - "fields": { - "outputs": { - "rule": "repeated", - "type": "Tensor", - "id": 1 - }, - "parameters": { - "type": "Tensor", - "id": 2 - } - } - }, - "StreamingRawPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "methodName": { - "type": "string", - "id": 2 - }, - "input": { - "type": "bytes", - "id": 3 - } - } - }, - "StreamingRawPredictResponse": { - "fields": { - "output": { - "type": "bytes", - "id": 1 - } - } - }, - "ExplainRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "instances": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parameters": { - "type": "google.protobuf.Value", - "id": 4 - }, - "explanationSpecOverride": { - "type": "ExplanationSpecOverride", - "id": 5 - }, - "concurrentExplanationSpecOverride": { - "keyType": "string", - "type": "ExplanationSpecOverride", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "deployedModelId": { - "type": "string", - "id": 3 - } - } - }, - "ExplainResponse": { - "fields": { - "explanations": { - "rule": "repeated", - "type": "Explanation", - "id": 1 - }, - "concurrentExplanations": { - "keyType": "string", - "type": "ConcurrentExplanation", - "id": 4 - }, - "deployedModelId": { - "type": "string", - "id": 2 - }, - "predictions": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 3 - } - }, - "nested": { - "ConcurrentExplanation": { - "fields": { - "explanations": { - "rule": "repeated", - "type": "Explanation", - "id": 1 - } - } - } - } - }, - "CountTokensRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "model": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "instances": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "contents": { - "rule": "repeated", - "type": "Content", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "CountTokensResponse": { - "fields": { - "totalTokens": { - "type": "int32", - "id": 1 - }, - "totalBillableCharacters": { - "type": "int32", - "id": 2 - } - } - }, - "GenerateContentRequest": { - "fields": { - "model": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "contents": { - "rule": "repeated", - "type": "Content", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "tools": { - "rule": "repeated", - "type": "Tool", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "safetySettings": { - "rule": "repeated", - "type": "SafetySetting", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "generationConfig": { - "type": "GenerationConfig", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "GenerateContentResponse": { - "fields": { - "candidates": { - "rule": "repeated", - "type": "Candidate", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "promptFeedback": { - "type": "PromptFeedback", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "usageMetadata": { - "type": "UsageMetadata", - "id": 4 - } - }, - "nested": { - "PromptFeedback": { - "fields": { - "blockReason": { - "type": "BlockedReason", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "safetyRatings": { - "rule": "repeated", - "type": "SafetyRating", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "blockReasonMessage": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "BlockedReason": { - "values": { - "BLOCKED_REASON_UNSPECIFIED": 0, - "SAFETY": 1, - "OTHER": 2 - } - } - } - }, - "UsageMetadata": { - "fields": { - "promptTokenCount": { - "type": "int32", - "id": 1 - }, - "candidatesTokenCount": { - "type": "int32", - "id": 2 - }, - "totalTokenCount": { - "type": "int32", - "id": 3 - } - } - } - } - }, - "MatchService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, - "methods": { - "FindNeighbors": { - "requestType": "FindNeighborsRequest", - "responseType": "FindNeighborsResponse", - "options": { - "(google.api.http).post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors", - "(google.api.http).body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors", - "body": "*" - } - } - ] - }, - "ReadIndexDatapoints": { - "requestType": "ReadIndexDatapointsRequest", - "responseType": "ReadIndexDatapointsResponse", - "options": { - "(google.api.http).post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints", - "(google.api.http).body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints", - "body": "*" - } - } - ] - } - } - }, - "FindNeighborsRequest": { - "fields": { - "indexEndpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/IndexEndpoint" - } - }, - "deployedIndexId": { - "type": "string", - "id": 2 - }, - "queries": { - "rule": "repeated", - "type": "Query", - "id": 3 - }, - "returnFullDatapoint": { - "type": "bool", - "id": 4 - } - }, - "nested": { - "Query": { - "fields": { - "datapoint": { - "type": "IndexDatapoint", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "neighborCount": { - "type": "int32", - "id": 2 - }, - "perCrowdingAttributeNeighborCount": { - "type": "int32", - "id": 3 - }, - "approximateNeighborCount": { - "type": "int32", - "id": 4 - }, - "fractionLeafNodesToSearchOverride": { - "type": "double", - "id": 5 - } - } - } - } - }, - "FindNeighborsResponse": { - "fields": { - "nearestNeighbors": { - "rule": "repeated", - "type": "NearestNeighbors", - "id": 1 - } - }, - "nested": { - "Neighbor": { - "fields": { - "datapoint": { - "type": "IndexDatapoint", - "id": 1 - }, - "distance": { - "type": "double", - "id": 2 - } - } - }, - "NearestNeighbors": { - "fields": { - "id": { - "type": "string", - "id": 1 - }, - "neighbors": { - "rule": "repeated", - "type": "Neighbor", - "id": 2 - } - } - } - } - }, - "ReadIndexDatapointsRequest": { - "fields": { - "indexEndpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/IndexEndpoint" - } - }, - "deployedIndexId": { - "type": "string", - "id": 2 - }, - "ids": { - "rule": "repeated", - "type": "string", - "id": 3 - } - } - }, - "ReadIndexDatapointsResponse": { - "fields": { - "datapoints": { - "rule": "repeated", - "type": "IndexDatapoint", - "id": 1 - } - } - }, - "MetadataSchema": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "schemaVersion": { - "type": "string", - "id": 2 - }, - "schema": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "schemaType": { - "type": "MetadataSchemaType", - "id": 4 - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "description": { - "type": "string", - "id": 6 - } - }, - "nested": { - "MetadataSchemaType": { - "values": { - "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, - "ARTIFACT_TYPE": 1, - "EXECUTION_TYPE": 2, - "CONTEXT_TYPE": 3 - } - } - } - }, - "MetadataService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, - "methods": { - "CreateMetadataStore": { - "requestType": "CreateMetadataStoreRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", - "(google.api.http).body": "metadata_store", - "(google.api.method_signature)": "parent,metadata_store,metadata_store_id", - "(google.longrunning.operation_info).response_type": "MetadataStore", - "(google.longrunning.operation_info).metadata_type": "CreateMetadataStoreOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", - "body": "metadata_store" - } - }, - { - "(google.api.method_signature)": "parent,metadata_store,metadata_store_id" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "MetadataStore", - "metadata_type": "CreateMetadataStoreOperationMetadata" - } - } - ] - }, - "GetMetadataStore": { - "requestType": "GetMetadataStoreRequest", - "responseType": "MetadataStore", - "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ListMetadataStores": { - "requestType": "ListMetadataStoresRequest", - "responseType": "ListMetadataStoresResponse", - "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "DeleteMetadataStore": { - "requestType": "DeleteMetadataStoreRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "DeleteMetadataStoreOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteMetadataStoreOperationMetadata" - } - } - ] - }, - "CreateArtifact": { - "requestType": "CreateArtifactRequest", - "responseType": "Artifact", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", - "(google.api.http).body": "artifact", - "(google.api.method_signature)": "parent,artifact,artifact_id" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", - "body": "artifact" - } - }, - { - "(google.api.method_signature)": "parent,artifact,artifact_id" - } - ] - }, - "GetArtifact": { - "requestType": "GetArtifactRequest", - "responseType": "Artifact", - "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ListArtifacts": { - "requestType": "ListArtifactsRequest", - "responseType": "ListArtifactsResponse", - "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "UpdateArtifact": { - "requestType": "UpdateArtifactRequest", - "responseType": "Artifact", - "options": { - "(google.api.http).patch": "/v1beta1/{artifact.name=projects/*/locations/*/metadataStores/*/artifacts/*}", - "(google.api.http).body": "artifact", - "(google.api.method_signature)": "artifact,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1beta1/{artifact.name=projects/*/locations/*/metadataStores/*/artifacts/*}", - "body": "artifact" - } - }, - { - "(google.api.method_signature)": "artifact,update_mask" - } - ] - }, - "DeleteArtifact": { - "requestType": "DeleteArtifactRequest", - "responseType": "google.longrunning.Operation", + "DeleteArtifact": { + "requestType": "DeleteArtifactRequest", + "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}", "(google.api.method_signature)": "name", @@ -42704,11 +42283,17 @@ }, "useCase": { "type": "string", - "id": 3 + "id": 3, + "options": { + "deprecated": true + } }, "description": { "type": "string", - "id": 4 + "id": 4, + "options": { + "deprecated": true + } } } }, @@ -42746,9 +42331,21 @@ "(google.api.field_behavior)": "REQUIRED" } } - } - }, - "CallToAction": { + } + }, + "CallToAction": { + "oneofs": { + "_openNotebooks": { + "oneof": [ + "openNotebooks" + ] + }, + "_openFineTuningPipelines": { + "oneof": [ + "openFineTuningPipelines" + ] + } + }, "fields": { "viewRestApi": { "type": "ViewRestApi", @@ -42764,6 +42361,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "openNotebooks": { + "type": "OpenNotebooks", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "createApplication": { "type": "RegionalResourceReferences", "id": 3, @@ -42778,6 +42383,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "openFineTuningPipelines": { + "type": "OpenFineTuningPipelines", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "openPromptTuningPipeline": { "type": "RegionalResourceReferences", "id": 5, @@ -42799,6 +42412,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "deployGke": { + "type": "DeployGke", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "openGenerationAiStudio": { "type": "RegionalResourceReferences", "id": 8, @@ -42823,6 +42443,23 @@ }, "nested": { "RegionalResourceReferences": { + "oneofs": { + "_resourceTitle": { + "oneof": [ + "resourceTitle" + ] + }, + "_resourceUseCase": { + "oneof": [ + "resourceUseCase" + ] + }, + "_resourceDescription": { + "oneof": [ + "resourceDescription" + ] + } + }, "fields": { "references": { "keyType": "string", @@ -42838,6 +42475,30 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "resourceTitle": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "resourceUseCase": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "resourceDescription": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -42860,6 +42521,30 @@ } } }, + "OpenNotebooks": { + "fields": { + "notebooks": { + "rule": "repeated", + "type": "RegionalResourceReferences", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "OpenFineTuningPipelines": { + "fields": { + "fineTuningPipelines": { + "rule": "repeated", + "type": "RegionalResourceReferences", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "Deploy": { "oneofs": { "predictionResources": { @@ -42926,6 +42611,18 @@ } } } + }, + "DeployGke": { + "fields": { + "gkeYamlConfigs": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, @@ -43486,31 +43183,456 @@ }, "pageSize": { "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + }, + "orderBy": { + "type": "string", + "id": 6 + } + } + }, + "ListModelVersionsResponse": { + "fields": { + "models": { + "rule": "repeated", + "type": "Model", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UpdateModelRequest": { + "fields": { + "model": { + "type": "Model", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateExplanationDatasetRequest": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "examples": { + "type": "Examples", + "id": 2 + } + } + }, + "UpdateExplanationDatasetOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "DeleteModelRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, + "DeleteModelVersionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, + "MergeVersionAliasesRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "versionAliases": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ExportModelRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "outputConfig": { + "type": "OutputConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "OutputConfig": { + "fields": { + "exportFormatId": { + "type": "string", + "id": 1 + }, + "artifactDestination": { + "type": "GcsDestination", + "id": 3 + }, + "imageDestination": { + "type": "ContainerRegistryDestination", + "id": 4 + } + } + } + } + }, + "ExportModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + }, + "outputInfo": { + "type": "OutputInfo", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "OutputInfo": { + "fields": { + "artifactOutputUri": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "imageOutputUri": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, + "UpdateExplanationDatasetResponse": { + "fields": {} + }, + "ExportModelResponse": { + "fields": {} + }, + "CopyModelRequest": { + "oneofs": { + "destinationModel": { + "oneof": [ + "modelId", + "parentModel" + ] + } + }, + "fields": { + "modelId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parentModel": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "sourceModel": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 3 + } + } + }, + "CopyModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CopyModelResponse": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ImportModelEvaluationRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelEvaluation": { + "type": "ModelEvaluation", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportModelEvaluationSlicesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + } + }, + "modelEvaluationSlices": { + "rule": "repeated", + "type": "ModelEvaluationSlice", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportModelEvaluationSlicesResponse": { + "fields": { + "importedModelEvaluationSlices": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "BatchImportEvaluatedAnnotationsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluationSlice" + } + }, + "evaluatedAnnotations": { + "rule": "repeated", + "type": "EvaluatedAnnotation", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportEvaluatedAnnotationsResponse": { + "fields": { + "importedEvaluatedAnnotationsCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "GetModelEvaluationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + } + } + } + }, + "ListModelEvaluationsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListModelEvaluationsResponse": { + "fields": { + "modelEvaluations": { + "rule": "repeated", + "type": "ModelEvaluation", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetModelEvaluationSliceRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluationSlice" + } + } + } + }, + "ListModelEvaluationSlicesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", "id": 3 }, - "filter": { + "pageToken": { "type": "string", "id": 4 }, "readMask": { "type": "google.protobuf.FieldMask", "id": 5 - }, - "orderBy": { - "type": "string", - "id": 6 } } }, - "ListModelVersionsResponse": { + "ListModelEvaluationSlicesResponse": { "fields": { - "models": { + "modelEvaluationSlices": { "rule": "repeated", - "type": "Model", + "type": "ModelEvaluationSlice", "id": 1 }, "nextPageToken": { @@ -43519,370 +43641,500 @@ } } }, - "UpdateModelRequest": { + "PersistentResource": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/PersistentResource", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/persistentResources/{persistent_resource}" + }, "fields": { - "model": { - "type": "Model", + "name": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "IMMUTABLE" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "displayName": { + "type": "string", "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "resourcePools": { + "rule": "repeated", + "type": "ResourcePool", + "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "UpdateExplanationDatasetRequest": { - "fields": { - "model": { - "type": "string", - "id": 1, + }, + "state": { + "type": "State", + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "examples": { - "type": "Examples", - "id": 2 - } - } - }, - "UpdateExplanationDatasetOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 - } - } - }, - "DeleteModelRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "error": { + "type": "google.rpc.Status", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "DeleteModelVersionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "MergeVersionAliasesRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "versionAliases": { - "rule": "repeated", + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", "type": "string", - "id": 2, + "id": 10, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "ExportModelRequest": { - "fields": { - "name": { + }, + "network": { "type": "string", - "id": 1, + "id": 11, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, - "outputConfig": { - "type": "OutputConfig", - "id": 2, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 12, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } - } - }, - "nested": { - "OutputConfig": { - "fields": { - "exportFormatId": { - "type": "string", - "id": 1 - }, - "artifactDestination": { - "type": "GcsDestination", - "id": 3 - }, - "imageDestination": { - "type": "ContainerRegistryDestination", - "id": 4 - } + }, + "resourceRuntimeSpec": { + "type": "ResourceRuntimeSpec", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "ExportModelOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 }, - "outputInfo": { - "type": "OutputInfo", - "id": 2, + "resourceRuntime": { + "type": "ResourceRuntime", + "id": 14, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "reservedIpRanges": { + "rule": "repeated", + "type": "string", + "id": 15, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { - "OutputInfo": { - "fields": { - "artifactOutputUri": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "imageOutputUri": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "PROVISIONING": 1, + "RUNNING": 3, + "STOPPING": 4, + "ERROR": 5 } } } }, - "UpdateExplanationDatasetResponse": { - "fields": {} - }, - "ExportModelResponse": { - "fields": {} - }, - "CopyModelRequest": { + "ResourcePool": { "oneofs": { - "destinationModel": { + "_replicaCount": { "oneof": [ - "modelId", - "parentModel" + "replicaCount" ] } }, "fields": { - "modelId": { + "id": { "type": "string", - "id": 4, + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "IMMUTABLE" } }, - "parentModel": { - "type": "string", - "id": 5, + "machineSpec": { + "type": "MachineSpec", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "replicaCount": { + "type": "int64", + "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "proto3_optional": true } }, - "parent": { - "type": "string", - "id": 1, + "diskSpec": { + "type": "DiskSpec", + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.field_behavior)": "OPTIONAL" } }, - "sourceModel": { - "type": "string", - "id": 2, + "usedReplicaCount": { + "type": "int64", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 3 + "autoscalingSpec": { + "type": "AutoscalingSpec", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "AutoscalingSpec": { + "oneofs": { + "_minReplicaCount": { + "oneof": [ + "minReplicaCount" + ] + }, + "_maxReplicaCount": { + "oneof": [ + "maxReplicaCount" + ] + } + }, + "fields": { + "minReplicaCount": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "maxReplicaCount": { + "type": "int64", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + } } } }, - "CopyModelOperationMetadata": { + "ResourceRuntimeSpec": { "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 + "serviceAccountSpec": { + "type": "ServiceAccountSpec", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "raySpec": { + "type": "RaySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "CopyModelResponse": { + "RaySpec": { "fields": { - "model": { + "imageUri": { "type": "string", "id": 1, "options": { - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "OPTIONAL" } }, - "modelVersionId": { + "resourcePoolImages": { + "keyType": "string", "type": "string", - "id": 2, + "id": 6, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "headNodeResourcePoolId": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "ImportModelEvaluationRequest": { + "ResourceRuntime": { "fields": { - "parent": { + "accessUris": { + "keyType": "string", "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" - } - }, - "modelEvaluation": { - "type": "ModelEvaluation", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "BatchImportModelEvaluationSlicesRequest": { + "ServiceAccountSpec": { "fields": { - "parent": { - "type": "string", + "enableCustomServiceAccount": { + "type": "bool", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + "(google.api.field_behavior)": "REQUIRED" } }, - "modelEvaluationSlices": { - "rule": "repeated", - "type": "ModelEvaluationSlice", + "serviceAccount": { + "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "BatchImportModelEvaluationSlicesResponse": { - "fields": { - "importedModelEvaluationSlices": { - "rule": "repeated", - "type": "string", - "id": 1, + "PersistentResourceService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreatePersistentResource": { + "requestType": "CreatePersistentResourceRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/persistentResources", + "(google.api.http).body": "persistent_resource", + "(google.api.method_signature)": "parent,persistent_resource,persistent_resource_id", + "(google.longrunning.operation_info).response_type": "PersistentResource", + "(google.longrunning.operation_info).metadata_type": "CreatePersistentResourceOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/persistentResources", + "body": "persistent_resource" + } + }, + { + "(google.api.method_signature)": "parent,persistent_resource,persistent_resource_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "PersistentResource", + "metadata_type": "CreatePersistentResourceOperationMetadata" + } + } + ] + }, + "GetPersistentResource": { + "requestType": "GetPersistentResourceRequest", + "responseType": "PersistentResource", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListPersistentResources": { + "requestType": "ListPersistentResourcesRequest", + "responseType": "ListPersistentResourcesResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/persistentResources", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/persistentResources" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeletePersistentResource": { + "requestType": "DeletePersistentResourceRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "UpdatePersistentResource": { + "requestType": "UpdatePersistentResourceRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1beta1/{persistent_resource.name=projects/*/locations/*/persistentResources/*}", + "(google.api.http).body": "persistent_resource", + "(google.api.method_signature)": "persistent_resource,update_mask", + "(google.longrunning.operation_info).response_type": "PersistentResource", + "(google.longrunning.operation_info).metadata_type": "UpdatePersistentResourceOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{persistent_resource.name=projects/*/locations/*/persistentResources/*}", + "body": "persistent_resource" + } + }, + { + "(google.api.method_signature)": "persistent_resource,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "PersistentResource", + "metadata_type": "UpdatePersistentResourceOperationMetadata" + } + } + ] } } }, - "BatchImportEvaluatedAnnotationsRequest": { + "CreatePersistentResourceRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluationSlice" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "evaluatedAnnotations": { - "rule": "repeated", - "type": "EvaluatedAnnotation", + "persistentResource": { + "type": "PersistentResource", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "persistentResourceId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "BatchImportEvaluatedAnnotationsResponse": { + "CreatePersistentResourceOperationMetadata": { "fields": { - "importedEvaluatedAnnotationsCount": { - "type": "int32", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 } } }, - "GetModelEvaluationRequest": { + "UpdatePersistentResourceOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "GetPersistentResourceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PersistentResource" } } } }, - "ListModelEvaluationsRequest": { + "ListPersistentResourcesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "filter": { - "type": "string", - "id": 2 - }, "pageSize": { "type": "int32", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "pageToken": { "type": "string", - "id": 4 - }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 5 + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "ListModelEvaluationsResponse": { + "ListPersistentResourcesResponse": { "fields": { - "modelEvaluations": { + "persistentResources": { "rule": "repeated", - "type": "ModelEvaluation", + "type": "PersistentResource", "id": 1 }, "nextPageToken": { @@ -43891,118 +44143,109 @@ } } }, - "GetModelEvaluationSliceRequest": { + "DeletePersistentResourceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluationSlice" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PersistentResource" } } } }, - "ListModelEvaluationSlicesRequest": { + "UpdatePersistentResourceRequest": { "fields": { - "parent": { - "type": "string", + "persistentResource": { + "type": "PersistentResource", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + "(google.api.field_behavior)": "REQUIRED" } }, - "filter": { - "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 - }, - "pageToken": { - "type": "string", - "id": 4 - }, - "readMask": { + "updateMask": { "type": "google.protobuf.FieldMask", - "id": 5 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListModelEvaluationSlicesResponse": { - "fields": { - "modelEvaluationSlices": { - "rule": "repeated", - "type": "ModelEvaluationSlice", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } + "PipelineFailurePolicy": { + "values": { + "PIPELINE_FAILURE_POLICY_UNSPECIFIED": 0, + "PIPELINE_FAILURE_POLICY_FAIL_SLOW": 1, + "PIPELINE_FAILURE_POLICY_FAIL_FAST": 2 } }, - "PersistentResource": { + "PipelineJob": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/PersistentResource", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/persistentResources/{persistent_resource}" + "(google.api.resource).type": "aiplatform.googleapis.com/PipelineJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}" }, "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "displayName": { "type": "string", - "id": 2, + "id": 2 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "resourcePools": { - "rule": "repeated", - "type": "ResourcePool", + "startTime": { + "type": "google.protobuf.Timestamp", "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "state": { - "type": "State", + "endTime": { + "type": "google.protobuf.Timestamp", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "error": { - "type": "google.rpc.Status", + "updateTime": { + "type": "google.protobuf.Timestamp", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 7, + "pipelineSpec": { + "type": "google.protobuf.Struct", + "id": 7 + }, + "state": { + "type": "PipelineState", + "id": 8, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 8, + "jobDetail": { + "type": "PipelineJobDetail", + "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 9, + "error": { + "type": "google.rpc.Status", + "id": 10, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } @@ -44010,268 +44253,512 @@ "labels": { "keyType": "string", "type": "string", - "id": 10, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 11 + }, + "runtimeConfig": { + "type": "RuntimeConfig", + "id": 12 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 16 + }, + "serviceAccount": { + "type": "string", + "id": 17 }, "network": { "type": "string", - "id": 11, + "id": 18, "options": { - "(google.api.field_behavior)": "OPTIONAL", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 12, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "reservedIpRanges": { + "rule": "repeated", + "type": "string", + "id": 25 }, - "resourceRuntimeSpec": { - "type": "ResourceRuntimeSpec", - "id": 13, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "templateUri": { + "type": "string", + "id": 19 }, - "resourceRuntime": { - "type": "ResourceRuntime", - "id": 14, + "templateMetadata": { + "type": "PipelineTemplateMetadata", + "id": 20, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "reservedIpRanges": { - "rule": "repeated", + "scheduleName": { "type": "string", - "id": 15, + "id": 22, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "PROVISIONING": 1, - "RUNNING": 3, - "STOPPING": 4, - "ERROR": 5 + "RuntimeConfig": { + "fields": { + "parameters": { + "keyType": "string", + "type": "Value", + "id": 1, + "options": { + "deprecated": true + } + }, + "gcsOutputDirectory": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parameterValues": { + "keyType": "string", + "type": "google.protobuf.Value", + "id": 3 + }, + "failurePolicy": { + "type": "PipelineFailurePolicy", + "id": 4 + }, + "inputArtifacts": { + "keyType": "string", + "type": "InputArtifact", + "id": 5 + } + }, + "nested": { + "InputArtifact": { + "oneofs": { + "kind": { + "oneof": [ + "artifactId" + ] + } + }, + "fields": { + "artifactId": { + "type": "string", + "id": 1 + } + } + } } } } }, - "ResourcePool": { - "oneofs": { - "_replicaCount": { - "oneof": [ - "replicaCount" - ] - } - }, + "PipelineTemplateMetadata": { "fields": { - "id": { + "version": { "type": "string", + "id": 3 + } + } + }, + "PipelineJobDetail": { + "fields": { + "pipelineContext": { + "type": "Context", "id": 1, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "machineSpec": { - "type": "MachineSpec", + "pipelineRunContext": { + "type": "Context", "id": 2, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "replicaCount": { + "taskDetails": { + "rule": "repeated", + "type": "PipelineTaskDetail", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "PipelineTaskDetail": { + "fields": { + "taskId": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parentTaskId": { "type": "int64", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "taskName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "diskSpec": { - "type": "DiskSpec", + "startTime": { + "type": "google.protobuf.Timestamp", "id": 4, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "usedReplicaCount": { - "type": "int64", + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "executorDetail": { + "type": "PipelineTaskExecutorDetail", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "autoscalingSpec": { - "type": "AutoscalingSpec", + "state": { + "type": "State", "id": 7, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "execution": { + "type": "Execution", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "pipelineTaskStatus": { + "rule": "repeated", + "type": "PipelineTaskStatus", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "inputs": { + "keyType": "string", + "type": "ArtifactList", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "outputs": { + "keyType": "string", + "type": "ArtifactList", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { - "AutoscalingSpec": { - "oneofs": { - "_minReplicaCount": { - "oneof": [ - "minReplicaCount" - ] + "PipelineTaskStatus": { + "fields": { + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "_maxReplicaCount": { - "oneof": [ - "maxReplicaCount" - ] + "state": { + "type": "State", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ArtifactList": { + "fields": { + "artifacts": { + "rule": "repeated", + "type": "Artifact", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "PENDING": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "CANCEL_PENDING": 4, + "CANCELLING": 5, + "CANCELLED": 6, + "FAILED": 7, + "SKIPPED": 8, + "NOT_TRIGGERED": 9 + } + } + } + }, + "PipelineTaskExecutorDetail": { + "oneofs": { + "details": { + "oneof": [ + "containerDetail", + "customJobDetail" + ] + } + }, + "fields": { + "containerDetail": { + "type": "ContainerDetail", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "customJobDetail": { + "type": "CustomJobDetail", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ContainerDetail": { + "fields": { + "mainJob": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + }, + "preCachingCheckJob": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + }, + "failedMainJobs": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "failedPreCachingCheckJobs": { + "rule": "repeated", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } - }, + } + }, + "CustomJobDetail": { "fields": { - "minReplicaCount": { - "type": "int64", + "job": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" } }, - "maxReplicaCount": { - "type": "int64", - "id": 2, + "failedJobs": { + "rule": "repeated", + "type": "string", + "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } } } }, - "ResourceRuntimeSpec": { - "fields": { - "serviceAccountSpec": { - "type": "ServiceAccountSpec", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "raySpec": { - "type": "RaySpec", - "id": 1, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "RaySpec": { - "fields": { - "imageUri": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "resourcePoolImages": { - "keyType": "string", - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "headNodeResourcePoolId": { - "type": "string", - "id": 7, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } + "PipelineState": { + "values": { + "PIPELINE_STATE_UNSPECIFIED": 0, + "PIPELINE_STATE_QUEUED": 1, + "PIPELINE_STATE_PENDING": 2, + "PIPELINE_STATE_RUNNING": 3, + "PIPELINE_STATE_SUCCEEDED": 4, + "PIPELINE_STATE_FAILED": 5, + "PIPELINE_STATE_CANCELLING": 6, + "PIPELINE_STATE_CANCELLED": 7, + "PIPELINE_STATE_PAUSED": 8 } }, - "ResourceRuntime": { - "fields": { - "accessUris": { - "keyType": "string", - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "Value": { + "oneofs": { + "value": { + "oneof": [ + "intValue", + "doubleValue", + "stringValue" + ] } - } - }, - "ServiceAccountSpec": { + }, "fields": { - "enableCustomServiceAccount": { - "type": "bool", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "intValue": { + "type": "int64", + "id": 1 }, - "serviceAccount": { + "doubleValue": { + "type": "double", + "id": 2 + }, + "stringValue": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 3 } } }, - "PersistentResourceService": { + "PipelineService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { - "CreatePersistentResource": { - "requestType": "CreatePersistentResourceRequest", + "CreateTrainingPipeline": { + "requestType": "CreateTrainingPipelineRequest", + "responseType": "TrainingPipeline", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines", + "(google.api.http).body": "training_pipeline", + "(google.api.method_signature)": "parent,training_pipeline" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines", + "body": "training_pipeline" + } + }, + { + "(google.api.method_signature)": "parent,training_pipeline" + } + ] + }, + "GetTrainingPipeline": { + "requestType": "GetTrainingPipelineRequest", + "responseType": "TrainingPipeline", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListTrainingPipelines": { + "requestType": "ListTrainingPipelinesRequest", + "responseType": "ListTrainingPipelinesResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteTrainingPipeline": { + "requestType": "DeleteTrainingPipelineRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/persistentResources", - "(google.api.http).body": "persistent_resource", - "(google.api.method_signature)": "parent,persistent_resource,persistent_resource_id", - "(google.longrunning.operation_info).response_type": "PersistentResource", - "(google.longrunning.operation_info).metadata_type": "CreatePersistentResourceOperationMetadata" + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/persistentResources", - "body": "persistent_resource" + "delete": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}" } }, { - "(google.api.method_signature)": "parent,persistent_resource,persistent_resource_id" + "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { - "response_type": "PersistentResource", - "metadata_type": "CreatePersistentResourceOperationMetadata" + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" } } ] }, - "GetPersistentResource": { - "requestType": "GetPersistentResourceRequest", - "responseType": "PersistentResource", + "CancelTrainingPipeline": { + "requestType": "CancelTrainingPipelineRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}:cancel", + "(google.api.http).body": "*", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}" + "post": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}:cancel", + "body": "*" } }, { @@ -44279,17 +44766,55 @@ } ] }, - "ListPersistentResources": { - "requestType": "ListPersistentResourcesRequest", - "responseType": "ListPersistentResourcesResponse", + "CreatePipelineJob": { + "requestType": "CreatePipelineJobRequest", + "responseType": "PipelineJob", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/persistentResources", + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", + "(google.api.http).body": "pipeline_job", + "(google.api.method_signature)": "parent,pipeline_job,pipeline_job_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", + "body": "pipeline_job" + } + }, + { + "(google.api.method_signature)": "parent,pipeline_job,pipeline_job_id" + } + ] + }, + "GetPipelineJob": { + "requestType": "GetPipelineJobRequest", + "responseType": "PipelineJob", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListPipelineJobs": { + "requestType": "ListPipelineJobsRequest", + "responseType": "ListPipelineJobsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/persistentResources" + "get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs" } }, { @@ -44297,11 +44822,11 @@ } ] }, - "DeletePersistentResource": { - "requestType": "DeletePersistentResourceRequest", + "DeletePipelineJob": { + "requestType": "DeletePipelineJobRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}", + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -44309,7 +44834,7 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/persistentResources/*}" + "delete": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}" } }, { @@ -44323,37 +44848,93 @@ } ] }, - "UpdatePersistentResource": { - "requestType": "UpdatePersistentResourceRequest", + "BatchDeletePipelineJobs": { + "requestType": "BatchDeletePipelineJobsRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).patch": "/v1beta1/{persistent_resource.name=projects/*/locations/*/persistentResources/*}", - "(google.api.http).body": "persistent_resource", - "(google.api.method_signature)": "persistent_resource,update_mask", - "(google.longrunning.operation_info).response_type": "PersistentResource", - "(google.longrunning.operation_info).metadata_type": "UpdatePersistentResourceOperationMetadata" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,names", + "(google.longrunning.operation_info).response_type": "BatchDeletePipelineJobsResponse", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v1beta1/{persistent_resource.name=projects/*/locations/*/persistentResources/*}", - "body": "persistent_resource" + "post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete", + "body": "*" } }, { - "(google.api.method_signature)": "persistent_resource,update_mask" + "(google.api.method_signature)": "parent,names" }, { "(google.longrunning.operation_info)": { - "response_type": "PersistentResource", - "metadata_type": "UpdatePersistentResourceOperationMetadata" + "response_type": "BatchDeletePipelineJobsResponse", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CancelPipelineJob": { + "requestType": "CancelPipelineJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "BatchCancelPipelineJobs": { + "requestType": "BatchCancelPipelineJobsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchCancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,names", + "(google.longrunning.operation_info).response_type": "BatchCancelPipelineJobsResponse", + "(google.longrunning.operation_info).metadata_type": "BatchCancelPipelineJobsOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchCancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,names" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "BatchCancelPipelineJobsResponse", + "metadata_type": "BatchCancelPipelineJobsOperationMetadata" } } ] } } }, - "CreatePersistentResourceRequest": { + "BatchCancelPipelineJobsOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CreateTrainingPipelineRequest": { "fields": { "parent": { "type": "string", @@ -44363,130 +44944,267 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "persistentResource": { - "type": "PersistentResource", + "trainingPipeline": { + "type": "TrainingPipeline", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } + } + } + }, + "GetTrainingPipelineRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + } + } + } + }, + "ListTrainingPipelinesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } }, - "persistentResourceId": { + "filter": { "type": "string", - "id": 3, + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListTrainingPipelinesResponse": { + "fields": { + "trainingPipelines": { + "rule": "repeated", + "type": "TrainingPipeline", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteTrainingPipelineRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + } + } + } + }, + "CancelTrainingPipelineRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + } + } + } + }, + "CreatePipelineJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "pipelineJob": { + "type": "PipelineJob", + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "pipelineJobId": { + "type": "string", + "id": 3 + }, + "preflightValidations": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "CreatePersistentResourceOperationMetadata": { + "GetPipelineJobRequest": { "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + } } } }, - "UpdatePersistentResourceOperationMetadata": { + "ListPipelineJobsRequest": { "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", + "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 + }, + "orderBy": { + "type": "string", + "id": 6 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 7 + } + } + }, + "ListPipelineJobsResponse": { + "fields": { + "pipelineJobs": { + "rule": "repeated", + "type": "PipelineJob", "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, - "GetPersistentResourceRequest": { + "DeletePipelineJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PersistentResource" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" } } } }, - "ListPersistentResourcesRequest": { + "BatchDeletePipelineJobsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "pageSize": { - "type": "int32", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/PipelineJob" } }, - "pageToken": { + "names": { + "rule": "repeated", "type": "string", - "id": 4, + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" } } } }, - "ListPersistentResourcesResponse": { + "BatchDeletePipelineJobsResponse": { "fields": { - "persistentResources": { + "pipelineJobs": { "rule": "repeated", - "type": "PersistentResource", + "type": "PipelineJob", "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 } } }, - "DeletePersistentResourceRequest": { + "CancelPipelineJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PersistentResource" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" } } } }, - "UpdatePersistentResourceRequest": { + "BatchCancelPipelineJobsRequest": { "fields": { - "persistentResource": { - "type": "PersistentResource", + "parent": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/PipelineJob" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "names": { + "rule": "repeated", + "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" } } } }, - "PipelineFailurePolicy": { - "values": { - "PIPELINE_FAILURE_POLICY_UNSPECIFIED": 0, - "PIPELINE_FAILURE_POLICY_FAIL_SLOW": 1, - "PIPELINE_FAILURE_POLICY_FAIL_FAST": 2 + "BatchCancelPipelineJobsResponse": { + "fields": { + "pipelineJobs": { + "rule": "repeated", + "type": "PipelineJob", + "id": 1 + } } }, - "PipelineJob": { + "TrainingPipeline": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/PipelineJob", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}" + "(google.api.resource).type": "aiplatform.googleapis.com/TrainingPipeline", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}" }, "fields": { "name": { @@ -44498,1221 +45216,1030 @@ }, "displayName": { "type": "string", - "id": 2 - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 3, + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "startTime": { - "type": "google.protobuf.Timestamp", + "inputDataConfig": { + "type": "InputDataConfig", + "id": 3 + }, + "trainingTaskDefinition": { + "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "endTime": { - "type": "google.protobuf.Timestamp", + "trainingTaskInputs": { + "type": "google.protobuf.Value", "id": 5, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "updateTime": { - "type": "google.protobuf.Timestamp", + "trainingTaskMetadata": { + "type": "google.protobuf.Value", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "pipelineSpec": { - "type": "google.protobuf.Struct", + "modelToUpload": { + "type": "Model", "id": 7 }, - "state": { - "type": "PipelineState", - "id": 8, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "jobDetail": { - "type": "PipelineJobDetail", - "id": 9, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "error": { - "type": "google.rpc.Status", - "id": 10, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "labels": { - "keyType": "string", - "type": "string", - "id": 11 - }, - "runtimeConfig": { - "type": "RuntimeConfig", - "id": 12 - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 16 - }, - "serviceAccount": { - "type": "string", - "id": 17 - }, - "network": { - "type": "string", - "id": 18, - "options": { - "(google.api.resource_reference).type": "compute.googleapis.com/Network" - } - }, - "reservedIpRanges": { - "rule": "repeated", - "type": "string", - "id": 25 - }, - "templateUri": { - "type": "string", - "id": 19 - }, - "templateMetadata": { - "type": "PipelineTemplateMetadata", - "id": 20, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "scheduleName": { + "modelId": { "type": "string", "id": 22, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "RuntimeConfig": { - "fields": { - "parameters": { - "keyType": "string", - "type": "Value", - "id": 1, - "options": { - "deprecated": true - } - }, - "gcsOutputDirectory": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parameterValues": { - "keyType": "string", - "type": "google.protobuf.Value", - "id": 3 - }, - "failurePolicy": { - "type": "PipelineFailurePolicy", - "id": 4 - }, - "inputArtifacts": { - "keyType": "string", - "type": "InputArtifact", - "id": 5 - } - }, - "nested": { - "InputArtifact": { - "oneofs": { - "kind": { - "oneof": [ - "artifactId" - ] - } - }, - "fields": { - "artifactId": { - "type": "string", - "id": 1 - } - } - } - } - } - } - }, - "PipelineTemplateMetadata": { - "fields": { - "version": { - "type": "string", - "id": 3 - } - } - }, - "PipelineJobDetail": { - "fields": { - "pipelineContext": { - "type": "Context", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "pipelineRunContext": { - "type": "Context", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "taskDetails": { - "rule": "repeated", - "type": "PipelineTaskDetail", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, - "PipelineTaskDetail": { - "fields": { - "taskId": { - "type": "int64", - "id": 1, + "parentModel": { + "type": "string", + "id": 21, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "parentTaskId": { - "type": "int64", - "id": 12, + "state": { + "type": "PipelineState", + "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "taskName": { - "type": "string", - "id": 2, + "error": { + "type": "google.rpc.Status", + "id": 10, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "createTime": { "type": "google.protobuf.Timestamp", - "id": 3, + "id": 11, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "startTime": { "type": "google.protobuf.Timestamp", - "id": 4, + "id": 12, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "endTime": { "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "executorDetail": { - "type": "PipelineTaskExecutorDetail", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "state": { - "type": "State", - "id": 7, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "execution": { - "type": "Execution", - "id": 8, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "error": { - "type": "google.rpc.Status", - "id": 9, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "pipelineTaskStatus": { - "rule": "repeated", - "type": "PipelineTaskStatus", "id": 13, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "inputs": { - "keyType": "string", - "type": "ArtifactList", - "id": 10, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 14, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "outputs": { + "labels": { "keyType": "string", - "type": "ArtifactList", - "id": 11, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "PipelineTaskStatus": { - "fields": { - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "state": { - "type": "State", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "error": { - "type": "google.rpc.Status", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, - "ArtifactList": { - "fields": { - "artifacts": { - "rule": "repeated", - "type": "Artifact", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } + "type": "string", + "id": 15 }, - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "PENDING": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "CANCEL_PENDING": 4, - "CANCELLING": 5, - "CANCELLED": 6, - "FAILED": 7, - "SKIPPED": 8, - "NOT_TRIGGERED": 9 - } + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 18 } } }, - "PipelineTaskExecutorDetail": { + "InputDataConfig": { "oneofs": { - "details": { + "split": { "oneof": [ - "containerDetail", - "customJobDetail" + "fractionSplit", + "filterSplit", + "predefinedSplit", + "timestampSplit", + "stratifiedSplit" + ] + }, + "destination": { + "oneof": [ + "gcsDestination", + "bigqueryDestination" ] } }, "fields": { - "containerDetail": { - "type": "ContainerDetail", + "fractionSplit": { + "type": "FractionSplit", + "id": 2 + }, + "filterSplit": { + "type": "FilterSplit", + "id": 3 + }, + "predefinedSplit": { + "type": "PredefinedSplit", + "id": 4 + }, + "timestampSplit": { + "type": "TimestampSplit", + "id": 5 + }, + "stratifiedSplit": { + "type": "StratifiedSplit", + "id": 12 + }, + "gcsDestination": { + "type": "GcsDestination", + "id": 8 + }, + "bigqueryDestination": { + "type": "BigQueryDestination", + "id": 10 + }, + "datasetId": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "customJobDetail": { - "type": "CustomJobDetail", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "annotationsFilter": { + "type": "string", + "id": 6 + }, + "annotationSchemaUri": { + "type": "string", + "id": 9 + }, + "savedQueryId": { + "type": "string", + "id": 7 + }, + "persistMlUseAssignment": { + "type": "bool", + "id": 11 } - }, - "nested": { - "ContainerDetail": { - "fields": { - "mainJob": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" - } - }, - "preCachingCheckJob": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" - } - }, - "failedMainJobs": { - "rule": "repeated", - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "failedPreCachingCheckJobs": { - "rule": "repeated", - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } + } + }, + "FractionSplit": { + "fields": { + "trainingFraction": { + "type": "double", + "id": 1 + }, + "validationFraction": { + "type": "double", + "id": 2 + }, + "testFraction": { + "type": "double", + "id": 3 + } + } + }, + "FilterSplit": { + "fields": { + "trainingFilter": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" } }, - "CustomJobDetail": { - "fields": { - "job": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" - } - }, - "failedJobs": { - "rule": "repeated", - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } + "validationFilter": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testFilter": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" } } } }, - "PipelineState": { - "values": { - "PIPELINE_STATE_UNSPECIFIED": 0, - "PIPELINE_STATE_QUEUED": 1, - "PIPELINE_STATE_PENDING": 2, - "PIPELINE_STATE_RUNNING": 3, - "PIPELINE_STATE_SUCCEEDED": 4, - "PIPELINE_STATE_FAILED": 5, - "PIPELINE_STATE_CANCELLING": 6, - "PIPELINE_STATE_CANCELLED": 7, - "PIPELINE_STATE_PAUSED": 8 + "PredefinedSplit": { + "fields": { + "key": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } } }, - "Value": { - "oneofs": { - "value": { - "oneof": [ - "intValue", - "doubleValue", - "stringValue" - ] - } - }, + "TimestampSplit": { "fields": { - "intValue": { - "type": "int64", + "trainingFraction": { + "type": "double", "id": 1 }, - "doubleValue": { + "validationFraction": { "type": "double", "id": 2 }, - "stringValue": { + "testFraction": { + "type": "double", + "id": 3 + }, + "key": { "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "StratifiedSplit": { + "fields": { + "trainingFraction": { + "type": "double", + "id": 1 + }, + "validationFraction": { + "type": "double", + "id": 2 + }, + "testFraction": { + "type": "double", "id": 3 + }, + "key": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "PipelineService": { + "PredictionService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { - "CreateTrainingPipeline": { - "requestType": "CreateTrainingPipelineRequest", - "responseType": "TrainingPipeline", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines", - "(google.api.http).body": "training_pipeline", - "(google.api.method_signature)": "parent,training_pipeline" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines", - "body": "training_pipeline" - } - }, - { - "(google.api.method_signature)": "parent,training_pipeline" - } - ] - }, - "GetTrainingPipeline": { - "requestType": "GetTrainingPipelineRequest", - "responseType": "TrainingPipeline", + "Predict": { + "requestType": "PredictRequest", + "responseType": "PredictResponse", "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:predict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,instances,parameters" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}" + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:predict", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", + "body": "*" + } } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "endpoint,instances,parameters" } ] }, - "ListTrainingPipelines": { - "requestType": "ListTrainingPipelinesRequest", - "responseType": "ListTrainingPipelinesResponse", + "RawPredict": { + "requestType": "RawPredictRequest", + "responseType": "google.api.HttpBody", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines", - "(google.api.method_signature)": "parent" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,http_body" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/trainingPipelines" + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", + "body": "*" + } } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "endpoint,http_body" } ] }, - "DeleteTrainingPipeline": { - "requestType": "DeleteTrainingPipelineRequest", - "responseType": "google.longrunning.Operation", + "DirectPredict": { + "requestType": "DirectPredictRequest", + "responseType": "DirectPredictResponse", "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict", + "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteOperationMetadata" + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict", + "body": "*" } } ] }, - "CancelTrainingPipeline": { - "requestType": "CancelTrainingPipelineRequest", - "responseType": "google.protobuf.Empty", + "DirectRawPredict": { + "requestType": "DirectRawPredictRequest", + "responseType": "DirectRawPredictResponse", "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}:cancel", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict", + "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}:cancel", + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict", "body": "*" } - }, - { - "(google.api.method_signature)": "name" } ] }, - "CreatePipelineJob": { - "requestType": "CreatePipelineJobRequest", - "responseType": "PipelineJob", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", - "(google.api.http).body": "pipeline_job", - "(google.api.method_signature)": "parent,pipeline_job,pipeline_job_id" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", - "body": "pipeline_job" - } - }, - { - "(google.api.method_signature)": "parent,pipeline_job,pipeline_job_id" - } - ] + "StreamDirectPredict": { + "requestType": "StreamDirectPredictRequest", + "requestStream": true, + "responseType": "StreamDirectPredictResponse", + "responseStream": true }, - "GetPipelineJob": { - "requestType": "GetPipelineJobRequest", - "responseType": "PipelineJob", + "StreamDirectRawPredict": { + "requestType": "StreamDirectRawPredictRequest", + "requestStream": true, + "responseType": "StreamDirectRawPredictResponse", + "responseStream": true + }, + "StreamingPredict": { + "requestType": "StreamingPredictRequest", + "requestStream": true, + "responseType": "StreamingPredictResponse", + "responseStream": true + }, + "ServerStreamingPredict": { + "requestType": "StreamingPredictRequest", + "responseType": "StreamingPredictResponse", + "responseStream": true, "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", + "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}" + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", + "body": "*" + } } - }, - { - "(google.api.method_signature)": "name" } ] }, - "ListPipelineJobs": { - "requestType": "ListPipelineJobsRequest", - "responseType": "ListPipelineJobsResponse", + "StreamingRawPredict": { + "requestType": "StreamingRawPredictRequest", + "requestStream": true, + "responseType": "StreamingRawPredictResponse", + "responseStream": true + }, + "Explain": { + "requestType": "ExplainRequest", + "responseType": "ExplainResponse", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", - "(google.api.method_signature)": "parent" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:explain", + "(google.api.http).body": "*", + "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs" + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:explain", + "body": "*" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" } ] }, - "DeletePipelineJob": { - "requestType": "DeletePipelineJobRequest", - "responseType": "google.longrunning.Operation", + "CountTokens": { + "requestType": "CountTokensRequest", + "responseType": "CountTokensResponse", "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,instances" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}" + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "body": "*" + } } }, { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteOperationMetadata" - } + "(google.api.method_signature)": "endpoint,instances" } ] }, - "BatchDeletePipelineJobs": { - "requestType": "BatchDeletePipelineJobsRequest", - "responseType": "google.longrunning.Operation", + "GenerateContent": { + "requestType": "GenerateContentRequest", + "responseType": "GenerateContentResponse", "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete", + "(google.api.http).post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent", "(google.api.http).body": "*", - "(google.api.method_signature)": "parent,names", - "(google.longrunning.operation_info).response_type": "BatchDeletePipelineJobsResponse", - "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + "(google.api.http).additional_bindings.post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "model,contents" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete", - "body": "*" + "post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", + "body": "*" + } } }, { - "(google.api.method_signature)": "parent,names" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "BatchDeletePipelineJobsResponse", - "metadata_type": "DeleteOperationMetadata" - } + "(google.api.method_signature)": "model,contents" } ] }, - "CancelPipelineJob": { - "requestType": "CancelPipelineJobRequest", - "responseType": "google.protobuf.Empty", + "StreamGenerateContent": { + "requestType": "GenerateContentRequest", + "responseType": "GenerateContentResponse", + "responseStream": true, "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "(google.api.http).post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", "(google.api.http).body": "*", - "(google.api.method_signature)": "name" + "(google.api.http).additional_bindings.post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "model,contents" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", - "body": "*" + "post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", + "body": "*" + } } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "model,contents" } ] } } }, - "CreateTrainingPipelineRequest": { + "PredictRequest": { "fields": { - "parent": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "trainingPipeline": { - "type": "TrainingPipeline", + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "parameters": { + "type": "google.protobuf.Value", + "id": 3 } } }, - "GetTrainingPipelineRequest": { + "PredictResponse": { "fields": { - "name": { + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 1 + }, + "deployedModelId": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" - } - } - } - }, - "ListTrainingPipelinesRequest": { - "fields": { - "parent": { + "id": 2 + }, + "model": { "type": "string", - "id": 1, + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" } }, - "filter": { + "modelVersionId": { "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "pageToken": { + "modelDisplayName": { "type": "string", - "id": 4 - }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 5 - } - } - }, - "ListTrainingPipelinesResponse": { - "fields": { - "trainingPipelines": { - "rule": "repeated", - "type": "TrainingPipeline", - "id": 1 + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "DeleteTrainingPipelineRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "metadata": { + "type": "google.protobuf.Value", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "CancelTrainingPipelineRequest": { + "RawPredictRequest": { "fields": { - "name": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } + }, + "httpBody": { + "type": "google.api.HttpBody", + "id": 2 } } }, - "CreatePipelineJobRequest": { + "DirectPredictRequest": { "fields": { - "parent": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "pipelineJob": { - "type": "PipelineJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "inputs": { + "rule": "repeated", + "type": "Tensor", + "id": 2 }, - "pipelineJobId": { - "type": "string", + "parameters": { + "type": "Tensor", "id": 3 } } }, - "GetPipelineJobRequest": { + "DirectPredictResponse": { "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" - } + "outputs": { + "rule": "repeated", + "type": "Tensor", + "id": 1 + }, + "parameters": { + "type": "Tensor", + "id": 2 } } }, - "ListPipelineJobsRequest": { + "DirectRawPredictRequest": { "fields": { - "parent": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "filter": { + "methodName": { "type": "string", "id": 2 }, - "pageSize": { - "type": "int32", + "input": { + "type": "bytes", "id": 3 - }, - "pageToken": { - "type": "string", - "id": 4 - }, - "orderBy": { - "type": "string", - "id": 6 - }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 7 } } }, - "ListPipelineJobsResponse": { + "DirectRawPredictResponse": { "fields": { - "pipelineJobs": { - "rule": "repeated", - "type": "PipelineJob", + "output": { + "type": "bytes", "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 } } }, - "DeletePipelineJobRequest": { + "StreamDirectPredictRequest": { "fields": { - "name": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "inputs": { + "rule": "repeated", + "type": "Tensor", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parameters": { + "type": "Tensor", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "BatchDeletePipelineJobsRequest": { + "StreamDirectPredictResponse": { "fields": { - "parent": { + "outputs": { + "rule": "repeated", + "type": "Tensor", + "id": 1 + }, + "parameters": { + "type": "Tensor", + "id": 2 + } + } + }, + "StreamDirectRawPredictRequest": { + "fields": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/PipelineJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "names": { - "rule": "repeated", + "methodName": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "input": { + "type": "bytes", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "BatchDeletePipelineJobsResponse": { + "StreamDirectRawPredictResponse": { "fields": { - "pipelineJobs": { - "rule": "repeated", - "type": "PipelineJob", + "output": { + "type": "bytes", "id": 1 } } }, - "CancelPipelineJobRequest": { + "StreamingPredictRequest": { "fields": { - "name": { + "endpoint": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } + }, + "inputs": { + "rule": "repeated", + "type": "Tensor", + "id": 2 + }, + "parameters": { + "type": "Tensor", + "id": 3 } } }, - "TrainingPipeline": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/TrainingPipeline", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}" - }, + "StreamingPredictResponse": { "fields": { - "name": { + "outputs": { + "rule": "repeated", + "type": "Tensor", + "id": 1 + }, + "parameters": { + "type": "Tensor", + "id": 2 + } + } + }, + "StreamingRawPredictRequest": { + "fields": { + "endpoint": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "displayName": { + "methodName": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 2 }, - "inputDataConfig": { - "type": "InputDataConfig", + "input": { + "type": "bytes", "id": 3 - }, - "trainingTaskDefinition": { + } + } + }, + "StreamingRawPredictResponse": { + "fields": { + "output": { + "type": "bytes", + "id": 1 + } + } + }, + "ExplainRequest": { + "fields": { + "endpoint": { "type": "string", - "id": 4, + "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "trainingTaskInputs": { + "instances": { + "rule": "repeated", "type": "google.protobuf.Value", - "id": 5, + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "trainingTaskMetadata": { + "parameters": { "type": "google.protobuf.Value", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "modelToUpload": { - "type": "Model", - "id": 7 + "id": 4 }, - "modelId": { - "type": "string", - "id": 22, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "explanationSpecOverride": { + "type": "ExplanationSpecOverride", + "id": 5 }, - "parentModel": { - "type": "string", - "id": 21, + "concurrentExplanationSpecOverride": { + "keyType": "string", + "type": "ExplanationSpecOverride", + "id": 6, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "state": { - "type": "PipelineState", - "id": 9, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "error": { - "type": "google.rpc.Status", - "id": 10, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 11, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 12, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 13, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 14, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "labels": { - "keyType": "string", + "deployedModelId": { "type": "string", - "id": 15 - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 18 + "id": 3 } } }, - "InputDataConfig": { - "oneofs": { - "split": { - "oneof": [ - "fractionSplit", - "filterSplit", - "predefinedSplit", - "timestampSplit", - "stratifiedSplit" - ] - }, - "destination": { - "oneof": [ - "gcsDestination", - "bigqueryDestination" - ] - } - }, + "ExplainResponse": { "fields": { - "fractionSplit": { - "type": "FractionSplit", - "id": 2 - }, - "filterSplit": { - "type": "FilterSplit", - "id": 3 + "explanations": { + "rule": "repeated", + "type": "Explanation", + "id": 1 }, - "predefinedSplit": { - "type": "PredefinedSplit", + "concurrentExplanations": { + "keyType": "string", + "type": "ConcurrentExplanation", "id": 4 }, - "timestampSplit": { - "type": "TimestampSplit", - "id": 5 - }, - "stratifiedSplit": { - "type": "StratifiedSplit", - "id": 12 - }, - "gcsDestination": { - "type": "GcsDestination", - "id": 8 - }, - "bigqueryDestination": { - "type": "BigQueryDestination", - "id": 10 + "deployedModelId": { + "type": "string", + "id": 2 }, - "datasetId": { + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 3 + } + }, + "nested": { + "ConcurrentExplanation": { + "fields": { + "explanations": { + "rule": "repeated", + "type": "Explanation", + "id": 1 + } + } + } + } + }, + "CountTokensRequest": { + "fields": { + "endpoint": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "annotationsFilter": { - "type": "string", - "id": 6 - }, - "annotationSchemaUri": { + "model": { "type": "string", - "id": 9 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "savedQueryId": { - "type": "string", - "id": 7 + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "persistMlUseAssignment": { - "type": "bool", - "id": 11 + "contents": { + "rule": "repeated", + "type": "Content", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "FractionSplit": { + "CountTokensResponse": { "fields": { - "trainingFraction": { - "type": "double", + "totalTokens": { + "type": "int32", "id": 1 }, - "validationFraction": { - "type": "double", + "totalBillableCharacters": { + "type": "int32", "id": 2 - }, - "testFraction": { - "type": "double", - "id": 3 } } }, - "FilterSplit": { + "GenerateContentRequest": { "fields": { - "trainingFilter": { + "model": { "type": "string", - "id": 1, + "id": 5, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "validationFilter": { - "type": "string", + "contents": { + "rule": "repeated", + "type": "Content", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "testFilter": { - "type": "string", - "id": 3, + "tools": { + "rule": "repeated", + "type": "Tool", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "PredefinedSplit": { - "fields": { - "key": { - "type": "string", - "id": 1, + }, + "safetySettings": { + "rule": "repeated", + "type": "SafetySetting", + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "TimestampSplit": { - "fields": { - "trainingFraction": { - "type": "double", - "id": 1 - }, - "validationFraction": { - "type": "double", - "id": 2 - }, - "testFraction": { - "type": "double", - "id": 3 }, - "key": { - "type": "string", + "generationConfig": { + "type": "GenerationConfig", "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "StratifiedSplit": { + "GenerateContentResponse": { "fields": { - "trainingFraction": { - "type": "double", - "id": 1 + "candidates": { + "rule": "repeated", + "type": "Candidate", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "validationFraction": { - "type": "double", - "id": 2 + "promptFeedback": { + "type": "PromptFeedback", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "testFraction": { - "type": "double", - "id": 3 + "usageMetadata": { + "type": "UsageMetadata", + "id": 4 + } + }, + "nested": { + "PromptFeedback": { + "fields": { + "blockReason": { + "type": "BlockedReason", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "safetyRatings": { + "rule": "repeated", + "type": "SafetyRating", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "blockReasonMessage": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "BlockedReason": { + "values": { + "BLOCKED_REASON_UNSPECIFIED": 0, + "SAFETY": 1, + "OTHER": 2 + } + } + } }, - "key": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "UsageMetadata": { + "fields": { + "promptTokenCount": { + "type": "int32", + "id": 1 + }, + "candidatesTokenCount": { + "type": "int32", + "id": 2 + }, + "totalTokenCount": { + "type": "int32", + "id": 3 + } } } } diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index 4060cebbba9f..e05dbccdaf99 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -472,6 +472,7 @@ * [Persistent_resource_service.get_persistent_resource](#persistent_resource_service.get_persistent_resource) * [Persistent_resource_service.list_persistent_resources](#persistent_resource_service.list_persistent_resources) * [Persistent_resource_service.update_persistent_resource](#persistent_resource_service.update_persistent_resource) + * [Pipeline_service.batch_cancel_pipeline_jobs](#pipeline_service.batch_cancel_pipeline_jobs) * [Pipeline_service.batch_delete_pipeline_jobs](#pipeline_service.batch_delete_pipeline_jobs) * [Pipeline_service.cancel_pipeline_job](#pipeline_service.cancel_pipeline_job) * [Pipeline_service.cancel_training_pipeline](#pipeline_service.cancel_training_pipeline) @@ -8390,6 +8391,23 @@ __Usage:__ +### Pipeline_service.batch_cancel_pipeline_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js` + + +----- + + + + ### Pipeline_service.batch_delete_pipeline_jobs View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js index cb0f42c11260..05400d26c877 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js @@ -44,6 +44,7 @@ function main(featureOnlineStore) { * fields. * Updatable fields: * * `big_query_source` + * * `bigtable` * * `labels` * * `sync_config` */ diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js index a809c6970a79..f98f7ea5f627 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js @@ -44,6 +44,7 @@ function main(featureView) { * fields. * Updatable fields: * * `labels` + * * `serviceAgentType` */ // const updateMask = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.upsert_datapoints.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.upsert_datapoints.js index 92156e3f4b75..e595225525b5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.upsert_datapoints.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.upsert_datapoints.js @@ -38,6 +38,14 @@ function main(index) { * A list of datapoints to be created/updated. */ // const datapoints = [1,2,3,4] + /** + * Optional. Update mask is used to specify the fields to be overwritten in + * the datapoints by the update. The fields specified in the update_mask are + * relative to each IndexDatapoint inside datapoints, not the full request. + * Updatable fields: + * * Use `all_restricts` to update both restricts and numeric_restricts. + */ + // const updateMask = {} // Imports the Aiplatform library const {IndexServiceClient} = require('@google-cloud/aiplatform').v1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js index 9256d5e775a0..e8eec971d3d7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js @@ -46,8 +46,7 @@ function main(model, contents) { * response. * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. */ // const tools = [1,2,3,4] /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js index ccfa5aa58693..8f2650fd7766 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js @@ -46,8 +46,7 @@ function main(model, contents) { * response. * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. */ // const tools = [1,2,3,4] /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json index fc3da6f5569e..38459da11e1d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json @@ -1666,7 +1666,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 71, "type": "FULL" } ], @@ -1902,7 +1902,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -4462,7 +4462,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 67, "type": "FULL" } ], @@ -4478,6 +4478,10 @@ { "name": "datapoints", "type": "TYPE_MESSAGE[]" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.cloud.aiplatform.v1.UpsertDatapointsResponse", @@ -9766,7 +9770,7 @@ "segments": [ { "start": 25, - "end": 81, + "end": 80, "type": "FULL" } ], @@ -9822,7 +9826,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 82, "type": "FULL" } ], diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_online_store.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_online_store.js index 88382c45841f..c60d4a479350 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_online_store.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_online_store.js @@ -44,6 +44,7 @@ function main(featureOnlineStore) { * fields. * Updatable fields: * * `big_query_source` + * * `bigtable` * * `labels` * * `sync_config` */ diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_view.js index dc7d44bbd2dc..0501937927e3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_view.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_admin_service.update_feature_view.js @@ -44,6 +44,7 @@ function main(featureView) { * fields. * Updatable fields: * * `labels` + * * `serviceAgentType` */ // const updateMask = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.upsert_datapoints.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.upsert_datapoints.js index 94014ba69fb1..62065ad78f93 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.upsert_datapoints.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.upsert_datapoints.js @@ -38,6 +38,14 @@ function main(index) { * A list of datapoints to be created/updated. */ // const datapoints = [1,2,3,4] + /** + * Optional. Update mask is used to specify the fields to be overwritten in + * the datapoints by the update. The fields specified in the update_mask are + * relative to each IndexDatapoint inside datapoints, not the full request. + * Updatable fields: + * * Use `all_restricts` to update both restricts and numeric_restricts. + */ + // const updateMask = {} // Imports the Aiplatform library const {IndexServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js new file mode 100644 index 000000000000..2d5933b5a01a --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js @@ -0,0 +1,71 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, names) { + // [START aiplatform_v1beta1_generated_PipelineService_BatchCancelPipelineJobs_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 PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + */ + // const names = ['abc','def'] + + // Imports the Aiplatform library + const {PipelineServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new PipelineServiceClient(); + + async function callBatchCancelPipelineJobs() { + // Construct request + const request = { + parent, + names, + }; + + // Run request + const [operation] = await aiplatformClient.batchCancelPipelineJobs(request); + const [response] = await operation.promise(); + console.log(response); + } + + callBatchCancelPipelineJobs(); + // [END aiplatform_v1beta1_generated_PipelineService_BatchCancelPipelineJobs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js index 4c609fb75fb1..3b03053ac45b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js @@ -45,6 +45,11 @@ function main(parent, pipelineJob) { * are `/[a-z][0-9]-/`. */ // const pipelineJobId = 'abc123' + /** + * Optional. Whether to do component level validations before job creation. + * Currently we only support Google First Party Component/Pipelines. + */ + // const preflightValidations = true // Imports the Aiplatform library const {PipelineServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js index a742a9c1914b..0bc7e86ac475 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js @@ -46,8 +46,7 @@ function main(model, contents) { * response. * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. */ // const tools = [1,2,3,4] /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js index f7431dbcb01c..3eff2d37bda3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js @@ -46,8 +46,7 @@ function main(model, contents) { * response. * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. */ // const tools = [1,2,3,4] /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json index 100f05e06356..9742a4fe60e8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -1662,7 +1662,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 71, "type": "FULL" } ], @@ -1898,7 +1898,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -4466,7 +4466,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 67, "type": "FULL" } ], @@ -4482,6 +4482,10 @@ { "name": "datapoints", "type": "TYPE_MESSAGE[]" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse", @@ -6107,58 +6111,6 @@ } } }, - { - "regionTag": "aiplatform_v1beta1_generated_LlmUtilityService_CountTokens_async", - "title": "DatasetService countTokens Sample", - "origin": "API_DEFINITION", - "description": " Perform a token counting.", - "canonical": true, - "file": "llm_utility_service.count_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTokens", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService.CountTokens", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CountTokensResponse", - "client": { - "shortName": "LlmUtilityServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityServiceClient" - }, - "method": { - "shortName": "CountTokens", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService.CountTokens", - "service": { - "shortName": "LlmUtilityService", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService" - } - } - } - }, { "regionTag": "aiplatform_v1beta1_generated_LlmUtilityService_ComputeTokens_async", "title": "DatasetService computeTokens Sample", @@ -9294,7 +9246,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 72, "type": "FULL" } ], @@ -9314,6 +9266,10 @@ { "name": "pipeline_job_id", "type": "TYPE_STRING" + }, + { + "name": "preflight_validations", + "type": "TYPE_BOOL" } ], "resultType": ".google.cloud.aiplatform.v1beta1.PipelineJob", @@ -9555,6 +9511,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_PipelineService_BatchCancelPipelineJobs_async", + "title": "DatasetService batchCancelPipelineJobs Sample", + "origin": "API_DEFINITION", + "description": " Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.", + "canonical": true, + "file": "pipeline_service.batch_cancel_pipeline_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCancelPipelineJobs", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "names", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "PipelineServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" + }, + "method": { + "shortName": "BatchCancelPipelineJobs", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs", + "service": { + "shortName": "PipelineService", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_PredictionService_Predict_async", "title": "DatasetService predict Sample", @@ -10106,7 +10106,7 @@ "segments": [ { "start": 25, - "end": 81, + "end": 80, "type": "FULL" } ], @@ -10162,7 +10162,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 82, "type": "FULL" } ], diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts index e08ec294d84f..d335e01d875e 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -412,6 +412,9 @@ export class DatasetServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -444,6 +447,10 @@ export class DatasetServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -477,6 +484,9 @@ export class DatasetServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts index 3ef2ec6540a8..1e160c975145 100644 --- a/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts @@ -396,6 +396,9 @@ export class DeploymentResourcePoolServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -428,6 +431,10 @@ export class DeploymentResourcePoolServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -461,6 +468,9 @@ export class DeploymentResourcePoolServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index a3e99272ce25..fa2aface3075 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -387,6 +387,9 @@ export class EndpointServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -419,6 +422,10 @@ export class EndpointServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -452,6 +459,9 @@ export class EndpointServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts index f7ffa876591b..d3ce578a59cc 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts @@ -402,6 +402,9 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -434,6 +437,10 @@ export class FeatureOnlineStoreAdminServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -467,6 +474,9 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, @@ -2500,6 +2510,7 @@ export class FeatureOnlineStoreAdminServiceClient { * Updatable fields: * * * `big_query_source` + * * `bigtable` * * `labels` * * `sync_config` * @param {object} [options] @@ -2956,6 +2967,7 @@ export class FeatureOnlineStoreAdminServiceClient { * Updatable fields: * * * `labels` + * * `serviceAgentType` * @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. diff --git a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts index 2b3d6adb6bbd..d733d4ed06f5 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts @@ -397,6 +397,9 @@ export class FeatureRegistryServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -429,6 +432,10 @@ export class FeatureRegistryServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -462,6 +469,9 @@ export class FeatureRegistryServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts index 0a7d38a3770c..b4ac539fa7e3 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -405,6 +405,9 @@ export class FeaturestoreServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -437,6 +440,10 @@ export class FeaturestoreServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -470,6 +477,9 @@ export class FeaturestoreServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts index ac2090d7c489..dc0c40aa8e0f 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts @@ -387,6 +387,9 @@ export class IndexEndpointServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -419,6 +422,10 @@ export class IndexEndpointServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -452,6 +459,9 @@ export class IndexEndpointServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts index 2cef03b19038..e17d7372534c 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -387,6 +387,9 @@ export class IndexServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -419,6 +422,10 @@ export class IndexServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -452,6 +459,9 @@ export class IndexServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, @@ -1983,6 +1993,14 @@ export class IndexServiceClient { * `projects/{project}/locations/{location}/indexes/{index}` * @param {number[]} request.datapoints * A list of datapoints to be created/updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. Update mask is used to specify the fields to be overwritten in + * the datapoints by the update. The fields specified in the update_mask are + * relative to each IndexDatapoint inside datapoints, not the full request. + * + * Updatable fields: + * + * * Use `all_restricts` to update both restricts and numeric_restricts. * @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. diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index 9da3fe5ecb26..9c897af51019 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -423,6 +423,9 @@ export class JobServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -455,6 +458,10 @@ export class JobServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -488,6 +495,9 @@ export class JobServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index 5fa36ce48f15..a48b4a8ff9b1 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -410,6 +410,9 @@ export class MetadataServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -442,6 +445,10 @@ export class MetadataServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -475,6 +482,9 @@ export class MetadataServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index 1ec117145f65..44aab130e427 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -388,6 +388,9 @@ export class MigrationServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -420,6 +423,10 @@ export class MigrationServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -453,6 +460,9 @@ export class MigrationServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index 1339948aa2d5..0a3f80eacfdf 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -402,6 +402,9 @@ export class ModelServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -434,6 +437,10 @@ export class ModelServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -467,6 +474,9 @@ export class ModelServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index e2d36c9dfc15..0f0a8cda25e8 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -394,6 +394,9 @@ export class PipelineServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -426,6 +429,10 @@ export class PipelineServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -459,6 +466,9 @@ export class PipelineServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index 03cd73ef1f6b..ab4735a1b7af 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -1125,8 +1125,7 @@ export class PredictionServiceClient { * * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. @@ -1391,8 +1390,7 @@ export class PredictionServiceClient { * * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. diff --git a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts index 13c860a1e544..81b433b29fe4 100644 --- a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts @@ -388,6 +388,9 @@ export class ScheduleServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -420,6 +423,10 @@ export class ScheduleServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -453,6 +460,9 @@ export class ScheduleServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index 8e6be03fba9f..7b63fdda12a9 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -393,6 +393,9 @@ export class SpecialistPoolServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -425,6 +428,10 @@ export class SpecialistPoolServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -458,6 +465,9 @@ export class SpecialistPoolServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts index 65767c8774f2..8aff98bf17f9 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts @@ -420,6 +420,9 @@ export class TensorboardServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -452,6 +455,10 @@ export class TensorboardServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -485,6 +492,9 @@ export class TensorboardServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts index d1751b1b9ade..c8093b205b74 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -396,6 +396,9 @@ export class VizierServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', }, @@ -428,6 +431,10 @@ export class VizierServiceClient { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', body: '*', @@ -461,6 +468,9 @@ export class VizierServiceClient { { post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', }, + { + post: '/v1/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, { post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts index e7df4ba91742..a990e88bb251 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -988,6 +988,10 @@ export class DatasetServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1265,6 +1269,9 @@ export class DatasetServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1515,6 +1522,9 @@ export class DatasetServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1781,6 +1791,9 @@ export class DatasetServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts index 05fe60b07130..6cf950da9523 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts @@ -972,6 +972,10 @@ export class DeploymentResourcePoolServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1249,6 +1253,9 @@ export class DeploymentResourcePoolServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1499,6 +1506,9 @@ export class DeploymentResourcePoolServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1765,6 +1775,9 @@ export class DeploymentResourcePoolServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts index 76f87f912ec2..bb0869d31b43 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -963,6 +963,10 @@ export class EndpointServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1240,6 +1244,9 @@ export class EndpointServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1490,6 +1497,9 @@ export class EndpointServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1756,6 +1766,9 @@ export class EndpointServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, @@ -3072,6 +3085,7 @@ export class EndpointServiceClient { * * A key including a space must be quoted. `labels."a key"`. * * Some examples: + * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` @@ -3194,6 +3208,7 @@ export class EndpointServiceClient { * * A key including a space must be quoted. `labels."a key"`. * * Some examples: + * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` @@ -3264,6 +3279,7 @@ export class EndpointServiceClient { * * A key including a space must be quoted. `labels."a key"`. * * Some examples: + * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts index 6f0cd3e8af22..d3fa15c3b6ec 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts @@ -978,6 +978,10 @@ export class FeatureOnlineStoreAdminServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1255,6 +1259,9 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1505,6 +1512,9 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1771,6 +1781,9 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, @@ -2709,6 +2722,7 @@ export class FeatureOnlineStoreAdminServiceClient { * Updatable fields: * * * `big_query_source` + * * `bigtable` * * `labels` * * `sync_config` * @param {object} [options] @@ -3165,6 +3179,7 @@ export class FeatureOnlineStoreAdminServiceClient { * Updatable fields: * * * `labels` + * * `serviceAgentType` * @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. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts index 1284a83dc05f..03f2dc46e502 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts @@ -973,6 +973,10 @@ export class FeatureRegistryServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1250,6 +1254,9 @@ export class FeatureRegistryServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1500,6 +1507,9 @@ export class FeatureRegistryServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1766,6 +1776,9 @@ export class FeatureRegistryServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts index 281aa43c9de8..c9b05767e505 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -981,6 +981,10 @@ export class FeaturestoreServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1258,6 +1262,9 @@ export class FeaturestoreServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1508,6 +1515,9 @@ export class FeaturestoreServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1774,6 +1784,9 @@ export class FeaturestoreServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 651733e060ce..a3dd0354de66 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -1571,11 +1571,6 @@ "grpc": { "libraryClient": "LlmUtilityServiceClient", "rpcs": { - "CountTokens": { - "methods": [ - "countTokens" - ] - }, "ComputeTokens": { "methods": [ "computeTokens" @@ -1586,11 +1581,6 @@ "grpc-fallback": { "libraryClient": "LlmUtilityServiceClient", "rpcs": { - "CountTokens": { - "methods": [ - "countTokens" - ] - }, "ComputeTokens": { "methods": [ "computeTokens" @@ -2392,6 +2382,11 @@ "batchDeletePipelineJobs" ] }, + "BatchCancelPipelineJobs": { + "methods": [ + "batchCancelPipelineJobs" + ] + }, "ListTrainingPipelines": { "methods": [ "listTrainingPipelines", @@ -2456,6 +2451,11 @@ "batchDeletePipelineJobs" ] }, + "BatchCancelPipelineJobs": { + "methods": [ + "batchCancelPipelineJobs" + ] + }, "ListTrainingPipelines": { "methods": [ "listTrainingPipelines", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts index 6d7050daa9d1..e420641dde43 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts @@ -963,6 +963,10 @@ export class IndexEndpointServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1240,6 +1244,9 @@ export class IndexEndpointServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1490,6 +1497,9 @@ export class IndexEndpointServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1756,6 +1766,9 @@ export class IndexEndpointServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts index 39ed1aead078..9c109c3f6fc4 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -963,6 +963,10 @@ export class IndexServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1240,6 +1244,9 @@ export class IndexServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1490,6 +1497,9 @@ export class IndexServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1756,6 +1766,9 @@ export class IndexServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, @@ -2188,6 +2201,14 @@ export class IndexServiceClient { * `projects/{project}/locations/{location}/indexes/{index}` * @param {number[]} request.datapoints * A list of datapoints to be created/updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. Update mask is used to specify the fields to be overwritten in + * the datapoints by the update. The fields specified in the update_mask are + * relative to each IndexDatapoint inside datapoints, not the full request. + * + * Updatable fields: + * + * * Use `all_restricts` to update both restricts and numeric_restricts. * @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. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts index 32b8b2192805..9dc933be597c 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -999,6 +999,10 @@ export class JobServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1276,6 +1280,9 @@ export class JobServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1526,6 +1533,9 @@ export class JobServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1792,6 +1802,9 @@ export class JobServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts index 379a6ca0825a..82ff0a5ca2b8 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts @@ -393,7 +393,7 @@ export class LlmUtilityServiceClient { // Iterate over each of the methods that the service provides // and create an API call method for each. - const llmUtilityServiceStubMethods = ['countTokens', 'computeTokens']; + const llmUtilityServiceStubMethods = ['computeTokens']; for (const methodName of llmUtilityServiceStubMethods) { const callPromise = this.llmUtilityServiceStub.then( stub => @@ -507,107 +507,6 @@ export class LlmUtilityServiceClient { // ------------------- // -- Service calls -- // ------------------- - /** - * Perform a token counting. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.endpoint - * Required. The name of the Endpoint requested to perform token counting. - * Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param {string} request.model - * Required. The name of the publisher model requested to serve the - * prediction. Format: - * `projects/{project}/locations/{location}/publishers/* /models/*` - * @param {number[]} request.instances - * Required. The instances that are the input to token counting call. - * Schema is identical to the prediction schema of the underlying model. - * @param {number[]} request.contents - * Required. Input content. - * @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 {@link protos.google.cloud.aiplatform.v1beta1.CountTokensResponse|CountTokensResponse}. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } - * for more details and examples. - * @example include:samples/generated/v1beta1/llm_utility_service.count_tokens.js - * region_tag:aiplatform_v1beta1_generated_LlmUtilityService_CountTokens_async - */ - countTokens( - request?: protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse, - protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest | undefined, - {} | undefined, - ] - >; - countTokens( - request: protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse, - | protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest - | null - | undefined, - {} | null | undefined - > - ): void; - countTokens( - request: protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest, - callback: Callback< - protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse, - | protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest - | null - | undefined, - {} | null | undefined - > - ): void; - countTokens( - request?: protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse, - | protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse, - | protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse, - protos.google.cloud.aiplatform.v1beta1.ICountTokensRequest | 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({ - endpoint: request.endpoint ?? '', - }); - this.initialize(); - return this.innerApiCalls.countTokens(request, options, callback); - } /** * Return a list of tokens based on the input text. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json index fea8be3288dc..ffed453ab781 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json @@ -20,10 +20,6 @@ } }, "methods": { - "CountTokens": { - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, "ComputeTokens": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts index 05ace9e69c92..bce658af7253 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -986,6 +986,10 @@ export class MetadataServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1263,6 +1267,9 @@ export class MetadataServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1513,6 +1520,9 @@ export class MetadataServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1779,6 +1789,9 @@ export class MetadataServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts index fcbc3c1c8e81..d3b0c813ca6b 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -964,6 +964,10 @@ export class MigrationServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1241,6 +1245,9 @@ export class MigrationServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1491,6 +1498,9 @@ export class MigrationServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1757,6 +1767,9 @@ export class MigrationServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts index 1fb1dc2e8f94..fdb9e91f1355 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -978,6 +978,10 @@ export class ModelServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1255,6 +1259,9 @@ export class ModelServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1505,6 +1512,9 @@ export class ModelServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1771,6 +1781,9 @@ export class ModelServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts index 600bb6a36fb0..99e9d543a152 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts @@ -964,6 +964,10 @@ export class PersistentResourceServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1241,6 +1245,9 @@ export class PersistentResourceServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1491,6 +1498,9 @@ export class PersistentResourceServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1757,6 +1767,9 @@ export class PersistentResourceServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index 79ad6f187121..5c151aaa1342 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -973,6 +973,10 @@ export class PipelineServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1250,6 +1254,9 @@ export class PipelineServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1500,6 +1507,9 @@ export class PipelineServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1766,6 +1776,9 @@ export class PipelineServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, @@ -1902,6 +1915,12 @@ export class PipelineServiceClient { const batchDeletePipelineJobsMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const batchCancelPipelineJobsResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse' + ) as gax.protobuf.Type; + const batchCancelPipelineJobsMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { deleteTrainingPipeline: new this._gaxModule.LongrunningDescriptor( @@ -1927,6 +1946,15 @@ export class PipelineServiceClient { batchDeletePipelineJobsMetadata ) ), + batchCancelPipelineJobs: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + batchCancelPipelineJobsResponse.decode.bind( + batchCancelPipelineJobsResponse + ), + batchCancelPipelineJobsMetadata.decode.bind( + batchCancelPipelineJobsMetadata + ) + ), }; // Put together the default options sent with requests. @@ -1990,6 +2018,7 @@ export class PipelineServiceClient { 'deletePipelineJob', 'batchDeletePipelineJobs', 'cancelPipelineJob', + 'batchCancelPipelineJobs', ]; for (const methodName of pipelineServiceStubMethods) { const callPromise = this.pipelineServiceStub.then( @@ -2441,6 +2470,9 @@ export class PipelineServiceClient { * * This value should be less than 128 characters, and valid characters * are `/{@link protos.0-9|a-z}-/`. + * @param {boolean} [request.preflightValidations] + * Optional. Whether to do component level validations before job creation. + * Currently we only support Google First Party Component/Pipelines. * @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. @@ -3161,6 +3193,158 @@ export class PipelineServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata >; } + /** + * Batch cancel PipelineJobs. + * Firstly the server will check if all the jobs are in non-terminal states, + * and skip the jobs that are already terminated. + * If the operation failed, none of the pipeline jobs are cancelled. + * The server will poll the states of all the pipeline jobs periodically + * to check the cancellation status. + * This operation will return an LRO. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + * @param {string[]} request.names + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js + * region_tag:aiplatform_v1beta1_generated_PipelineService_BatchCancelPipelineJobs_async + */ + batchCancelPipelineJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + batchCancelPipelineJobs( + request: protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchCancelPipelineJobs( + request: protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchCancelPipelineJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.batchCancelPipelineJobs( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `batchCancelPipelineJobs()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/pipeline_service.batch_cancel_pipeline_jobs.js + * region_tag:aiplatform_v1beta1_generated_PipelineService_BatchCancelPipelineJobs_async + */ + async checkBatchCancelPipelineJobsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.batchCancelPipelineJobs, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsOperationMetadata + >; + } /** * Lists TrainingPipelines in a Location. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json index a8a97dbe0a8d..348b4df8114f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json @@ -68,6 +68,10 @@ "CancelPipelineJob": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "BatchCancelPipelineJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index 64ccf536d87a..db0b6f83a967 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -1251,8 +1251,7 @@ export class PredictionServiceClient { * * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. @@ -1487,8 +1486,7 @@ export class PredictionServiceClient { * * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of - * knowledge and scope of the model. The only supported tool is currently - * `Function` + * knowledge and scope of the model. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts index 6a8bd53baf26..285e086cd3e7 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts @@ -964,6 +964,10 @@ export class ScheduleServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1241,6 +1245,9 @@ export class ScheduleServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1491,6 +1498,9 @@ export class ScheduleServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1757,6 +1767,9 @@ export class ScheduleServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts index 7c29b2fc6ead..be1f3e7dacb0 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts @@ -969,6 +969,10 @@ export class SpecialistPoolServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1246,6 +1250,9 @@ export class SpecialistPoolServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1496,6 +1503,9 @@ export class SpecialistPoolServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1762,6 +1772,9 @@ export class SpecialistPoolServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts index 672d576d331e..01bf27a07248 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -996,6 +996,10 @@ export class TensorboardServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1273,6 +1277,9 @@ export class TensorboardServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1523,6 +1530,9 @@ export class TensorboardServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1789,6 +1799,9 @@ export class TensorboardServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts index 509607de9a70..8b01520573f1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -972,6 +972,10 @@ export class VizierServiceClient { delete: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { delete: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', @@ -1249,6 +1253,9 @@ export class VizierServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}', }, @@ -1499,6 +1506,9 @@ export class VizierServiceClient { { get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', }, + { + get: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*}/operations', + }, { get: '/v1beta1/{name=projects/*/locations/*/exampleStores/*}/operations', }, @@ -1765,6 +1775,9 @@ export class VizierServiceClient { { post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/v1beta1/{name=projects/*/locations/*/evaluationTasks/*/operations/*}:wait', + }, { post: '/v1beta1/{name=projects/*/locations/*/exampleStores/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts index db80ebdc9404..5957f44b0deb 100644 --- a/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts @@ -244,140 +244,6 @@ describe('v1beta1.LlmUtilityServiceClient', () => { }); }); - describe('countTokens', () => { - it('invokes countTokens without error', async () => { - const client = - new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CountTokensRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CountTokensRequest', - ['endpoint'] - ); - request.endpoint = defaultValue1; - const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CountTokensResponse() - ); - client.innerApiCalls.countTokens = stubSimpleCall(expectedResponse); - const [response] = await client.countTokens(request); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.countTokens as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.countTokens as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes countTokens without error using callback', async () => { - const client = - new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CountTokensRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CountTokensRequest', - ['endpoint'] - ); - request.endpoint = defaultValue1; - const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CountTokensResponse() - ); - client.innerApiCalls.countTokens = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.countTokens( - request, - ( - err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.ICountTokensResponse | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.countTokens as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.countTokens as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes countTokens with error', async () => { - const client = - new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CountTokensRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CountTokensRequest', - ['endpoint'] - ); - request.endpoint = defaultValue1; - const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.countTokens = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.countTokens(request), expectedError); - const actualRequest = ( - client.innerApiCalls.countTokens as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.countTokens as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes countTokens with closed client', async () => { - const client = - new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CountTokensRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CountTokensRequest', - ['endpoint'] - ); - request.endpoint = defaultValue1; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.countTokens(request), expectedError); - }); - }); - describe('computeTokens', () => { it('invokes computeTokens without error', async () => { const client = diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts index b7986d4c7696..8005f4b699d5 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts @@ -1695,6 +1695,204 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('batchCancelPipelineJobs', () => { + it('invokes batchCancelPipelineJobs without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchCancelPipelineJobs = + stubLongRunningCall(expectedResponse); + const [operation] = await client.batchCancelPipelineJobs(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCancelPipelineJobs without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchCancelPipelineJobs = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchCancelPipelineJobs( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCancelPipelineJobsOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCancelPipelineJobs with call error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCancelPipelineJobs = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchCancelPipelineJobs(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCancelPipelineJobs with LRO error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCancelPipelineJobs = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.batchCancelPipelineJobs(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCancelPipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkBatchCancelPipelineJobsProgress without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkBatchCancelPipelineJobsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkBatchCancelPipelineJobsProgress with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkBatchCancelPipelineJobsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listTrainingPipelines', () => { it('invokes listTrainingPipelines without error', async () => { const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ From 7f999617c516ecec39510e51d8a530a777b5a59f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Feb 2024 04:23:38 +0100 Subject: [PATCH 02/19] chore(deps): update gcr.io/kaniko-project/executor docker tag to v1.20.1 (#5041) --- ci/cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cloudbuild.yaml b/ci/cloudbuild.yaml index 5c50acca92fc..27a7586a4ba3 100644 --- a/ci/cloudbuild.yaml +++ b/ci/cloudbuild.yaml @@ -26,7 +26,7 @@ logsBucket: 'gs://${_LOGS_BUCKET}/logs/google-cloud-node/${_BUILD_TYPE}/${COMMIT timeout: 32400s steps: - - name: 'gcr.io/kaniko-project/executor:v1.20.0' + - name: 'gcr.io/kaniko-project/executor:v1.20.1' args: [ '--log-format=text', '--context=dir:///workspace/testing', From b646c468c50bd73ead4a05132a6ecd4f96b82ace Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:23:55 -0800 Subject: [PATCH 03/19] docs: [bigquery-datatransfer] update unenrollDataSources API documentation (#5042) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add UnenrollDataSources API which gives users a programmatic way to unenroll data sources PiperOrigin-RevId: 606248188 Source-Link: https://github.com/googleapis/googleapis/commit/fa4f91acabafd95cb8a1ffdb3eccdd48ecf7c284 Source-Link: https://github.com/googleapis/googleapis-gen/commit/05afb31332fb895dc0fd1b822ba50d49eebd3406 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiMDVhZmIzMTMzMmZiODk1ZGMwZmQxYjgyMmJhNTBkNDllZWJkMzQwNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: update unenrollDataSources API documentation PiperOrigin-RevId: 608888275 Source-Link: https://github.com/googleapis/googleapis/commit/1608c323268f02b7ff51d4f57765694648df0d8c Source-Link: https://github.com/googleapis/googleapis-gen/commit/963a9963c8e2d1fbc2f3bef7a758b619fa21f2c0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiOTYzYTk5NjNjOGUyZDFmYmMyZjNiZWY3YTc1OGI2MTlmYTIxZjJjMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../README.md | 1 + .../datatransfer/v1/datatransfer.proto | 24 ++ .../bigquery/datatransfer/v1/transfer.proto | 17 +- .../protos/protos.d.ts | 124 ++++++++ .../protos/protos.js | 276 ++++++++++++++++++ .../protos/protos.json | 29 ++ .../samples/README.md | 18 ++ ..._transfer_service.unenroll_data_sources.js | 65 +++++ ...google.cloud.bigquery.datatransfer.v1.json | 44 +++ .../src/v1/data_transfer_service_client.ts | 104 +++++++ .../data_transfer_service_client_config.json | 4 + .../src/v1/gapic_metadata.json | 10 + .../test/gapic_data_transfer_service_v1.ts | 139 +++++++++ 13 files changed, 846 insertions(+), 9 deletions(-) create mode 100644 packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js diff --git a/packages/google-cloud-bigquery-datatransfer/README.md b/packages/google-cloud-bigquery-datatransfer/README.md index 96b2812e8106..fb25eb682135 100644 --- a/packages/google-cloud-bigquery-datatransfer/README.md +++ b/packages/google-cloud-bigquery-datatransfer/README.md @@ -117,6 +117,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Data_transfer_service.list_transfer_runs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.list_transfer_runs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.list_transfer_runs.js,packages/google-cloud-bigquery-datatransfer/samples/README.md) | | Data_transfer_service.schedule_transfer_runs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.schedule_transfer_runs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.schedule_transfer_runs.js,packages/google-cloud-bigquery-datatransfer/samples/README.md) | | Data_transfer_service.start_manual_transfer_runs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.start_manual_transfer_runs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.start_manual_transfer_runs.js,packages/google-cloud-bigquery-datatransfer/samples/README.md) | +| Data_transfer_service.unenroll_data_sources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js,packages/google-cloud-bigquery-datatransfer/samples/README.md) | | Data_transfer_service.update_transfer_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.update_transfer_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.update_transfer_config.js,packages/google-cloud-bigquery-datatransfer/samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/quickstart.js,packages/google-cloud-bigquery-datatransfer/samples/README.md) | diff --git a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto index 9a61126b6af7..b5874c991fc8 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto +++ b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto @@ -236,6 +236,19 @@ service DataTransferService { } }; } + + // Unenroll data sources in a user project. This allows users to remove + // transfer configurations for these data sources. They will no longer appear + // in the ListDataSources RPC and will also no longer appear in the [BigQuery + // UI](https://console.cloud.google.com/bigquery). Data transfers + // configurations of unenrolled data sources will not be scheduled. + rpc UnenrollDataSources(UnenrollDataSourcesRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*}:unenrollDataSources" + body: "*" + }; + } } // A parameter used to define custom fields in a data source definition. @@ -894,3 +907,14 @@ message EnrollDataSourcesRequest { // data source id. repeated string data_source_ids = 2; } + +// A request to unenroll a set of data sources so they are no longer visible in +// the BigQuery UI's `Transfer` tab. +message UnenrollDataSourcesRequest { + // The name of the project resource in the form: `projects/{project_id}` + string name = 1; + + // Data sources that are unenrolled. It is required to provide at least one + // data source id. + repeated string data_source_ids = 2; +} diff --git a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto index e65b536bc260..13904846ee4f 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto +++ b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto @@ -87,13 +87,13 @@ message ScheduleOptions { // Specifies time to start scheduling transfer runs. The first run will be // scheduled at or after the start time according to a recurrence pattern // defined in the schedule string. The start time can be changed at any - // moment. The time when a data transfer can be trigerred manually is not + // moment. The time when a data transfer can be triggered manually is not // limited by this option. google.protobuf.Timestamp start_time = 1; // Defines time to stop scheduling transfer runs. A transfer run cannot be // scheduled at or after the end time. The end time can be changed at any - // moment. The time when a data transfer can be trigerred manually is not + // moment. The time when a data transfer can be triggered manually is not // limited by this option. google.protobuf.Timestamp end_time = 2; } @@ -148,8 +148,7 @@ message TransferConfig { // Data transfer schedule. // If the data source does not support a custom schedule, this should be - // empty. If it is empty, the default value for the data source will be - // used. + // empty. If it is empty, the default value for the data source will be used. // The specified times are in UTC. // Examples of valid format: // `1st,3rd monday of month 15:30`, @@ -169,12 +168,12 @@ message TransferConfig { // For example, if `data_refresh_window_days = 10`, then every day // BigQuery reingests data for [today-10, today-1], rather than ingesting data // for just [today-1]. - // Only valid if the data source supports the feature. Set the value to 0 + // Only valid if the data source supports the feature. Set the value to 0 // to use the default value. int32 data_refresh_window_days = 12; - // Is this config disabled. When set to true, no runs are scheduled - // for a given transfer. + // Is this config disabled. When set to true, no runs will be scheduled for + // this transfer config. bool disabled = 13; // Output only. Data transfer modification time. Ignored by server on input. @@ -198,7 +197,7 @@ message TransferConfig { // associated with this transfer config finish. // // The format for specifying a pubsub topic is: - // `projects/{project}/topics/{topic}` + // `projects/{project_id}/topics/{topic_id}` string notification_pubsub_topic = 15; // Email notifications will be sent according to these preferences @@ -296,7 +295,7 @@ message TransferRun { // transfer run finishes. // // The format for specifying a pubsub topic is: - // `projects/{project}/topics/{topic}` + // `projects/{project_id}/topics/{topic_id}` string notification_pubsub_topic = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-bigquery-datatransfer/protos/protos.d.ts b/packages/google-cloud-bigquery-datatransfer/protos/protos.d.ts index e2124bb97bad..9c54b71b3b78 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/protos.d.ts +++ b/packages/google-cloud-bigquery-datatransfer/protos/protos.d.ts @@ -258,6 +258,20 @@ export namespace google { * @returns Promise */ public enrollDataSources(request: google.cloud.bigquery.datatransfer.v1.IEnrollDataSourcesRequest): Promise; + + /** + * Calls UnenrollDataSources. + * @param request UnenrollDataSourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public unenrollDataSources(request: google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, callback: google.cloud.bigquery.datatransfer.v1.DataTransferService.UnenrollDataSourcesCallback): void; + + /** + * Calls UnenrollDataSources. + * @param request UnenrollDataSourcesRequest message or plain object + * @returns Promise + */ + public unenrollDataSources(request: google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest): Promise; } namespace DataTransferService { @@ -366,6 +380,13 @@ export namespace google { * @param [response] Empty */ type EnrollDataSourcesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.bigquery.datatransfer.v1.DataTransferService|unenrollDataSources}. + * @param error Error, if any + * @param [response] Empty + */ + type UnenrollDataSourcesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } /** Properties of a DataSourceParameter. */ @@ -3213,6 +3234,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UnenrollDataSourcesRequest. */ + interface IUnenrollDataSourcesRequest { + + /** UnenrollDataSourcesRequest name */ + name?: (string|null); + + /** UnenrollDataSourcesRequest dataSourceIds */ + dataSourceIds?: (string[]|null); + } + + /** Represents an UnenrollDataSourcesRequest. */ + class UnenrollDataSourcesRequest implements IUnenrollDataSourcesRequest { + + /** + * Constructs a new UnenrollDataSourcesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest); + + /** UnenrollDataSourcesRequest name. */ + public name: string; + + /** UnenrollDataSourcesRequest dataSourceIds. */ + public dataSourceIds: string[]; + + /** + * Creates a new UnenrollDataSourcesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UnenrollDataSourcesRequest instance + */ + public static create(properties?: google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest): google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; + + /** + * Encodes the specified UnenrollDataSourcesRequest message. Does not implicitly {@link google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.verify|verify} messages. + * @param message UnenrollDataSourcesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UnenrollDataSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.verify|verify} messages. + * @param message UnenrollDataSourcesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnenrollDataSourcesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnenrollDataSourcesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; + + /** + * Decodes an UnenrollDataSourcesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnenrollDataSourcesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; + + /** + * Verifies an UnenrollDataSourcesRequest message. + * @param message Plain 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 UnenrollDataSourcesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnenrollDataSourcesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; + + /** + * Creates a plain object from an UnenrollDataSourcesRequest message. Also converts values to other types if specified. + * @param message UnenrollDataSourcesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UnenrollDataSourcesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UnenrollDataSourcesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** TransferType enum. */ enum TransferType { TRANSFER_TYPE_UNSPECIFIED = 0, diff --git a/packages/google-cloud-bigquery-datatransfer/protos/protos.js b/packages/google-cloud-bigquery-datatransfer/protos/protos.js index 4b51aa3fa2e8..a40e3e18be09 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/protos.js +++ b/packages/google-cloud-bigquery-datatransfer/protos/protos.js @@ -602,6 +602,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.bigquery.datatransfer.v1.DataTransferService|unenrollDataSources}. + * @memberof google.cloud.bigquery.datatransfer.v1.DataTransferService + * @typedef UnenrollDataSourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls UnenrollDataSources. + * @function unenrollDataSources + * @memberof google.cloud.bigquery.datatransfer.v1.DataTransferService + * @instance + * @param {google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest} request UnenrollDataSourcesRequest message or plain object + * @param {google.cloud.bigquery.datatransfer.v1.DataTransferService.UnenrollDataSourcesCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataTransferService.prototype.unenrollDataSources = function unenrollDataSources(request, callback) { + return this.rpcCall(unenrollDataSources, $root.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "UnenrollDataSources" }); + + /** + * Calls UnenrollDataSources. + * @function unenrollDataSources + * @memberof google.cloud.bigquery.datatransfer.v1.DataTransferService + * @instance + * @param {google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest} request UnenrollDataSourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return DataTransferService; })(); @@ -7782,6 +7815,249 @@ return EnrollDataSourcesRequest; })(); + v1.UnenrollDataSourcesRequest = (function() { + + /** + * Properties of an UnenrollDataSourcesRequest. + * @memberof google.cloud.bigquery.datatransfer.v1 + * @interface IUnenrollDataSourcesRequest + * @property {string|null} [name] UnenrollDataSourcesRequest name + * @property {Array.|null} [dataSourceIds] UnenrollDataSourcesRequest dataSourceIds + */ + + /** + * Constructs a new UnenrollDataSourcesRequest. + * @memberof google.cloud.bigquery.datatransfer.v1 + * @classdesc Represents an UnenrollDataSourcesRequest. + * @implements IUnenrollDataSourcesRequest + * @constructor + * @param {google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest=} [properties] Properties to set + */ + function UnenrollDataSourcesRequest(properties) { + this.dataSourceIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UnenrollDataSourcesRequest name. + * @member {string} name + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @instance + */ + UnenrollDataSourcesRequest.prototype.name = ""; + + /** + * UnenrollDataSourcesRequest dataSourceIds. + * @member {Array.} dataSourceIds + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @instance + */ + UnenrollDataSourcesRequest.prototype.dataSourceIds = $util.emptyArray; + + /** + * Creates a new UnenrollDataSourcesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} UnenrollDataSourcesRequest instance + */ + UnenrollDataSourcesRequest.create = function create(properties) { + return new UnenrollDataSourcesRequest(properties); + }; + + /** + * Encodes the specified UnenrollDataSourcesRequest message. Does not implicitly {@link google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest} message UnenrollDataSourcesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnenrollDataSourcesRequest.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.dataSourceIds != null && message.dataSourceIds.length) + for (var i = 0; i < message.dataSourceIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataSourceIds[i]); + return writer; + }; + + /** + * Encodes the specified UnenrollDataSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest} message UnenrollDataSourcesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnenrollDataSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UnenrollDataSourcesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} UnenrollDataSourcesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnenrollDataSourcesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.dataSourceIds && message.dataSourceIds.length)) + message.dataSourceIds = []; + message.dataSourceIds.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UnenrollDataSourcesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} UnenrollDataSourcesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnenrollDataSourcesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UnenrollDataSourcesRequest message. + * @function verify + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UnenrollDataSourcesRequest.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.dataSourceIds != null && message.hasOwnProperty("dataSourceIds")) { + if (!Array.isArray(message.dataSourceIds)) + return "dataSourceIds: array expected"; + for (var i = 0; i < message.dataSourceIds.length; ++i) + if (!$util.isString(message.dataSourceIds[i])) + return "dataSourceIds: string[] expected"; + } + return null; + }; + + /** + * Creates an UnenrollDataSourcesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} UnenrollDataSourcesRequest + */ + UnenrollDataSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) + return object; + var message = new $root.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.dataSourceIds) { + if (!Array.isArray(object.dataSourceIds)) + throw TypeError(".google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.dataSourceIds: array expected"); + message.dataSourceIds = []; + for (var i = 0; i < object.dataSourceIds.length; ++i) + message.dataSourceIds[i] = String(object.dataSourceIds[i]); + } + return message; + }; + + /** + * Creates a plain object from an UnenrollDataSourcesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} message UnenrollDataSourcesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UnenrollDataSourcesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataSourceIds = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.dataSourceIds && message.dataSourceIds.length) { + object.dataSourceIds = []; + for (var j = 0; j < message.dataSourceIds.length; ++j) + object.dataSourceIds[j] = message.dataSourceIds[j]; + } + return object; + }; + + /** + * Converts this UnenrollDataSourcesRequest to JSON. + * @function toJSON + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @instance + * @returns {Object.} JSON object + */ + UnenrollDataSourcesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UnenrollDataSourcesRequest + * @function getTypeUrl + * @memberof google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UnenrollDataSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest"; + }; + + return UnenrollDataSourcesRequest; + })(); + /** * TransferType enum. * @name google.cloud.bigquery.datatransfer.v1.TransferType diff --git a/packages/google-cloud-bigquery-datatransfer/protos/protos.json b/packages/google-cloud-bigquery-datatransfer/protos/protos.json index 8d9bccf72afe..0c054a6deca4 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/protos.json +++ b/packages/google-cloud-bigquery-datatransfer/protos/protos.json @@ -375,6 +375,22 @@ } } ] + }, + "UnenrollDataSources": { + "requestType": "UnenrollDataSourcesRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*}:unenrollDataSources", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*}:unenrollDataSources", + "body": "*" + } + } + ] } } }, @@ -989,6 +1005,19 @@ } } }, + "UnenrollDataSourcesRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "dataSourceIds": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, "TransferType": { "options": { "deprecated": true diff --git a/packages/google-cloud-bigquery-datatransfer/samples/README.md b/packages/google-cloud-bigquery-datatransfer/samples/README.md index da46927c6cd0..55cf0805c9cb 100644 --- a/packages/google-cloud-bigquery-datatransfer/samples/README.md +++ b/packages/google-cloud-bigquery-datatransfer/samples/README.md @@ -26,6 +26,7 @@ * [Data_transfer_service.list_transfer_runs](#data_transfer_service.list_transfer_runs) * [Data_transfer_service.schedule_transfer_runs](#data_transfer_service.schedule_transfer_runs) * [Data_transfer_service.start_manual_transfer_runs](#data_transfer_service.start_manual_transfer_runs) + * [Data_transfer_service.unenroll_data_sources](#data_transfer_service.unenroll_data_sources) * [Data_transfer_service.update_transfer_config](#data_transfer_service.update_transfer_config) * [Quickstart](#quickstart) @@ -282,6 +283,23 @@ __Usage:__ +### Data_transfer_service.unenroll_data_sources + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js` + + +----- + + + + ### Data_transfer_service.update_transfer_config View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.update_transfer_config.js). diff --git a/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js b/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js new file mode 100644 index 000000000000..89d4bacbdb04 --- /dev/null +++ b/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/data_transfer_service.unenroll_data_sources.js @@ -0,0 +1,65 @@ +// Copyright 2024 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() { + // [START bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_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. + */ + /** + * The name of the project resource in the form: `projects/{project_id}` + */ + // const name = 'abc123' + /** + * Data sources that are unenrolled. It is required to provide at least one + * data source id. + */ + // const dataSourceIds = ['abc','def'] + + // Imports the Datatransfer library + const {DataTransferServiceClient} = require('@google-cloud/bigquery-data-transfer').v1; + + // Instantiates a client + const datatransferClient = new DataTransferServiceClient(); + + async function callUnenrollDataSources() { + // Construct request + const request = { + }; + + // Run request + const response = await datatransferClient.unenrollDataSources(request); + console.log(response); + } + + callUnenrollDataSources(); + // [END bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json b/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json index dcad6106d14d..d5f0820dc422 100644 --- a/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json +++ b/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json @@ -710,6 +710,50 @@ } } } + }, + { + "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_async", + "title": "DataTransferService unenrollDataSources Sample", + "origin": "API_DEFINITION", + "description": " Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). Data transfers configurations of unenrolled data sources will not be scheduled.", + "canonical": true, + "file": "data_transfer_service.unenroll_data_sources.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UnenrollDataSources", + "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.UnenrollDataSources", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "data_source_ids", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "DataTransferServiceClient", + "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" + }, + "method": { + "shortName": "UnenrollDataSources", + "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.UnenrollDataSources", + "service": { + "shortName": "DataTransferService", + "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client.ts b/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client.ts index 60f6a7aa7052..e04000b354be 100644 --- a/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client.ts +++ b/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client.ts @@ -316,6 +316,7 @@ export class DataTransferServiceClient { 'listTransferLogs', 'checkValidCreds', 'enrollDataSources', + 'unenrollDataSources', ]; for (const methodName of dataTransferServiceStubMethods) { const callPromise = this.dataTransferServiceStub.then( @@ -1638,6 +1639,109 @@ export class DataTransferServiceClient { this.initialize(); return this.innerApiCalls.enrollDataSources(request, options, callback); } + /** + * Unenroll data sources in a user project. This allows users to remove + * transfer configurations for these data sources. They will no longer appear + * in the ListDataSources RPC and will also no longer appear in the [BigQuery + * UI](https://console.cloud.google.com/bigquery). Data transfers + * configurations of unenrolled data sources will not be scheduled. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The name of the project resource in the form: `projects/{project_id}` + * @param {string[]} request.dataSourceIds + * Data sources that are unenrolled. It is required to provide at least one + * data source id. + * @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 {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/data_transfer_service.unenroll_data_sources.js + * region_tag:bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_async + */ + unenrollDataSources( + request?: protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest + | undefined + ), + {} | undefined, + ] + >; + unenrollDataSources( + request: protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + unenrollDataSources( + request: protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + unenrollDataSources( + request?: protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.bigquery.datatransfer.v1.IUnenrollDataSourcesRequest + | 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.unenrollDataSources(request, options, callback); + } /** * Lists supported data sources and returns their settings. diff --git a/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client_config.json b/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client_config.json index 32271a384008..6237a6ed4803 100644 --- a/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client_config.json +++ b/packages/google-cloud-bigquery-datatransfer/src/v1/data_transfer_service_client_config.json @@ -92,6 +92,10 @@ "EnrollDataSources": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UnenrollDataSources": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-bigquery-datatransfer/src/v1/gapic_metadata.json b/packages/google-cloud-bigquery-datatransfer/src/v1/gapic_metadata.json index 85059e6c876d..333fb731edb3 100644 --- a/packages/google-cloud-bigquery-datatransfer/src/v1/gapic_metadata.json +++ b/packages/google-cloud-bigquery-datatransfer/src/v1/gapic_metadata.json @@ -65,6 +65,11 @@ "enrollDataSources" ] }, + "UnenrollDataSources": { + "methods": [ + "unenrollDataSources" + ] + }, "ListDataSources": { "methods": [ "listDataSources", @@ -153,6 +158,11 @@ "enrollDataSources" ] }, + "UnenrollDataSources": { + "methods": [ + "unenrollDataSources" + ] + }, "ListDataSources": { "methods": [ "listDataSources", diff --git a/packages/google-cloud-bigquery-datatransfer/test/gapic_data_transfer_service_v1.ts b/packages/google-cloud-bigquery-datatransfer/test/gapic_data_transfer_service_v1.ts index cdb30200ed8a..5fbda05ae6b2 100644 --- a/packages/google-cloud-bigquery-datatransfer/test/gapic_data_transfer_service_v1.ts +++ b/packages/google-cloud-bigquery-datatransfer/test/gapic_data_transfer_service_v1.ts @@ -1829,6 +1829,145 @@ describe('v1.DataTransferServiceClient', () => { }); }); + describe('unenrollDataSources', () => { + it('invokes unenrollDataSources without error', async () => { + const client = new datatransferserviceModule.v1.DataTransferServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.unenrollDataSources = + stubSimpleCall(expectedResponse); + const [response] = await client.unenrollDataSources(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.unenrollDataSources as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.unenrollDataSources as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes unenrollDataSources without error using callback', async () => { + const client = new datatransferserviceModule.v1.DataTransferServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.unenrollDataSources = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.unenrollDataSources( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.unenrollDataSources as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.unenrollDataSources as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes unenrollDataSources with error', async () => { + const client = new datatransferserviceModule.v1.DataTransferServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.unenrollDataSources = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.unenrollDataSources(request), expectedError); + const actualRequest = ( + client.innerApiCalls.unenrollDataSources as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.unenrollDataSources as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes unenrollDataSources with closed client', async () => { + const client = new datatransferserviceModule.v1.DataTransferServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.unenrollDataSources(request), expectedError); + }); + }); + describe('listDataSources', () => { it('invokes listDataSources without error', async () => { const client = new datatransferserviceModule.v1.DataTransferServiceClient( From 8dcf23c3f9d4ec94d4effd46eb2551568c029598 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:24:16 -0800 Subject: [PATCH 04/19] feat: [orchestration] added ListWorkloads RPC (#5044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added ListWorkloads RPC feat: added field data_retention_config to EnvironmentConfig feat: added field web_server_plugins_mode to SoftwareConfig feat: added field storage_config to Environment PiperOrigin-RevId: 606533667 Source-Link: https://github.com/googleapis/googleapis/commit/1d0a2bd14c9fa5ac9999d028a8df960f67869634 Source-Link: https://github.com/googleapis/googleapis-gen/commit/397f8b258d867e0d7ff2fbda5135bbf341811d26 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yY2hlc3RyYXRpb24tYWlyZmxvdy1zZXJ2aWNlLy5Pd2xCb3QueWFtbCIsImgiOiIzOTdmOGIyNThkODY3ZTBkN2ZmMmZiZGE1MTM1YmJmMzQxODExZDI2In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added ListWorkloads RPC feat: added field data_retention_config to EnvironmentConfig feat: added field web_server_plugins_mode to SoftwareConfig feat: added field storage_config to Environment PiperOrigin-RevId: 606927106 Source-Link: https://github.com/googleapis/googleapis/commit/7a518dde6bcf8bc2d7c83357a9b0c5551daa33fa Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ef1725571ff640864a615528aa144a91cc17f81 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yY2hlc3RyYXRpb24tYWlyZmxvdy1zZXJ2aWNlLy5Pd2xCb3QueWFtbCIsImgiOiI1ZWYxNzI1NTcxZmY2NDA4NjRhNjE1NTI4YWExNDRhOTFjYzE3ZjgxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../README.md | 22 + .../airflow/service/v1/environments.proto | 604 + .../service/v1beta1/environments.proto | 578 + .../protos/protos.d.ts | 11340 ++++-- .../protos/protos.js | 30343 +++++++++++----- .../protos/protos.json | 2378 +- .../samples/README.md | 396 + ...nments.create_user_workloads_config_map.js | 67 + ...vironments.create_user_workloads_secret.js | 67 + ...nments.delete_user_workloads_config_map.js | 62 + ...vironments.delete_user_workloads_secret.js | 62 + ...ironments.get_user_workloads_config_map.js | 62 + .../environments.get_user_workloads_secret.js | 62 + ...onments.list_user_workloads_config_maps.js | 73 + ...nvironments.list_user_workloads_secrets.js | 73 + .../v1/environments.list_workloads.js | 82 + ...nments.update_user_workloads_config_map.js | 60 + ...vironments.update_user_workloads_secret.js | 60 + ...loud.orchestration.airflow.service.v1.json | 476 + ...nments.create_user_workloads_config_map.js | 67 + ...vironments.create_user_workloads_secret.js | 67 + ...nments.delete_user_workloads_config_map.js | 62 + ...vironments.delete_user_workloads_secret.js | 62 + ...ironments.get_user_workloads_config_map.js | 62 + .../environments.get_user_workloads_secret.js | 62 + ...onments.list_user_workloads_config_maps.js | 73 + ...nvironments.list_user_workloads_secrets.js | 73 + .../v1beta1/environments.list_workloads.js | 82 + ...nments.update_user_workloads_config_map.js | 60 + ...vironments.update_user_workloads_secret.js | 60 + ...orchestration.airflow.service.v1beta1.json | 476 + .../src/v1/environments_client.ts | 3047 +- .../src/v1/environments_client_config.json | 44 + .../src/v1/gapic_metadata.json | 122 + .../src/v1/image_versions_client.ts | 166 + .../src/v1beta1/environments_client.ts | 3257 +- .../v1beta1/environments_client_config.json | 44 + .../src/v1beta1/gapic_metadata.json | 122 + .../src/v1beta1/image_versions_client.ts | 166 + .../test/gapic_environments_v1.ts | 3570 +- .../test/gapic_environments_v1beta1.ts | 3874 +- .../test/gapic_image_versions_v1.ts | 191 + .../test/gapic_image_versions_v1beta1.ts | 191 + 43 files changed, 47579 insertions(+), 15288 deletions(-) create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js create mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js diff --git a/packages/google-cloud-orchestration-airflow-service/README.md b/packages/google-cloud-orchestration-airflow-service/README.md index 10fc277fa14c..969d9398ad95 100644 --- a/packages/google-cloud-orchestration-airflow-service/README.md +++ b/packages/google-cloud-orchestration-airflow-service/README.md @@ -89,32 +89,54 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Environments.create_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.create_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.create_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.database_failover | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.database_failover.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.database_failover.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.delete_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.delete_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.delete_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.execute_airflow_command | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.execute_airflow_command.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.execute_airflow_command.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.fetch_database_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.fetch_database_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.fetch_database_properties.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.get_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.get_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.get_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.list_environments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.list_user_workloads_config_maps | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.list_user_workloads_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.list_workloads | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.load_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.load_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.load_snapshot.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.poll_airflow_command | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.poll_airflow_command.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.poll_airflow_command.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.save_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.save_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.save_snapshot.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.stop_airflow_command | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.stop_airflow_command.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.stop_airflow_command.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.update_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.update_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.update_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Image_versions.list_image_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.check_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.check_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.check_upgrade.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.create_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.create_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.create_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.database_failover | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.database_failover.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.database_failover.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.delete_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.delete_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.delete_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.execute_airflow_command | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.execute_airflow_command.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.execute_airflow_command.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.fetch_database_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.fetch_database_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.fetch_database_properties.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.get_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.get_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.get_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.list_environments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.list_user_workloads_config_maps | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.list_user_workloads_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.list_workloads | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.load_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.load_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.load_snapshot.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.poll_airflow_command | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.poll_airflow_command.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.poll_airflow_command.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.restart_web_server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.restart_web_server.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.restart_web_server.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.save_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.save_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.save_snapshot.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.stop_airflow_command | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.stop_airflow_command.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.stop_airflow_command.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Environments.update_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_environment.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.update_user_workloads_config_map | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | +| Environments.update_user_workloads_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Image_versions.list_image_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/quickstart.js,packages/google-cloud-orchestration-airflow-service/samples/README.md) | diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto index e83af80a94ac..72fbe14f3795 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto @@ -121,6 +121,143 @@ service Environments { }; } + // Lists workloads in a Cloud Composer environment. Workload is a unit that + // runs a single Composer component. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc ListWorkloads(ListWorkloadsRequest) returns (ListWorkloadsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/environments/*}/workloads" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a user workloads Secret. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc CreateUserWorkloadsSecret(CreateUserWorkloadsSecretRequest) + returns (UserWorkloadsSecret) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets" + body: "user_workloads_secret" + }; + option (google.api.method_signature) = "parent,user_workloads_secret"; + } + + // Gets an existing user workloads Secret. + // Values of the "data" field in the response are cleared. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc GetUserWorkloadsSecret(GetUserWorkloadsSecretRequest) + returns (UserWorkloadsSecret) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists user workloads Secrets. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc ListUserWorkloadsSecrets(ListUserWorkloadsSecretsRequest) + returns (ListUserWorkloadsSecretsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a user workloads Secret. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc UpdateUserWorkloadsSecret(UpdateUserWorkloadsSecretRequest) + returns (UserWorkloadsSecret) { + option (google.api.http) = { + put: "/v1/{user_workloads_secret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + body: "user_workloads_secret" + }; + option (google.api.method_signature) = "user_workloads_secret"; + } + + // Deletes a user workloads Secret. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc DeleteUserWorkloadsSecret(DeleteUserWorkloadsSecretRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc CreateUserWorkloadsConfigMap(CreateUserWorkloadsConfigMapRequest) + returns (UserWorkloadsConfigMap) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps" + body: "user_workloads_config_map" + }; + option (google.api.method_signature) = "parent,user_workloads_config_map"; + } + + // Gets an existing user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc GetUserWorkloadsConfigMap(GetUserWorkloadsConfigMapRequest) + returns (UserWorkloadsConfigMap) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists user workloads ConfigMaps. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc ListUserWorkloadsConfigMaps(ListUserWorkloadsConfigMapsRequest) + returns (ListUserWorkloadsConfigMapsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc UpdateUserWorkloadsConfigMap(UpdateUserWorkloadsConfigMapRequest) + returns (UserWorkloadsConfigMap) { + option (google.api.http) = { + put: "/v1/{user_workloads_config_map.name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + body: "user_workloads_config_map" + }; + option (google.api.method_signature) = "user_workloads_config_map"; + } + + // Deletes a user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc DeleteUserWorkloadsConfigMap(DeleteUserWorkloadsConfigMapRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + }; + option (google.api.method_signature) = "name"; + } + // Creates a snapshots of a Cloud Composer environment. // // As a result of this operation, snapshot of environment's state is stored @@ -468,6 +605,313 @@ message PollAirflowCommandResponse { ExitInfo exit_info = 3; } +// Create user workloads Secret request. +message CreateUserWorkloadsSecretRequest { + // Required. The environment name to create a Secret for, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Required. User workloads Secret to create. + UserWorkloadsSecret user_workloads_secret = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Get user workloads Secret request. +message GetUserWorkloadsSecretRequest { + // Required. The resource name of the Secret to get, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsSecret" + } + ]; +} + +// List user workloads Secrets request. +message ListUserWorkloadsSecretsRequest { + // Required. List Secrets in the given environment, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Optional. The maximum number of Secrets to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Update user workloads Secret request. +message UpdateUserWorkloadsSecretRequest { + // Optional. User workloads Secret to override. + UserWorkloadsSecret user_workloads_secret = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Delete user workloads Secret request. +message DeleteUserWorkloadsSecretRequest { + // Required. The Secret to delete, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsSecret" + } + ]; +} + +// Create user workloads ConfigMap request. +message CreateUserWorkloadsConfigMapRequest { + // Required. The environment name to create a ConfigMap for, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Required. User workloads ConfigMap to create. + UserWorkloadsConfigMap user_workloads_config_map = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Get user workloads ConfigMap request. +message GetUserWorkloadsConfigMapRequest { + // Required. The resource name of the ConfigMap to get, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsConfigMap" + } + ]; +} + +// List user workloads ConfigMaps request. +message ListUserWorkloadsConfigMapsRequest { + // Required. List ConfigMaps in the given environment, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Optional. The maximum number of ConfigMaps to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Update user workloads ConfigMap request. +message UpdateUserWorkloadsConfigMapRequest { + // Optional. User workloads ConfigMap to override. + UserWorkloadsConfigMap user_workloads_config_map = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Delete user workloads ConfigMap request. +message DeleteUserWorkloadsConfigMapRequest { + // Required. The ConfigMap to delete, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsConfigMap" + } + ]; +} + +// User workloads Secret used by Airflow tasks that run with Kubernetes executor +// or KubernetesPodOperator. +message UserWorkloadsSecret { + option (google.api.resource) = { + type: "composer.googleapis.com/UserWorkloadsSecret" + pattern: "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}" + plural: "userWorkloadsSecrets" + singular: "userWorkloadsSecret" + }; + + // Identifier. The resource name of the Secret, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The "data" field of Kubernetes Secret, organized in key-value + // pairs, which can contain sensitive values such as a password, a token, or a + // key. The values for all keys have to be base64-encoded strings. For details + // see: https://kubernetes.io/docs/concepts/configuration/secret/ + map data = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The user workloads Secrets for a given environment. +message ListUserWorkloadsSecretsResponse { + // The list of Secrets returned by a ListUserWorkloadsSecretsRequest. + repeated UserWorkloadsSecret user_workloads_secrets = 1; + + // The page token used to query for the next page if one exists. + string next_page_token = 2; +} + +// User workloads ConfigMap used by Airflow tasks that run with Kubernetes +// executor or KubernetesPodOperator. +message UserWorkloadsConfigMap { + option (google.api.resource) = { + type: "composer.googleapis.com/UserWorkloadsConfigMap" + pattern: "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}" + plural: "userWorkloadsConfigMaps" + singular: "userWorkloadsConfigMap" + }; + + // Identifier. The resource name of the ConfigMap, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The "data" field of Kubernetes ConfigMap, organized in key-value + // pairs. For details see: + // https://kubernetes.io/docs/concepts/configuration/configmap/ + map data = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The user workloads ConfigMaps for a given environment. +message ListUserWorkloadsConfigMapsResponse { + // The list of ConfigMaps returned by a ListUserWorkloadsConfigMapsRequest. + repeated UserWorkloadsConfigMap user_workloads_config_maps = 1; + + // The page token used to query for the next page if one exists. + string next_page_token = 2; +} + +// Request for listing workloads in a Cloud Composer environment. +message ListWorkloadsRequest { + // Required. The environment name to get workloads for, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Optional. The maximum number of environments to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list filter. + // Currently only supports equality on the type field. The value of a field + // specified in the filter expression must be one ComposerWorkloadType enum + // option. It's possible to get multiple types using "OR" operator, e.g.: + // "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + // returned. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response to ListWorkloadsRequest. +message ListWorkloadsResponse { + // Information about a single workload. + message ComposerWorkload { + // Name of a workload. + string name = 1; + + // Type of a workload. + ComposerWorkloadType type = 2; + + // Output only. Status of a workload. + ComposerWorkloadStatus status = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Supported workload types. + enum ComposerWorkloadType { + // Not able to determine the type of the workload. + COMPOSER_WORKLOAD_TYPE_UNSPECIFIED = 0; + + // Celery worker. + CELERY_WORKER = 1; + + // Kubernetes worker. + KUBERNETES_WORKER = 2; + + // Workload created by Kubernetes Pod Operator. + KUBERNETES_OPERATOR_POD = 3; + + // Airflow scheduler. + SCHEDULER = 4; + + // Airflow Dag processor. + DAG_PROCESSOR = 5; + + // Airflow triggerer. + TRIGGERER = 6; + + // Airflow web server UI. + WEB_SERVER = 7; + + // Redis. + REDIS = 8; + } + + // Workload status. + message ComposerWorkloadStatus { + // Output only. Workload state. + ComposerWorkloadState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Text to provide more descriptive status. + string status_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Detailed message of the status. + string detailed_status_message = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Workload states. + enum ComposerWorkloadState { + // Not able to determine the status of the workload. + COMPOSER_WORKLOAD_STATE_UNSPECIFIED = 0; + + // Workload is in pending state and has not yet started. + PENDING = 1; + + // Workload is running fine. + OK = 2; + + // Workload is running but there are some non-critical problems. + WARNING = 3; + + // Workload is not running due to an error. + ERROR = 4; + + // Workload has finished execution with success. + SUCCEEDED = 5; + + // Workload has finished execution with failure. + FAILED = 6; + } + + // The list of environment workloads. + repeated ComposerWorkload workloads = 1; + + // The page token used to query for the next page if one exists. + string next_page_token = 2; +} + // Request to create a snapshot of a Cloud Composer environment. message SaveSnapshotRequest { // The resource name of the source environment in the form: @@ -556,6 +1000,13 @@ message FetchDatabasePropertiesResponse { bool is_failover_replica_available = 3; } +// The configuration for data storage in the environment. +message StorageConfig { + // Optional. The name of the Cloud Storage bucket used by the environment. No + // `gs://` prefix. + string bucket = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // Configuration information for an environment. message EnvironmentConfig { // The size of the Cloud Composer environment. @@ -692,6 +1143,11 @@ message EnvironmentConfig { // This field is supported for Cloud Composer environments in versions // composer-2.2.0-airflow-*.*.* and newer. ResilienceMode resilience_mode = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The configuration setting for Airflow database data retention + // mechanism. + DataRetentionConfig data_retention_config = 21 + [(google.api.field_behavior) = OPTIONAL]; } // Network-level access control policy for the Airflow web server. @@ -726,6 +1182,13 @@ message DatabaseConfig { // Supported for Cloud Composer environments in versions // composer-1.*.*-airflow-*.*.*. string machine_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Compute Engine zone where the Airflow database is created. If + // zone is provided, it must be in the region selected for the environment. If + // zone is not provided, a zone is automatically selected. The zone can only + // be set during environment creation. Supported for Cloud Composer + // environments in versions composer-2.*.*-airflow-*.*.*. + string zone = 2 [(google.api.field_behavior) = OPTIONAL]; } // The configuration settings for the Airflow web server App Engine instance. @@ -784,6 +1247,18 @@ message MaintenanceWindow { // Specifies the selection and configuration of software inside the environment. message SoftwareConfig { + // Web server plugins mode of the Cloud Composer environment. + enum WebServerPluginsMode { + // Default mode. + WEB_SERVER_PLUGINS_MODE_UNSPECIFIED = 0; + + // Web server plugins are not supported. + PLUGINS_DISABLED = 1; + + // Web server plugins are supported. + PLUGINS_ENABLED = 2; + } + // The version of the software running in the environment. // This encapsulates both the version of Cloud Composer functionality and the // version of Apache Airflow. It must match the regular expression @@ -877,6 +1352,18 @@ message SoftwareConfig { // This field is supported for Cloud Composer environments in versions // composer-1.*.*-airflow-2.*.*. int32 scheduler_count = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The configuration for Cloud Data Lineage integration. + CloudDataLineageIntegration cloud_data_lineage_integration = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the web server uses custom plugins. + // If unspecified, the field defaults to `PLUGINS_ENABLED`. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + WebServerPluginsMode web_server_plugins_mode = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration for controlling how IPs are allocated in the @@ -1060,6 +1547,31 @@ message NodeConfig { // See: // https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent bool enable_ip_masq_agent = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Network Attachment that Cloud Composer environment is connected + // to, which provides connectivity with a user's VPC network. Takes precedence + // over network and subnetwork settings. If not provided, but network and + // subnetwork are defined during environment, it will be provisioned. If not + // provided and network and subnetwork are also empty, then connectivity to + // user's VPC network is disabled. Network attachment must be provided in + // format + // projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + string composer_network_attachment = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP range in CIDR notation to use internally by Cloud + // Composer. IP addresses are not reserved - and the same range can be used by + // multiple Cloud Composer environments. In case of overlap, IPs from this + // range will not be accessible in the user's VPC network. Cannot be updated. + // If not specified, the default value of '100.64.128.0/20' is used. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + string composer_internal_ipv4_cidr_block = 13 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration options for the private GKE cluster in a Cloud Composer @@ -1117,6 +1629,17 @@ message PrivateEnvironmentConfig { // composer-1.*.*-airflow-*.*.*. bool enable_private_environment = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If `true`, builds performed during operations that install Python + // packages have only private connectivity to Google services (including + // Artifact Registry) and VPC network (if either `NodeConfig.network` and + // `NodeConfig.subnetwork` fields or `NodeConfig.composer_network_attachment` + // field are specified). If `false`, the builds also have access to the + // internet. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + bool enable_private_builds_only = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for the private GKE cluster for a Private IP // Cloud Composer environment. PrivateClusterConfig private_cluster_config = 2 @@ -1234,6 +1757,38 @@ message WorkloadsConfig { int32 max_count = 5 [(google.api.field_behavior) = OPTIONAL]; } + // Configuration for resources used by Airflow triggerers. + message TriggererResource { + // Optional. The number of triggerers. + int32 count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CPU request and limit for a single Airflow triggerer replica. + float cpu = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Memory (GB) request and limit for a single Airflow triggerer + // replica. + float memory_gb = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for resources used by Airflow DAG processors. + message DagProcessorResource { + // Optional. CPU request and limit for a single Airflow DAG processor + // replica. + float cpu = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Memory (GB) request and limit for a single Airflow DAG + // processor replica. + float memory_gb = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Storage (GB) request and limit for a single Airflow DAG + // processor replica. + float storage_gb = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of DAG processors. If not provided or set to 0, a + // single DAG processor instance will be created. + int32 count = 4 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. Resources used by Airflow schedulers. SchedulerResource scheduler = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -1242,6 +1797,16 @@ message WorkloadsConfig { // Optional. Resources used by Airflow workers. WorkerResource worker = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Resources used by Airflow triggerers. + TriggererResource triggerer = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Resources used by Airflow DAG processors. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + DagProcessorResource dag_processor = 5 + [(google.api.field_behavior) = OPTIONAL]; } // The Recovery settings of an environment. @@ -1293,6 +1858,12 @@ message MasterAuthorizedNetworksConfig { repeated CidrBlock cidr_blocks = 2; } +// Configuration for Cloud Data Lineage integration. +message CloudDataLineageIntegration { + // Optional. Whether or not Cloud Data Lineage integration is enabled. + bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // An environment for running orchestration tasks. message Environment { option (google.api.resource) = { @@ -1354,6 +1925,12 @@ message Environment { // * Both keys and values are additionally constrained to be <= 128 bytes in // size. map labels = 7; + + // Output only. Reserved for future use. + bool satisfies_pzs = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Storage configuration for this environment. + StorageConfig storage_config = 9 [(google.api.field_behavior) = OPTIONAL]; } // Message containing information about the result of an upgrade check @@ -1390,3 +1967,30 @@ message CheckUpgradeResponse { // when the build was triggered. map pypi_dependencies = 6; } + +// The configuration setting for Airflow database data retention mechanism. +message DataRetentionConfig { + // Optional. The configuration settings for task logs retention + TaskLogsRetentionConfig task_logs_retention_config = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration setting for Task Logs. +message TaskLogsRetentionConfig { + // The definition of task_logs_storage_mode. + enum TaskLogsStorageMode { + // This configuration is not specified by the user. + TASK_LOGS_STORAGE_MODE_UNSPECIFIED = 0; + + // Store task logs in Cloud Logging and in the environment's Cloud Storage + // bucket. + CLOUD_LOGGING_AND_CLOUD_STORAGE = 1; + + // Store task logs in Cloud Logging only. + CLOUD_LOGGING_ONLY = 2; + } + + // Optional. The mode of storage for Airflow workers task logs. For details, + // see go/composer-store-task-logs-in-cloud-logging-only-design-doc + TaskLogsStorageMode storage_mode = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto index 51da9f3c152c..807c177dbb2b 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto @@ -148,6 +148,143 @@ service Environments { }; } + // Lists workloads in a Cloud Composer environment. Workload is a unit that + // runs a single Composer component. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc ListWorkloads(ListWorkloadsRequest) returns (ListWorkloadsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/environments/*}/workloads" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a user workloads Secret. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc CreateUserWorkloadsSecret(CreateUserWorkloadsSecretRequest) + returns (UserWorkloadsSecret) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets" + body: "user_workloads_secret" + }; + option (google.api.method_signature) = "parent,user_workloads_secret"; + } + + // Gets an existing user workloads Secret. + // Values of the "data" field in the response are cleared. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc GetUserWorkloadsSecret(GetUserWorkloadsSecretRequest) + returns (UserWorkloadsSecret) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists user workloads Secrets. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc ListUserWorkloadsSecrets(ListUserWorkloadsSecretsRequest) + returns (ListUserWorkloadsSecretsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a user workloads Secret. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc UpdateUserWorkloadsSecret(UpdateUserWorkloadsSecretRequest) + returns (UserWorkloadsSecret) { + option (google.api.http) = { + put: "/v1beta1/{user_workloads_secret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + body: "user_workloads_secret" + }; + option (google.api.method_signature) = "user_workloads_secret"; + } + + // Deletes a user workloads Secret. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc DeleteUserWorkloadsSecret(DeleteUserWorkloadsSecretRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc CreateUserWorkloadsConfigMap(CreateUserWorkloadsConfigMapRequest) + returns (UserWorkloadsConfigMap) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps" + body: "user_workloads_config_map" + }; + option (google.api.method_signature) = "parent,user_workloads_config_map"; + } + + // Gets an existing user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc GetUserWorkloadsConfigMap(GetUserWorkloadsConfigMapRequest) + returns (UserWorkloadsConfigMap) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists user workloads ConfigMaps. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc ListUserWorkloadsConfigMaps(ListUserWorkloadsConfigMapsRequest) + returns (ListUserWorkloadsConfigMapsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc UpdateUserWorkloadsConfigMap(UpdateUserWorkloadsConfigMapRequest) + returns (UserWorkloadsConfigMap) { + option (google.api.http) = { + put: "/v1beta1/{user_workloads_config_map.name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + body: "user_workloads_config_map" + }; + option (google.api.method_signature) = "user_workloads_config_map"; + } + + // Deletes a user workloads ConfigMap. + // + // This method is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + rpc DeleteUserWorkloadsConfigMap(DeleteUserWorkloadsConfigMapRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + }; + option (google.api.method_signature) = "name"; + } + // Creates a snapshots of a Cloud Composer environment. // // As a result of this operation, snapshot of environment's state is stored @@ -525,6 +662,313 @@ message PollAirflowCommandResponse { ExitInfo exit_info = 3; } +// Create user workloads Secret request. +message CreateUserWorkloadsSecretRequest { + // Required. The environment name to create a Secret for, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Required. User workloads Secret to create. + UserWorkloadsSecret user_workloads_secret = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Get user workloads Secret request. +message GetUserWorkloadsSecretRequest { + // Required. The resource name of the Secret to get, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsSecret" + } + ]; +} + +// List user workloads Secrets request. +message ListUserWorkloadsSecretsRequest { + // Required. List Secrets in the given environment, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Optional. The maximum number of Secrets to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Update user workloads Secret request. +message UpdateUserWorkloadsSecretRequest { + // Optional. User workloads Secret to override. + UserWorkloadsSecret user_workloads_secret = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Delete user workloads Secret request. +message DeleteUserWorkloadsSecretRequest { + // Required. The Secret to delete, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsSecret" + } + ]; +} + +// Create user workloads ConfigMap request. +message CreateUserWorkloadsConfigMapRequest { + // Required. The environment name to create a ConfigMap for, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Required. User workloads ConfigMap to create. + UserWorkloadsConfigMap user_workloads_config_map = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Get user workloads ConfigMap request. +message GetUserWorkloadsConfigMapRequest { + // Required. The resource name of the ConfigMap to get, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsConfigMap" + } + ]; +} + +// List user workloads ConfigMaps request. +message ListUserWorkloadsConfigMapsRequest { + // Required. List ConfigMaps in the given environment, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Optional. The maximum number of ConfigMaps to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Update user workloads ConfigMap request. +message UpdateUserWorkloadsConfigMapRequest { + // Optional. User workloads ConfigMap to override. + UserWorkloadsConfigMap user_workloads_config_map = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Delete user workloads ConfigMap request. +message DeleteUserWorkloadsConfigMapRequest { + // Required. The ConfigMap to delete, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/UserWorkloadsConfigMap" + } + ]; +} + +// User workloads Secret used by Airflow tasks that run with Kubernetes executor +// or KubernetesPodOperator. +message UserWorkloadsSecret { + option (google.api.resource) = { + type: "composer.googleapis.com/UserWorkloadsSecret" + pattern: "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}" + plural: "userWorkloadsSecrets" + singular: "userWorkloadsSecret" + }; + + // Identifier. The resource name of the Secret, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The "data" field of Kubernetes Secret, organized in key-value + // pairs, which can contain sensitive values such as a password, a token, or a + // key. The values for all keys have to be base64-encoded strings. For details + // see: https://kubernetes.io/docs/concepts/configuration/secret/ + map data = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The user workloads Secrets for a given environment. +message ListUserWorkloadsSecretsResponse { + // The list of Secrets returned by a ListUserWorkloadsSecretsRequest. + repeated UserWorkloadsSecret user_workloads_secrets = 1; + + // The page token used to query for the next page if one exists. + string next_page_token = 2; +} + +// User workloads ConfigMap used by Airflow tasks that run with Kubernetes +// executor or KubernetesPodOperator. +message UserWorkloadsConfigMap { + option (google.api.resource) = { + type: "composer.googleapis.com/UserWorkloadsConfigMap" + pattern: "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}" + plural: "userWorkloadsConfigMaps" + singular: "userWorkloadsConfigMap" + }; + + // Identifier. The resource name of the ConfigMap, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The "data" field of Kubernetes ConfigMap, organized in key-value + // pairs. For details see: + // https://kubernetes.io/docs/concepts/configuration/configmap/ + map data = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The user workloads ConfigMaps for a given environment. +message ListUserWorkloadsConfigMapsResponse { + // The list of ConfigMaps returned by a ListUserWorkloadsConfigMapsRequest. + repeated UserWorkloadsConfigMap user_workloads_config_maps = 1; + + // The page token used to query for the next page if one exists. + string next_page_token = 2; +} + +// Request for listing workloads in a Cloud Composer environment. +message ListWorkloadsRequest { + // Required. The environment name to get workloads for, in the form: + // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "composer.googleapis.com/Environment" + } + ]; + + // Optional. The maximum number of environments to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list filter. + // Currently only supports equality on the type field. The value of a field + // specified in the filter expression must be one ComposerWorkloadType enum + // option. It's possible to get multiple types using "OR" operator, e.g.: + // "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + // returned. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response to ListWorkloadsRequest. +message ListWorkloadsResponse { + // Information about a single workload. + message ComposerWorkload { + // Name of a workload. + string name = 1; + + // Type of a workload. + ComposerWorkloadType type = 2; + + // Output only. Status of a workload. + ComposerWorkloadStatus status = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Supported workload types. + enum ComposerWorkloadType { + // Not able to determine the type of the workload. + COMPOSER_WORKLOAD_TYPE_UNSPECIFIED = 0; + + // Celery worker. + CELERY_WORKER = 1; + + // Kubernetes worker. + KUBERNETES_WORKER = 2; + + // Workload created by Kubernetes Pod Operator. + KUBERNETES_OPERATOR_POD = 3; + + // Airflow scheduler. + SCHEDULER = 4; + + // Airflow Dag processor. + DAG_PROCESSOR = 5; + + // Airflow triggerer. + TRIGGERER = 6; + + // Airflow web server UI. + WEB_SERVER = 7; + + // Redis. + REDIS = 8; + } + + // Workload status. + message ComposerWorkloadStatus { + // Output only. Workload state. + ComposerWorkloadState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Text to provide more descriptive status. + string status_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Detailed message of the status. + string detailed_status_message = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Workload states. + enum ComposerWorkloadState { + // Not able to determine the status of the workload. + COMPOSER_WORKLOAD_STATE_UNSPECIFIED = 0; + + // Workload is in pending state and has not yet started. + PENDING = 1; + + // Workload is running fine. + OK = 2; + + // Workload is running but there are some non-critical problems. + WARNING = 3; + + // Workload is not running due to an error. + ERROR = 4; + + // Workload has finished execution with success. + SUCCEEDED = 5; + + // Workload has finished execution with failure. + FAILED = 6; + } + + // The list of environment workloads. + repeated ComposerWorkload workloads = 1; + + // The page token used to query for the next page if one exists. + string next_page_token = 2; +} + // Request to create a snapshot of a Cloud Composer environment. message SaveSnapshotRequest { // The resource name of the source environment in the form: @@ -747,6 +1191,11 @@ message EnvironmentConfig { // composer-2.*.*-airflow-*.*.* and newer. RecoveryConfig recovery_config = 18 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The configuration setting for Airflow database data retention + // mechanism. + DataRetentionConfig data_retention_config = 19 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Resilience mode of the Cloud Composer Environment. // // This field is supported for Cloud Composer environments in versions @@ -779,6 +1228,18 @@ message WebServerNetworkAccessControl { // Specifies the selection and configuration of software inside the environment. message SoftwareConfig { + // Web server plugins mode of the Cloud Composer environment. + enum WebServerPluginsMode { + // Default mode. + WEB_SERVER_PLUGINS_MODE_UNSPECIFIED = 0; + + // Web server plugins are not supported. + PLUGINS_DISABLED = 1; + + // Web server plugins are supported. + PLUGINS_ENABLED = 2; + } + // The version of the software running in the environment. // This encapsulates both the version of Cloud Composer functionality and the // version of Apache Airflow. It must match the regular expression @@ -879,6 +1340,14 @@ message SoftwareConfig { // Optional. The configuration for Cloud Data Lineage integration. CloudDataLineageIntegration cloud_data_lineage_integration = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the web server uses custom plugins. + // If unspecified, the field defaults to `PLUGINS_ENABLED`. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + WebServerPluginsMode web_server_plugins_mode = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration for controlling how IPs are allocated in the @@ -1075,6 +1544,31 @@ message NodeConfig { // See: // https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent bool enable_ip_masq_agent = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Network Attachment that Cloud Composer environment is connected + // to, which provides connectivity with a user's VPC network. Takes precedence + // over network and subnetwork settings. If not provided, but network and + // subnetwork are defined during environment, it will be provisioned. If not + // provided and network and subnetwork are also empty, then connectivity to + // user's VPC network is disabled. Network attachment must be provided in + // format + // projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + string composer_network_attachment = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP range in CIDR notation to use internally by Cloud + // Composer. IP addresses are not reserved - and the same range can be used by + // multiple Cloud Composer environments. In case of overlap, IPs from this + // range will not be accessible in the user's VPC network. Cannot be updated. + // If not specified, the default value of '100.64.128.0/20' is used. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + string composer_internal_ipv4_cidr_block = 13 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration options for the private GKE cluster in a Cloud Composer @@ -1132,6 +1626,17 @@ message PrivateEnvironmentConfig { // composer-1.*.*-airflow-*.*.*. bool enable_private_environment = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If `true`, builds performed during operations that install Python + // packages have only private connectivity to Google services (including + // Artifact Registry) and VPC network (if either `NodeConfig.network` and + // `NodeConfig.subnetwork` fields or `NodeConfig.composer_network_attachment` + // field are specified). If `false`, the builds also have access to the + // internet. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + bool enable_private_builds_only = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for the private GKE cluster for a Private IP // Cloud Composer environment. PrivateClusterConfig private_cluster_config = 2 @@ -1205,6 +1710,13 @@ message DatabaseConfig { // Supported for Cloud Composer environments in versions // composer-1.*.*-airflow-*.*.*. string machine_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Compute Engine zone where the Airflow database is created. If + // zone is provided, it must be in the region selected for the environment. If + // zone is not provided, a zone is automatically selected. The zone can only + // be set during environment creation. Supported for Cloud Composer + // environments in versions composer-2.*.*-airflow-*.*.*. + string zone = 2 [(google.api.field_behavior) = OPTIONAL]; } // The configuration settings for the Airflow web server App Engine instance. @@ -1327,6 +1839,25 @@ message WorkloadsConfig { float memory_gb = 3 [(google.api.field_behavior) = OPTIONAL]; } + // Configuration for resources used by Airflow DAG processors. + message DagProcessorResource { + // Optional. CPU request and limit for a single Airflow DAG processor + // replica. + float cpu = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Memory (GB) request and limit for a single Airflow DAG + // processor replica. + float memory_gb = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Storage (GB) request and limit for a single Airflow DAG + // processor replica. + float storage_gb = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of DAG processors. If not provided or set to 0, a + // single DAG processor instance will be created. + int32 count = 4 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. Resources used by Airflow schedulers. SchedulerResource scheduler = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -1338,6 +1869,47 @@ message WorkloadsConfig { // Optional. Resources used by Airflow triggerers. TriggererResource triggerer = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Resources used by Airflow DAG processors. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. + DagProcessorResource dag_processor = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration setting for Airflow database data retention mechanism. +message DataRetentionConfig { + // Optional. The configuration settings for task logs retention + TaskLogsRetentionConfig task_logs_retention_config = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration setting for Task Logs. +message TaskLogsRetentionConfig { + // The definition of task_logs_storage_mode. + enum TaskLogsStorageMode { + // This configuration is not specified by the user. + TASK_LOGS_STORAGE_MODE_UNSPECIFIED = 0; + + // Store task logs in Cloud Logging and in the environment's Cloud Storage + // bucket. + CLOUD_LOGGING_AND_CLOUD_STORAGE = 1; + + // Store task logs in Cloud Logging only. + CLOUD_LOGGING_ONLY = 2; + } + + // Optional. The mode of storage for Airflow workers task logs. For details, + // see go/composer-store-task-logs-in-cloud-logging-only-design-doc + TaskLogsStorageMode storage_mode = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration for data storage in the environment. +message StorageConfig { + // Optional. The name of the Cloud Storage bucket used by the environment. No + // `gs://` prefix. + string bucket = 1 [(google.api.field_behavior) = OPTIONAL]; } // The Recovery settings of an environment. @@ -1458,6 +2030,12 @@ message Environment { // * Both keys and values are additionally constrained to be <= 128 bytes in // size. map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Storage configuration for this environment. + StorageConfig storage_config = 9 [(google.api.field_behavior) = OPTIONAL]; } // Request to check whether image upgrade will succeed. diff --git a/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts b/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts index ae8fd5cfa3b7..ef8debfb6ef0 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts +++ b/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts @@ -164,6 +164,160 @@ export namespace google { */ public pollAirflowCommand(request: google.cloud.orchestration.airflow.service.v1.IPollAirflowCommandRequest): Promise; + /** + * Calls ListWorkloads. + * @param request ListWorkloadsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWorkloadsResponse + */ + public listWorkloads(request: google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.ListWorkloadsCallback): void; + + /** + * Calls ListWorkloads. + * @param request ListWorkloadsRequest message or plain object + * @returns Promise + */ + public listWorkloads(request: google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest): Promise; + + /** + * Calls CreateUserWorkloadsSecret. + * @param request CreateUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsSecret + */ + public createUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsSecretCallback): void; + + /** + * Calls CreateUserWorkloadsSecret. + * @param request CreateUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public createUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest): Promise; + + /** + * Calls GetUserWorkloadsSecret. + * @param request GetUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsSecret + */ + public getUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsSecretCallback): void; + + /** + * Calls GetUserWorkloadsSecret. + * @param request GetUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public getUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest): Promise; + + /** + * Calls ListUserWorkloadsSecrets. + * @param request ListUserWorkloadsSecretsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUserWorkloadsSecretsResponse + */ + public listUserWorkloadsSecrets(request: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsSecretsCallback): void; + + /** + * Calls ListUserWorkloadsSecrets. + * @param request ListUserWorkloadsSecretsRequest message or plain object + * @returns Promise + */ + public listUserWorkloadsSecrets(request: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest): Promise; + + /** + * Calls UpdateUserWorkloadsSecret. + * @param request UpdateUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsSecret + */ + public updateUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsSecretCallback): void; + + /** + * Calls UpdateUserWorkloadsSecret. + * @param request UpdateUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public updateUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest): Promise; + + /** + * Calls DeleteUserWorkloadsSecret. + * @param request DeleteUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsSecretCallback): void; + + /** + * Calls DeleteUserWorkloadsSecret. + * @param request DeleteUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public deleteUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest): Promise; + + /** + * Calls CreateUserWorkloadsConfigMap. + * @param request CreateUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + */ + public createUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsConfigMapCallback): void; + + /** + * Calls CreateUserWorkloadsConfigMap. + * @param request CreateUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public createUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls GetUserWorkloadsConfigMap. + * @param request GetUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + */ + public getUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsConfigMapCallback): void; + + /** + * Calls GetUserWorkloadsConfigMap. + * @param request GetUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public getUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls ListUserWorkloadsConfigMaps. + * @param request ListUserWorkloadsConfigMapsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUserWorkloadsConfigMapsResponse + */ + public listUserWorkloadsConfigMaps(request: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsConfigMapsCallback): void; + + /** + * Calls ListUserWorkloadsConfigMaps. + * @param request ListUserWorkloadsConfigMapsRequest message or plain object + * @returns Promise + */ + public listUserWorkloadsConfigMaps(request: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest): Promise; + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @param request UpdateUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + */ + public updateUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsConfigMapCallback): void; + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @param request UpdateUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public updateUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @param request DeleteUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsConfigMapCallback): void; + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @param request DeleteUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public deleteUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest): Promise; + /** * Calls SaveSnapshot. * @param request SaveSnapshotRequest message or plain object @@ -279,6 +433,83 @@ export namespace google { */ type PollAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.PollAirflowCommandResponse) => void; + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listWorkloads}. + * @param error Error, if any + * @param [response] ListWorkloadsResponse + */ + type ListWorkloadsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|createUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] UserWorkloadsSecret + */ + type CreateUserWorkloadsSecretCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|getUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] UserWorkloadsSecret + */ + type GetUserWorkloadsSecretCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listUserWorkloadsSecrets}. + * @param error Error, if any + * @param [response] ListUserWorkloadsSecretsResponse + */ + type ListUserWorkloadsSecretsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|updateUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] UserWorkloadsSecret + */ + type UpdateUserWorkloadsSecretCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|deleteUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteUserWorkloadsSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|createUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] UserWorkloadsConfigMap + */ + type CreateUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|getUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] UserWorkloadsConfigMap + */ + type GetUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listUserWorkloadsConfigMaps}. + * @param error Error, if any + * @param [response] ListUserWorkloadsConfigMapsResponse + */ + type ListUserWorkloadsConfigMapsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|updateUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] UserWorkloadsConfigMap + */ + type UpdateUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|deleteUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|saveSnapshot}. * @param error Error, if any @@ -1819,3280 +2050,3214 @@ export namespace google { } } - /** Properties of a SaveSnapshotRequest. */ - interface ISaveSnapshotRequest { + /** Properties of a CreateUserWorkloadsSecretRequest. */ + interface ICreateUserWorkloadsSecretRequest { - /** SaveSnapshotRequest environment */ - environment?: (string|null); + /** CreateUserWorkloadsSecretRequest parent */ + parent?: (string|null); - /** SaveSnapshotRequest snapshotLocation */ - snapshotLocation?: (string|null); + /** CreateUserWorkloadsSecretRequest userWorkloadsSecret */ + userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null); } - /** Represents a SaveSnapshotRequest. */ - class SaveSnapshotRequest implements ISaveSnapshotRequest { + /** Represents a CreateUserWorkloadsSecretRequest. */ + class CreateUserWorkloadsSecretRequest implements ICreateUserWorkloadsSecretRequest { /** - * Constructs a new SaveSnapshotRequest. + * Constructs a new CreateUserWorkloadsSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest); - /** SaveSnapshotRequest environment. */ - public environment: string; + /** CreateUserWorkloadsSecretRequest parent. */ + public parent: string; - /** SaveSnapshotRequest snapshotLocation. */ - public snapshotLocation: string; + /** CreateUserWorkloadsSecretRequest userWorkloadsSecret. */ + public userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null); /** - * Creates a new SaveSnapshotRequest instance using the specified properties. + * Creates a new CreateUserWorkloadsSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SaveSnapshotRequest instance + * @returns CreateUserWorkloadsSecretRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest; /** - * Encodes the specified SaveSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. - * @param message SaveSnapshotRequest message or plain object to encode + * Encodes the specified CreateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message CreateUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SaveSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. - * @param message SaveSnapshotRequest message or plain object to encode + * Encodes the specified CreateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message CreateUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SaveSnapshotRequest message from the specified reader or buffer. + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SaveSnapshotRequest + * @returns CreateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest; /** - * Decodes a SaveSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SaveSnapshotRequest + * @returns CreateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest; /** - * Verifies a SaveSnapshotRequest message. + * Verifies a CreateUserWorkloadsSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SaveSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SaveSnapshotRequest + * @returns CreateUserWorkloadsSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest; /** - * Creates a plain object from a SaveSnapshotRequest message. Also converts values to other types if specified. - * @param message SaveSnapshotRequest + * Creates a plain object from a CreateUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message CreateUserWorkloadsSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SaveSnapshotRequest to JSON. + * Converts this CreateUserWorkloadsSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SaveSnapshotRequest + * Gets the default type url for CreateUserWorkloadsSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SaveSnapshotResponse. */ - interface ISaveSnapshotResponse { + /** Properties of a GetUserWorkloadsSecretRequest. */ + interface IGetUserWorkloadsSecretRequest { - /** SaveSnapshotResponse snapshotPath */ - snapshotPath?: (string|null); + /** GetUserWorkloadsSecretRequest name */ + name?: (string|null); } - /** Represents a SaveSnapshotResponse. */ - class SaveSnapshotResponse implements ISaveSnapshotResponse { + /** Represents a GetUserWorkloadsSecretRequest. */ + class GetUserWorkloadsSecretRequest implements IGetUserWorkloadsSecretRequest { /** - * Constructs a new SaveSnapshotResponse. + * Constructs a new GetUserWorkloadsSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest); - /** SaveSnapshotResponse snapshotPath. */ - public snapshotPath: string; + /** GetUserWorkloadsSecretRequest name. */ + public name: string; /** - * Creates a new SaveSnapshotResponse instance using the specified properties. + * Creates a new GetUserWorkloadsSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SaveSnapshotResponse instance + * @returns GetUserWorkloadsSecretRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest; /** - * Encodes the specified SaveSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. - * @param message SaveSnapshotResponse message or plain object to encode + * Encodes the specified GetUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest.verify|verify} messages. + * @param message GetUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SaveSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. - * @param message SaveSnapshotResponse message or plain object to encode + * Encodes the specified GetUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest.verify|verify} messages. + * @param message GetUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SaveSnapshotResponse message from the specified reader or buffer. + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SaveSnapshotResponse + * @returns GetUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest; /** - * Decodes a SaveSnapshotResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SaveSnapshotResponse + * @returns GetUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest; /** - * Verifies a SaveSnapshotResponse message. + * Verifies a GetUserWorkloadsSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SaveSnapshotResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SaveSnapshotResponse + * @returns GetUserWorkloadsSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest; /** - * Creates a plain object from a SaveSnapshotResponse message. Also converts values to other types if specified. - * @param message SaveSnapshotResponse + * Creates a plain object from a GetUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message GetUserWorkloadsSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SaveSnapshotResponse to JSON. + * Converts this GetUserWorkloadsSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SaveSnapshotResponse + * Gets the default type url for GetUserWorkloadsSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LoadSnapshotRequest. */ - interface ILoadSnapshotRequest { - - /** LoadSnapshotRequest environment */ - environment?: (string|null); - - /** LoadSnapshotRequest snapshotPath */ - snapshotPath?: (string|null); - - /** LoadSnapshotRequest skipPypiPackagesInstallation */ - skipPypiPackagesInstallation?: (boolean|null); + /** Properties of a ListUserWorkloadsSecretsRequest. */ + interface IListUserWorkloadsSecretsRequest { - /** LoadSnapshotRequest skipEnvironmentVariablesSetting */ - skipEnvironmentVariablesSetting?: (boolean|null); + /** ListUserWorkloadsSecretsRequest parent */ + parent?: (string|null); - /** LoadSnapshotRequest skipAirflowOverridesSetting */ - skipAirflowOverridesSetting?: (boolean|null); + /** ListUserWorkloadsSecretsRequest pageSize */ + pageSize?: (number|null); - /** LoadSnapshotRequest skipGcsDataCopying */ - skipGcsDataCopying?: (boolean|null); + /** ListUserWorkloadsSecretsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a LoadSnapshotRequest. */ - class LoadSnapshotRequest implements ILoadSnapshotRequest { + /** Represents a ListUserWorkloadsSecretsRequest. */ + class ListUserWorkloadsSecretsRequest implements IListUserWorkloadsSecretsRequest { /** - * Constructs a new LoadSnapshotRequest. + * Constructs a new ListUserWorkloadsSecretsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest); - - /** LoadSnapshotRequest environment. */ - public environment: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest); - /** LoadSnapshotRequest snapshotPath. */ - public snapshotPath: string; - - /** LoadSnapshotRequest skipPypiPackagesInstallation. */ - public skipPypiPackagesInstallation: boolean; - - /** LoadSnapshotRequest skipEnvironmentVariablesSetting. */ - public skipEnvironmentVariablesSetting: boolean; + /** ListUserWorkloadsSecretsRequest parent. */ + public parent: string; - /** LoadSnapshotRequest skipAirflowOverridesSetting. */ - public skipAirflowOverridesSetting: boolean; + /** ListUserWorkloadsSecretsRequest pageSize. */ + public pageSize: number; - /** LoadSnapshotRequest skipGcsDataCopying. */ - public skipGcsDataCopying: boolean; + /** ListUserWorkloadsSecretsRequest pageToken. */ + public pageToken: string; /** - * Creates a new LoadSnapshotRequest instance using the specified properties. + * Creates a new ListUserWorkloadsSecretsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LoadSnapshotRequest instance + * @returns ListUserWorkloadsSecretsRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest; /** - * Encodes the specified LoadSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. - * @param message LoadSnapshotRequest message or plain object to encode + * Encodes the specified ListUserWorkloadsSecretsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest.verify|verify} messages. + * @param message ListUserWorkloadsSecretsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoadSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. - * @param message LoadSnapshotRequest message or plain object to encode + * Encodes the specified ListUserWorkloadsSecretsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest.verify|verify} messages. + * @param message ListUserWorkloadsSecretsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LoadSnapshotRequest message from the specified reader or buffer. + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LoadSnapshotRequest + * @returns ListUserWorkloadsSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest; /** - * Decodes a LoadSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LoadSnapshotRequest + * @returns ListUserWorkloadsSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest; /** - * Verifies a LoadSnapshotRequest message. + * Verifies a ListUserWorkloadsSecretsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LoadSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsSecretsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LoadSnapshotRequest + * @returns ListUserWorkloadsSecretsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest; /** - * Creates a plain object from a LoadSnapshotRequest message. Also converts values to other types if specified. - * @param message LoadSnapshotRequest + * Creates a plain object from a ListUserWorkloadsSecretsRequest message. Also converts values to other types if specified. + * @param message ListUserWorkloadsSecretsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LoadSnapshotRequest to JSON. + * Converts this ListUserWorkloadsSecretsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LoadSnapshotRequest + * Gets the default type url for ListUserWorkloadsSecretsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LoadSnapshotResponse. */ - interface ILoadSnapshotResponse { + /** Properties of an UpdateUserWorkloadsSecretRequest. */ + interface IUpdateUserWorkloadsSecretRequest { + + /** UpdateUserWorkloadsSecretRequest userWorkloadsSecret */ + userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null); } - /** Represents a LoadSnapshotResponse. */ - class LoadSnapshotResponse implements ILoadSnapshotResponse { + /** Represents an UpdateUserWorkloadsSecretRequest. */ + class UpdateUserWorkloadsSecretRequest implements IUpdateUserWorkloadsSecretRequest { /** - * Constructs a new LoadSnapshotResponse. + * Constructs a new UpdateUserWorkloadsSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest); + + /** UpdateUserWorkloadsSecretRequest userWorkloadsSecret. */ + public userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null); /** - * Creates a new LoadSnapshotResponse instance using the specified properties. + * Creates a new UpdateUserWorkloadsSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LoadSnapshotResponse instance + * @returns UpdateUserWorkloadsSecretRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest; /** - * Encodes the specified LoadSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. - * @param message LoadSnapshotResponse message or plain object to encode + * Encodes the specified UpdateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoadSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. - * @param message LoadSnapshotResponse message or plain object to encode + * Encodes the specified UpdateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LoadSnapshotResponse message from the specified reader or buffer. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LoadSnapshotResponse + * @returns UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest; /** - * Decodes a LoadSnapshotResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LoadSnapshotResponse + * @returns UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest; /** - * Verifies a LoadSnapshotResponse message. + * Verifies an UpdateUserWorkloadsSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LoadSnapshotResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LoadSnapshotResponse + * @returns UpdateUserWorkloadsSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest; /** - * Creates a plain object from a LoadSnapshotResponse message. Also converts values to other types if specified. - * @param message LoadSnapshotResponse + * Creates a plain object from an UpdateUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message UpdateUserWorkloadsSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LoadSnapshotResponse to JSON. + * Converts this UpdateUserWorkloadsSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LoadSnapshotResponse + * Gets the default type url for UpdateUserWorkloadsSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DatabaseFailoverRequest. */ - interface IDatabaseFailoverRequest { + /** Properties of a DeleteUserWorkloadsSecretRequest. */ + interface IDeleteUserWorkloadsSecretRequest { - /** DatabaseFailoverRequest environment */ - environment?: (string|null); + /** DeleteUserWorkloadsSecretRequest name */ + name?: (string|null); } - /** Represents a DatabaseFailoverRequest. */ - class DatabaseFailoverRequest implements IDatabaseFailoverRequest { + /** Represents a DeleteUserWorkloadsSecretRequest. */ + class DeleteUserWorkloadsSecretRequest implements IDeleteUserWorkloadsSecretRequest { /** - * Constructs a new DatabaseFailoverRequest. + * Constructs a new DeleteUserWorkloadsSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest); - /** DatabaseFailoverRequest environment. */ - public environment: string; + /** DeleteUserWorkloadsSecretRequest name. */ + public name: string; /** - * Creates a new DatabaseFailoverRequest instance using the specified properties. + * Creates a new DeleteUserWorkloadsSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DatabaseFailoverRequest instance + * @returns DeleteUserWorkloadsSecretRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest; /** - * Encodes the specified DatabaseFailoverRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. - * @param message DatabaseFailoverRequest message or plain object to encode + * Encodes the specified DeleteUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DatabaseFailoverRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. - * @param message DatabaseFailoverRequest message or plain object to encode + * Encodes the specified DeleteUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DatabaseFailoverRequest message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DatabaseFailoverRequest + * @returns DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest; /** - * Decodes a DatabaseFailoverRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DatabaseFailoverRequest + * @returns DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest; /** - * Verifies a DatabaseFailoverRequest message. + * Verifies a DeleteUserWorkloadsSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DatabaseFailoverRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DatabaseFailoverRequest + * @returns DeleteUserWorkloadsSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest; /** - * Creates a plain object from a DatabaseFailoverRequest message. Also converts values to other types if specified. - * @param message DatabaseFailoverRequest + * Creates a plain object from a DeleteUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message DeleteUserWorkloadsSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DatabaseFailoverRequest to JSON. + * Converts this DeleteUserWorkloadsSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DatabaseFailoverRequest + * Gets the default type url for DeleteUserWorkloadsSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DatabaseFailoverResponse. */ - interface IDatabaseFailoverResponse { + /** Properties of a CreateUserWorkloadsConfigMapRequest. */ + interface ICreateUserWorkloadsConfigMapRequest { + + /** CreateUserWorkloadsConfigMapRequest parent */ + parent?: (string|null); + + /** CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ + userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null); } - /** Represents a DatabaseFailoverResponse. */ - class DatabaseFailoverResponse implements IDatabaseFailoverResponse { + /** Represents a CreateUserWorkloadsConfigMapRequest. */ + class CreateUserWorkloadsConfigMapRequest implements ICreateUserWorkloadsConfigMapRequest { /** - * Constructs a new DatabaseFailoverResponse. + * Constructs a new CreateUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest); + + /** CreateUserWorkloadsConfigMapRequest parent. */ + public parent: string; + + /** CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. */ + public userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null); /** - * Creates a new DatabaseFailoverResponse instance using the specified properties. + * Creates a new CreateUserWorkloadsConfigMapRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DatabaseFailoverResponse instance + * @returns CreateUserWorkloadsConfigMapRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest; /** - * Encodes the specified DatabaseFailoverResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. - * @param message DatabaseFailoverResponse message or plain object to encode + * Encodes the specified CreateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DatabaseFailoverResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. - * @param message DatabaseFailoverResponse message or plain object to encode + * Encodes the specified CreateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DatabaseFailoverResponse message from the specified reader or buffer. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DatabaseFailoverResponse + * @returns CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest; /** - * Decodes a DatabaseFailoverResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DatabaseFailoverResponse + * @returns CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest; /** - * Verifies a DatabaseFailoverResponse message. + * Verifies a CreateUserWorkloadsConfigMapRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DatabaseFailoverResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DatabaseFailoverResponse + * @returns CreateUserWorkloadsConfigMapRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest; /** - * Creates a plain object from a DatabaseFailoverResponse message. Also converts values to other types if specified. - * @param message DatabaseFailoverResponse + * Creates a plain object from a CreateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message CreateUserWorkloadsConfigMapRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DatabaseFailoverResponse to JSON. + * Converts this CreateUserWorkloadsConfigMapRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DatabaseFailoverResponse + * Gets the default type url for CreateUserWorkloadsConfigMapRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchDatabasePropertiesRequest. */ - interface IFetchDatabasePropertiesRequest { + /** Properties of a GetUserWorkloadsConfigMapRequest. */ + interface IGetUserWorkloadsConfigMapRequest { - /** FetchDatabasePropertiesRequest environment */ - environment?: (string|null); + /** GetUserWorkloadsConfigMapRequest name */ + name?: (string|null); } - /** Represents a FetchDatabasePropertiesRequest. */ - class FetchDatabasePropertiesRequest implements IFetchDatabasePropertiesRequest { + /** Represents a GetUserWorkloadsConfigMapRequest. */ + class GetUserWorkloadsConfigMapRequest implements IGetUserWorkloadsConfigMapRequest { /** - * Constructs a new FetchDatabasePropertiesRequest. + * Constructs a new GetUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest); - /** FetchDatabasePropertiesRequest environment. */ - public environment: string; + /** GetUserWorkloadsConfigMapRequest name. */ + public name: string; /** - * Creates a new FetchDatabasePropertiesRequest instance using the specified properties. + * Creates a new GetUserWorkloadsConfigMapRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchDatabasePropertiesRequest instance + * @returns GetUserWorkloadsConfigMapRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest; /** - * Encodes the specified FetchDatabasePropertiesRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. - * @param message FetchDatabasePropertiesRequest message or plain object to encode + * Encodes the specified GetUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchDatabasePropertiesRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. - * @param message FetchDatabasePropertiesRequest message or plain object to encode + * Encodes the specified GetUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchDatabasePropertiesRequest + * @returns GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest; /** - * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchDatabasePropertiesRequest + * @returns GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest; /** - * Verifies a FetchDatabasePropertiesRequest message. + * Verifies a GetUserWorkloadsConfigMapRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchDatabasePropertiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchDatabasePropertiesRequest + * @returns GetUserWorkloadsConfigMapRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest; /** - * Creates a plain object from a FetchDatabasePropertiesRequest message. Also converts values to other types if specified. - * @param message FetchDatabasePropertiesRequest + * Creates a plain object from a GetUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message GetUserWorkloadsConfigMapRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchDatabasePropertiesRequest to JSON. + * Converts this GetUserWorkloadsConfigMapRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchDatabasePropertiesRequest + * Gets the default type url for GetUserWorkloadsConfigMapRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchDatabasePropertiesResponse. */ - interface IFetchDatabasePropertiesResponse { + /** Properties of a ListUserWorkloadsConfigMapsRequest. */ + interface IListUserWorkloadsConfigMapsRequest { - /** FetchDatabasePropertiesResponse primaryGceZone */ - primaryGceZone?: (string|null); + /** ListUserWorkloadsConfigMapsRequest parent */ + parent?: (string|null); - /** FetchDatabasePropertiesResponse secondaryGceZone */ - secondaryGceZone?: (string|null); + /** ListUserWorkloadsConfigMapsRequest pageSize */ + pageSize?: (number|null); - /** FetchDatabasePropertiesResponse isFailoverReplicaAvailable */ - isFailoverReplicaAvailable?: (boolean|null); + /** ListUserWorkloadsConfigMapsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a FetchDatabasePropertiesResponse. */ - class FetchDatabasePropertiesResponse implements IFetchDatabasePropertiesResponse { + /** Represents a ListUserWorkloadsConfigMapsRequest. */ + class ListUserWorkloadsConfigMapsRequest implements IListUserWorkloadsConfigMapsRequest { /** - * Constructs a new FetchDatabasePropertiesResponse. + * Constructs a new ListUserWorkloadsConfigMapsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest); - /** FetchDatabasePropertiesResponse primaryGceZone. */ - public primaryGceZone: string; + /** ListUserWorkloadsConfigMapsRequest parent. */ + public parent: string; - /** FetchDatabasePropertiesResponse secondaryGceZone. */ - public secondaryGceZone: string; + /** ListUserWorkloadsConfigMapsRequest pageSize. */ + public pageSize: number; - /** FetchDatabasePropertiesResponse isFailoverReplicaAvailable. */ - public isFailoverReplicaAvailable: boolean; + /** ListUserWorkloadsConfigMapsRequest pageToken. */ + public pageToken: string; /** - * Creates a new FetchDatabasePropertiesResponse instance using the specified properties. + * Creates a new ListUserWorkloadsConfigMapsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchDatabasePropertiesResponse instance + * @returns ListUserWorkloadsConfigMapsRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest; /** - * Encodes the specified FetchDatabasePropertiesResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. - * @param message FetchDatabasePropertiesResponse message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchDatabasePropertiesResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. - * @param message FetchDatabasePropertiesResponse message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchDatabasePropertiesResponse + * @returns ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest; /** - * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchDatabasePropertiesResponse + * @returns ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest; /** - * Verifies a FetchDatabasePropertiesResponse message. + * Verifies a ListUserWorkloadsConfigMapsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchDatabasePropertiesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchDatabasePropertiesResponse + * @returns ListUserWorkloadsConfigMapsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest; /** - * Creates a plain object from a FetchDatabasePropertiesResponse message. Also converts values to other types if specified. - * @param message FetchDatabasePropertiesResponse + * Creates a plain object from a ListUserWorkloadsConfigMapsRequest message. Also converts values to other types if specified. + * @param message ListUserWorkloadsConfigMapsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchDatabasePropertiesResponse to JSON. + * Converts this ListUserWorkloadsConfigMapsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchDatabasePropertiesResponse + * Gets the default type url for ListUserWorkloadsConfigMapsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnvironmentConfig. */ - interface IEnvironmentConfig { - - /** EnvironmentConfig gkeCluster */ - gkeCluster?: (string|null); + /** Properties of an UpdateUserWorkloadsConfigMapRequest. */ + interface IUpdateUserWorkloadsConfigMapRequest { - /** EnvironmentConfig dagGcsPrefix */ - dagGcsPrefix?: (string|null); + /** UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ + userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null); + } - /** EnvironmentConfig nodeCount */ - nodeCount?: (number|null); + /** Represents an UpdateUserWorkloadsConfigMapRequest. */ + class UpdateUserWorkloadsConfigMapRequest implements IUpdateUserWorkloadsConfigMapRequest { - /** EnvironmentConfig softwareConfig */ - softwareConfig?: (google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null); + /** + * Constructs a new UpdateUserWorkloadsConfigMapRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest); - /** EnvironmentConfig nodeConfig */ - nodeConfig?: (google.cloud.orchestration.airflow.service.v1.INodeConfig|null); + /** UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. */ + public userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null); - /** EnvironmentConfig privateEnvironmentConfig */ - privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null); + /** + * Creates a new UpdateUserWorkloadsConfigMapRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateUserWorkloadsConfigMapRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest; - /** EnvironmentConfig webServerNetworkAccessControl */ - webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null); + /** + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsConfigMapRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnvironmentConfig databaseConfig */ - databaseConfig?: (google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null); + /** + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsConfigMapRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnvironmentConfig webServerConfig */ - webServerConfig?: (google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null); + /** + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateUserWorkloadsConfigMapRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest; - /** EnvironmentConfig encryptionConfig */ - encryptionConfig?: (google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null); + /** + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateUserWorkloadsConfigMapRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest; - /** EnvironmentConfig maintenanceWindow */ - maintenanceWindow?: (google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null); + /** + * Verifies an UpdateUserWorkloadsConfigMapRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** EnvironmentConfig workloadsConfig */ - workloadsConfig?: (google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null); + /** + * Creates an UpdateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateUserWorkloadsConfigMapRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest; - /** EnvironmentConfig environmentSize */ - environmentSize?: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|null); - - /** EnvironmentConfig airflowUri */ - airflowUri?: (string|null); + /** + * Creates a plain object from an UpdateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message UpdateUserWorkloadsConfigMapRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** EnvironmentConfig airflowByoidUri */ - airflowByoidUri?: (string|null); + /** + * Converts this UpdateUserWorkloadsConfigMapRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** EnvironmentConfig masterAuthorizedNetworksConfig */ - masterAuthorizedNetworksConfig?: (google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null); + /** + * Gets the default type url for UpdateUserWorkloadsConfigMapRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** EnvironmentConfig recoveryConfig */ - recoveryConfig?: (google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null); + /** Properties of a DeleteUserWorkloadsConfigMapRequest. */ + interface IDeleteUserWorkloadsConfigMapRequest { - /** EnvironmentConfig resilienceMode */ - resilienceMode?: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|null); + /** DeleteUserWorkloadsConfigMapRequest name */ + name?: (string|null); } - /** Represents an EnvironmentConfig. */ - class EnvironmentConfig implements IEnvironmentConfig { + /** Represents a DeleteUserWorkloadsConfigMapRequest. */ + class DeleteUserWorkloadsConfigMapRequest implements IDeleteUserWorkloadsConfigMapRequest { /** - * Constructs a new EnvironmentConfig. + * Constructs a new DeleteUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest); - /** EnvironmentConfig gkeCluster. */ - public gkeCluster: string; + /** DeleteUserWorkloadsConfigMapRequest name. */ + public name: string; - /** EnvironmentConfig dagGcsPrefix. */ - public dagGcsPrefix: string; + /** + * Creates a new DeleteUserWorkloadsConfigMapRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteUserWorkloadsConfigMapRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest; - /** EnvironmentConfig nodeCount. */ - public nodeCount: number; + /** + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsConfigMapRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnvironmentConfig softwareConfig. */ - public softwareConfig?: (google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null); + /** + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsConfigMapRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnvironmentConfig nodeConfig. */ - public nodeConfig?: (google.cloud.orchestration.airflow.service.v1.INodeConfig|null); + /** + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteUserWorkloadsConfigMapRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest; - /** EnvironmentConfig privateEnvironmentConfig. */ - public privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null); + /** + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteUserWorkloadsConfigMapRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest; - /** EnvironmentConfig webServerNetworkAccessControl. */ - public webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null); + /** + * Verifies a DeleteUserWorkloadsConfigMapRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** EnvironmentConfig databaseConfig. */ - public databaseConfig?: (google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null); + /** + * Creates a DeleteUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteUserWorkloadsConfigMapRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest; - /** EnvironmentConfig webServerConfig. */ - public webServerConfig?: (google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null); + /** + * Creates a plain object from a DeleteUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message DeleteUserWorkloadsConfigMapRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** EnvironmentConfig encryptionConfig. */ - public encryptionConfig?: (google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null); + /** + * Converts this DeleteUserWorkloadsConfigMapRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** EnvironmentConfig maintenanceWindow. */ - public maintenanceWindow?: (google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null); + /** + * Gets the default type url for DeleteUserWorkloadsConfigMapRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** EnvironmentConfig workloadsConfig. */ - public workloadsConfig?: (google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null); + /** Properties of a UserWorkloadsSecret. */ + interface IUserWorkloadsSecret { - /** EnvironmentConfig environmentSize. */ - public environmentSize: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize); + /** UserWorkloadsSecret name */ + name?: (string|null); - /** EnvironmentConfig airflowUri. */ - public airflowUri: string; + /** UserWorkloadsSecret data */ + data?: ({ [k: string]: string }|null); + } - /** EnvironmentConfig airflowByoidUri. */ - public airflowByoidUri: string; + /** Represents a UserWorkloadsSecret. */ + class UserWorkloadsSecret implements IUserWorkloadsSecret { - /** EnvironmentConfig masterAuthorizedNetworksConfig. */ - public masterAuthorizedNetworksConfig?: (google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null); + /** + * Constructs a new UserWorkloadsSecret. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret); - /** EnvironmentConfig recoveryConfig. */ - public recoveryConfig?: (google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null); + /** UserWorkloadsSecret name. */ + public name: string; - /** EnvironmentConfig resilienceMode. */ - public resilienceMode: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode); + /** UserWorkloadsSecret data. */ + public data: { [k: string]: string }; /** - * Creates a new EnvironmentConfig instance using the specified properties. + * Creates a new UserWorkloadsSecret instance using the specified properties. * @param [properties] Properties to set - * @returns EnvironmentConfig instance + * @returns UserWorkloadsSecret instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret): google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret; /** - * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. - * @param message EnvironmentConfig message or plain object to encode + * Encodes the specified UserWorkloadsSecret message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify|verify} messages. + * @param message UserWorkloadsSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. - * @param message EnvironmentConfig message or plain object to encode + * Encodes the specified UserWorkloadsSecret message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify|verify} messages. + * @param message UserWorkloadsSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnvironmentConfig message from the specified reader or buffer. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnvironmentConfig + * @returns UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret; /** - * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnvironmentConfig + * @returns UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret; /** - * Verifies an EnvironmentConfig message. + * Verifies a UserWorkloadsSecret message. * @param message Plain 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 EnvironmentConfig message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsSecret message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnvironmentConfig + * @returns UserWorkloadsSecret */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret; /** - * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified. - * @param message EnvironmentConfig + * Creates a plain object from a UserWorkloadsSecret message. Also converts values to other types if specified. + * @param message UserWorkloadsSecret * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.EnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnvironmentConfig to JSON. + * Converts this UserWorkloadsSecret to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnvironmentConfig + * Gets the default type url for UserWorkloadsSecret * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EnvironmentConfig { - - /** EnvironmentSize enum. */ - enum EnvironmentSize { - ENVIRONMENT_SIZE_UNSPECIFIED = 0, - ENVIRONMENT_SIZE_SMALL = 1, - ENVIRONMENT_SIZE_MEDIUM = 2, - ENVIRONMENT_SIZE_LARGE = 3 - } - - /** ResilienceMode enum. */ - enum ResilienceMode { - RESILIENCE_MODE_UNSPECIFIED = 0, - HIGH_RESILIENCE = 1 - } - } + /** Properties of a ListUserWorkloadsSecretsResponse. */ + interface IListUserWorkloadsSecretsResponse { - /** Properties of a WebServerNetworkAccessControl. */ - interface IWebServerNetworkAccessControl { + /** ListUserWorkloadsSecretsResponse userWorkloadsSecrets */ + userWorkloadsSecrets?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[]|null); - /** WebServerNetworkAccessControl allowedIpRanges */ - allowedIpRanges?: (google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange[]|null); + /** ListUserWorkloadsSecretsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a WebServerNetworkAccessControl. */ - class WebServerNetworkAccessControl implements IWebServerNetworkAccessControl { + /** Represents a ListUserWorkloadsSecretsResponse. */ + class ListUserWorkloadsSecretsResponse implements IListUserWorkloadsSecretsResponse { /** - * Constructs a new WebServerNetworkAccessControl. + * Constructs a new ListUserWorkloadsSecretsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse); - /** WebServerNetworkAccessControl allowedIpRanges. */ - public allowedIpRanges: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange[]; + /** ListUserWorkloadsSecretsResponse userWorkloadsSecrets. */ + public userWorkloadsSecrets: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[]; + + /** ListUserWorkloadsSecretsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new WebServerNetworkAccessControl instance using the specified properties. + * Creates a new ListUserWorkloadsSecretsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WebServerNetworkAccessControl instance + * @returns ListUserWorkloadsSecretsResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse; /** - * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. - * @param message WebServerNetworkAccessControl message or plain object to encode + * Encodes the specified ListUserWorkloadsSecretsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse.verify|verify} messages. + * @param message ListUserWorkloadsSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. - * @param message WebServerNetworkAccessControl message or plain object to encode + * Encodes the specified ListUserWorkloadsSecretsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse.verify|verify} messages. + * @param message ListUserWorkloadsSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer. + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebServerNetworkAccessControl + * @returns ListUserWorkloadsSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse; /** - * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebServerNetworkAccessControl + * @returns ListUserWorkloadsSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse; /** - * Verifies a WebServerNetworkAccessControl message. + * Verifies a ListUserWorkloadsSecretsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsSecretsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebServerNetworkAccessControl + * @returns ListUserWorkloadsSecretsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse; /** - * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified. - * @param message WebServerNetworkAccessControl + * Creates a plain object from a ListUserWorkloadsSecretsResponse message. Also converts values to other types if specified. + * @param message ListUserWorkloadsSecretsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebServerNetworkAccessControl to JSON. + * Converts this ListUserWorkloadsSecretsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WebServerNetworkAccessControl + * Gets the default type url for ListUserWorkloadsSecretsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace WebServerNetworkAccessControl { - - /** Properties of an AllowedIpRange. */ - interface IAllowedIpRange { + /** Properties of a UserWorkloadsConfigMap. */ + interface IUserWorkloadsConfigMap { - /** AllowedIpRange value */ - value?: (string|null); + /** UserWorkloadsConfigMap name */ + name?: (string|null); - /** AllowedIpRange description */ - description?: (string|null); - } + /** UserWorkloadsConfigMap data */ + data?: ({ [k: string]: string }|null); + } - /** Represents an AllowedIpRange. */ - class AllowedIpRange implements IAllowedIpRange { + /** Represents a UserWorkloadsConfigMap. */ + class UserWorkloadsConfigMap implements IUserWorkloadsConfigMap { - /** - * Constructs a new AllowedIpRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange); + /** + * Constructs a new UserWorkloadsConfigMap. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap); - /** AllowedIpRange value. */ - public value: string; + /** UserWorkloadsConfigMap name. */ + public name: string; - /** AllowedIpRange description. */ - public description: string; + /** UserWorkloadsConfigMap data. */ + public data: { [k: string]: string }; - /** - * Creates a new AllowedIpRange instance using the specified properties. - * @param [properties] Properties to set - * @returns AllowedIpRange instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; + /** + * Creates a new UserWorkloadsConfigMap instance using the specified properties. + * @param [properties] Properties to set + * @returns UserWorkloadsConfigMap instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap): google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap; - /** - * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. - * @param message AllowedIpRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UserWorkloadsConfigMap message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify|verify} messages. + * @param message UserWorkloadsConfigMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. - * @param message AllowedIpRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AllowedIpRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AllowedIpRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; - - /** - * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AllowedIpRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; - - /** - * Verifies an AllowedIpRange message. - * @param message Plain 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 AllowedIpRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AllowedIpRange - */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; - - /** - * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified. - * @param message AllowedIpRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AllowedIpRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AllowedIpRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a DatabaseConfig. */ - interface IDatabaseConfig { - - /** DatabaseConfig machineType */ - machineType?: (string|null); - } - - /** Represents a DatabaseConfig. */ - class DatabaseConfig implements IDatabaseConfig { - - /** - * Constructs a new DatabaseConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig); - - /** DatabaseConfig machineType. */ - public machineType: string; - - /** - * Creates a new DatabaseConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns DatabaseConfig instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; - - /** - * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. - * @param message DatabaseConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. - * @param message DatabaseConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UserWorkloadsConfigMap message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify|verify} messages. + * @param message UserWorkloadsConfigMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DatabaseConfig message from the specified reader or buffer. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DatabaseConfig + * @returns UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap; /** - * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DatabaseConfig + * @returns UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap; /** - * Verifies a DatabaseConfig message. + * Verifies a UserWorkloadsConfigMap message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsConfigMap message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DatabaseConfig + * @returns UserWorkloadsConfigMap */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap; /** - * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified. - * @param message DatabaseConfig + * Creates a plain object from a UserWorkloadsConfigMap message. Also converts values to other types if specified. + * @param message UserWorkloadsConfigMap * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DatabaseConfig to JSON. + * Converts this UserWorkloadsConfigMap to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DatabaseConfig + * Gets the default type url for UserWorkloadsConfigMap * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WebServerConfig. */ - interface IWebServerConfig { + /** Properties of a ListUserWorkloadsConfigMapsResponse. */ + interface IListUserWorkloadsConfigMapsResponse { - /** WebServerConfig machineType */ - machineType?: (string|null); + /** ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps */ + userWorkloadsConfigMaps?: (google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[]|null); + + /** ListUserWorkloadsConfigMapsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a WebServerConfig. */ - class WebServerConfig implements IWebServerConfig { + /** Represents a ListUserWorkloadsConfigMapsResponse. */ + class ListUserWorkloadsConfigMapsResponse implements IListUserWorkloadsConfigMapsResponse { /** - * Constructs a new WebServerConfig. + * Constructs a new ListUserWorkloadsConfigMapsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerConfig); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse); - /** WebServerConfig machineType. */ - public machineType: string; + /** ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps. */ + public userWorkloadsConfigMaps: google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[]; + + /** ListUserWorkloadsConfigMapsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new WebServerConfig instance using the specified properties. + * Creates a new ListUserWorkloadsConfigMapsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WebServerConfig instance + * @returns ListUserWorkloadsConfigMapsResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerConfig): google.cloud.orchestration.airflow.service.v1.WebServerConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse; /** - * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. - * @param message WebServerConfig message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. - * @param message WebServerConfig message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebServerConfig message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebServerConfig + * @returns ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WebServerConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse; /** - * Decodes a WebServerConfig message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebServerConfig + * @returns ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WebServerConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse; /** - * Verifies a WebServerConfig message. + * Verifies a ListUserWorkloadsConfigMapsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebServerConfig + * @returns ListUserWorkloadsConfigMapsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse; /** - * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified. - * @param message WebServerConfig + * Creates a plain object from a ListUserWorkloadsConfigMapsResponse message. Also converts values to other types if specified. + * @param message ListUserWorkloadsConfigMapsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebServerConfig to JSON. + * Converts this ListUserWorkloadsConfigMapsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WebServerConfig + * Gets the default type url for ListUserWorkloadsConfigMapsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EncryptionConfig. */ - interface IEncryptionConfig { + /** Properties of a ListWorkloadsRequest. */ + interface IListWorkloadsRequest { - /** EncryptionConfig kmsKeyName */ - kmsKeyName?: (string|null); + /** ListWorkloadsRequest parent */ + parent?: (string|null); + + /** ListWorkloadsRequest pageSize */ + pageSize?: (number|null); + + /** ListWorkloadsRequest pageToken */ + pageToken?: (string|null); + + /** ListWorkloadsRequest filter */ + filter?: (string|null); } - /** Represents an EncryptionConfig. */ - class EncryptionConfig implements IEncryptionConfig { + /** Represents a ListWorkloadsRequest. */ + class ListWorkloadsRequest implements IListWorkloadsRequest { /** - * Constructs a new EncryptionConfig. + * Constructs a new ListWorkloadsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest); - /** EncryptionConfig kmsKeyName. */ - public kmsKeyName: string; + /** ListWorkloadsRequest parent. */ + public parent: string; + + /** ListWorkloadsRequest pageSize. */ + public pageSize: number; + + /** ListWorkloadsRequest pageToken. */ + public pageToken: string; + + /** ListWorkloadsRequest filter. */ + public filter: string; /** - * Creates a new EncryptionConfig instance using the specified properties. + * Creates a new ListWorkloadsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EncryptionConfig instance + * @returns ListWorkloadsRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest): google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest; /** - * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. - * @param message EncryptionConfig message or plain object to encode + * Encodes the specified ListWorkloadsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest.verify|verify} messages. + * @param message ListWorkloadsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. - * @param message EncryptionConfig message or plain object to encode + * Encodes the specified ListWorkloadsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest.verify|verify} messages. + * @param message ListWorkloadsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncryptionConfig message from the specified reader or buffer. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncryptionConfig + * @returns ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest; /** - * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EncryptionConfig + * @returns ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest; /** - * Verifies an EncryptionConfig message. + * Verifies a ListWorkloadsRequest message. * @param message Plain 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 EncryptionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncryptionConfig + * @returns ListWorkloadsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest; /** - * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. - * @param message EncryptionConfig + * Creates a plain object from a ListWorkloadsRequest message. Also converts values to other types if specified. + * @param message ListWorkloadsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncryptionConfig to JSON. + * Converts this ListWorkloadsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EncryptionConfig + * Gets the default type url for ListWorkloadsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MaintenanceWindow. */ - interface IMaintenanceWindow { - - /** MaintenanceWindow startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListWorkloadsResponse. */ + interface IListWorkloadsResponse { - /** MaintenanceWindow endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ListWorkloadsResponse workloads */ + workloads?: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[]|null); - /** MaintenanceWindow recurrence */ - recurrence?: (string|null); + /** ListWorkloadsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a MaintenanceWindow. */ - class MaintenanceWindow implements IMaintenanceWindow { + /** Represents a ListWorkloadsResponse. */ + class ListWorkloadsResponse implements IListWorkloadsResponse { /** - * Constructs a new MaintenanceWindow. + * Constructs a new ListWorkloadsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse); - /** MaintenanceWindow startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** MaintenanceWindow endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ListWorkloadsResponse workloads. */ + public workloads: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[]; - /** MaintenanceWindow recurrence. */ - public recurrence: string; + /** ListWorkloadsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * Creates a new ListWorkloadsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MaintenanceWindow instance + * @returns ListWorkloadsResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. - * @param message MaintenanceWindow message or plain object to encode + * Encodes the specified ListWorkloadsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.verify|verify} messages. + * @param message ListWorkloadsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. - * @param message MaintenanceWindow message or plain object to encode + * Encodes the specified ListWorkloadsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.verify|verify} messages. + * @param message ListWorkloadsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MaintenanceWindow + * @returns ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaintenanceWindow + * @returns ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse; /** - * Verifies a MaintenanceWindow message. + * Verifies a ListWorkloadsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MaintenanceWindow + * @returns ListWorkloadsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse; /** - * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. - * @param message MaintenanceWindow + * Creates a plain object from a ListWorkloadsResponse message. Also converts values to other types if specified. + * @param message ListWorkloadsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaintenanceWindow to JSON. + * Converts this ListWorkloadsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MaintenanceWindow + * Gets the default type url for ListWorkloadsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SoftwareConfig. */ - interface ISoftwareConfig { + namespace ListWorkloadsResponse { - /** SoftwareConfig imageVersion */ - imageVersion?: (string|null); + /** Properties of a ComposerWorkload. */ + interface IComposerWorkload { - /** SoftwareConfig airflowConfigOverrides */ - airflowConfigOverrides?: ({ [k: string]: string }|null); + /** ComposerWorkload name */ + name?: (string|null); - /** SoftwareConfig pypiPackages */ - pypiPackages?: ({ [k: string]: string }|null); + /** ComposerWorkload type */ + type?: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType|keyof typeof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType|null); - /** SoftwareConfig envVariables */ - envVariables?: ({ [k: string]: string }|null); + /** ComposerWorkload status */ + status?: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus|null); + } - /** SoftwareConfig pythonVersion */ - pythonVersion?: (string|null); + /** Represents a ComposerWorkload. */ + class ComposerWorkload implements IComposerWorkload { - /** SoftwareConfig schedulerCount */ - schedulerCount?: (number|null); - } + /** + * Constructs a new ComposerWorkload. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload); - /** Represents a SoftwareConfig. */ - class SoftwareConfig implements ISoftwareConfig { + /** ComposerWorkload name. */ + public name: string; - /** - * Constructs a new SoftwareConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig); + /** ComposerWorkload type. */ + public type: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType|keyof typeof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType); - /** SoftwareConfig imageVersion. */ - public imageVersion: string; + /** ComposerWorkload status. */ + public status?: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus|null); - /** SoftwareConfig airflowConfigOverrides. */ - public airflowConfigOverrides: { [k: string]: string }; + /** + * Creates a new ComposerWorkload instance using the specified properties. + * @param [properties] Properties to set + * @returns ComposerWorkload instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload; - /** SoftwareConfig pypiPackages. */ - public pypiPackages: { [k: string]: string }; + /** + * Encodes the specified ComposerWorkload message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. + * @param message ComposerWorkload message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload, writer?: $protobuf.Writer): $protobuf.Writer; - /** SoftwareConfig envVariables. */ - public envVariables: { [k: string]: string }; + /** + * Encodes the specified ComposerWorkload message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. + * @param message ComposerWorkload message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload, writer?: $protobuf.Writer): $protobuf.Writer; - /** SoftwareConfig pythonVersion. */ - public pythonVersion: string; + /** + * Decodes a ComposerWorkload message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComposerWorkload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload; - /** SoftwareConfig schedulerCount. */ - public schedulerCount: number; + /** + * Decodes a ComposerWorkload message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComposerWorkload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload; + + /** + * Verifies a ComposerWorkload message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ComposerWorkload message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComposerWorkload + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload; + + /** + * Creates a plain object from a ComposerWorkload message. Also converts values to other types if specified. + * @param message ComposerWorkload + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComposerWorkload to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComposerWorkload + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** ComposerWorkloadType enum. */ + enum ComposerWorkloadType { + COMPOSER_WORKLOAD_TYPE_UNSPECIFIED = 0, + CELERY_WORKER = 1, + KUBERNETES_WORKER = 2, + KUBERNETES_OPERATOR_POD = 3, + SCHEDULER = 4, + DAG_PROCESSOR = 5, + TRIGGERER = 6, + WEB_SERVER = 7, + REDIS = 8 + } + + /** Properties of a ComposerWorkloadStatus. */ + interface IComposerWorkloadStatus { + + /** ComposerWorkloadStatus state */ + state?: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState|keyof typeof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState|null); + + /** ComposerWorkloadStatus statusMessage */ + statusMessage?: (string|null); + + /** ComposerWorkloadStatus detailedStatusMessage */ + detailedStatusMessage?: (string|null); + } + + /** Represents a ComposerWorkloadStatus. */ + class ComposerWorkloadStatus implements IComposerWorkloadStatus { + + /** + * Constructs a new ComposerWorkloadStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus); + + /** ComposerWorkloadStatus state. */ + public state: (google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState|keyof typeof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState); + + /** ComposerWorkloadStatus statusMessage. */ + public statusMessage: string; + + /** ComposerWorkloadStatus detailedStatusMessage. */ + public detailedStatusMessage: string; + + /** + * Creates a new ComposerWorkloadStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns ComposerWorkloadStatus instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus; + + /** + * Encodes the specified ComposerWorkloadStatus message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. + * @param message ComposerWorkloadStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ComposerWorkloadStatus message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. + * @param message ComposerWorkloadStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComposerWorkloadStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus; + + /** + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComposerWorkloadStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus; + + /** + * Verifies a ComposerWorkloadStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ComposerWorkloadStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComposerWorkloadStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus; + + /** + * Creates a plain object from a ComposerWorkloadStatus message. Also converts values to other types if specified. + * @param message ComposerWorkloadStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComposerWorkloadStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComposerWorkloadStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** ComposerWorkloadState enum. */ + enum ComposerWorkloadState { + COMPOSER_WORKLOAD_STATE_UNSPECIFIED = 0, + PENDING = 1, + OK = 2, + WARNING = 3, + ERROR = 4, + SUCCEEDED = 5, + FAILED = 6 + } + } + + /** Properties of a SaveSnapshotRequest. */ + interface ISaveSnapshotRequest { + + /** SaveSnapshotRequest environment */ + environment?: (string|null); + + /** SaveSnapshotRequest snapshotLocation */ + snapshotLocation?: (string|null); + } + + /** Represents a SaveSnapshotRequest. */ + class SaveSnapshotRequest implements ISaveSnapshotRequest { /** - * Creates a new SoftwareConfig instance using the specified properties. + * Constructs a new SaveSnapshotRequest. * @param [properties] Properties to set - * @returns SoftwareConfig instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest); + + /** SaveSnapshotRequest environment. */ + public environment: string; + + /** SaveSnapshotRequest snapshotLocation. */ + public snapshotLocation: string; /** - * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. - * @param message SoftwareConfig message or plain object to encode + * Creates a new SaveSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SaveSnapshotRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; + + /** + * Encodes the specified SaveSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. + * @param message SaveSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. - * @param message SoftwareConfig message or plain object to encode + * Encodes the specified SaveSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. + * @param message SaveSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SoftwareConfig message from the specified reader or buffer. + * Decodes a SaveSnapshotRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SoftwareConfig + * @returns SaveSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; /** - * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited. + * Decodes a SaveSnapshotRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SoftwareConfig + * @returns SaveSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; /** - * Verifies a SoftwareConfig message. + * Verifies a SaveSnapshotRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SaveSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SoftwareConfig + * @returns SaveSnapshotRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest; /** - * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified. - * @param message SoftwareConfig + * Creates a plain object from a SaveSnapshotRequest message. Also converts values to other types if specified. + * @param message SaveSnapshotRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.SoftwareConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SoftwareConfig to JSON. + * Converts this SaveSnapshotRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SoftwareConfig + * Gets the default type url for SaveSnapshotRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a IPAllocationPolicy. */ - interface IIPAllocationPolicy { - - /** IPAllocationPolicy useIpAliases */ - useIpAliases?: (boolean|null); - - /** IPAllocationPolicy clusterSecondaryRangeName */ - clusterSecondaryRangeName?: (string|null); - - /** IPAllocationPolicy clusterIpv4CidrBlock */ - clusterIpv4CidrBlock?: (string|null); - - /** IPAllocationPolicy servicesSecondaryRangeName */ - servicesSecondaryRangeName?: (string|null); + /** Properties of a SaveSnapshotResponse. */ + interface ISaveSnapshotResponse { - /** IPAllocationPolicy servicesIpv4CidrBlock */ - servicesIpv4CidrBlock?: (string|null); + /** SaveSnapshotResponse snapshotPath */ + snapshotPath?: (string|null); } - /** Represents a IPAllocationPolicy. */ - class IPAllocationPolicy implements IIPAllocationPolicy { + /** Represents a SaveSnapshotResponse. */ + class SaveSnapshotResponse implements ISaveSnapshotResponse { /** - * Constructs a new IPAllocationPolicy. + * Constructs a new SaveSnapshotResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy); - - /** IPAllocationPolicy useIpAliases. */ - public useIpAliases: boolean; - - /** IPAllocationPolicy clusterSecondaryRangeName. */ - public clusterSecondaryRangeName?: (string|null); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse); - /** IPAllocationPolicy clusterIpv4CidrBlock. */ - public clusterIpv4CidrBlock?: (string|null); - - /** IPAllocationPolicy servicesSecondaryRangeName. */ - public servicesSecondaryRangeName?: (string|null); - - /** IPAllocationPolicy servicesIpv4CidrBlock. */ - public servicesIpv4CidrBlock?: (string|null); - - /** IPAllocationPolicy clusterIpAllocation. */ - public clusterIpAllocation?: ("clusterSecondaryRangeName"|"clusterIpv4CidrBlock"); - - /** IPAllocationPolicy servicesIpAllocation. */ - public servicesIpAllocation?: ("servicesSecondaryRangeName"|"servicesIpv4CidrBlock"); + /** SaveSnapshotResponse snapshotPath. */ + public snapshotPath: string; /** - * Creates a new IPAllocationPolicy instance using the specified properties. + * Creates a new SaveSnapshotResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IPAllocationPolicy instance + * @returns SaveSnapshotResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; /** - * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. - * @param message IPAllocationPolicy message or plain object to encode + * Encodes the specified SaveSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. + * @param message SaveSnapshotResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. - * @param message IPAllocationPolicy message or plain object to encode + * Encodes the specified SaveSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. + * @param message SaveSnapshotResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer. + * Decodes a SaveSnapshotResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IPAllocationPolicy + * @returns SaveSnapshotResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. + * Decodes a SaveSnapshotResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IPAllocationPolicy + * @returns SaveSnapshotResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; /** - * Verifies a IPAllocationPolicy message. + * Verifies a SaveSnapshotResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a SaveSnapshotResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IPAllocationPolicy + * @returns SaveSnapshotResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse; /** - * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. - * @param message IPAllocationPolicy + * Creates a plain object from a SaveSnapshotResponse message. Also converts values to other types if specified. + * @param message SaveSnapshotResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IPAllocationPolicy to JSON. + * Converts this SaveSnapshotResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IPAllocationPolicy + * Gets the default type url for SaveSnapshotResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NodeConfig. */ - interface INodeConfig { - - /** NodeConfig location */ - location?: (string|null); - - /** NodeConfig machineType */ - machineType?: (string|null); - - /** NodeConfig network */ - network?: (string|null); - - /** NodeConfig subnetwork */ - subnetwork?: (string|null); + /** Properties of a LoadSnapshotRequest. */ + interface ILoadSnapshotRequest { - /** NodeConfig diskSizeGb */ - diskSizeGb?: (number|null); + /** LoadSnapshotRequest environment */ + environment?: (string|null); - /** NodeConfig oauthScopes */ - oauthScopes?: (string[]|null); + /** LoadSnapshotRequest snapshotPath */ + snapshotPath?: (string|null); - /** NodeConfig serviceAccount */ - serviceAccount?: (string|null); + /** LoadSnapshotRequest skipPypiPackagesInstallation */ + skipPypiPackagesInstallation?: (boolean|null); - /** NodeConfig tags */ - tags?: (string[]|null); + /** LoadSnapshotRequest skipEnvironmentVariablesSetting */ + skipEnvironmentVariablesSetting?: (boolean|null); - /** NodeConfig ipAllocationPolicy */ - ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null); + /** LoadSnapshotRequest skipAirflowOverridesSetting */ + skipAirflowOverridesSetting?: (boolean|null); - /** NodeConfig enableIpMasqAgent */ - enableIpMasqAgent?: (boolean|null); + /** LoadSnapshotRequest skipGcsDataCopying */ + skipGcsDataCopying?: (boolean|null); } - /** Represents a NodeConfig. */ - class NodeConfig implements INodeConfig { + /** Represents a LoadSnapshotRequest. */ + class LoadSnapshotRequest implements ILoadSnapshotRequest { /** - * Constructs a new NodeConfig. + * Constructs a new LoadSnapshotRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.INodeConfig); - - /** NodeConfig location. */ - public location: string; - - /** NodeConfig machineType. */ - public machineType: string; - - /** NodeConfig network. */ - public network: string; - - /** NodeConfig subnetwork. */ - public subnetwork: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest); - /** NodeConfig diskSizeGb. */ - public diskSizeGb: number; + /** LoadSnapshotRequest environment. */ + public environment: string; - /** NodeConfig oauthScopes. */ - public oauthScopes: string[]; + /** LoadSnapshotRequest snapshotPath. */ + public snapshotPath: string; - /** NodeConfig serviceAccount. */ - public serviceAccount: string; + /** LoadSnapshotRequest skipPypiPackagesInstallation. */ + public skipPypiPackagesInstallation: boolean; - /** NodeConfig tags. */ - public tags: string[]; + /** LoadSnapshotRequest skipEnvironmentVariablesSetting. */ + public skipEnvironmentVariablesSetting: boolean; - /** NodeConfig ipAllocationPolicy. */ - public ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null); + /** LoadSnapshotRequest skipAirflowOverridesSetting. */ + public skipAirflowOverridesSetting: boolean; - /** NodeConfig enableIpMasqAgent. */ - public enableIpMasqAgent: boolean; + /** LoadSnapshotRequest skipGcsDataCopying. */ + public skipGcsDataCopying: boolean; /** - * Creates a new NodeConfig instance using the specified properties. + * Creates a new LoadSnapshotRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NodeConfig instance + * @returns LoadSnapshotRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.INodeConfig): google.cloud.orchestration.airflow.service.v1.NodeConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; /** - * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. - * @param message NodeConfig message or plain object to encode + * Encodes the specified LoadSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. + * @param message LoadSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. - * @param message NodeConfig message or plain object to encode + * Encodes the specified LoadSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. + * @param message LoadSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeConfig message from the specified reader or buffer. + * Decodes a LoadSnapshotRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeConfig + * @returns LoadSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.NodeConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; /** - * Decodes a NodeConfig message from the specified reader or buffer, length delimited. + * Decodes a LoadSnapshotRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeConfig + * @returns LoadSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.NodeConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; /** - * Verifies a NodeConfig message. + * Verifies a LoadSnapshotRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LoadSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeConfig + * @returns LoadSnapshotRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.NodeConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest; /** - * Creates a plain object from a NodeConfig message. Also converts values to other types if specified. - * @param message NodeConfig + * Creates a plain object from a LoadSnapshotRequest message. Also converts values to other types if specified. + * @param message LoadSnapshotRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeConfig to JSON. + * Converts this LoadSnapshotRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NodeConfig + * Gets the default type url for LoadSnapshotRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrivateClusterConfig. */ - interface IPrivateClusterConfig { - - /** PrivateClusterConfig enablePrivateEndpoint */ - enablePrivateEndpoint?: (boolean|null); - - /** PrivateClusterConfig masterIpv4CidrBlock */ - masterIpv4CidrBlock?: (string|null); - - /** PrivateClusterConfig masterIpv4ReservedRange */ - masterIpv4ReservedRange?: (string|null); + /** Properties of a LoadSnapshotResponse. */ + interface ILoadSnapshotResponse { } - /** Represents a PrivateClusterConfig. */ - class PrivateClusterConfig implements IPrivateClusterConfig { + /** Represents a LoadSnapshotResponse. */ + class LoadSnapshotResponse implements ILoadSnapshotResponse { /** - * Constructs a new PrivateClusterConfig. + * Constructs a new LoadSnapshotResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig); - - /** PrivateClusterConfig enablePrivateEndpoint. */ - public enablePrivateEndpoint: boolean; - - /** PrivateClusterConfig masterIpv4CidrBlock. */ - public masterIpv4CidrBlock: string; - - /** PrivateClusterConfig masterIpv4ReservedRange. */ - public masterIpv4ReservedRange: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse); /** - * Creates a new PrivateClusterConfig instance using the specified properties. + * Creates a new LoadSnapshotResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateClusterConfig instance + * @returns LoadSnapshotResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; /** - * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. - * @param message PrivateClusterConfig message or plain object to encode + * Encodes the specified LoadSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. + * @param message LoadSnapshotResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. - * @param message PrivateClusterConfig message or plain object to encode + * Encodes the specified LoadSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. + * @param message LoadSnapshotResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * Decodes a LoadSnapshotResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateClusterConfig + * @returns LoadSnapshotResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * Decodes a LoadSnapshotResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateClusterConfig + * @returns LoadSnapshotResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; /** - * Verifies a PrivateClusterConfig message. + * Verifies a LoadSnapshotResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LoadSnapshotResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateClusterConfig + * @returns LoadSnapshotResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse; /** - * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. - * @param message PrivateClusterConfig + * Creates a plain object from a LoadSnapshotResponse message. Also converts values to other types if specified. + * @param message LoadSnapshotResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateClusterConfig to JSON. + * Converts this LoadSnapshotResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateClusterConfig + * Gets the default type url for LoadSnapshotResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetworkingConfig. */ - interface INetworkingConfig { + /** Properties of a DatabaseFailoverRequest. */ + interface IDatabaseFailoverRequest { - /** NetworkingConfig connectionType */ - connectionType?: (google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|keyof typeof google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|null); + /** DatabaseFailoverRequest environment */ + environment?: (string|null); } - /** Represents a NetworkingConfig. */ - class NetworkingConfig implements INetworkingConfig { + /** Represents a DatabaseFailoverRequest. */ + class DatabaseFailoverRequest implements IDatabaseFailoverRequest { /** - * Constructs a new NetworkingConfig. + * Constructs a new DatabaseFailoverRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.INetworkingConfig); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest); - /** NetworkingConfig connectionType. */ - public connectionType: (google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|keyof typeof google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType); + /** DatabaseFailoverRequest environment. */ + public environment: string; /** - * Creates a new NetworkingConfig instance using the specified properties. + * Creates a new DatabaseFailoverRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkingConfig instance + * @returns DatabaseFailoverRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.INetworkingConfig): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; /** - * Encodes the specified NetworkingConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. - * @param message NetworkingConfig message or plain object to encode + * Encodes the specified DatabaseFailoverRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. + * @param message DatabaseFailoverRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.INetworkingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NetworkingConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. - * @param message NetworkingConfig message or plain object to encode + * Encodes the specified DatabaseFailoverRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. + * @param message DatabaseFailoverRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.INetworkingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkingConfig message from the specified reader or buffer. + * Decodes a DatabaseFailoverRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetworkingConfig + * @returns DatabaseFailoverRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; /** - * Decodes a NetworkingConfig message from the specified reader or buffer, length delimited. + * Decodes a DatabaseFailoverRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkingConfig + * @returns DatabaseFailoverRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; /** - * Verifies a NetworkingConfig message. + * Verifies a DatabaseFailoverRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NetworkingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseFailoverRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkingConfig + * @returns DatabaseFailoverRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest; /** - * Creates a plain object from a NetworkingConfig message. Also converts values to other types if specified. - * @param message NetworkingConfig + * Creates a plain object from a DatabaseFailoverRequest message. Also converts values to other types if specified. + * @param message DatabaseFailoverRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.NetworkingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkingConfig to JSON. + * Converts this DatabaseFailoverRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetworkingConfig + * Gets the default type url for DatabaseFailoverRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NetworkingConfig { - - /** ConnectionType enum. */ - enum ConnectionType { - CONNECTION_TYPE_UNSPECIFIED = 0, - VPC_PEERING = 1, - PRIVATE_SERVICE_CONNECT = 2 - } - } - - /** Properties of a PrivateEnvironmentConfig. */ - interface IPrivateEnvironmentConfig { - - /** PrivateEnvironmentConfig enablePrivateEnvironment */ - enablePrivateEnvironment?: (boolean|null); - - /** PrivateEnvironmentConfig privateClusterConfig */ - privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null); - - /** PrivateEnvironmentConfig webServerIpv4CidrBlock */ - webServerIpv4CidrBlock?: (string|null); - - /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock */ - cloudSqlIpv4CidrBlock?: (string|null); - - /** PrivateEnvironmentConfig webServerIpv4ReservedRange */ - webServerIpv4ReservedRange?: (string|null); - - /** PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock */ - cloudComposerNetworkIpv4CidrBlock?: (string|null); - - /** PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange */ - cloudComposerNetworkIpv4ReservedRange?: (string|null); - - /** PrivateEnvironmentConfig enablePrivatelyUsedPublicIps */ - enablePrivatelyUsedPublicIps?: (boolean|null); - - /** PrivateEnvironmentConfig cloudComposerConnectionSubnetwork */ - cloudComposerConnectionSubnetwork?: (string|null); - - /** PrivateEnvironmentConfig networkingConfig */ - networkingConfig?: (google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null); + /** Properties of a DatabaseFailoverResponse. */ + interface IDatabaseFailoverResponse { } - /** Represents a PrivateEnvironmentConfig. */ - class PrivateEnvironmentConfig implements IPrivateEnvironmentConfig { + /** Represents a DatabaseFailoverResponse. */ + class DatabaseFailoverResponse implements IDatabaseFailoverResponse { /** - * Constructs a new PrivateEnvironmentConfig. + * Constructs a new DatabaseFailoverResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig); - - /** PrivateEnvironmentConfig enablePrivateEnvironment. */ - public enablePrivateEnvironment: boolean; - - /** PrivateEnvironmentConfig privateClusterConfig. */ - public privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null); - - /** PrivateEnvironmentConfig webServerIpv4CidrBlock. */ - public webServerIpv4CidrBlock: string; - - /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock. */ - public cloudSqlIpv4CidrBlock: string; - - /** PrivateEnvironmentConfig webServerIpv4ReservedRange. */ - public webServerIpv4ReservedRange: string; - - /** PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock. */ - public cloudComposerNetworkIpv4CidrBlock: string; - - /** PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange. */ - public cloudComposerNetworkIpv4ReservedRange: string; - - /** PrivateEnvironmentConfig enablePrivatelyUsedPublicIps. */ - public enablePrivatelyUsedPublicIps: boolean; - - /** PrivateEnvironmentConfig cloudComposerConnectionSubnetwork. */ - public cloudComposerConnectionSubnetwork: string; - - /** PrivateEnvironmentConfig networkingConfig. */ - public networkingConfig?: (google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse); /** - * Creates a new PrivateEnvironmentConfig instance using the specified properties. + * Creates a new DatabaseFailoverResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateEnvironmentConfig instance + * @returns DatabaseFailoverResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; /** - * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. - * @param message PrivateEnvironmentConfig message or plain object to encode + * Encodes the specified DatabaseFailoverResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. + * @param message DatabaseFailoverResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. - * @param message PrivateEnvironmentConfig message or plain object to encode + * Encodes the specified DatabaseFailoverResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. + * @param message DatabaseFailoverResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer. + * Decodes a DatabaseFailoverResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateEnvironmentConfig + * @returns DatabaseFailoverResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; /** - * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited. + * Decodes a DatabaseFailoverResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateEnvironmentConfig + * @returns DatabaseFailoverResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; /** - * Verifies a PrivateEnvironmentConfig message. + * Verifies a DatabaseFailoverResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseFailoverResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateEnvironmentConfig + * @returns DatabaseFailoverResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse; /** - * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified. - * @param message PrivateEnvironmentConfig + * Creates a plain object from a DatabaseFailoverResponse message. Also converts values to other types if specified. + * @param message DatabaseFailoverResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateEnvironmentConfig to JSON. + * Converts this DatabaseFailoverResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateEnvironmentConfig + * Gets the default type url for DatabaseFailoverResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WorkloadsConfig. */ - interface IWorkloadsConfig { - - /** WorkloadsConfig scheduler */ - scheduler?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null); - - /** WorkloadsConfig webServer */ - webServer?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null); + /** Properties of a FetchDatabasePropertiesRequest. */ + interface IFetchDatabasePropertiesRequest { - /** WorkloadsConfig worker */ - worker?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null); + /** FetchDatabasePropertiesRequest environment */ + environment?: (string|null); } - /** Represents a WorkloadsConfig. */ - class WorkloadsConfig implements IWorkloadsConfig { + /** Represents a FetchDatabasePropertiesRequest. */ + class FetchDatabasePropertiesRequest implements IFetchDatabasePropertiesRequest { /** - * Constructs a new WorkloadsConfig. + * Constructs a new FetchDatabasePropertiesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig); - - /** WorkloadsConfig scheduler. */ - public scheduler?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null); - - /** WorkloadsConfig webServer. */ - public webServer?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest); - /** WorkloadsConfig worker. */ - public worker?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null); + /** FetchDatabasePropertiesRequest environment. */ + public environment: string; /** - * Creates a new WorkloadsConfig instance using the specified properties. + * Creates a new FetchDatabasePropertiesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WorkloadsConfig instance + * @returns FetchDatabasePropertiesRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; /** - * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. - * @param message WorkloadsConfig message or plain object to encode + * Encodes the specified FetchDatabasePropertiesRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. + * @param message FetchDatabasePropertiesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. - * @param message WorkloadsConfig message or plain object to encode + * Encodes the specified FetchDatabasePropertiesRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. + * @param message FetchDatabasePropertiesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkloadsConfig message from the specified reader or buffer. + * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkloadsConfig + * @returns FetchDatabasePropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; /** - * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited. + * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WorkloadsConfig + * @returns FetchDatabasePropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; /** - * Verifies a WorkloadsConfig message. + * Verifies a FetchDatabasePropertiesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FetchDatabasePropertiesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WorkloadsConfig + * @returns FetchDatabasePropertiesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest; /** - * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified. - * @param message WorkloadsConfig + * Creates a plain object from a FetchDatabasePropertiesRequest message. Also converts values to other types if specified. + * @param message FetchDatabasePropertiesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WorkloadsConfig to JSON. + * Converts this FetchDatabasePropertiesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WorkloadsConfig + * Gets the default type url for FetchDatabasePropertiesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace WorkloadsConfig { - - /** Properties of a SchedulerResource. */ - interface ISchedulerResource { - - /** SchedulerResource cpu */ - cpu?: (number|null); + /** Properties of a FetchDatabasePropertiesResponse. */ + interface IFetchDatabasePropertiesResponse { - /** SchedulerResource memoryGb */ - memoryGb?: (number|null); + /** FetchDatabasePropertiesResponse primaryGceZone */ + primaryGceZone?: (string|null); - /** SchedulerResource storageGb */ - storageGb?: (number|null); + /** FetchDatabasePropertiesResponse secondaryGceZone */ + secondaryGceZone?: (string|null); - /** SchedulerResource count */ - count?: (number|null); - } + /** FetchDatabasePropertiesResponse isFailoverReplicaAvailable */ + isFailoverReplicaAvailable?: (boolean|null); + } - /** Represents a SchedulerResource. */ - class SchedulerResource implements ISchedulerResource { + /** Represents a FetchDatabasePropertiesResponse. */ + class FetchDatabasePropertiesResponse implements IFetchDatabasePropertiesResponse { - /** - * Constructs a new SchedulerResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource); + /** + * Constructs a new FetchDatabasePropertiesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse); - /** SchedulerResource cpu. */ - public cpu: number; + /** FetchDatabasePropertiesResponse primaryGceZone. */ + public primaryGceZone: string; - /** SchedulerResource memoryGb. */ - public memoryGb: number; + /** FetchDatabasePropertiesResponse secondaryGceZone. */ + public secondaryGceZone: string; - /** SchedulerResource storageGb. */ - public storageGb: number; + /** FetchDatabasePropertiesResponse isFailoverReplicaAvailable. */ + public isFailoverReplicaAvailable: boolean; - /** SchedulerResource count. */ - public count: number; + /** + * Creates a new FetchDatabasePropertiesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchDatabasePropertiesResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; - /** - * Creates a new SchedulerResource instance using the specified properties. - * @param [properties] Properties to set - * @returns SchedulerResource instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + /** + * Encodes the specified FetchDatabasePropertiesResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. + * @param message FetchDatabasePropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. - * @param message SchedulerResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FetchDatabasePropertiesResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. + * @param message FetchDatabasePropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. - * @param message SchedulerResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FetchDatabasePropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; - /** - * Decodes a SchedulerResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchedulerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + /** + * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FetchDatabasePropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; - /** - * Decodes a SchedulerResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SchedulerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + /** + * Verifies a FetchDatabasePropertiesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a SchedulerResource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a FetchDatabasePropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FetchDatabasePropertiesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse; - /** - * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SchedulerResource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + /** + * Creates a plain object from a FetchDatabasePropertiesResponse message. Also converts values to other types if specified. + * @param message FetchDatabasePropertiesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified. - * @param message SchedulerResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this FetchDatabasePropertiesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this SchedulerResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for FetchDatabasePropertiesResponse + * @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 SchedulerResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a StorageConfig. */ + interface IStorageConfig { - /** Properties of a WebServerResource. */ - interface IWebServerResource { + /** StorageConfig bucket */ + bucket?: (string|null); + } - /** WebServerResource cpu */ - cpu?: (number|null); + /** Represents a StorageConfig. */ + class StorageConfig implements IStorageConfig { - /** WebServerResource memoryGb */ - memoryGb?: (number|null); + /** + * Constructs a new StorageConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IStorageConfig); - /** WebServerResource storageGb */ - storageGb?: (number|null); - } + /** StorageConfig bucket. */ + public bucket: string; - /** Represents a WebServerResource. */ - class WebServerResource implements IWebServerResource { + /** + * Creates a new StorageConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StorageConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IStorageConfig): google.cloud.orchestration.airflow.service.v1.StorageConfig; - /** - * Constructs a new WebServerResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource); + /** + * Encodes the specified StorageConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.StorageConfig.verify|verify} messages. + * @param message StorageConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IStorageConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** WebServerResource cpu. */ - public cpu: number; + /** + * Encodes the specified StorageConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.StorageConfig.verify|verify} messages. + * @param message StorageConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IStorageConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** WebServerResource memoryGb. */ - public memoryGb: number; + /** + * Decodes a StorageConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.StorageConfig; - /** WebServerResource storageGb. */ - public storageGb: number; + /** + * Decodes a StorageConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.StorageConfig; - /** - * Creates a new WebServerResource instance using the specified properties. - * @param [properties] Properties to set - * @returns WebServerResource instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + /** + * Verifies a StorageConfig message. + * @param message 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 WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. - * @param message WebServerResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a StorageConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StorageConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.StorageConfig; - /** - * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. - * @param message WebServerResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a StorageConfig message. Also converts values to other types if specified. + * @param message StorageConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.StorageConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a WebServerResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WebServerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + /** + * Converts this StorageConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a WebServerResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WebServerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + /** + * Gets the default type url for StorageConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a WebServerResource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of an EnvironmentConfig. */ + interface IEnvironmentConfig { - /** - * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WebServerResource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + /** EnvironmentConfig gkeCluster */ + gkeCluster?: (string|null); - /** - * Creates a plain object from a WebServerResource message. Also converts values to other types if specified. - * @param message WebServerResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EnvironmentConfig dagGcsPrefix */ + dagGcsPrefix?: (string|null); - /** - * Converts this WebServerResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** EnvironmentConfig nodeCount */ + nodeCount?: (number|null); - /** - * Gets the default type url for WebServerResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** EnvironmentConfig softwareConfig */ + softwareConfig?: (google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null); - /** Properties of a WorkerResource. */ - interface IWorkerResource { + /** EnvironmentConfig nodeConfig */ + nodeConfig?: (google.cloud.orchestration.airflow.service.v1.INodeConfig|null); - /** WorkerResource cpu */ - cpu?: (number|null); + /** EnvironmentConfig privateEnvironmentConfig */ + privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null); - /** WorkerResource memoryGb */ - memoryGb?: (number|null); + /** EnvironmentConfig webServerNetworkAccessControl */ + webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null); - /** WorkerResource storageGb */ - storageGb?: (number|null); + /** EnvironmentConfig databaseConfig */ + databaseConfig?: (google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null); - /** WorkerResource minCount */ - minCount?: (number|null); + /** EnvironmentConfig webServerConfig */ + webServerConfig?: (google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null); - /** WorkerResource maxCount */ - maxCount?: (number|null); - } + /** EnvironmentConfig encryptionConfig */ + encryptionConfig?: (google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null); - /** Represents a WorkerResource. */ - class WorkerResource implements IWorkerResource { + /** EnvironmentConfig maintenanceWindow */ + maintenanceWindow?: (google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null); - /** - * Constructs a new WorkerResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource); + /** EnvironmentConfig workloadsConfig */ + workloadsConfig?: (google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null); - /** WorkerResource cpu. */ - public cpu: number; + /** EnvironmentConfig environmentSize */ + environmentSize?: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|null); - /** WorkerResource memoryGb. */ - public memoryGb: number; + /** EnvironmentConfig airflowUri */ + airflowUri?: (string|null); - /** WorkerResource storageGb. */ - public storageGb: number; + /** EnvironmentConfig airflowByoidUri */ + airflowByoidUri?: (string|null); - /** WorkerResource minCount. */ - public minCount: number; + /** EnvironmentConfig masterAuthorizedNetworksConfig */ + masterAuthorizedNetworksConfig?: (google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null); - /** WorkerResource maxCount. */ - public maxCount: number; + /** EnvironmentConfig recoveryConfig */ + recoveryConfig?: (google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null); - /** - * Creates a new WorkerResource instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkerResource instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + /** EnvironmentConfig resilienceMode */ + resilienceMode?: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|null); - /** - * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. - * @param message WorkerResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** EnvironmentConfig dataRetentionConfig */ + dataRetentionConfig?: (google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig|null); + } - /** - * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. - * @param message WorkerResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an EnvironmentConfig. */ + class EnvironmentConfig implements IEnvironmentConfig { - /** - * Decodes a WorkerResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + /** + * Constructs a new EnvironmentConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig); - /** - * Decodes a WorkerResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + /** EnvironmentConfig gkeCluster. */ + public gkeCluster: string; - /** - * Verifies a WorkerResource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** EnvironmentConfig dagGcsPrefix. */ + public dagGcsPrefix: string; - /** - * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkerResource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + /** EnvironmentConfig nodeCount. */ + public nodeCount: number; - /** - * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. - * @param message WorkerResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EnvironmentConfig softwareConfig. */ + public softwareConfig?: (google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null); - /** - * Converts this WorkerResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** EnvironmentConfig nodeConfig. */ + public nodeConfig?: (google.cloud.orchestration.airflow.service.v1.INodeConfig|null); - /** - * Gets the default type url for WorkerResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** EnvironmentConfig privateEnvironmentConfig. */ + public privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null); - /** Properties of a RecoveryConfig. */ - interface IRecoveryConfig { + /** EnvironmentConfig webServerNetworkAccessControl. */ + public webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null); - /** RecoveryConfig scheduledSnapshotsConfig */ - scheduledSnapshotsConfig?: (google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null); - } + /** EnvironmentConfig databaseConfig. */ + public databaseConfig?: (google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null); - /** Represents a RecoveryConfig. */ - class RecoveryConfig implements IRecoveryConfig { + /** EnvironmentConfig webServerConfig. */ + public webServerConfig?: (google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null); - /** - * Constructs a new RecoveryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig); + /** EnvironmentConfig encryptionConfig. */ + public encryptionConfig?: (google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null); - /** RecoveryConfig scheduledSnapshotsConfig. */ - public scheduledSnapshotsConfig?: (google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null); + /** EnvironmentConfig maintenanceWindow. */ + public maintenanceWindow?: (google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null); + + /** EnvironmentConfig workloadsConfig. */ + public workloadsConfig?: (google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null); + + /** EnvironmentConfig environmentSize. */ + public environmentSize: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize); + + /** EnvironmentConfig airflowUri. */ + public airflowUri: string; + + /** EnvironmentConfig airflowByoidUri. */ + public airflowByoidUri: string; + + /** EnvironmentConfig masterAuthorizedNetworksConfig. */ + public masterAuthorizedNetworksConfig?: (google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null); + + /** EnvironmentConfig recoveryConfig. */ + public recoveryConfig?: (google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null); + + /** EnvironmentConfig resilienceMode. */ + public resilienceMode: (google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|keyof typeof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode); + + /** EnvironmentConfig dataRetentionConfig. */ + public dataRetentionConfig?: (google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig|null); /** - * Creates a new RecoveryConfig instance using the specified properties. + * Creates a new EnvironmentConfig instance using the specified properties. * @param [properties] Properties to set - * @returns RecoveryConfig instance + * @returns EnvironmentConfig instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; /** - * Encodes the specified RecoveryConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. - * @param message RecoveryConfig message or plain object to encode + * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. + * @param message EnvironmentConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RecoveryConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. - * @param message RecoveryConfig message or plain object to encode + * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. + * @param message EnvironmentConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecoveryConfig message from the specified reader or buffer. + * Decodes an EnvironmentConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecoveryConfig + * @returns EnvironmentConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; /** - * Decodes a RecoveryConfig message from the specified reader or buffer, length delimited. + * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecoveryConfig + * @returns EnvironmentConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; /** - * Verifies a RecoveryConfig message. + * Verifies an EnvironmentConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RecoveryConfig message from a plain object. Also converts values to their respective internal types. + * Creates an EnvironmentConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecoveryConfig + * @returns EnvironmentConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig; /** - * Creates a plain object from a RecoveryConfig message. Also converts values to other types if specified. - * @param message RecoveryConfig + * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified. + * @param message EnvironmentConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.RecoveryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.EnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecoveryConfig to JSON. + * Converts this EnvironmentConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecoveryConfig + * Gets the default type url for EnvironmentConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ScheduledSnapshotsConfig. */ - interface IScheduledSnapshotsConfig { + namespace EnvironmentConfig { - /** ScheduledSnapshotsConfig enabled */ - enabled?: (boolean|null); + /** EnvironmentSize enum. */ + enum EnvironmentSize { + ENVIRONMENT_SIZE_UNSPECIFIED = 0, + ENVIRONMENT_SIZE_SMALL = 1, + ENVIRONMENT_SIZE_MEDIUM = 2, + ENVIRONMENT_SIZE_LARGE = 3 + } - /** ScheduledSnapshotsConfig snapshotLocation */ - snapshotLocation?: (string|null); + /** ResilienceMode enum. */ + enum ResilienceMode { + RESILIENCE_MODE_UNSPECIFIED = 0, + HIGH_RESILIENCE = 1 + } + } - /** ScheduledSnapshotsConfig snapshotCreationSchedule */ - snapshotCreationSchedule?: (string|null); + /** Properties of a WebServerNetworkAccessControl. */ + interface IWebServerNetworkAccessControl { - /** ScheduledSnapshotsConfig timeZone */ - timeZone?: (string|null); + /** WebServerNetworkAccessControl allowedIpRanges */ + allowedIpRanges?: (google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange[]|null); } - /** Represents a ScheduledSnapshotsConfig. */ - class ScheduledSnapshotsConfig implements IScheduledSnapshotsConfig { + /** Represents a WebServerNetworkAccessControl. */ + class WebServerNetworkAccessControl implements IWebServerNetworkAccessControl { /** - * Constructs a new ScheduledSnapshotsConfig. + * Constructs a new WebServerNetworkAccessControl. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig); - - /** ScheduledSnapshotsConfig enabled. */ - public enabled: boolean; - - /** ScheduledSnapshotsConfig snapshotLocation. */ - public snapshotLocation: string; - - /** ScheduledSnapshotsConfig snapshotCreationSchedule. */ - public snapshotCreationSchedule: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl); - /** ScheduledSnapshotsConfig timeZone. */ - public timeZone: string; + /** WebServerNetworkAccessControl allowedIpRanges. */ + public allowedIpRanges: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange[]; /** - * Creates a new ScheduledSnapshotsConfig instance using the specified properties. + * Creates a new WebServerNetworkAccessControl instance using the specified properties. * @param [properties] Properties to set - * @returns ScheduledSnapshotsConfig instance + * @returns WebServerNetworkAccessControl instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; /** - * Encodes the specified ScheduledSnapshotsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. - * @param message ScheduledSnapshotsConfig message or plain object to encode + * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. + * @param message WebServerNetworkAccessControl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ScheduledSnapshotsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. - * @param message ScheduledSnapshotsConfig message or plain object to encode + * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. + * @param message WebServerNetworkAccessControl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer. + * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ScheduledSnapshotsConfig + * @returns WebServerNetworkAccessControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; /** - * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer, length delimited. + * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ScheduledSnapshotsConfig + * @returns WebServerNetworkAccessControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; /** - * Verifies a ScheduledSnapshotsConfig message. + * Verifies a WebServerNetworkAccessControl message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ScheduledSnapshotsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ScheduledSnapshotsConfig + * @returns WebServerNetworkAccessControl */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl; /** - * Creates a plain object from a ScheduledSnapshotsConfig message. Also converts values to other types if specified. - * @param message ScheduledSnapshotsConfig + * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified. + * @param message WebServerNetworkAccessControl * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ScheduledSnapshotsConfig to JSON. + * Converts this WebServerNetworkAccessControl to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ScheduledSnapshotsConfig + * Gets the default type url for WebServerNetworkAccessControl * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MasterAuthorizedNetworksConfig. */ - interface IMasterAuthorizedNetworksConfig { + namespace WebServerNetworkAccessControl { - /** MasterAuthorizedNetworksConfig enabled */ - enabled?: (boolean|null); + /** Properties of an AllowedIpRange. */ + interface IAllowedIpRange { - /** MasterAuthorizedNetworksConfig cidrBlocks */ - cidrBlocks?: (google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null); - } + /** AllowedIpRange value */ + value?: (string|null); - /** Represents a MasterAuthorizedNetworksConfig. */ - class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig { + /** AllowedIpRange description */ + description?: (string|null); + } - /** - * Constructs a new MasterAuthorizedNetworksConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig); + /** Represents an AllowedIpRange. */ + class AllowedIpRange implements IAllowedIpRange { - /** MasterAuthorizedNetworksConfig enabled. */ - public enabled: boolean; + /** + * Constructs a new AllowedIpRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange); - /** MasterAuthorizedNetworksConfig cidrBlocks. */ - public cidrBlocks: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]; + /** AllowedIpRange value. */ + public value: string; - /** - * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MasterAuthorizedNetworksConfig instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; + /** AllowedIpRange description. */ + public description: string; - /** - * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. - * @param message MasterAuthorizedNetworksConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. - * @param message MasterAuthorizedNetworksConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MasterAuthorizedNetworksConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; - - /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MasterAuthorizedNetworksConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; - - /** - * Verifies a MasterAuthorizedNetworksConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MasterAuthorizedNetworksConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; - - /** - * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. - * @param message MasterAuthorizedNetworksConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MasterAuthorizedNetworksConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MasterAuthorizedNetworksConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MasterAuthorizedNetworksConfig { - - /** Properties of a CidrBlock. */ - interface ICidrBlock { - - /** CidrBlock displayName */ - displayName?: (string|null); - - /** CidrBlock cidrBlock */ - cidrBlock?: (string|null); - } - - /** Represents a CidrBlock. */ - class CidrBlock implements ICidrBlock { - - /** - * Constructs a new CidrBlock. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock); - - /** CidrBlock displayName. */ - public displayName: string; - - /** CidrBlock cidrBlock. */ - public cidrBlock: string; - - /** - * Creates a new CidrBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns CidrBlock instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + /** + * Creates a new AllowedIpRange instance using the specified properties. + * @param [properties] Properties to set + * @returns AllowedIpRange instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; /** - * Encodes the specified CidrBlock message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. - * @param message CidrBlock message or plain object to encode + * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. + * @param message AllowedIpRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. - * @param message CidrBlock message or plain object to encode + * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. + * @param message AllowedIpRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CidrBlock message from the specified reader or buffer. + * Decodes an AllowedIpRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CidrBlock + * @returns AllowedIpRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; /** - * Decodes a CidrBlock message from the specified reader or buffer, length delimited. + * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CidrBlock + * @returns AllowedIpRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; /** - * Verifies a CidrBlock message. + * Verifies an AllowedIpRange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types. + * Creates an AllowedIpRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CidrBlock + * @returns AllowedIpRange */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange; /** - * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. - * @param message CidrBlock + * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified. + * @param message AllowedIpRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CidrBlock to JSON. + * Converts this AllowedIpRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CidrBlock + * Gets the default type url for AllowedIpRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -5100,2753 +5265,7510 @@ export namespace google { } } - /** Properties of an Environment. */ - interface IEnvironment { - - /** Environment name */ - name?: (string|null); - - /** Environment config */ - config?: (google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null); - - /** Environment uuid */ - uuid?: (string|null); - - /** Environment state */ - state?: (google.cloud.orchestration.airflow.service.v1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1.Environment.State|null); - - /** Environment createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a DatabaseConfig. */ + interface IDatabaseConfig { - /** Environment updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** DatabaseConfig machineType */ + machineType?: (string|null); - /** Environment labels */ - labels?: ({ [k: string]: string }|null); + /** DatabaseConfig zone */ + zone?: (string|null); } - /** Represents an Environment. */ - class Environment implements IEnvironment { + /** Represents a DatabaseConfig. */ + class DatabaseConfig implements IDatabaseConfig { /** - * Constructs a new Environment. + * Constructs a new DatabaseConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironment); - - /** Environment name. */ - public name: string; - - /** Environment config. */ - public config?: (google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null); - - /** Environment uuid. */ - public uuid: string; - - /** Environment state. */ - public state: (google.cloud.orchestration.airflow.service.v1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1.Environment.State); - - /** Environment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig); - /** Environment updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** DatabaseConfig machineType. */ + public machineType: string; - /** Environment labels. */ - public labels: { [k: string]: string }; + /** DatabaseConfig zone. */ + public zone: string; /** - * Creates a new Environment instance using the specified properties. + * Creates a new DatabaseConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Environment instance + * @returns DatabaseConfig instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironment): google.cloud.orchestration.airflow.service.v1.Environment; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. + * @param message DatabaseConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. + * @param message DatabaseConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a DatabaseConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Environment + * @returns DatabaseConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.Environment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Environment + * @returns DatabaseConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.Environment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; /** - * Verifies an Environment message. + * Verifies a DatabaseConfig message. * @param message Plain 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 Environment message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Environment + * @returns DatabaseConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.Environment; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseConfig; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @param message Environment + * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified. + * @param message DatabaseConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Environment to JSON. + * Converts this DatabaseConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Environment + * Gets the default type url for DatabaseConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Environment { + /** Properties of a WebServerConfig. */ + interface IWebServerConfig { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - RUNNING = 2, - UPDATING = 3, - DELETING = 4, - ERROR = 5 - } + /** WebServerConfig machineType */ + machineType?: (string|null); } - /** Properties of a CheckUpgradeResponse. */ - interface ICheckUpgradeResponse { - - /** CheckUpgradeResponse buildLogUri */ - buildLogUri?: (string|null); - - /** CheckUpgradeResponse containsPypiModulesConflict */ - containsPypiModulesConflict?: (google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|null); - - /** CheckUpgradeResponse pypiConflictBuildLogExtract */ - pypiConflictBuildLogExtract?: (string|null); - - /** CheckUpgradeResponse imageVersion */ - imageVersion?: (string|null); - - /** CheckUpgradeResponse pypiDependencies */ - pypiDependencies?: ({ [k: string]: string }|null); - } - - /** Represents a CheckUpgradeResponse. */ - class CheckUpgradeResponse implements ICheckUpgradeResponse { + /** Represents a WebServerConfig. */ + class WebServerConfig implements IWebServerConfig { /** - * Constructs a new CheckUpgradeResponse. + * Constructs a new WebServerConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse); - - /** CheckUpgradeResponse buildLogUri. */ - public buildLogUri: string; - - /** CheckUpgradeResponse containsPypiModulesConflict. */ - public containsPypiModulesConflict: (google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult); - - /** CheckUpgradeResponse pypiConflictBuildLogExtract. */ - public pypiConflictBuildLogExtract: string; - - /** CheckUpgradeResponse imageVersion. */ - public imageVersion: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerConfig); - /** CheckUpgradeResponse pypiDependencies. */ - public pypiDependencies: { [k: string]: string }; + /** WebServerConfig machineType. */ + public machineType: string; /** - * Creates a new CheckUpgradeResponse instance using the specified properties. + * Creates a new WebServerConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CheckUpgradeResponse instance + * @returns WebServerConfig instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerConfig): google.cloud.orchestration.airflow.service.v1.WebServerConfig; /** - * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. - * @param message CheckUpgradeResponse message or plain object to encode + * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. + * @param message WebServerConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. - * @param message CheckUpgradeResponse message or plain object to encode + * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. + * @param message WebServerConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckUpgradeResponse message from the specified reader or buffer. + * Decodes a WebServerConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckUpgradeResponse + * @returns WebServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WebServerConfig; /** - * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited. + * Decodes a WebServerConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckUpgradeResponse + * @returns WebServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WebServerConfig; /** - * Verifies a CheckUpgradeResponse message. + * Verifies a WebServerConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckUpgradeResponse + * @returns WebServerConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerConfig; /** - * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified. - * @param message CheckUpgradeResponse + * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified. + * @param message WebServerConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckUpgradeResponse to JSON. + * Converts this WebServerConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckUpgradeResponse + * Gets the default type url for WebServerConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CheckUpgradeResponse { - - /** ConflictResult enum. */ - enum ConflictResult { - CONFLICT_RESULT_UNSPECIFIED = 0, - CONFLICT = 1, - NO_CONFLICT = 2 - } - } - - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { - - /** OperationMetadata state */ - state?: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|null); - - /** OperationMetadata operationType */ - operationType?: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|null); - - /** OperationMetadata resource */ - resource?: (string|null); - - /** OperationMetadata resourceUuid */ - resourceUuid?: (string|null); - - /** OperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of an EncryptionConfig. */ + interface IEncryptionConfig { - /** OperationMetadata endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** EncryptionConfig kmsKeyName */ + kmsKeyName?: (string|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents an EncryptionConfig. */ + class EncryptionConfig implements IEncryptionConfig { /** - * Constructs a new OperationMetadata. + * Constructs a new EncryptionConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IOperationMetadata); - - /** OperationMetadata state. */ - public state: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.State); - - /** OperationMetadata operationType. */ - public operationType: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type); - - /** OperationMetadata resource. */ - public resource: string; - - /** OperationMetadata resourceUuid. */ - public resourceUuid: string; - - /** OperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig); - /** OperationMetadata endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** EncryptionConfig kmsKeyName. */ + public kmsKeyName: string; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new EncryptionConfig instance using the specified properties. * @param [properties] Properties to set - * @returns OperationMetadata instance + * @returns EncryptionConfig instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IOperationMetadata): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. + * @param message EncryptionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. + * @param message EncryptionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an EncryptionConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns EncryptionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationMetadata + * @returns EncryptionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; /** - * Verifies an OperationMetadata message. + * Verifies an EncryptionConfig message. * @param message Plain 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 OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationMetadata + * @returns EncryptionConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.EncryptionConfig; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @param message OperationMetadata + * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. + * @param message EncryptionConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationMetadata to JSON. + * Converts this EncryptionConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for EncryptionConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace OperationMetadata { + /** Properties of a MaintenanceWindow. */ + interface IMaintenanceWindow { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - RUNNING = 2, - SUCCEEDED = 3, - SUCCESSFUL = 3, - FAILED = 4 - } + /** MaintenanceWindow startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - CREATE = 1, - DELETE = 2, - UPDATE = 3, - CHECK = 4, - SAVE_SNAPSHOT = 5, - LOAD_SNAPSHOT = 6, - DATABASE_FAILOVER = 7 - } + /** MaintenanceWindow endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** MaintenanceWindow recurrence */ + recurrence?: (string|null); } - /** Represents an ImageVersions */ - class ImageVersions extends $protobuf.rpc.Service { + /** Represents a MaintenanceWindow. */ + class MaintenanceWindow implements IMaintenanceWindow { /** - * Constructs a new ImageVersions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new MaintenanceWindow. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow); + + /** MaintenanceWindow startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** MaintenanceWindow endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** MaintenanceWindow recurrence. */ + public recurrence: string; /** - * Creates new ImageVersions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new MaintenanceWindow instance using the specified properties. + * @param [properties] Properties to set + * @returns MaintenanceWindow instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ImageVersions; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; /** - * Calls ListImageVersions. - * @param request ListImageVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListImageVersionsResponse - */ - public listImageVersions(request: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, callback: google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersionsCallback): void; - - /** - * Calls ListImageVersions. - * @param request ListImageVersionsRequest message or plain object - * @returns Promise - */ - public listImageVersions(request: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest): Promise; - } - - namespace ImageVersions { - - /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.ImageVersions|listImageVersions}. - * @param error Error, if any - * @param [response] ListImageVersionsResponse - */ - type ListImageVersionsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse) => void; - } - - /** Properties of a ListImageVersionsRequest. */ - interface IListImageVersionsRequest { - - /** ListImageVersionsRequest parent */ - parent?: (string|null); - - /** ListImageVersionsRequest pageSize */ - pageSize?: (number|null); - - /** ListImageVersionsRequest pageToken */ - pageToken?: (string|null); - - /** ListImageVersionsRequest includePastReleases */ - includePastReleases?: (boolean|null); - } - - /** Represents a ListImageVersionsRequest. */ - class ListImageVersionsRequest implements IListImageVersionsRequest { - - /** - * Constructs a new ListImageVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest); - - /** ListImageVersionsRequest parent. */ - public parent: string; - - /** ListImageVersionsRequest pageSize. */ - public pageSize: number; - - /** ListImageVersionsRequest pageToken. */ - public pageToken: string; - - /** ListImageVersionsRequest includePastReleases. */ - public includePastReleases: boolean; - - /** - * Creates a new ListImageVersionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListImageVersionsRequest instance - */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; - - /** - * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. - * @param message ListImageVersionsRequest message or plain object to encode + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. + * @param message MaintenanceWindow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. - * @param message ListImageVersionsRequest message or plain object to encode + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. + * @param message MaintenanceWindow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListImageVersionsRequest message from the specified reader or buffer. + * Decodes a MaintenanceWindow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListImageVersionsRequest + * @returns MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; /** - * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListImageVersionsRequest + * @returns MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; /** - * Verifies a ListImageVersionsRequest message. + * Verifies a MaintenanceWindow message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListImageVersionsRequest + * @returns MaintenanceWindow */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.MaintenanceWindow; /** - * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified. - * @param message ListImageVersionsRequest + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * @param message MaintenanceWindow * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListImageVersionsRequest to JSON. + * Converts this MaintenanceWindow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListImageVersionsRequest + * Gets the default type url for MaintenanceWindow * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListImageVersionsResponse. */ - interface IListImageVersionsResponse { + /** Properties of a SoftwareConfig. */ + interface ISoftwareConfig { - /** ListImageVersionsResponse imageVersions */ - imageVersions?: (google.cloud.orchestration.airflow.service.v1.IImageVersion[]|null); + /** SoftwareConfig imageVersion */ + imageVersion?: (string|null); - /** ListImageVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** SoftwareConfig airflowConfigOverrides */ + airflowConfigOverrides?: ({ [k: string]: string }|null); + + /** SoftwareConfig pypiPackages */ + pypiPackages?: ({ [k: string]: string }|null); + + /** SoftwareConfig envVariables */ + envVariables?: ({ [k: string]: string }|null); + + /** SoftwareConfig pythonVersion */ + pythonVersion?: (string|null); + + /** SoftwareConfig schedulerCount */ + schedulerCount?: (number|null); + + /** SoftwareConfig cloudDataLineageIntegration */ + cloudDataLineageIntegration?: (google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration|null); + + /** SoftwareConfig webServerPluginsMode */ + webServerPluginsMode?: (google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode|keyof typeof google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode|null); } - /** Represents a ListImageVersionsResponse. */ - class ListImageVersionsResponse implements IListImageVersionsResponse { + /** Represents a SoftwareConfig. */ + class SoftwareConfig implements ISoftwareConfig { /** - * Constructs a new ListImageVersionsResponse. + * Constructs a new SoftwareConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig); - /** ListImageVersionsResponse imageVersions. */ - public imageVersions: google.cloud.orchestration.airflow.service.v1.IImageVersion[]; + /** SoftwareConfig imageVersion. */ + public imageVersion: string; - /** ListImageVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** SoftwareConfig airflowConfigOverrides. */ + public airflowConfigOverrides: { [k: string]: string }; + + /** SoftwareConfig pypiPackages. */ + public pypiPackages: { [k: string]: string }; + + /** SoftwareConfig envVariables. */ + public envVariables: { [k: string]: string }; + + /** SoftwareConfig pythonVersion. */ + public pythonVersion: string; + + /** SoftwareConfig schedulerCount. */ + public schedulerCount: number; + + /** SoftwareConfig cloudDataLineageIntegration. */ + public cloudDataLineageIntegration?: (google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration|null); + + /** SoftwareConfig webServerPluginsMode. */ + public webServerPluginsMode: (google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode|keyof typeof google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode); /** - * Creates a new ListImageVersionsResponse instance using the specified properties. + * Creates a new SoftwareConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListImageVersionsResponse instance + * @returns SoftwareConfig instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; /** - * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. - * @param message ListImageVersionsResponse message or plain object to encode + * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. + * @param message SoftwareConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. - * @param message ListImageVersionsResponse message or plain object to encode + * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. + * @param message SoftwareConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListImageVersionsResponse message from the specified reader or buffer. + * Decodes a SoftwareConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListImageVersionsResponse + * @returns SoftwareConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; /** - * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListImageVersionsResponse + * @returns SoftwareConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; /** - * Verifies a ListImageVersionsResponse message. + * Verifies a SoftwareConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListImageVersionsResponse + * @returns SoftwareConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SoftwareConfig; /** - * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified. - * @param message ListImageVersionsResponse + * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified. + * @param message SoftwareConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.SoftwareConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListImageVersionsResponse to JSON. + * Converts this SoftwareConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListImageVersionsResponse + * Gets the default type url for SoftwareConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImageVersion. */ - interface IImageVersion { + namespace SoftwareConfig { - /** ImageVersion imageVersionId */ - imageVersionId?: (string|null); + /** WebServerPluginsMode enum. */ + enum WebServerPluginsMode { + WEB_SERVER_PLUGINS_MODE_UNSPECIFIED = 0, + PLUGINS_DISABLED = 1, + PLUGINS_ENABLED = 2 + } + } - /** ImageVersion isDefault */ - isDefault?: (boolean|null); + /** Properties of a IPAllocationPolicy. */ + interface IIPAllocationPolicy { - /** ImageVersion supportedPythonVersions */ - supportedPythonVersions?: (string[]|null); + /** IPAllocationPolicy useIpAliases */ + useIpAliases?: (boolean|null); - /** ImageVersion releaseDate */ - releaseDate?: (google.type.IDate|null); + /** IPAllocationPolicy clusterSecondaryRangeName */ + clusterSecondaryRangeName?: (string|null); - /** ImageVersion creationDisabled */ - creationDisabled?: (boolean|null); + /** IPAllocationPolicy clusterIpv4CidrBlock */ + clusterIpv4CidrBlock?: (string|null); - /** ImageVersion upgradeDisabled */ - upgradeDisabled?: (boolean|null); + /** IPAllocationPolicy servicesSecondaryRangeName */ + servicesSecondaryRangeName?: (string|null); + + /** IPAllocationPolicy servicesIpv4CidrBlock */ + servicesIpv4CidrBlock?: (string|null); } - /** Represents an ImageVersion. */ - class ImageVersion implements IImageVersion { + /** Represents a IPAllocationPolicy. */ + class IPAllocationPolicy implements IIPAllocationPolicy { /** - * Constructs a new ImageVersion. + * Constructs a new IPAllocationPolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1.IImageVersion); - - /** ImageVersion imageVersionId. */ - public imageVersionId: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy); - /** ImageVersion isDefault. */ - public isDefault: boolean; + /** IPAllocationPolicy useIpAliases. */ + public useIpAliases: boolean; - /** ImageVersion supportedPythonVersions. */ - public supportedPythonVersions: string[]; + /** IPAllocationPolicy clusterSecondaryRangeName. */ + public clusterSecondaryRangeName?: (string|null); - /** ImageVersion releaseDate. */ - public releaseDate?: (google.type.IDate|null); + /** IPAllocationPolicy clusterIpv4CidrBlock. */ + public clusterIpv4CidrBlock?: (string|null); - /** ImageVersion creationDisabled. */ - public creationDisabled: boolean; + /** IPAllocationPolicy servicesSecondaryRangeName. */ + public servicesSecondaryRangeName?: (string|null); - /** ImageVersion upgradeDisabled. */ - public upgradeDisabled: boolean; + /** IPAllocationPolicy servicesIpv4CidrBlock. */ + public servicesIpv4CidrBlock?: (string|null); + + /** IPAllocationPolicy clusterIpAllocation. */ + public clusterIpAllocation?: ("clusterSecondaryRangeName"|"clusterIpv4CidrBlock"); + + /** IPAllocationPolicy servicesIpAllocation. */ + public servicesIpAllocation?: ("servicesSecondaryRangeName"|"servicesIpv4CidrBlock"); /** - * Creates a new ImageVersion instance using the specified properties. + * Creates a new IPAllocationPolicy instance using the specified properties. * @param [properties] Properties to set - * @returns ImageVersion instance + * @returns IPAllocationPolicy instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1.IImageVersion): google.cloud.orchestration.airflow.service.v1.ImageVersion; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; /** - * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. - * @param message ImageVersion message or plain object to encode + * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. + * @param message IPAllocationPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. - * @param message ImageVersion message or plain object to encode + * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. + * @param message IPAllocationPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImageVersion message from the specified reader or buffer. + * Decodes a IPAllocationPolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImageVersion + * @returns IPAllocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ImageVersion; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; /** - * Decodes an ImageVersion message from the specified reader or buffer, length delimited. + * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImageVersion + * @returns IPAllocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ImageVersion; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; /** - * Verifies an ImageVersion message. + * Verifies a IPAllocationPolicy message. * @param message Plain 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 ImageVersion message from a plain object. Also converts values to their respective internal types. + * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImageVersion + * @returns IPAllocationPolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ImageVersion; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy; /** - * Creates a plain object from an ImageVersion message. Also converts values to other types if specified. - * @param message ImageVersion + * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. + * @param message IPAllocationPolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1.ImageVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImageVersion to JSON. + * Converts this IPAllocationPolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImageVersion + * Gets the default type url for IPAllocationPolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Namespace v1beta1. */ - namespace v1beta1 { + /** Properties of a NodeConfig. */ + interface INodeConfig { - /** Represents an Environments */ - class Environments extends $protobuf.rpc.Service { + /** NodeConfig location */ + location?: (string|null); - /** - * Constructs a new Environments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** NodeConfig machineType */ + machineType?: (string|null); + + /** NodeConfig network */ + network?: (string|null); + + /** NodeConfig subnetwork */ + subnetwork?: (string|null); + + /** NodeConfig diskSizeGb */ + diskSizeGb?: (number|null); + + /** NodeConfig oauthScopes */ + oauthScopes?: (string[]|null); + + /** NodeConfig serviceAccount */ + serviceAccount?: (string|null); + + /** NodeConfig tags */ + tags?: (string[]|null); + + /** NodeConfig ipAllocationPolicy */ + ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null); + + /** NodeConfig enableIpMasqAgent */ + enableIpMasqAgent?: (boolean|null); + + /** NodeConfig composerNetworkAttachment */ + composerNetworkAttachment?: (string|null); + + /** NodeConfig composerInternalIpv4CidrBlock */ + composerInternalIpv4CidrBlock?: (string|null); + } + + /** Represents a NodeConfig. */ + class NodeConfig implements INodeConfig { /** - * Creates new Environments 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. + * Constructs a new NodeConfig. + * @param [properties] Properties to set */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; + constructor(properties?: google.cloud.orchestration.airflow.service.v1.INodeConfig); + + /** NodeConfig location. */ + public location: string; + + /** NodeConfig machineType. */ + public machineType: string; + + /** NodeConfig network. */ + public network: string; + + /** NodeConfig subnetwork. */ + public subnetwork: string; + + /** NodeConfig diskSizeGb. */ + public diskSizeGb: number; + + /** NodeConfig oauthScopes. */ + public oauthScopes: string[]; + + /** NodeConfig serviceAccount. */ + public serviceAccount: string; + + /** NodeConfig tags. */ + public tags: string[]; + + /** NodeConfig ipAllocationPolicy. */ + public ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null); + + /** NodeConfig enableIpMasqAgent. */ + public enableIpMasqAgent: boolean; + + /** NodeConfig composerNetworkAttachment. */ + public composerNetworkAttachment: string; + + /** NodeConfig composerInternalIpv4CidrBlock. */ + public composerInternalIpv4CidrBlock: string; /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new NodeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeConfig instance */ - public createEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironmentCallback): void; + public static create(properties?: google.cloud.orchestration.airflow.service.v1.INodeConfig): google.cloud.orchestration.airflow.service.v1.NodeConfig; /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @returns Promise + * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. + * @param message NodeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest): Promise; + public static encode(message: google.cloud.orchestration.airflow.service.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Environment + * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. + * @param message NodeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironmentCallback): void; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @returns Promise + * Decodes a NodeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.NodeConfig; /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse + * Decodes a NodeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listEnvironments(request: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironmentsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.NodeConfig; /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @returns Promise + * Verifies a NodeConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listEnvironments(request: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeConfig */ - public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironmentCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.NodeConfig; /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @returns Promise + * Creates a plain object from a NodeConfig message. Also converts values to other types if specified. + * @param message NodeConfig + * @param [options] Conversion options + * @returns Plain object */ - public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest): Promise; + public static toObject(message: google.cloud.orchestration.airflow.service.v1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this NodeConfig to JSON. + * @returns JSON object */ - public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironmentCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @returns Promise + * Gets the default type url for NodeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PrivateClusterConfig. */ + interface IPrivateClusterConfig { + + /** PrivateClusterConfig enablePrivateEndpoint */ + enablePrivateEndpoint?: (boolean|null); + + /** PrivateClusterConfig masterIpv4CidrBlock */ + masterIpv4CidrBlock?: (string|null); + + /** PrivateClusterConfig masterIpv4ReservedRange */ + masterIpv4ReservedRange?: (string|null); + } + + /** Represents a PrivateClusterConfig. */ + class PrivateClusterConfig implements IPrivateClusterConfig { + + /** + * Constructs a new PrivateClusterConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig); + + /** PrivateClusterConfig enablePrivateEndpoint. */ + public enablePrivateEndpoint: boolean; + + /** PrivateClusterConfig masterIpv4CidrBlock. */ + public masterIpv4CidrBlock: string; + + /** PrivateClusterConfig masterIpv4ReservedRange. */ + public masterIpv4ReservedRange: string; + + /** + * Creates a new PrivateClusterConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateClusterConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + + /** + * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. + * @param message PrivateClusterConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. + * @param message PrivateClusterConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + + /** + * Verifies a PrivateClusterConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateClusterConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig; + + /** + * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. + * @param message PrivateClusterConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateClusterConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateClusterConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetworkingConfig. */ + interface INetworkingConfig { + + /** NetworkingConfig connectionType */ + connectionType?: (google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|keyof typeof google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|null); + } + + /** Represents a NetworkingConfig. */ + class NetworkingConfig implements INetworkingConfig { + + /** + * Constructs a new NetworkingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.INetworkingConfig); + + /** NetworkingConfig connectionType. */ + public connectionType: (google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|keyof typeof google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType); + + /** + * Creates a new NetworkingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkingConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.INetworkingConfig): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + + /** + * Encodes the specified NetworkingConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. + * @param message NetworkingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.INetworkingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkingConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. + * @param message NetworkingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.INetworkingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + + /** + * Decodes a NetworkingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + + /** + * Verifies a NetworkingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NetworkingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.NetworkingConfig; + + /** + * Creates a plain object from a NetworkingConfig message. Also converts values to other types if specified. + * @param message NetworkingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.NetworkingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkingConfig { + + /** ConnectionType enum. */ + enum ConnectionType { + CONNECTION_TYPE_UNSPECIFIED = 0, + VPC_PEERING = 1, + PRIVATE_SERVICE_CONNECT = 2 + } + } + + /** Properties of a PrivateEnvironmentConfig. */ + interface IPrivateEnvironmentConfig { + + /** PrivateEnvironmentConfig enablePrivateEnvironment */ + enablePrivateEnvironment?: (boolean|null); + + /** PrivateEnvironmentConfig enablePrivateBuildsOnly */ + enablePrivateBuildsOnly?: (boolean|null); + + /** PrivateEnvironmentConfig privateClusterConfig */ + privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null); + + /** PrivateEnvironmentConfig webServerIpv4CidrBlock */ + webServerIpv4CidrBlock?: (string|null); + + /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock */ + cloudSqlIpv4CidrBlock?: (string|null); + + /** PrivateEnvironmentConfig webServerIpv4ReservedRange */ + webServerIpv4ReservedRange?: (string|null); + + /** PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock */ + cloudComposerNetworkIpv4CidrBlock?: (string|null); + + /** PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange */ + cloudComposerNetworkIpv4ReservedRange?: (string|null); + + /** PrivateEnvironmentConfig enablePrivatelyUsedPublicIps */ + enablePrivatelyUsedPublicIps?: (boolean|null); + + /** PrivateEnvironmentConfig cloudComposerConnectionSubnetwork */ + cloudComposerConnectionSubnetwork?: (string|null); + + /** PrivateEnvironmentConfig networkingConfig */ + networkingConfig?: (google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null); + } + + /** Represents a PrivateEnvironmentConfig. */ + class PrivateEnvironmentConfig implements IPrivateEnvironmentConfig { + + /** + * Constructs a new PrivateEnvironmentConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig); + + /** PrivateEnvironmentConfig enablePrivateEnvironment. */ + public enablePrivateEnvironment: boolean; + + /** PrivateEnvironmentConfig enablePrivateBuildsOnly. */ + public enablePrivateBuildsOnly: boolean; + + /** PrivateEnvironmentConfig privateClusterConfig. */ + public privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null); + + /** PrivateEnvironmentConfig webServerIpv4CidrBlock. */ + public webServerIpv4CidrBlock: string; + + /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock. */ + public cloudSqlIpv4CidrBlock: string; + + /** PrivateEnvironmentConfig webServerIpv4ReservedRange. */ + public webServerIpv4ReservedRange: string; + + /** PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock. */ + public cloudComposerNetworkIpv4CidrBlock: string; + + /** PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange. */ + public cloudComposerNetworkIpv4ReservedRange: string; + + /** PrivateEnvironmentConfig enablePrivatelyUsedPublicIps. */ + public enablePrivatelyUsedPublicIps: boolean; + + /** PrivateEnvironmentConfig cloudComposerConnectionSubnetwork. */ + public cloudComposerConnectionSubnetwork: string; + + /** PrivateEnvironmentConfig networkingConfig. */ + public networkingConfig?: (google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null); + + /** + * Creates a new PrivateEnvironmentConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateEnvironmentConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + + /** + * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. + * @param message PrivateEnvironmentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. + * @param message PrivateEnvironmentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateEnvironmentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + + /** + * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateEnvironmentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + + /** + * Verifies a PrivateEnvironmentConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateEnvironmentConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig; + + /** + * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified. + * @param message PrivateEnvironmentConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateEnvironmentConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateEnvironmentConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkloadsConfig. */ + interface IWorkloadsConfig { + + /** WorkloadsConfig scheduler */ + scheduler?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null); + + /** WorkloadsConfig webServer */ + webServer?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null); + + /** WorkloadsConfig worker */ + worker?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null); + + /** WorkloadsConfig triggerer */ + triggerer?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource|null); + + /** WorkloadsConfig dagProcessor */ + dagProcessor?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource|null); + } + + /** Represents a WorkloadsConfig. */ + class WorkloadsConfig implements IWorkloadsConfig { + + /** + * Constructs a new WorkloadsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig); + + /** WorkloadsConfig scheduler. */ + public scheduler?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null); + + /** WorkloadsConfig webServer. */ + public webServer?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null); + + /** WorkloadsConfig worker. */ + public worker?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null); + + /** WorkloadsConfig triggerer. */ + public triggerer?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource|null); + + /** WorkloadsConfig dagProcessor. */ + public dagProcessor?: (google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource|null); + + /** + * Creates a new WorkloadsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkloadsConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + + /** + * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. + * @param message WorkloadsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. + * @param message WorkloadsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkloadsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkloadsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + + /** + * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkloadsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + + /** + * Verifies a WorkloadsConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkloadsConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig; + + /** + * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified. + * @param message WorkloadsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkloadsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkloadsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkloadsConfig { + + /** Properties of a SchedulerResource. */ + interface ISchedulerResource { + + /** SchedulerResource cpu */ + cpu?: (number|null); + + /** SchedulerResource memoryGb */ + memoryGb?: (number|null); + + /** SchedulerResource storageGb */ + storageGb?: (number|null); + + /** SchedulerResource count */ + count?: (number|null); + } + + /** Represents a SchedulerResource. */ + class SchedulerResource implements ISchedulerResource { + + /** + * Constructs a new SchedulerResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource); + + /** SchedulerResource cpu. */ + public cpu: number; + + /** SchedulerResource memoryGb. */ + public memoryGb: number; + + /** SchedulerResource storageGb. */ + public storageGb: number; + + /** SchedulerResource count. */ + public count: number; + + /** + * Creates a new SchedulerResource instance using the specified properties. + * @param [properties] Properties to set + * @returns SchedulerResource instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + + /** + * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * @param message SchedulerResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * @param message SchedulerResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchedulerResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchedulerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + + /** + * Decodes a SchedulerResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SchedulerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + + /** + * Verifies a SchedulerResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SchedulerResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource; + + /** + * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified. + * @param message SchedulerResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SchedulerResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SchedulerResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WebServerResource. */ + interface IWebServerResource { + + /** WebServerResource cpu */ + cpu?: (number|null); + + /** WebServerResource memoryGb */ + memoryGb?: (number|null); + + /** WebServerResource storageGb */ + storageGb?: (number|null); + } + + /** Represents a WebServerResource. */ + class WebServerResource implements IWebServerResource { + + /** + * Constructs a new WebServerResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource); + + /** WebServerResource cpu. */ + public cpu: number; + + /** WebServerResource memoryGb. */ + public memoryGb: number; + + /** WebServerResource storageGb. */ + public storageGb: number; + + /** + * Creates a new WebServerResource instance using the specified properties. + * @param [properties] Properties to set + * @returns WebServerResource instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + + /** + * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * @param message WebServerResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * @param message WebServerResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WebServerResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebServerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + + /** + * Decodes a WebServerResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebServerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + + /** + * Verifies a WebServerResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebServerResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource; + + /** + * Creates a plain object from a WebServerResource message. Also converts values to other types if specified. + * @param message WebServerResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebServerResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WebServerResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkerResource. */ + interface IWorkerResource { + + /** WorkerResource cpu */ + cpu?: (number|null); + + /** WorkerResource memoryGb */ + memoryGb?: (number|null); + + /** WorkerResource storageGb */ + storageGb?: (number|null); + + /** WorkerResource minCount */ + minCount?: (number|null); + + /** WorkerResource maxCount */ + maxCount?: (number|null); + } + + /** Represents a WorkerResource. */ + class WorkerResource implements IWorkerResource { + + /** + * Constructs a new WorkerResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource); + + /** WorkerResource cpu. */ + public cpu: number; + + /** WorkerResource memoryGb. */ + public memoryGb: number; + + /** WorkerResource storageGb. */ + public storageGb: number; + + /** WorkerResource minCount. */ + public minCount: number; + + /** WorkerResource maxCount. */ + public maxCount: number; + + /** + * Creates a new WorkerResource instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkerResource instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + + /** + * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. + * @param message WorkerResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. + * @param message WorkerResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkerResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + + /** + * Decodes a WorkerResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + + /** + * Verifies a WorkerResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkerResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource; + + /** + * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. + * @param message WorkerResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkerResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkerResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TriggererResource. */ + interface ITriggererResource { + + /** TriggererResource count */ + count?: (number|null); + + /** TriggererResource cpu */ + cpu?: (number|null); + + /** TriggererResource memoryGb */ + memoryGb?: (number|null); + } + + /** Represents a TriggererResource. */ + class TriggererResource implements ITriggererResource { + + /** + * Constructs a new TriggererResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource); + + /** TriggererResource count. */ + public count: number; + + /** TriggererResource cpu. */ + public cpu: number; + + /** TriggererResource memoryGb. */ + public memoryGb: number; + + /** + * Creates a new TriggererResource instance using the specified properties. + * @param [properties] Properties to set + * @returns TriggererResource instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource; + + /** + * Encodes the specified TriggererResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.verify|verify} messages. + * @param message TriggererResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TriggererResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.verify|verify} messages. + * @param message TriggererResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TriggererResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TriggererResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource; + + /** + * Decodes a TriggererResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TriggererResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource; + + /** + * Verifies a TriggererResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TriggererResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TriggererResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource; + + /** + * Creates a plain object from a TriggererResource message. Also converts values to other types if specified. + * @param message TriggererResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TriggererResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TriggererResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DagProcessorResource. */ + interface IDagProcessorResource { + + /** DagProcessorResource cpu */ + cpu?: (number|null); + + /** DagProcessorResource memoryGb */ + memoryGb?: (number|null); + + /** DagProcessorResource storageGb */ + storageGb?: (number|null); + + /** DagProcessorResource count */ + count?: (number|null); + } + + /** Represents a DagProcessorResource. */ + class DagProcessorResource implements IDagProcessorResource { + + /** + * Constructs a new DagProcessorResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource); + + /** DagProcessorResource cpu. */ + public cpu: number; + + /** DagProcessorResource memoryGb. */ + public memoryGb: number; + + /** DagProcessorResource storageGb. */ + public storageGb: number; + + /** DagProcessorResource count. */ + public count: number; + + /** + * Creates a new DagProcessorResource instance using the specified properties. + * @param [properties] Properties to set + * @returns DagProcessorResource instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource; + + /** + * Encodes the specified DagProcessorResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. + * @param message DagProcessorResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DagProcessorResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. + * @param message DagProcessorResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DagProcessorResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DagProcessorResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource; + + /** + * Decodes a DagProcessorResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DagProcessorResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource; + + /** + * Verifies a DagProcessorResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DagProcessorResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DagProcessorResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource; + + /** + * Creates a plain object from a DagProcessorResource message. Also converts values to other types if specified. + * @param message DagProcessorResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DagProcessorResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DagProcessorResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a RecoveryConfig. */ + interface IRecoveryConfig { + + /** RecoveryConfig scheduledSnapshotsConfig */ + scheduledSnapshotsConfig?: (google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null); + } + + /** Represents a RecoveryConfig. */ + class RecoveryConfig implements IRecoveryConfig { + + /** + * Constructs a new RecoveryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig); + + /** RecoveryConfig scheduledSnapshotsConfig. */ + public scheduledSnapshotsConfig?: (google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null); + + /** + * Creates a new RecoveryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RecoveryConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + + /** + * Encodes the specified RecoveryConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. + * @param message RecoveryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecoveryConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. + * @param message RecoveryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IRecoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecoveryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecoveryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + + /** + * Decodes a RecoveryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecoveryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + + /** + * Verifies a RecoveryConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecoveryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecoveryConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.RecoveryConfig; + + /** + * Creates a plain object from a RecoveryConfig message. Also converts values to other types if specified. + * @param message RecoveryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.RecoveryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecoveryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecoveryConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ScheduledSnapshotsConfig. */ + interface IScheduledSnapshotsConfig { + + /** ScheduledSnapshotsConfig enabled */ + enabled?: (boolean|null); + + /** ScheduledSnapshotsConfig snapshotLocation */ + snapshotLocation?: (string|null); + + /** ScheduledSnapshotsConfig snapshotCreationSchedule */ + snapshotCreationSchedule?: (string|null); + + /** ScheduledSnapshotsConfig timeZone */ + timeZone?: (string|null); + } + + /** Represents a ScheduledSnapshotsConfig. */ + class ScheduledSnapshotsConfig implements IScheduledSnapshotsConfig { + + /** + * Constructs a new ScheduledSnapshotsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig); + + /** ScheduledSnapshotsConfig enabled. */ + public enabled: boolean; + + /** ScheduledSnapshotsConfig snapshotLocation. */ + public snapshotLocation: string; + + /** ScheduledSnapshotsConfig snapshotCreationSchedule. */ + public snapshotCreationSchedule: string; + + /** ScheduledSnapshotsConfig timeZone. */ + public timeZone: string; + + /** + * Creates a new ScheduledSnapshotsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ScheduledSnapshotsConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + + /** + * Encodes the specified ScheduledSnapshotsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. + * @param message ScheduledSnapshotsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ScheduledSnapshotsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. + * @param message ScheduledSnapshotsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ScheduledSnapshotsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + + /** + * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ScheduledSnapshotsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + + /** + * Verifies a ScheduledSnapshotsConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ScheduledSnapshotsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ScheduledSnapshotsConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig; + + /** + * Creates a plain object from a ScheduledSnapshotsConfig message. Also converts values to other types if specified. + * @param message ScheduledSnapshotsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ScheduledSnapshotsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ScheduledSnapshotsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MasterAuthorizedNetworksConfig. */ + interface IMasterAuthorizedNetworksConfig { + + /** MasterAuthorizedNetworksConfig enabled */ + enabled?: (boolean|null); + + /** MasterAuthorizedNetworksConfig cidrBlocks */ + cidrBlocks?: (google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null); + } + + /** Represents a MasterAuthorizedNetworksConfig. */ + class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig { + + /** + * Constructs a new MasterAuthorizedNetworksConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig); + + /** MasterAuthorizedNetworksConfig enabled. */ + public enabled: boolean; + + /** MasterAuthorizedNetworksConfig cidrBlocks. */ + public cidrBlocks: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]; + + /** + * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MasterAuthorizedNetworksConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; + + /** + * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @param message MasterAuthorizedNetworksConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @param message MasterAuthorizedNetworksConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; + + /** + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; + + /** + * Verifies a MasterAuthorizedNetworksConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MasterAuthorizedNetworksConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig; + + /** + * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. + * @param message MasterAuthorizedNetworksConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MasterAuthorizedNetworksConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MasterAuthorizedNetworksConfig { + + /** Properties of a CidrBlock. */ + interface ICidrBlock { + + /** CidrBlock displayName */ + displayName?: (string|null); + + /** CidrBlock cidrBlock */ + cidrBlock?: (string|null); + } + + /** Represents a CidrBlock. */ + class CidrBlock implements ICidrBlock { + + /** + * Constructs a new CidrBlock. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock); + + /** CidrBlock displayName. */ + public displayName: string; + + /** CidrBlock cidrBlock. */ + public cidrBlock: string; + + /** + * Creates a new CidrBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns CidrBlock instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Encodes the specified CidrBlock message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @param message CidrBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @param message CidrBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CidrBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CidrBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Decodes a CidrBlock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CidrBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Verifies a CidrBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CidrBlock + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. + * @param message CidrBlock + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CidrBlock to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CidrBlock + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a CloudDataLineageIntegration. */ + interface ICloudDataLineageIntegration { + + /** CloudDataLineageIntegration enabled */ + enabled?: (boolean|null); + } + + /** Represents a CloudDataLineageIntegration. */ + class CloudDataLineageIntegration implements ICloudDataLineageIntegration { + + /** + * Constructs a new CloudDataLineageIntegration. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration); + + /** CloudDataLineageIntegration enabled. */ + public enabled: boolean; + + /** + * Creates a new CloudDataLineageIntegration instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudDataLineageIntegration instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration): google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration; + + /** + * Encodes the specified CloudDataLineageIntegration message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.verify|verify} messages. + * @param message CloudDataLineageIntegration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CloudDataLineageIntegration message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.verify|verify} messages. + * @param message CloudDataLineageIntegration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CloudDataLineageIntegration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudDataLineageIntegration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration; + + /** + * Decodes a CloudDataLineageIntegration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CloudDataLineageIntegration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration; + + /** + * Verifies a CloudDataLineageIntegration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CloudDataLineageIntegration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CloudDataLineageIntegration + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration; + + /** + * Creates a plain object from a CloudDataLineageIntegration message. Also converts values to other types if specified. + * @param message CloudDataLineageIntegration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CloudDataLineageIntegration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CloudDataLineageIntegration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Environment. */ + interface IEnvironment { + + /** Environment name */ + name?: (string|null); + + /** Environment config */ + config?: (google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null); + + /** Environment uuid */ + uuid?: (string|null); + + /** Environment state */ + state?: (google.cloud.orchestration.airflow.service.v1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1.Environment.State|null); + + /** Environment createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Environment updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Environment labels */ + labels?: ({ [k: string]: string }|null); + + /** Environment satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Environment storageConfig */ + storageConfig?: (google.cloud.orchestration.airflow.service.v1.IStorageConfig|null); + } + + /** Represents an Environment. */ + class Environment implements IEnvironment { + + /** + * Constructs a new Environment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironment); + + /** Environment name. */ + public name: string; + + /** Environment config. */ + public config?: (google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null); + + /** Environment uuid. */ + public uuid: string; + + /** Environment state. */ + public state: (google.cloud.orchestration.airflow.service.v1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1.Environment.State); + + /** Environment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Environment updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Environment labels. */ + public labels: { [k: string]: string }; + + /** Environment satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Environment storageConfig. */ + public storageConfig?: (google.cloud.orchestration.airflow.service.v1.IStorageConfig|null); + + /** + * Creates a new Environment instance using the specified properties. + * @param [properties] Properties to set + * @returns Environment instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironment): google.cloud.orchestration.airflow.service.v1.Environment; + + /** + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Environment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Environment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.Environment; + + /** + * Decodes an Environment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Environment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.Environment; + + /** + * Verifies an Environment message. + * @param message Plain 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 Environment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Environment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.Environment; + + /** + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @param message Environment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Environment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Environment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Environment { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + RUNNING = 2, + UPDATING = 3, + DELETING = 4, + ERROR = 5 + } + } + + /** Properties of a CheckUpgradeResponse. */ + interface ICheckUpgradeResponse { + + /** CheckUpgradeResponse buildLogUri */ + buildLogUri?: (string|null); + + /** CheckUpgradeResponse containsPypiModulesConflict */ + containsPypiModulesConflict?: (google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|null); + + /** CheckUpgradeResponse pypiConflictBuildLogExtract */ + pypiConflictBuildLogExtract?: (string|null); + + /** CheckUpgradeResponse imageVersion */ + imageVersion?: (string|null); + + /** CheckUpgradeResponse pypiDependencies */ + pypiDependencies?: ({ [k: string]: string }|null); + } + + /** Represents a CheckUpgradeResponse. */ + class CheckUpgradeResponse implements ICheckUpgradeResponse { + + /** + * Constructs a new CheckUpgradeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse); + + /** CheckUpgradeResponse buildLogUri. */ + public buildLogUri: string; + + /** CheckUpgradeResponse containsPypiModulesConflict. */ + public containsPypiModulesConflict: (google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult); + + /** CheckUpgradeResponse pypiConflictBuildLogExtract. */ + public pypiConflictBuildLogExtract: string; + + /** CheckUpgradeResponse imageVersion. */ + public imageVersion: string; + + /** CheckUpgradeResponse pypiDependencies. */ + public pypiDependencies: { [k: string]: string }; + + /** + * Creates a new CheckUpgradeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckUpgradeResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + + /** + * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. + * @param message CheckUpgradeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. + * @param message CheckUpgradeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckUpgradeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckUpgradeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + + /** + * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckUpgradeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + + /** + * Verifies a CheckUpgradeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckUpgradeResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse; + + /** + * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified. + * @param message CheckUpgradeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckUpgradeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CheckUpgradeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CheckUpgradeResponse { + + /** ConflictResult enum. */ + enum ConflictResult { + CONFLICT_RESULT_UNSPECIFIED = 0, + CONFLICT = 1, + NO_CONFLICT = 2 + } + } + + /** Properties of a DataRetentionConfig. */ + interface IDataRetentionConfig { + + /** DataRetentionConfig taskLogsRetentionConfig */ + taskLogsRetentionConfig?: (google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig|null); + } + + /** Represents a DataRetentionConfig. */ + class DataRetentionConfig implements IDataRetentionConfig { + + /** + * Constructs a new DataRetentionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig); + + /** DataRetentionConfig taskLogsRetentionConfig. */ + public taskLogsRetentionConfig?: (google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig|null); + + /** + * Creates a new DataRetentionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataRetentionConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig): google.cloud.orchestration.airflow.service.v1.DataRetentionConfig; + + /** + * Encodes the specified DataRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.verify|verify} messages. + * @param message DataRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.verify|verify} messages. + * @param message DataRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.DataRetentionConfig; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.DataRetentionConfig; + + /** + * Verifies a DataRetentionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataRetentionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DataRetentionConfig; + + /** + * Creates a plain object from a DataRetentionConfig message. Also converts values to other types if specified. + * @param message DataRetentionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.DataRetentionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataRetentionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataRetentionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TaskLogsRetentionConfig. */ + interface ITaskLogsRetentionConfig { + + /** TaskLogsRetentionConfig storageMode */ + storageMode?: (google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode|keyof typeof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode|null); + } + + /** Represents a TaskLogsRetentionConfig. */ + class TaskLogsRetentionConfig implements ITaskLogsRetentionConfig { + + /** + * Constructs a new TaskLogsRetentionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig); + + /** TaskLogsRetentionConfig storageMode. */ + public storageMode: (google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode|keyof typeof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode); + + /** + * Creates a new TaskLogsRetentionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskLogsRetentionConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig): google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig; + + /** + * Encodes the specified TaskLogsRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.verify|verify} messages. + * @param message TaskLogsRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TaskLogsRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.verify|verify} messages. + * @param message TaskLogsRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig; + + /** + * Verifies a TaskLogsRetentionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TaskLogsRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskLogsRetentionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig; + + /** + * Creates a plain object from a TaskLogsRetentionConfig message. Also converts values to other types if specified. + * @param message TaskLogsRetentionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TaskLogsRetentionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TaskLogsRetentionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace TaskLogsRetentionConfig { + + /** TaskLogsStorageMode enum. */ + enum TaskLogsStorageMode { + TASK_LOGS_STORAGE_MODE_UNSPECIFIED = 0, + CLOUD_LOGGING_AND_CLOUD_STORAGE = 1, + CLOUD_LOGGING_ONLY = 2 + } + } + + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { + + /** OperationMetadata state */ + state?: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|null); + + /** OperationMetadata operationType */ + operationType?: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|null); + + /** OperationMetadata resource */ + resource?: (string|null); + + /** OperationMetadata resourceUuid */ + resourceUuid?: (string|null); + + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { + + /** + * Constructs a new OperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IOperationMetadata); + + /** OperationMetadata state. */ + public state: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.State); + + /** OperationMetadata operationType. */ + public operationType: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type); + + /** OperationMetadata resource. */ + public resource: string; + + /** OperationMetadata resourceUuid. */ + public resourceUuid: string; + + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new OperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationMetadata instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IOperationMetadata): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + + /** + * Verifies an OperationMetadata message. + * @param message Plain 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 OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.OperationMetadata; + + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace OperationMetadata { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + RUNNING = 2, + SUCCEEDED = 3, + SUCCESSFUL = 3, + FAILED = 4 + } + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + CREATE = 1, + DELETE = 2, + UPDATE = 3, + CHECK = 4, + SAVE_SNAPSHOT = 5, + LOAD_SNAPSHOT = 6, + DATABASE_FAILOVER = 7 + } + } + + /** Represents an ImageVersions */ + class ImageVersions extends $protobuf.rpc.Service { + + /** + * Constructs a new ImageVersions service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ImageVersions service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ImageVersions; + + /** + * Calls ListImageVersions. + * @param request ListImageVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListImageVersionsResponse + */ + public listImageVersions(request: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, callback: google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersionsCallback): void; + + /** + * Calls ListImageVersions. + * @param request ListImageVersionsRequest message or plain object + * @returns Promise + */ + public listImageVersions(request: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest): Promise; + } + + namespace ImageVersions { + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.ImageVersions|listImageVersions}. + * @param error Error, if any + * @param [response] ListImageVersionsResponse + */ + type ListImageVersionsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse) => void; + } + + /** Properties of a ListImageVersionsRequest. */ + interface IListImageVersionsRequest { + + /** ListImageVersionsRequest parent */ + parent?: (string|null); + + /** ListImageVersionsRequest pageSize */ + pageSize?: (number|null); + + /** ListImageVersionsRequest pageToken */ + pageToken?: (string|null); + + /** ListImageVersionsRequest includePastReleases */ + includePastReleases?: (boolean|null); + } + + /** Represents a ListImageVersionsRequest. */ + class ListImageVersionsRequest implements IListImageVersionsRequest { + + /** + * Constructs a new ListImageVersionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest); + + /** ListImageVersionsRequest parent. */ + public parent: string; + + /** ListImageVersionsRequest pageSize. */ + public pageSize: number; + + /** ListImageVersionsRequest pageToken. */ + public pageToken: string; + + /** ListImageVersionsRequest includePastReleases. */ + public includePastReleases: boolean; + + /** + * Creates a new ListImageVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListImageVersionsRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + + /** + * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. + * @param message ListImageVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. + * @param message ListImageVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListImageVersionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListImageVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + + /** + * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListImageVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + + /** + * Verifies a ListImageVersionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListImageVersionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest; + + /** + * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified. + * @param message ListImageVersionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListImageVersionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListImageVersionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListImageVersionsResponse. */ + interface IListImageVersionsResponse { + + /** ListImageVersionsResponse imageVersions */ + imageVersions?: (google.cloud.orchestration.airflow.service.v1.IImageVersion[]|null); + + /** ListImageVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListImageVersionsResponse. */ + class ListImageVersionsResponse implements IListImageVersionsResponse { + + /** + * Constructs a new ListImageVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse); + + /** ListImageVersionsResponse imageVersions. */ + public imageVersions: google.cloud.orchestration.airflow.service.v1.IImageVersion[]; + + /** ListImageVersionsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListImageVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListImageVersionsResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + + /** + * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. + * @param message ListImageVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. + * @param message ListImageVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListImageVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListImageVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + + /** + * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListImageVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + + /** + * Verifies a ListImageVersionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListImageVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse; + + /** + * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified. + * @param message ListImageVersionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListImageVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListImageVersionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ImageVersion. */ + interface IImageVersion { + + /** ImageVersion imageVersionId */ + imageVersionId?: (string|null); + + /** ImageVersion isDefault */ + isDefault?: (boolean|null); + + /** ImageVersion supportedPythonVersions */ + supportedPythonVersions?: (string[]|null); + + /** ImageVersion releaseDate */ + releaseDate?: (google.type.IDate|null); + + /** ImageVersion creationDisabled */ + creationDisabled?: (boolean|null); + + /** ImageVersion upgradeDisabled */ + upgradeDisabled?: (boolean|null); + } + + /** Represents an ImageVersion. */ + class ImageVersion implements IImageVersion { + + /** + * Constructs a new ImageVersion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1.IImageVersion); + + /** ImageVersion imageVersionId. */ + public imageVersionId: string; + + /** ImageVersion isDefault. */ + public isDefault: boolean; + + /** ImageVersion supportedPythonVersions. */ + public supportedPythonVersions: string[]; + + /** ImageVersion releaseDate. */ + public releaseDate?: (google.type.IDate|null); + + /** ImageVersion creationDisabled. */ + public creationDisabled: boolean; + + /** ImageVersion upgradeDisabled. */ + public upgradeDisabled: boolean; + + /** + * Creates a new ImageVersion instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageVersion instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1.IImageVersion): google.cloud.orchestration.airflow.service.v1.ImageVersion; + + /** + * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. + * @param message ImageVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. + * @param message ImageVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageVersion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.ImageVersion; + + /** + * Decodes an ImageVersion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.ImageVersion; + + /** + * Verifies an ImageVersion message. + * @param message Plain 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 ImageVersion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageVersion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ImageVersion; + + /** + * Creates a plain object from an ImageVersion message. Also converts values to other types if specified. + * @param message ImageVersion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1.ImageVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageVersion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ImageVersion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace v1beta1. */ + namespace v1beta1 { + + /** Represents an Environments */ + class Environments extends $protobuf.rpc.Service { + + /** + * Constructs a new Environments service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Environments service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; + + /** + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironmentCallback): void; + + /** + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @returns Promise + */ + public createEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest): Promise; + + /** + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Environment + */ + public getEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironmentCallback): void; + + /** + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @returns Promise + */ + public getEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest): Promise; + + /** + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse + */ + public listEnvironments(request: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironmentsCallback): void; + + /** + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @returns Promise + */ + public listEnvironments(request: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest): Promise; + + /** + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironmentCallback): void; + + /** + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @returns Promise + */ + public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest): Promise; + + /** + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironmentCallback): void; + + /** + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object + * @returns Promise + */ + public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest): Promise; + + /** + * Calls RestartWebServer. + * @param request RestartWebServerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public restartWebServer(request: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServerCallback): void; + + /** + * Calls RestartWebServer. + * @param request RestartWebServerRequest message or plain object + * @returns Promise + */ + public restartWebServer(request: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest): Promise; + + /** + * Calls CheckUpgrade. + * @param request CheckUpgradeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public checkUpgrade(request: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgradeCallback): void; + + /** + * Calls CheckUpgrade. + * @param request CheckUpgradeRequest message or plain object + * @returns Promise + */ + public checkUpgrade(request: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest): Promise; + + /** + * Calls ExecuteAirflowCommand. + * @param request ExecuteAirflowCommandRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecuteAirflowCommandResponse + */ + public executeAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ExecuteAirflowCommandCallback): void; + + /** + * Calls ExecuteAirflowCommand. + * @param request ExecuteAirflowCommandRequest message or plain object + * @returns Promise + */ + public executeAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest): Promise; + + /** + * Calls StopAirflowCommand. + * @param request StopAirflowCommandRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StopAirflowCommandResponse + */ + public stopAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.StopAirflowCommandCallback): void; + + /** + * Calls StopAirflowCommand. + * @param request StopAirflowCommandRequest message or plain object + * @returns Promise + */ + public stopAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest): Promise; + + /** + * Calls PollAirflowCommand. + * @param request PollAirflowCommandRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PollAirflowCommandResponse + */ + public pollAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.PollAirflowCommandCallback): void; + + /** + * Calls PollAirflowCommand. + * @param request PollAirflowCommandRequest message or plain object + * @returns Promise + */ + public pollAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest): Promise; + + /** + * Calls ListWorkloads. + * @param request ListWorkloadsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWorkloadsResponse + */ + public listWorkloads(request: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ListWorkloadsCallback): void; + + /** + * Calls ListWorkloads. + * @param request ListWorkloadsRequest message or plain object + * @returns Promise + */ + public listWorkloads(request: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest): Promise; + + /** + * Calls CreateUserWorkloadsSecret. + * @param request CreateUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsSecret + */ + public createUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsSecretCallback): void; + + /** + * Calls CreateUserWorkloadsSecret. + * @param request CreateUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public createUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest): Promise; + + /** + * Calls GetUserWorkloadsSecret. + * @param request GetUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsSecret + */ + public getUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsSecretCallback): void; + + /** + * Calls GetUserWorkloadsSecret. + * @param request GetUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public getUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest): Promise; + + /** + * Calls ListUserWorkloadsSecrets. + * @param request ListUserWorkloadsSecretsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUserWorkloadsSecretsResponse + */ + public listUserWorkloadsSecrets(request: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsSecretsCallback): void; + + /** + * Calls ListUserWorkloadsSecrets. + * @param request ListUserWorkloadsSecretsRequest message or plain object + * @returns Promise + */ + public listUserWorkloadsSecrets(request: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest): Promise; + + /** + * Calls UpdateUserWorkloadsSecret. + * @param request UpdateUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsSecret + */ + public updateUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsSecretCallback): void; + + /** + * Calls UpdateUserWorkloadsSecret. + * @param request UpdateUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public updateUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest): Promise; + + /** + * Calls DeleteUserWorkloadsSecret. + * @param request DeleteUserWorkloadsSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsSecretCallback): void; + + /** + * Calls DeleteUserWorkloadsSecret. + * @param request DeleteUserWorkloadsSecretRequest message or plain object + * @returns Promise + */ + public deleteUserWorkloadsSecret(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest): Promise; + + /** + * Calls CreateUserWorkloadsConfigMap. + * @param request CreateUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + */ + public createUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsConfigMapCallback): void; + + /** + * Calls CreateUserWorkloadsConfigMap. + * @param request CreateUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public createUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls GetUserWorkloadsConfigMap. + * @param request GetUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + */ + public getUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsConfigMapCallback): void; + + /** + * Calls GetUserWorkloadsConfigMap. + * @param request GetUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public getUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls ListUserWorkloadsConfigMaps. + * @param request ListUserWorkloadsConfigMapsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUserWorkloadsConfigMapsResponse + */ + public listUserWorkloadsConfigMaps(request: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsConfigMapsCallback): void; + + /** + * Calls ListUserWorkloadsConfigMaps. + * @param request ListUserWorkloadsConfigMapsRequest message or plain object + * @returns Promise + */ + public listUserWorkloadsConfigMaps(request: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest): Promise; + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @param request UpdateUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + */ + public updateUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsConfigMapCallback): void; + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @param request UpdateUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public updateUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @param request DeleteUserWorkloadsConfigMapRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsConfigMapCallback): void; + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @param request DeleteUserWorkloadsConfigMapRequest message or plain object + * @returns Promise + */ + public deleteUserWorkloadsConfigMap(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest): Promise; + + /** + * Calls SaveSnapshot. + * @param request SaveSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public saveSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.SaveSnapshotCallback): void; + + /** + * Calls SaveSnapshot. + * @param request SaveSnapshotRequest message or plain object + * @returns Promise + */ + public saveSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest): Promise; + + /** + * Calls LoadSnapshot. + * @param request LoadSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public loadSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.LoadSnapshotCallback): void; + + /** + * Calls LoadSnapshot. + * @param request LoadSnapshotRequest message or plain object + * @returns Promise + */ + public loadSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest): Promise; + + /** + * Calls DatabaseFailover. + * @param request DatabaseFailoverRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public databaseFailover(request: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DatabaseFailoverCallback): void; + + /** + * Calls DatabaseFailover. + * @param request DatabaseFailoverRequest message or plain object + * @returns Promise + */ + public databaseFailover(request: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest): Promise; + + /** + * Calls FetchDatabaseProperties. + * @param request FetchDatabasePropertiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FetchDatabasePropertiesResponse + */ + public fetchDatabaseProperties(request: google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.FetchDatabasePropertiesCallback): void; + + /** + * Calls FetchDatabaseProperties. + * @param request FetchDatabasePropertiesRequest message or plain object + * @returns Promise + */ + public fetchDatabaseProperties(request: google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest): Promise; + } + + namespace Environments { + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createEnvironment}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getEnvironment}. + * @param error Error, if any + * @param [response] Environment + */ + type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.Environment) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listEnvironments}. + * @param error Error, if any + * @param [response] ListEnvironmentsResponse + */ + type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateEnvironment}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteEnvironment}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|restartWebServer}. + * @param error Error, if any + * @param [response] Operation + */ + type RestartWebServerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|checkUpgrade}. + * @param error Error, if any + * @param [response] Operation + */ + type CheckUpgradeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|executeAirflowCommand}. + * @param error Error, if any + * @param [response] ExecuteAirflowCommandResponse + */ + type ExecuteAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|stopAirflowCommand}. + * @param error Error, if any + * @param [response] StopAirflowCommandResponse + */ + type StopAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|pollAirflowCommand}. + * @param error Error, if any + * @param [response] PollAirflowCommandResponse + */ + type PollAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listWorkloads}. + * @param error Error, if any + * @param [response] ListWorkloadsResponse + */ + type ListWorkloadsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] UserWorkloadsSecret + */ + type CreateUserWorkloadsSecretCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] UserWorkloadsSecret + */ + type GetUserWorkloadsSecretCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listUserWorkloadsSecrets}. + * @param error Error, if any + * @param [response] ListUserWorkloadsSecretsResponse + */ + type ListUserWorkloadsSecretsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] UserWorkloadsSecret + */ + type UpdateUserWorkloadsSecretCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteUserWorkloadsSecret}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteUserWorkloadsSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] UserWorkloadsConfigMap + */ + type CreateUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] UserWorkloadsConfigMap + */ + type GetUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listUserWorkloadsConfigMaps}. + * @param error Error, if any + * @param [response] ListUserWorkloadsConfigMapsResponse + */ + type ListUserWorkloadsConfigMapsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] UserWorkloadsConfigMap + */ + type UpdateUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteUserWorkloadsConfigMap}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteUserWorkloadsConfigMapCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|saveSnapshot}. + * @param error Error, if any + * @param [response] Operation + */ + type SaveSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|loadSnapshot}. + * @param error Error, if any + * @param [response] Operation + */ + type LoadSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|databaseFailover}. + * @param error Error, if any + * @param [response] Operation + */ + type DatabaseFailoverCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|fetchDatabaseProperties}. + * @param error Error, if any + * @param [response] FetchDatabasePropertiesResponse + */ + type FetchDatabasePropertiesCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse) => void; + } + + /** Properties of a CreateEnvironmentRequest. */ + interface ICreateEnvironmentRequest { + + /** CreateEnvironmentRequest parent */ + parent?: (string|null); + + /** CreateEnvironmentRequest environment */ + environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + } + + /** Represents a CreateEnvironmentRequest. */ + class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + + /** + * Constructs a new CreateEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest); + + /** CreateEnvironmentRequest parent. */ + public parent: string; + + /** CreateEnvironmentRequest environment. */ + public environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + + /** + * Creates a new CreateEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEnvironmentRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + + /** + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + + /** + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + + /** + * Verifies a CreateEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + + /** + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * @param message CreateEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetEnvironmentRequest. */ + interface IGetEnvironmentRequest { + + /** GetEnvironmentRequest name */ + name?: (string|null); + } + + /** Represents a GetEnvironmentRequest. */ + class GetEnvironmentRequest implements IGetEnvironmentRequest { + + /** + * Constructs a new GetEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest); + + /** GetEnvironmentRequest name. */ + public name: string; + + /** + * Creates a new GetEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEnvironmentRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + + /** + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + + /** + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + + /** + * Verifies a GetEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + + /** + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * @param message GetEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListEnvironmentsRequest. */ + interface IListEnvironmentsRequest { + + /** ListEnvironmentsRequest parent */ + parent?: (string|null); + + /** ListEnvironmentsRequest pageSize */ + pageSize?: (number|null); + + /** ListEnvironmentsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListEnvironmentsRequest. */ + class ListEnvironmentsRequest implements IListEnvironmentsRequest { + + /** + * Constructs a new ListEnvironmentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest); + + /** ListEnvironmentsRequest parent. */ + public parent: string; + + /** ListEnvironmentsRequest pageSize. */ + public pageSize: number; + + /** ListEnvironmentsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListEnvironmentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEnvironmentsRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + + /** + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEnvironmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + + /** + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEnvironmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + + /** + * Verifies a ListEnvironmentsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEnvironmentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + + /** + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * @param message ListEnvironmentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEnvironmentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListEnvironmentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListEnvironmentsResponse. */ + interface IListEnvironmentsResponse { + + /** ListEnvironmentsResponse environments */ + environments?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[]|null); + + /** ListEnvironmentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListEnvironmentsResponse. */ + class ListEnvironmentsResponse implements IListEnvironmentsResponse { + + /** + * Constructs a new ListEnvironmentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse); + + /** ListEnvironmentsResponse environments. */ + public environments: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[]; + + /** ListEnvironmentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListEnvironmentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEnvironmentsResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + + /** + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEnvironmentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + + /** + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEnvironmentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + + /** + * Verifies a ListEnvironmentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEnvironmentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + + /** + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * @param message ListEnvironmentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEnvironmentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListEnvironmentsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteEnvironmentRequest. */ + interface IDeleteEnvironmentRequest { + + /** DeleteEnvironmentRequest name */ + name?: (string|null); + } + + /** Represents a DeleteEnvironmentRequest. */ + class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { + + /** + * Constructs a new DeleteEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest); + + /** DeleteEnvironmentRequest name. */ + public name: string; + + /** + * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteEnvironmentRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + + /** + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + + /** + * Verifies a DeleteEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + + /** + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @param message DeleteEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateEnvironmentRequest. */ + interface IUpdateEnvironmentRequest { + + /** UpdateEnvironmentRequest name */ + name?: (string|null); + + /** UpdateEnvironmentRequest environment */ + environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + + /** UpdateEnvironmentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateEnvironmentRequest. */ + class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + + /** + * Constructs a new UpdateEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest); + + /** UpdateEnvironmentRequest name. */ + public name: string; + + /** UpdateEnvironmentRequest environment. */ + public environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + + /** UpdateEnvironmentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEnvironmentRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + + /** + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + + /** + * Verifies an UpdateEnvironmentRequest message. + * @param message Plain 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 UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + + /** + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @param message UpdateEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RestartWebServerRequest. */ + interface IRestartWebServerRequest { + + /** RestartWebServerRequest name */ + name?: (string|null); + } + + /** Represents a RestartWebServerRequest. */ + class RestartWebServerRequest implements IRestartWebServerRequest { + + /** + * Constructs a new RestartWebServerRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest); + + /** RestartWebServerRequest name. */ + public name: string; + + /** + * Creates a new RestartWebServerRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RestartWebServerRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + + /** + * Encodes the specified RestartWebServerRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. + * @param message RestartWebServerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RestartWebServerRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. + * @param message RestartWebServerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RestartWebServerRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestartWebServerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + + /** + * Decodes a RestartWebServerRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RestartWebServerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + + /** + * Verifies a RestartWebServerRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RestartWebServerRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestartWebServerRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + + /** + * Creates a plain object from a RestartWebServerRequest message. Also converts values to other types if specified. + * @param message RestartWebServerRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RestartWebServerRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RestartWebServerRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteAirflowCommandRequest. */ + interface IExecuteAirflowCommandRequest { + + /** ExecuteAirflowCommandRequest environment */ + environment?: (string|null); + + /** ExecuteAirflowCommandRequest command */ + command?: (string|null); + + /** ExecuteAirflowCommandRequest subcommand */ + subcommand?: (string|null); + + /** ExecuteAirflowCommandRequest parameters */ + parameters?: (string[]|null); + } + + /** Represents an ExecuteAirflowCommandRequest. */ + class ExecuteAirflowCommandRequest implements IExecuteAirflowCommandRequest { + + /** + * Constructs a new ExecuteAirflowCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest); + + /** ExecuteAirflowCommandRequest environment. */ + public environment: string; + + /** ExecuteAirflowCommandRequest command. */ + public command: string; + + /** ExecuteAirflowCommandRequest subcommand. */ + public subcommand: string; + + /** ExecuteAirflowCommandRequest parameters. */ + public parameters: string[]; + + /** + * Creates a new ExecuteAirflowCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteAirflowCommandRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + + /** + * Encodes the specified ExecuteAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. + * @param message ExecuteAirflowCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. + * @param message ExecuteAirflowCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + + /** + * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + + /** + * Verifies an ExecuteAirflowCommandRequest message. + * @param message Plain 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 ExecuteAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteAirflowCommandRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + + /** + * Creates a plain object from an ExecuteAirflowCommandRequest message. Also converts values to other types if specified. + * @param message ExecuteAirflowCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteAirflowCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteAirflowCommandRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteAirflowCommandResponse. */ + interface IExecuteAirflowCommandResponse { + + /** ExecuteAirflowCommandResponse executionId */ + executionId?: (string|null); + + /** ExecuteAirflowCommandResponse pod */ + pod?: (string|null); + + /** ExecuteAirflowCommandResponse podNamespace */ + podNamespace?: (string|null); + + /** ExecuteAirflowCommandResponse error */ + error?: (string|null); + } + + /** Represents an ExecuteAirflowCommandResponse. */ + class ExecuteAirflowCommandResponse implements IExecuteAirflowCommandResponse { + + /** + * Constructs a new ExecuteAirflowCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse); + + /** ExecuteAirflowCommandResponse executionId. */ + public executionId: string; + + /** ExecuteAirflowCommandResponse pod. */ + public pod: string; + + /** ExecuteAirflowCommandResponse podNamespace. */ + public podNamespace: string; + + /** ExecuteAirflowCommandResponse error. */ + public error: string; + + /** + * Creates a new ExecuteAirflowCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteAirflowCommandResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + + /** + * Encodes the specified ExecuteAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. + * @param message ExecuteAirflowCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. + * @param message ExecuteAirflowCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + + /** + * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + + /** + * Verifies an ExecuteAirflowCommandResponse message. + * @param message Plain 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 ExecuteAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteAirflowCommandResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + + /** + * Creates a plain object from an ExecuteAirflowCommandResponse message. Also converts values to other types if specified. + * @param message ExecuteAirflowCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteAirflowCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteAirflowCommandResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopAirflowCommandRequest. */ + interface IStopAirflowCommandRequest { + + /** StopAirflowCommandRequest environment */ + environment?: (string|null); + + /** StopAirflowCommandRequest executionId */ + executionId?: (string|null); + + /** StopAirflowCommandRequest pod */ + pod?: (string|null); + + /** StopAirflowCommandRequest podNamespace */ + podNamespace?: (string|null); + + /** StopAirflowCommandRequest force */ + force?: (boolean|null); + } + + /** Represents a StopAirflowCommandRequest. */ + class StopAirflowCommandRequest implements IStopAirflowCommandRequest { + + /** + * Constructs a new StopAirflowCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest); + + /** StopAirflowCommandRequest environment. */ + public environment: string; + + /** StopAirflowCommandRequest executionId. */ + public executionId: string; + + /** StopAirflowCommandRequest pod. */ + public pod: string; + + /** StopAirflowCommandRequest podNamespace. */ + public podNamespace: string; + + /** StopAirflowCommandRequest force. */ + public force: boolean; + + /** + * Creates a new StopAirflowCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopAirflowCommandRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + + /** + * Encodes the specified StopAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. + * @param message StopAirflowCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. + * @param message StopAirflowCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopAirflowCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + + /** + * Decodes a StopAirflowCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + + /** + * Verifies a StopAirflowCommandRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopAirflowCommandRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + + /** + * Creates a plain object from a StopAirflowCommandRequest message. Also converts values to other types if specified. + * @param message StopAirflowCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopAirflowCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopAirflowCommandRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopAirflowCommandResponse. */ + interface IStopAirflowCommandResponse { + + /** StopAirflowCommandResponse isDone */ + isDone?: (boolean|null); + + /** StopAirflowCommandResponse output */ + output?: (string[]|null); + } + + /** Represents a StopAirflowCommandResponse. */ + class StopAirflowCommandResponse implements IStopAirflowCommandResponse { + + /** + * Constructs a new StopAirflowCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse); + + /** StopAirflowCommandResponse isDone. */ + public isDone: boolean; + + /** StopAirflowCommandResponse output. */ + public output: string[]; + + /** + * Creates a new StopAirflowCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StopAirflowCommandResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + + /** + * Encodes the specified StopAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. + * @param message StopAirflowCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. + * @param message StopAirflowCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopAirflowCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + + /** + * Decodes a StopAirflowCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + + /** + * Verifies a StopAirflowCommandResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopAirflowCommandResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + + /** + * Creates a plain object from a StopAirflowCommandResponse message. Also converts values to other types if specified. + * @param message StopAirflowCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopAirflowCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopAirflowCommandResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PollAirflowCommandRequest. */ + interface IPollAirflowCommandRequest { + + /** PollAirflowCommandRequest environment */ + environment?: (string|null); + + /** PollAirflowCommandRequest executionId */ + executionId?: (string|null); + + /** PollAirflowCommandRequest pod */ + pod?: (string|null); + + /** PollAirflowCommandRequest podNamespace */ + podNamespace?: (string|null); + + /** PollAirflowCommandRequest nextLineNumber */ + nextLineNumber?: (number|null); + } + + /** Represents a PollAirflowCommandRequest. */ + class PollAirflowCommandRequest implements IPollAirflowCommandRequest { + + /** + * Constructs a new PollAirflowCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest); + + /** PollAirflowCommandRequest environment. */ + public environment: string; + + /** PollAirflowCommandRequest executionId. */ + public executionId: string; + + /** PollAirflowCommandRequest pod. */ + public pod: string; + + /** PollAirflowCommandRequest podNamespace. */ + public podNamespace: string; + + /** PollAirflowCommandRequest nextLineNumber. */ + public nextLineNumber: number; + + /** + * Creates a new PollAirflowCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PollAirflowCommandRequest instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + + /** + * Encodes the specified PollAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. + * @param message PollAirflowCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PollAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. + * @param message PollAirflowCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PollAirflowCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PollAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + + /** + * Decodes a PollAirflowCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PollAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + + /** + * Verifies a PollAirflowCommandRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PollAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PollAirflowCommandRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + + /** + * Creates a plain object from a PollAirflowCommandRequest message. Also converts values to other types if specified. + * @param message PollAirflowCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PollAirflowCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PollAirflowCommandRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PollAirflowCommandResponse. */ + interface IPollAirflowCommandResponse { + + /** PollAirflowCommandResponse output */ + output?: (google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine[]|null); + + /** PollAirflowCommandResponse outputEnd */ + outputEnd?: (boolean|null); + + /** PollAirflowCommandResponse exitInfo */ + exitInfo?: (google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null); + } + + /** Represents a PollAirflowCommandResponse. */ + class PollAirflowCommandResponse implements IPollAirflowCommandResponse { + + /** + * Constructs a new PollAirflowCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse); + + /** PollAirflowCommandResponse output. */ + public output: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine[]; + + /** PollAirflowCommandResponse outputEnd. */ + public outputEnd: boolean; + + /** PollAirflowCommandResponse exitInfo. */ + public exitInfo?: (google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null); + + /** + * Creates a new PollAirflowCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PollAirflowCommandResponse instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + + /** + * Encodes the specified PollAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. + * @param message PollAirflowCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PollAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. + * @param message PollAirflowCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PollAirflowCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PollAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + + /** + * Decodes a PollAirflowCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PollAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + + /** + * Verifies a PollAirflowCommandResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PollAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PollAirflowCommandResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + + /** + * Creates a plain object from a PollAirflowCommandResponse message. Also converts values to other types if specified. + * @param message PollAirflowCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PollAirflowCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PollAirflowCommandResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PollAirflowCommandResponse { + + /** Properties of a Line. */ + interface ILine { + + /** Line lineNumber */ + lineNumber?: (number|null); + + /** Line content */ + content?: (string|null); + } + + /** Represents a Line. */ + class Line implements ILine { + + /** + * Constructs a new Line. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine); + + /** Line lineNumber. */ + public lineNumber: number; + + /** Line content. */ + public content: string; + + /** + * Creates a new Line instance using the specified properties. + * @param [properties] Properties to set + * @returns Line instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + + /** + * Encodes the specified Line message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. + * @param message Line message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. + * @param message Line message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Line message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Line + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + + /** + * Decodes a Line message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Line + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + + /** + * Verifies a Line message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Line message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Line + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + + /** + * Creates a plain object from a Line message. Also converts values to other types if specified. + * @param message Line + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Line to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Line + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExitInfo. */ + interface IExitInfo { + + /** ExitInfo exitCode */ + exitCode?: (number|null); + + /** ExitInfo error */ + error?: (string|null); + } + + /** Represents an ExitInfo. */ + class ExitInfo implements IExitInfo { + + /** + * Constructs a new ExitInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo); + + /** ExitInfo exitCode. */ + public exitCode: number; + + /** ExitInfo error. */ + public error: string; + + /** + * Creates a new ExitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ExitInfo instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + + /** + * Encodes the specified ExitInfo message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. + * @param message ExitInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExitInfo message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. + * @param message ExitInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExitInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + + /** + * Decodes an ExitInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + + /** + * Verifies an ExitInfo message. + * @param message Plain 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 ExitInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExitInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + + /** + * Creates a plain object from an ExitInfo message. Also converts values to other types if specified. + * @param message ExitInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExitInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExitInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a CreateUserWorkloadsSecretRequest. */ + interface ICreateUserWorkloadsSecretRequest { + + /** CreateUserWorkloadsSecretRequest parent */ + parent?: (string|null); + + /** CreateUserWorkloadsSecretRequest userWorkloadsSecret */ + userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null); + } + + /** Represents a CreateUserWorkloadsSecretRequest. */ + class CreateUserWorkloadsSecretRequest implements ICreateUserWorkloadsSecretRequest { + + /** + * Constructs a new CreateUserWorkloadsSecretRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest); + + /** CreateUserWorkloadsSecretRequest parent. */ + public parent: string; + + /** CreateUserWorkloadsSecretRequest userWorkloadsSecret. */ + public userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null); /** - * Calls RestartWebServer. - * @param request RestartWebServerRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateUserWorkloadsSecretRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateUserWorkloadsSecretRequest instance */ - public restartWebServer(request: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServerCallback): void; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest; /** - * Calls RestartWebServer. - * @param request RestartWebServerRequest message or plain object - * @returns Promise + * Encodes the specified CreateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message CreateUserWorkloadsSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public restartWebServer(request: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest): Promise; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CheckUpgrade. - * @param request CheckUpgradeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CreateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message CreateUserWorkloadsSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public checkUpgrade(request: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgradeCallback): void; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CheckUpgrade. - * @param request CheckUpgradeRequest message or plain object - * @returns Promise + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public checkUpgrade(request: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest; /** - * Calls ExecuteAirflowCommand. - * @param request ExecuteAirflowCommandRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecuteAirflowCommandResponse + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public executeAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ExecuteAirflowCommandCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest; /** - * Calls ExecuteAirflowCommand. - * @param request ExecuteAirflowCommandRequest message or plain object - * @returns Promise + * Verifies a CreateUserWorkloadsSecretRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public executeAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls StopAirflowCommand. - * @param request StopAirflowCommandRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StopAirflowCommandResponse + * Creates a CreateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateUserWorkloadsSecretRequest */ - public stopAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.StopAirflowCommandCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest; /** - * Calls StopAirflowCommand. - * @param request StopAirflowCommandRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message CreateUserWorkloadsSecretRequest + * @param [options] Conversion options + * @returns Plain object */ - public stopAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest): Promise; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls PollAirflowCommand. - * @param request PollAirflowCommandRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PollAirflowCommandResponse + * Converts this CreateUserWorkloadsSecretRequest to JSON. + * @returns JSON object */ - public pollAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.PollAirflowCommandCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls PollAirflowCommand. - * @param request PollAirflowCommandRequest message or plain object - * @returns Promise + * Gets the default type url for CreateUserWorkloadsSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public pollAirflowCommand(request: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetUserWorkloadsSecretRequest. */ + interface IGetUserWorkloadsSecretRequest { + + /** GetUserWorkloadsSecretRequest name */ + name?: (string|null); + } + + /** Represents a GetUserWorkloadsSecretRequest. */ + class GetUserWorkloadsSecretRequest implements IGetUserWorkloadsSecretRequest { /** - * Calls SaveSnapshot. - * @param request SaveSnapshotRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new GetUserWorkloadsSecretRequest. + * @param [properties] Properties to set */ - public saveSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.SaveSnapshotCallback): void; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest); + + /** GetUserWorkloadsSecretRequest name. */ + public name: string; /** - * Calls SaveSnapshot. - * @param request SaveSnapshotRequest message or plain object - * @returns Promise + * Creates a new GetUserWorkloadsSecretRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUserWorkloadsSecretRequest instance */ - public saveSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest): Promise; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest; /** - * Calls LoadSnapshot. - * @param request LoadSnapshotRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified GetUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest.verify|verify} messages. + * @param message GetUserWorkloadsSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public loadSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.LoadSnapshotCallback): void; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls LoadSnapshot. - * @param request LoadSnapshotRequest message or plain object - * @returns Promise + * Encodes the specified GetUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest.verify|verify} messages. + * @param message GetUserWorkloadsSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public loadSnapshot(request: google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest): Promise; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DatabaseFailover. - * @param request DatabaseFailoverRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public databaseFailover(request: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DatabaseFailoverCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest; /** - * Calls DatabaseFailover. - * @param request DatabaseFailoverRequest message or plain object - * @returns Promise + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public databaseFailover(request: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest; /** - * Calls FetchDatabaseProperties. - * @param request FetchDatabasePropertiesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FetchDatabasePropertiesResponse + * Verifies a GetUserWorkloadsSecretRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public fetchDatabaseProperties(request: google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.FetchDatabasePropertiesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls FetchDatabaseProperties. - * @param request FetchDatabasePropertiesRequest message or plain object - * @returns Promise + * Creates a GetUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUserWorkloadsSecretRequest */ - public fetchDatabaseProperties(request: google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest): Promise; - } - - namespace Environments { + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a GetUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message GetUserWorkloadsSecretRequest + * @param [options] Conversion options + * @returns Plain object */ - type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getEnvironment}. - * @param error Error, if any - * @param [response] Environment + * Converts this GetUserWorkloadsSecretRequest to JSON. + * @returns JSON object */ - type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.Environment) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listEnvironments}. - * @param error Error, if any - * @param [response] ListEnvironmentsResponse + * Gets the default type url for GetUserWorkloadsSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListUserWorkloadsSecretsRequest. */ + interface IListUserWorkloadsSecretsRequest { + + /** ListUserWorkloadsSecretsRequest parent */ + parent?: (string|null); + + /** ListUserWorkloadsSecretsRequest pageSize */ + pageSize?: (number|null); + + /** ListUserWorkloadsSecretsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListUserWorkloadsSecretsRequest. */ + class ListUserWorkloadsSecretsRequest implements IListUserWorkloadsSecretsRequest { /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListUserWorkloadsSecretsRequest. + * @param [properties] Properties to set */ - type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest); + + /** ListUserWorkloadsSecretsRequest parent. */ + public parent: string; + + /** ListUserWorkloadsSecretsRequest pageSize. */ + public pageSize: number; + + /** ListUserWorkloadsSecretsRequest pageToken. */ + public pageToken: string; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Creates a new ListUserWorkloadsSecretsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUserWorkloadsSecretsRequest instance */ - type DeleteEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|restartWebServer}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified ListUserWorkloadsSecretsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest.verify|verify} messages. + * @param message ListUserWorkloadsSecretsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type RestartWebServerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|checkUpgrade}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified ListUserWorkloadsSecretsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest.verify|verify} messages. + * @param message ListUserWorkloadsSecretsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CheckUpgradeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|executeAirflowCommand}. - * @param error Error, if any - * @param [response] ExecuteAirflowCommandResponse + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUserWorkloadsSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ExecuteAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|stopAirflowCommand}. - * @param error Error, if any - * @param [response] StopAirflowCommandResponse + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUserWorkloadsSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type StopAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|pollAirflowCommand}. - * @param error Error, if any - * @param [response] PollAirflowCommandResponse + * Verifies a ListUserWorkloadsSecretsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type PollAirflowCommandCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|saveSnapshot}. - * @param error Error, if any - * @param [response] Operation + * Creates a ListUserWorkloadsSecretsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUserWorkloadsSecretsRequest */ - type SaveSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|loadSnapshot}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListUserWorkloadsSecretsRequest message. Also converts values to other types if specified. + * @param message ListUserWorkloadsSecretsRequest + * @param [options] Conversion options + * @returns Plain object */ - type LoadSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|databaseFailover}. - * @param error Error, if any - * @param [response] Operation + * Converts this ListUserWorkloadsSecretsRequest to JSON. + * @returns JSON object */ - type DatabaseFailoverCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|fetchDatabaseProperties}. - * @param error Error, if any - * @param [response] FetchDatabasePropertiesResponse + * Gets the default type url for ListUserWorkloadsSecretsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type FetchDatabasePropertiesCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEnvironmentRequest. */ - interface ICreateEnvironmentRequest { - - /** CreateEnvironmentRequest parent */ - parent?: (string|null); + /** Properties of an UpdateUserWorkloadsSecretRequest. */ + interface IUpdateUserWorkloadsSecretRequest { - /** CreateEnvironmentRequest environment */ - environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + /** UpdateUserWorkloadsSecretRequest userWorkloadsSecret */ + userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null); } - /** Represents a CreateEnvironmentRequest. */ - class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + /** Represents an UpdateUserWorkloadsSecretRequest. */ + class UpdateUserWorkloadsSecretRequest implements IUpdateUserWorkloadsSecretRequest { /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new UpdateUserWorkloadsSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest); - - /** CreateEnvironmentRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest); - /** CreateEnvironmentRequest environment. */ - public environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + /** UpdateUserWorkloadsSecretRequest userWorkloadsSecret. */ + public userWorkloadsSecret?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null); /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new UpdateUserWorkloadsSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEnvironmentRequest instance + * @returns UpdateUserWorkloadsSecretRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode + * Encodes the specified UpdateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode + * Encodes the specified UpdateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEnvironmentRequest + * @returns UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEnvironmentRequest + * @returns UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies an UpdateUserWorkloadsSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEnvironmentRequest + * @returns UpdateUserWorkloadsSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. - * @param message CreateEnvironmentRequest + * Creates a plain object from an UpdateUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message UpdateUserWorkloadsSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this UpdateUserWorkloadsSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEnvironmentRequest + * Gets the default type url for UpdateUserWorkloadsSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEnvironmentRequest. */ - interface IGetEnvironmentRequest { + /** Properties of a DeleteUserWorkloadsSecretRequest. */ + interface IDeleteUserWorkloadsSecretRequest { - /** GetEnvironmentRequest name */ + /** DeleteUserWorkloadsSecretRequest name */ name?: (string|null); } - /** Represents a GetEnvironmentRequest. */ - class GetEnvironmentRequest implements IGetEnvironmentRequest { + /** Represents a DeleteUserWorkloadsSecretRequest. */ + class DeleteUserWorkloadsSecretRequest implements IDeleteUserWorkloadsSecretRequest { /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new DeleteUserWorkloadsSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest); - /** GetEnvironmentRequest name. */ + /** DeleteUserWorkloadsSecretRequest name. */ public name: string; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new DeleteUserWorkloadsSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnvironmentRequest instance + * @returns DeleteUserWorkloadsSecretRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified DeleteUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified DeleteUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnvironmentRequest + * @returns DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnvironmentRequest + * @returns DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a DeleteUserWorkloadsSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnvironmentRequest + * @returns DeleteUserWorkloadsSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. - * @param message GetEnvironmentRequest + * Creates a plain object from a DeleteUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @param message DeleteUserWorkloadsSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this DeleteUserWorkloadsSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEnvironmentRequest + * Gets the default type url for DeleteUserWorkloadsSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEnvironmentsRequest. */ - interface IListEnvironmentsRequest { + /** Properties of a CreateUserWorkloadsConfigMapRequest. */ + interface ICreateUserWorkloadsConfigMapRequest { - /** ListEnvironmentsRequest parent */ + /** CreateUserWorkloadsConfigMapRequest parent */ parent?: (string|null); - /** ListEnvironmentsRequest pageSize */ - pageSize?: (number|null); - - /** ListEnvironmentsRequest pageToken */ - pageToken?: (string|null); + /** CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ + userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null); } - /** Represents a ListEnvironmentsRequest. */ - class ListEnvironmentsRequest implements IListEnvironmentsRequest { + /** Represents a CreateUserWorkloadsConfigMapRequest. */ + class CreateUserWorkloadsConfigMapRequest implements ICreateUserWorkloadsConfigMapRequest { /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new CreateUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest); - /** ListEnvironmentsRequest parent. */ + /** CreateUserWorkloadsConfigMapRequest parent. */ public parent: string; - /** ListEnvironmentsRequest pageSize. */ - public pageSize: number; - - /** ListEnvironmentsRequest pageToken. */ - public pageToken: string; + /** CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. */ + public userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null); /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new CreateUserWorkloadsConfigMapRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsRequest instance + * @returns CreateUserWorkloadsConfigMapRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified CreateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified CreateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsRequest + * @returns CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsRequest + * @returns CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a CreateUserWorkloadsConfigMapRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsRequest + * @returns CreateUserWorkloadsConfigMapRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. - * @param message ListEnvironmentsRequest + * Creates a plain object from a CreateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message CreateUserWorkloadsConfigMapRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this CreateUserWorkloadsConfigMapRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEnvironmentsRequest + * Gets the default type url for CreateUserWorkloadsConfigMapRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEnvironmentsResponse. */ - interface IListEnvironmentsResponse { - - /** ListEnvironmentsResponse environments */ - environments?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[]|null); + /** Properties of a GetUserWorkloadsConfigMapRequest. */ + interface IGetUserWorkloadsConfigMapRequest { - /** ListEnvironmentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetUserWorkloadsConfigMapRequest name */ + name?: (string|null); } - /** Represents a ListEnvironmentsResponse. */ - class ListEnvironmentsResponse implements IListEnvironmentsResponse { + /** Represents a GetUserWorkloadsConfigMapRequest. */ + class GetUserWorkloadsConfigMapRequest implements IGetUserWorkloadsConfigMapRequest { /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new GetUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest); - /** ListEnvironmentsResponse environments. */ - public environments: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[]; - - /** ListEnvironmentsResponse nextPageToken. */ - public nextPageToken: string; + /** GetUserWorkloadsConfigMapRequest name. */ + public name: string; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new GetUserWorkloadsConfigMapRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsResponse instance + * @returns GetUserWorkloadsConfigMapRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified GetUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified GetUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsResponse + * @returns GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsResponse + * @returns GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a GetUserWorkloadsConfigMapRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsResponse + * @returns GetUserWorkloadsConfigMapRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. - * @param message ListEnvironmentsResponse + * Creates a plain object from a GetUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message GetUserWorkloadsConfigMapRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this GetUserWorkloadsConfigMapRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEnvironmentsResponse + * Gets the default type url for GetUserWorkloadsConfigMapRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEnvironmentRequest. */ - interface IDeleteEnvironmentRequest { + /** Properties of a ListUserWorkloadsConfigMapsRequest. */ + interface IListUserWorkloadsConfigMapsRequest { - /** DeleteEnvironmentRequest name */ - name?: (string|null); + /** ListUserWorkloadsConfigMapsRequest parent */ + parent?: (string|null); + + /** ListUserWorkloadsConfigMapsRequest pageSize */ + pageSize?: (number|null); + + /** ListUserWorkloadsConfigMapsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeleteEnvironmentRequest. */ - class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { + /** Represents a ListUserWorkloadsConfigMapsRequest. */ + class ListUserWorkloadsConfigMapsRequest implements IListUserWorkloadsConfigMapsRequest { /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new ListUserWorkloadsConfigMapsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest); - /** DeleteEnvironmentRequest name. */ - public name: string; + /** ListUserWorkloadsConfigMapsRequest parent. */ + public parent: string; + + /** ListUserWorkloadsConfigMapsRequest pageSize. */ + public pageSize: number; + + /** ListUserWorkloadsConfigMapsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * Creates a new ListUserWorkloadsConfigMapsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEnvironmentRequest instance + * @returns ListUserWorkloadsConfigMapsRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEnvironmentRequest + * @returns ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEnvironmentRequest + * @returns ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a ListUserWorkloadsConfigMapsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEnvironmentRequest + * @returns ListUserWorkloadsConfigMapsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. - * @param message DeleteEnvironmentRequest + * Creates a plain object from a ListUserWorkloadsConfigMapsRequest message. Also converts values to other types if specified. + * @param message ListUserWorkloadsConfigMapsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this ListUserWorkloadsConfigMapsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEnvironmentRequest + * Gets the default type url for ListUserWorkloadsConfigMapsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEnvironmentRequest. */ - interface IUpdateEnvironmentRequest { - - /** UpdateEnvironmentRequest name */ - name?: (string|null); - - /** UpdateEnvironmentRequest environment */ - environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); + /** Properties of an UpdateUserWorkloadsConfigMapRequest. */ + interface IUpdateUserWorkloadsConfigMapRequest { - /** UpdateEnvironmentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ + userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null); } - /** Represents an UpdateEnvironmentRequest. */ - class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + /** Represents an UpdateUserWorkloadsConfigMapRequest. */ + class UpdateUserWorkloadsConfigMapRequest implements IUpdateUserWorkloadsConfigMapRequest { /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new UpdateUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest); - /** UpdateEnvironmentRequest name. */ - public name: string; - - /** UpdateEnvironmentRequest environment. */ - public environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null); - - /** UpdateEnvironmentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. */ + public userWorkloadsConfigMap?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null); /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new UpdateUserWorkloadsConfigMapRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEnvironmentRequest instance + * @returns UpdateUserWorkloadsConfigMapRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message UpdateUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEnvironmentRequest + * @returns UpdateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEnvironmentRequest + * @returns UpdateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies an UpdateUserWorkloadsConfigMapRequest message. * @param message Plain 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 UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEnvironmentRequest + * @returns UpdateUserWorkloadsConfigMapRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. - * @param message UpdateEnvironmentRequest + * Creates a plain object from an UpdateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message UpdateUserWorkloadsConfigMapRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this UpdateUserWorkloadsConfigMapRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEnvironmentRequest + * Gets the default type url for UpdateUserWorkloadsConfigMapRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RestartWebServerRequest. */ - interface IRestartWebServerRequest { + /** Properties of a DeleteUserWorkloadsConfigMapRequest. */ + interface IDeleteUserWorkloadsConfigMapRequest { - /** RestartWebServerRequest name */ + /** DeleteUserWorkloadsConfigMapRequest name */ name?: (string|null); } - /** Represents a RestartWebServerRequest. */ - class RestartWebServerRequest implements IRestartWebServerRequest { + /** Represents a DeleteUserWorkloadsConfigMapRequest. */ + class DeleteUserWorkloadsConfigMapRequest implements IDeleteUserWorkloadsConfigMapRequest { /** - * Constructs a new RestartWebServerRequest. + * Constructs a new DeleteUserWorkloadsConfigMapRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest); - /** RestartWebServerRequest name. */ + /** DeleteUserWorkloadsConfigMapRequest name. */ public name: string; /** - * Creates a new RestartWebServerRequest instance using the specified properties. + * Creates a new DeleteUserWorkloadsConfigMapRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RestartWebServerRequest instance + * @returns DeleteUserWorkloadsConfigMapRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest; /** - * Encodes the specified RestartWebServerRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. - * @param message RestartWebServerRequest message or plain object to encode + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestartWebServerRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. - * @param message RestartWebServerRequest message or plain object to encode + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. + * @param message DeleteUserWorkloadsConfigMapRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestartWebServerRequest message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RestartWebServerRequest + * @returns DeleteUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest; /** - * Decodes a RestartWebServerRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestartWebServerRequest + * @returns DeleteUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest; /** - * Verifies a RestartWebServerRequest message. + * Verifies a DeleteUserWorkloadsConfigMapRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RestartWebServerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestartWebServerRequest + * @returns DeleteUserWorkloadsConfigMapRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest; /** - * Creates a plain object from a RestartWebServerRequest message. Also converts values to other types if specified. - * @param message RestartWebServerRequest + * Creates a plain object from a DeleteUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @param message DeleteUserWorkloadsConfigMapRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestartWebServerRequest to JSON. + * Converts this DeleteUserWorkloadsConfigMapRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestartWebServerRequest + * Gets the default type url for DeleteUserWorkloadsConfigMapRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExecuteAirflowCommandRequest. */ - interface IExecuteAirflowCommandRequest { - - /** ExecuteAirflowCommandRequest environment */ - environment?: (string|null); - - /** ExecuteAirflowCommandRequest command */ - command?: (string|null); + /** Properties of a UserWorkloadsSecret. */ + interface IUserWorkloadsSecret { - /** ExecuteAirflowCommandRequest subcommand */ - subcommand?: (string|null); + /** UserWorkloadsSecret name */ + name?: (string|null); - /** ExecuteAirflowCommandRequest parameters */ - parameters?: (string[]|null); + /** UserWorkloadsSecret data */ + data?: ({ [k: string]: string }|null); } - /** Represents an ExecuteAirflowCommandRequest. */ - class ExecuteAirflowCommandRequest implements IExecuteAirflowCommandRequest { + /** Represents a UserWorkloadsSecret. */ + class UserWorkloadsSecret implements IUserWorkloadsSecret { /** - * Constructs a new ExecuteAirflowCommandRequest. + * Constructs a new UserWorkloadsSecret. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest); - - /** ExecuteAirflowCommandRequest environment. */ - public environment: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret); - /** ExecuteAirflowCommandRequest command. */ - public command: string; - - /** ExecuteAirflowCommandRequest subcommand. */ - public subcommand: string; + /** UserWorkloadsSecret name. */ + public name: string; - /** ExecuteAirflowCommandRequest parameters. */ - public parameters: string[]; + /** UserWorkloadsSecret data. */ + public data: { [k: string]: string }; /** - * Creates a new ExecuteAirflowCommandRequest instance using the specified properties. + * Creates a new UserWorkloadsSecret instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteAirflowCommandRequest instance + * @returns UserWorkloadsSecret instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret; /** - * Encodes the specified ExecuteAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. - * @param message ExecuteAirflowCommandRequest message or plain object to encode + * Encodes the specified UserWorkloadsSecret message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify|verify} messages. + * @param message UserWorkloadsSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. - * @param message ExecuteAirflowCommandRequest message or plain object to encode + * Encodes the specified UserWorkloadsSecret message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify|verify} messages. + * @param message UserWorkloadsSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteAirflowCommandRequest + * @returns UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret; /** - * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteAirflowCommandRequest + * @returns UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret; /** - * Verifies an ExecuteAirflowCommandRequest message. + * Verifies a UserWorkloadsSecret message. * @param message Plain 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 ExecuteAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsSecret message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteAirflowCommandRequest + * @returns UserWorkloadsSecret */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret; /** - * Creates a plain object from an ExecuteAirflowCommandRequest message. Also converts values to other types if specified. - * @param message ExecuteAirflowCommandRequest + * Creates a plain object from a UserWorkloadsSecret message. Also converts values to other types if specified. + * @param message UserWorkloadsSecret * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteAirflowCommandRequest to JSON. + * Converts this UserWorkloadsSecret to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteAirflowCommandRequest + * Gets the default type url for UserWorkloadsSecret * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExecuteAirflowCommandResponse. */ - interface IExecuteAirflowCommandResponse { - - /** ExecuteAirflowCommandResponse executionId */ - executionId?: (string|null); - - /** ExecuteAirflowCommandResponse pod */ - pod?: (string|null); + /** Properties of a ListUserWorkloadsSecretsResponse. */ + interface IListUserWorkloadsSecretsResponse { - /** ExecuteAirflowCommandResponse podNamespace */ - podNamespace?: (string|null); + /** ListUserWorkloadsSecretsResponse userWorkloadsSecrets */ + userWorkloadsSecrets?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[]|null); - /** ExecuteAirflowCommandResponse error */ - error?: (string|null); + /** ListUserWorkloadsSecretsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExecuteAirflowCommandResponse. */ - class ExecuteAirflowCommandResponse implements IExecuteAirflowCommandResponse { + /** Represents a ListUserWorkloadsSecretsResponse. */ + class ListUserWorkloadsSecretsResponse implements IListUserWorkloadsSecretsResponse { /** - * Constructs a new ExecuteAirflowCommandResponse. + * Constructs a new ListUserWorkloadsSecretsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse); - - /** ExecuteAirflowCommandResponse executionId. */ - public executionId: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse); - /** ExecuteAirflowCommandResponse pod. */ - public pod: string; - - /** ExecuteAirflowCommandResponse podNamespace. */ - public podNamespace: string; + /** ListUserWorkloadsSecretsResponse userWorkloadsSecrets. */ + public userWorkloadsSecrets: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[]; - /** ExecuteAirflowCommandResponse error. */ - public error: string; + /** ListUserWorkloadsSecretsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExecuteAirflowCommandResponse instance using the specified properties. + * Creates a new ListUserWorkloadsSecretsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteAirflowCommandResponse instance + * @returns ListUserWorkloadsSecretsResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse; /** - * Encodes the specified ExecuteAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. - * @param message ExecuteAirflowCommandResponse message or plain object to encode + * Encodes the specified ListUserWorkloadsSecretsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse.verify|verify} messages. + * @param message ListUserWorkloadsSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. - * @param message ExecuteAirflowCommandResponse message or plain object to encode + * Encodes the specified ListUserWorkloadsSecretsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse.verify|verify} messages. + * @param message ListUserWorkloadsSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer. + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteAirflowCommandResponse + * @returns ListUserWorkloadsSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse; /** - * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteAirflowCommandResponse + * @returns ListUserWorkloadsSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse; /** - * Verifies an ExecuteAirflowCommandResponse message. + * Verifies a ListUserWorkloadsSecretsResponse message. * @param message Plain 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 ExecuteAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsSecretsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteAirflowCommandResponse + * @returns ListUserWorkloadsSecretsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse; /** - * Creates a plain object from an ExecuteAirflowCommandResponse message. Also converts values to other types if specified. - * @param message ExecuteAirflowCommandResponse + * Creates a plain object from a ListUserWorkloadsSecretsResponse message. Also converts values to other types if specified. + * @param message ListUserWorkloadsSecretsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteAirflowCommandResponse to JSON. + * Converts this ListUserWorkloadsSecretsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteAirflowCommandResponse + * Gets the default type url for ListUserWorkloadsSecretsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopAirflowCommandRequest. */ - interface IStopAirflowCommandRequest { - - /** StopAirflowCommandRequest environment */ - environment?: (string|null); - - /** StopAirflowCommandRequest executionId */ - executionId?: (string|null); + /** Properties of a UserWorkloadsConfigMap. */ + interface IUserWorkloadsConfigMap { - /** StopAirflowCommandRequest pod */ - pod?: (string|null); - - /** StopAirflowCommandRequest podNamespace */ - podNamespace?: (string|null); + /** UserWorkloadsConfigMap name */ + name?: (string|null); - /** StopAirflowCommandRequest force */ - force?: (boolean|null); + /** UserWorkloadsConfigMap data */ + data?: ({ [k: string]: string }|null); } - /** Represents a StopAirflowCommandRequest. */ - class StopAirflowCommandRequest implements IStopAirflowCommandRequest { + /** Represents a UserWorkloadsConfigMap. */ + class UserWorkloadsConfigMap implements IUserWorkloadsConfigMap { /** - * Constructs a new StopAirflowCommandRequest. + * Constructs a new UserWorkloadsConfigMap. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest); - - /** StopAirflowCommandRequest environment. */ - public environment: string; - - /** StopAirflowCommandRequest executionId. */ - public executionId: string; - - /** StopAirflowCommandRequest pod. */ - public pod: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap); - /** StopAirflowCommandRequest podNamespace. */ - public podNamespace: string; + /** UserWorkloadsConfigMap name. */ + public name: string; - /** StopAirflowCommandRequest force. */ - public force: boolean; + /** UserWorkloadsConfigMap data. */ + public data: { [k: string]: string }; /** - * Creates a new StopAirflowCommandRequest instance using the specified properties. + * Creates a new UserWorkloadsConfigMap instance using the specified properties. * @param [properties] Properties to set - * @returns StopAirflowCommandRequest instance + * @returns UserWorkloadsConfigMap instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap; /** - * Encodes the specified StopAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. - * @param message StopAirflowCommandRequest message or plain object to encode + * Encodes the specified UserWorkloadsConfigMap message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify|verify} messages. + * @param message UserWorkloadsConfigMap message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. - * @param message StopAirflowCommandRequest message or plain object to encode + * Encodes the specified UserWorkloadsConfigMap message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify|verify} messages. + * @param message UserWorkloadsConfigMap message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopAirflowCommandRequest message from the specified reader or buffer. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopAirflowCommandRequest + * @returns UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap; /** - * Decodes a StopAirflowCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopAirflowCommandRequest + * @returns UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap; /** - * Verifies a StopAirflowCommandRequest message. + * Verifies a UserWorkloadsConfigMap message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsConfigMap message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopAirflowCommandRequest + * @returns UserWorkloadsConfigMap */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap; /** - * Creates a plain object from a StopAirflowCommandRequest message. Also converts values to other types if specified. - * @param message StopAirflowCommandRequest + * Creates a plain object from a UserWorkloadsConfigMap message. Also converts values to other types if specified. + * @param message UserWorkloadsConfigMap * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopAirflowCommandRequest to JSON. + * Converts this UserWorkloadsConfigMap to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopAirflowCommandRequest + * Gets the default type url for UserWorkloadsConfigMap * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopAirflowCommandResponse. */ - interface IStopAirflowCommandResponse { + /** Properties of a ListUserWorkloadsConfigMapsResponse. */ + interface IListUserWorkloadsConfigMapsResponse { - /** StopAirflowCommandResponse isDone */ - isDone?: (boolean|null); + /** ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps */ + userWorkloadsConfigMaps?: (google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[]|null); - /** StopAirflowCommandResponse output */ - output?: (string[]|null); + /** ListUserWorkloadsConfigMapsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a StopAirflowCommandResponse. */ - class StopAirflowCommandResponse implements IStopAirflowCommandResponse { + /** Represents a ListUserWorkloadsConfigMapsResponse. */ + class ListUserWorkloadsConfigMapsResponse implements IListUserWorkloadsConfigMapsResponse { /** - * Constructs a new StopAirflowCommandResponse. + * Constructs a new ListUserWorkloadsConfigMapsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse); - /** StopAirflowCommandResponse isDone. */ - public isDone: boolean; + /** ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps. */ + public userWorkloadsConfigMaps: google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[]; - /** StopAirflowCommandResponse output. */ - public output: string[]; + /** ListUserWorkloadsConfigMapsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new StopAirflowCommandResponse instance using the specified properties. + * Creates a new ListUserWorkloadsConfigMapsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StopAirflowCommandResponse instance + * @returns ListUserWorkloadsConfigMapsResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse; /** - * Encodes the specified StopAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. - * @param message StopAirflowCommandResponse message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. - * @param message StopAirflowCommandResponse message or plain object to encode + * Encodes the specified ListUserWorkloadsConfigMapsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. + * @param message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopAirflowCommandResponse message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopAirflowCommandResponse + * @returns ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse; /** - * Decodes a StopAirflowCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopAirflowCommandResponse + * @returns ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse; /** - * Verifies a StopAirflowCommandResponse message. + * Verifies a ListUserWorkloadsConfigMapsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopAirflowCommandResponse + * @returns ListUserWorkloadsConfigMapsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse; /** - * Creates a plain object from a StopAirflowCommandResponse message. Also converts values to other types if specified. - * @param message StopAirflowCommandResponse + * Creates a plain object from a ListUserWorkloadsConfigMapsResponse message. Also converts values to other types if specified. + * @param message ListUserWorkloadsConfigMapsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopAirflowCommandResponse to JSON. + * Converts this ListUserWorkloadsConfigMapsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopAirflowCommandResponse + * Gets the default type url for ListUserWorkloadsConfigMapsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PollAirflowCommandRequest. */ - interface IPollAirflowCommandRequest { - - /** PollAirflowCommandRequest environment */ - environment?: (string|null); + /** Properties of a ListWorkloadsRequest. */ + interface IListWorkloadsRequest { - /** PollAirflowCommandRequest executionId */ - executionId?: (string|null); + /** ListWorkloadsRequest parent */ + parent?: (string|null); - /** PollAirflowCommandRequest pod */ - pod?: (string|null); + /** ListWorkloadsRequest pageSize */ + pageSize?: (number|null); - /** PollAirflowCommandRequest podNamespace */ - podNamespace?: (string|null); + /** ListWorkloadsRequest pageToken */ + pageToken?: (string|null); - /** PollAirflowCommandRequest nextLineNumber */ - nextLineNumber?: (number|null); + /** ListWorkloadsRequest filter */ + filter?: (string|null); } - /** Represents a PollAirflowCommandRequest. */ - class PollAirflowCommandRequest implements IPollAirflowCommandRequest { + /** Represents a ListWorkloadsRequest. */ + class ListWorkloadsRequest implements IListWorkloadsRequest { /** - * Constructs a new PollAirflowCommandRequest. + * Constructs a new ListWorkloadsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest); - - /** PollAirflowCommandRequest environment. */ - public environment: string; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest); - /** PollAirflowCommandRequest executionId. */ - public executionId: string; + /** ListWorkloadsRequest parent. */ + public parent: string; - /** PollAirflowCommandRequest pod. */ - public pod: string; + /** ListWorkloadsRequest pageSize. */ + public pageSize: number; - /** PollAirflowCommandRequest podNamespace. */ - public podNamespace: string; + /** ListWorkloadsRequest pageToken. */ + public pageToken: string; - /** PollAirflowCommandRequest nextLineNumber. */ - public nextLineNumber: number; + /** ListWorkloadsRequest filter. */ + public filter: string; /** - * Creates a new PollAirflowCommandRequest instance using the specified properties. + * Creates a new ListWorkloadsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PollAirflowCommandRequest instance + * @returns ListWorkloadsRequest instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest; /** - * Encodes the specified PollAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. - * @param message PollAirflowCommandRequest message or plain object to encode + * Encodes the specified ListWorkloadsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest.verify|verify} messages. + * @param message ListWorkloadsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PollAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. - * @param message PollAirflowCommandRequest message or plain object to encode + * Encodes the specified ListWorkloadsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest.verify|verify} messages. + * @param message ListWorkloadsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PollAirflowCommandRequest message from the specified reader or buffer. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PollAirflowCommandRequest + * @returns ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest; /** - * Decodes a PollAirflowCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PollAirflowCommandRequest + * @returns ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest; /** - * Verifies a PollAirflowCommandRequest message. + * Verifies a ListWorkloadsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PollAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PollAirflowCommandRequest + * @returns ListWorkloadsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest; /** - * Creates a plain object from a PollAirflowCommandRequest message. Also converts values to other types if specified. - * @param message PollAirflowCommandRequest + * Creates a plain object from a ListWorkloadsRequest message. Also converts values to other types if specified. + * @param message ListWorkloadsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PollAirflowCommandRequest to JSON. + * Converts this ListWorkloadsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PollAirflowCommandRequest + * Gets the default type url for ListWorkloadsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PollAirflowCommandResponse. */ - interface IPollAirflowCommandResponse { + } - /** PollAirflowCommandResponse output */ - output?: (google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine[]|null); + /** Properties of a ListWorkloadsResponse. */ + interface IListWorkloadsResponse { - /** PollAirflowCommandResponse outputEnd */ - outputEnd?: (boolean|null); + /** ListWorkloadsResponse workloads */ + workloads?: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[]|null); - /** PollAirflowCommandResponse exitInfo */ - exitInfo?: (google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null); + /** ListWorkloadsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a PollAirflowCommandResponse. */ - class PollAirflowCommandResponse implements IPollAirflowCommandResponse { + /** Represents a ListWorkloadsResponse. */ + class ListWorkloadsResponse implements IListWorkloadsResponse { /** - * Constructs a new PollAirflowCommandResponse. + * Constructs a new ListWorkloadsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse); - /** PollAirflowCommandResponse output. */ - public output: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine[]; - - /** PollAirflowCommandResponse outputEnd. */ - public outputEnd: boolean; + /** ListWorkloadsResponse workloads. */ + public workloads: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[]; - /** PollAirflowCommandResponse exitInfo. */ - public exitInfo?: (google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null); + /** ListWorkloadsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PollAirflowCommandResponse instance using the specified properties. + * Creates a new ListWorkloadsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PollAirflowCommandResponse instance + * @returns ListWorkloadsResponse instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse; /** - * Encodes the specified PollAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. - * @param message PollAirflowCommandResponse message or plain object to encode + * Encodes the specified ListWorkloadsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.verify|verify} messages. + * @param message ListWorkloadsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PollAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. - * @param message PollAirflowCommandResponse message or plain object to encode + * Encodes the specified ListWorkloadsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.verify|verify} messages. + * @param message ListWorkloadsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PollAirflowCommandResponse message from the specified reader or buffer. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PollAirflowCommandResponse + * @returns ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse; /** - * Decodes a PollAirflowCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PollAirflowCommandResponse + * @returns ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse; /** - * Verifies a PollAirflowCommandResponse message. + * Verifies a ListWorkloadsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PollAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PollAirflowCommandResponse + * @returns ListWorkloadsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse; /** - * Creates a plain object from a PollAirflowCommandResponse message. Also converts values to other types if specified. - * @param message PollAirflowCommandResponse + * Creates a plain object from a ListWorkloadsResponse message. Also converts values to other types if specified. + * @param message ListWorkloadsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PollAirflowCommandResponse to JSON. + * Converts this ListWorkloadsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PollAirflowCommandResponse + * Gets the default type url for ListWorkloadsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PollAirflowCommandResponse { + namespace ListWorkloadsResponse { - /** Properties of a Line. */ - interface ILine { + /** Properties of a ComposerWorkload. */ + interface IComposerWorkload { - /** Line lineNumber */ - lineNumber?: (number|null); + /** ComposerWorkload name */ + name?: (string|null); - /** Line content */ - content?: (string|null); + /** ComposerWorkload type */ + type?: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType|null); + + /** ComposerWorkload status */ + status?: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus|null); } - /** Represents a Line. */ - class Line implements ILine { + /** Represents a ComposerWorkload. */ + class ComposerWorkload implements IComposerWorkload { /** - * Constructs a new Line. + * Constructs a new ComposerWorkload. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload); - /** Line lineNumber. */ - public lineNumber: number; + /** ComposerWorkload name. */ + public name: string; - /** Line content. */ - public content: string; + /** ComposerWorkload type. */ + public type: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType); + + /** ComposerWorkload status. */ + public status?: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus|null); /** - * Creates a new Line instance using the specified properties. + * Creates a new ComposerWorkload instance using the specified properties. * @param [properties] Properties to set - * @returns Line instance + * @returns ComposerWorkload instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload; /** - * Encodes the specified Line message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. - * @param message Line message or plain object to encode + * Encodes the specified ComposerWorkload message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. + * @param message ComposerWorkload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. - * @param message Line message or plain object to encode + * Encodes the specified ComposerWorkload message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. + * @param message ComposerWorkload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Line message from the specified reader or buffer. + * Decodes a ComposerWorkload message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Line + * @returns ComposerWorkload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload; /** - * Decodes a Line message from the specified reader or buffer, length delimited. + * Decodes a ComposerWorkload message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Line + * @returns ComposerWorkload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload; /** - * Verifies a Line message. + * Verifies a ComposerWorkload message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Line message from a plain object. Also converts values to their respective internal types. + * Creates a ComposerWorkload message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Line + * @returns ComposerWorkload */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload; /** - * Creates a plain object from a Line message. Also converts values to other types if specified. - * @param message Line + * Creates a plain object from a ComposerWorkload message. Also converts values to other types if specified. + * @param message ComposerWorkload * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Line to JSON. + * Converts this ComposerWorkload to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Line + * Gets the default type url for ComposerWorkload * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExitInfo. */ - interface IExitInfo { + /** ComposerWorkloadType enum. */ + enum ComposerWorkloadType { + COMPOSER_WORKLOAD_TYPE_UNSPECIFIED = 0, + CELERY_WORKER = 1, + KUBERNETES_WORKER = 2, + KUBERNETES_OPERATOR_POD = 3, + SCHEDULER = 4, + DAG_PROCESSOR = 5, + TRIGGERER = 6, + WEB_SERVER = 7, + REDIS = 8 + } - /** ExitInfo exitCode */ - exitCode?: (number|null); + /** Properties of a ComposerWorkloadStatus. */ + interface IComposerWorkloadStatus { - /** ExitInfo error */ - error?: (string|null); + /** ComposerWorkloadStatus state */ + state?: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState|null); + + /** ComposerWorkloadStatus statusMessage */ + statusMessage?: (string|null); + + /** ComposerWorkloadStatus detailedStatusMessage */ + detailedStatusMessage?: (string|null); } - /** Represents an ExitInfo. */ - class ExitInfo implements IExitInfo { + /** Represents a ComposerWorkloadStatus. */ + class ComposerWorkloadStatus implements IComposerWorkloadStatus { /** - * Constructs a new ExitInfo. + * Constructs a new ComposerWorkloadStatus. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo); + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus); - /** ExitInfo exitCode. */ - public exitCode: number; + /** ComposerWorkloadStatus state. */ + public state: (google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState); - /** ExitInfo error. */ - public error: string; + /** ComposerWorkloadStatus statusMessage. */ + public statusMessage: string; + + /** ComposerWorkloadStatus detailedStatusMessage. */ + public detailedStatusMessage: string; /** - * Creates a new ExitInfo instance using the specified properties. + * Creates a new ComposerWorkloadStatus instance using the specified properties. * @param [properties] Properties to set - * @returns ExitInfo instance + * @returns ComposerWorkloadStatus instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus; /** - * Encodes the specified ExitInfo message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. - * @param message ExitInfo message or plain object to encode + * Encodes the specified ComposerWorkloadStatus message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. + * @param message ComposerWorkloadStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExitInfo message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. - * @param message ExitInfo message or plain object to encode + * Encodes the specified ComposerWorkloadStatus message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. + * @param message ComposerWorkloadStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExitInfo message from the specified reader or buffer. + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExitInfo + * @returns ComposerWorkloadStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus; /** - * Decodes an ExitInfo message from the specified reader or buffer, length delimited. + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExitInfo + * @returns ComposerWorkloadStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus; /** - * Verifies an ExitInfo message. + * Verifies a ComposerWorkloadStatus message. * @param message Plain 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 ExitInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ComposerWorkloadStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExitInfo + * @returns ComposerWorkloadStatus */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus; /** - * Creates a plain object from an ExitInfo message. Also converts values to other types if specified. - * @param message ExitInfo + * Creates a plain object from a ComposerWorkloadStatus message. Also converts values to other types if specified. + * @param message ComposerWorkloadStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExitInfo to JSON. + * Converts this ComposerWorkloadStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExitInfo + * Gets the default type url for ComposerWorkloadStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** ComposerWorkloadState enum. */ + enum ComposerWorkloadState { + COMPOSER_WORKLOAD_STATE_UNSPECIFIED = 0, + PENDING = 1, + OK = 2, + WARNING = 3, + ERROR = 4, + SUCCEEDED = 5, + FAILED = 6 + } } /** Properties of a SaveSnapshotRequest. */ @@ -8715,6 +13637,9 @@ export namespace google { /** EnvironmentConfig recoveryConfig */ recoveryConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IRecoveryConfig|null); + /** EnvironmentConfig dataRetentionConfig */ + dataRetentionConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig|null); + /** EnvironmentConfig resilienceMode */ resilienceMode?: (google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode|null); } @@ -8779,6 +13704,9 @@ export namespace google { /** EnvironmentConfig recoveryConfig. */ public recoveryConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IRecoveryConfig|null); + /** EnvironmentConfig dataRetentionConfig. */ + public dataRetentionConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig|null); + /** EnvironmentConfig resilienceMode. */ public resilienceMode: (google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode); @@ -9103,6 +14031,9 @@ export namespace google { /** SoftwareConfig cloudDataLineageIntegration */ cloudDataLineageIntegration?: (google.cloud.orchestration.airflow.service.v1beta1.ICloudDataLineageIntegration|null); + + /** SoftwareConfig webServerPluginsMode */ + webServerPluginsMode?: (google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode|null); } /** Represents a SoftwareConfig. */ @@ -9135,6 +14066,9 @@ export namespace google { /** SoftwareConfig cloudDataLineageIntegration. */ public cloudDataLineageIntegration?: (google.cloud.orchestration.airflow.service.v1beta1.ICloudDataLineageIntegration|null); + /** SoftwareConfig webServerPluginsMode. */ + public webServerPluginsMode: (google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode); + /** * Creates a new SoftwareConfig instance using the specified properties. * @param [properties] Properties to set @@ -9213,6 +14147,16 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace SoftwareConfig { + + /** WebServerPluginsMode enum. */ + enum WebServerPluginsMode { + WEB_SERVER_PLUGINS_MODE_UNSPECIFIED = 0, + PLUGINS_DISABLED = 1, + PLUGINS_ENABLED = 2 + } + } + /** Properties of a IPAllocationPolicy. */ interface IIPAllocationPolicy { @@ -9369,6 +14313,12 @@ export namespace google { /** NodeConfig enableIpMasqAgent */ enableIpMasqAgent?: (boolean|null); + + /** NodeConfig composerNetworkAttachment */ + composerNetworkAttachment?: (string|null); + + /** NodeConfig composerInternalIpv4CidrBlock */ + composerInternalIpv4CidrBlock?: (string|null); } /** Represents a NodeConfig. */ @@ -9413,6 +14363,12 @@ export namespace google { /** NodeConfig enableIpMasqAgent. */ public enableIpMasqAgent: boolean; + /** NodeConfig composerNetworkAttachment. */ + public composerNetworkAttachment: string; + + /** NodeConfig composerInternalIpv4CidrBlock. */ + public composerInternalIpv4CidrBlock: string; + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -9713,6 +14669,9 @@ export namespace google { /** PrivateEnvironmentConfig enablePrivateEnvironment */ enablePrivateEnvironment?: (boolean|null); + /** PrivateEnvironmentConfig enablePrivateBuildsOnly */ + enablePrivateBuildsOnly?: (boolean|null); + /** PrivateEnvironmentConfig privateClusterConfig */ privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null); @@ -9753,6 +14712,9 @@ export namespace google { /** PrivateEnvironmentConfig enablePrivateEnvironment. */ public enablePrivateEnvironment: boolean; + /** PrivateEnvironmentConfig enablePrivateBuildsOnly. */ + public enablePrivateBuildsOnly: boolean; + /** PrivateEnvironmentConfig privateClusterConfig. */ public privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null); @@ -9863,6 +14825,9 @@ export namespace google { /** DatabaseConfig machineType */ machineType?: (string|null); + + /** DatabaseConfig zone */ + zone?: (string|null); } /** Represents a DatabaseConfig. */ @@ -9877,6 +14842,9 @@ export namespace google { /** DatabaseConfig machineType. */ public machineType: string; + /** DatabaseConfig zone. */ + public zone: string; + /** * Creates a new DatabaseConfig instance using the specified properties. * @param [properties] Properties to set @@ -10272,6 +15240,9 @@ export namespace google { /** WorkloadsConfig triggerer */ triggerer?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource|null); + + /** WorkloadsConfig dagProcessor */ + dagProcessor?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource|null); } /** Represents a WorkloadsConfig. */ @@ -10295,6 +15266,9 @@ export namespace google { /** WorkloadsConfig triggerer. */ public triggerer?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource|null); + /** WorkloadsConfig dagProcessor. */ + public dagProcessor?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource|null); + /** * Creates a new WorkloadsConfig instance using the specified properties. * @param [properties] Properties to set @@ -10699,130 +15673,245 @@ export namespace google { public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource; /** - * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. - * @param message WorkerResource + * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. + * @param message WorkerResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkerResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkerResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TriggererResource. */ + interface ITriggererResource { + + /** TriggererResource count */ + count?: (number|null); + + /** TriggererResource cpu */ + cpu?: (number|null); + + /** TriggererResource memoryGb */ + memoryGb?: (number|null); + } + + /** Represents a TriggererResource. */ + class TriggererResource implements ITriggererResource { + + /** + * Constructs a new TriggererResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource); + + /** TriggererResource count. */ + public count: number; + + /** TriggererResource cpu. */ + public cpu: number; + + /** TriggererResource memoryGb. */ + public memoryGb: number; + + /** + * Creates a new TriggererResource instance using the specified properties. + * @param [properties] Properties to set + * @returns TriggererResource instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + + /** + * Encodes the specified TriggererResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. + * @param message TriggererResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TriggererResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. + * @param message TriggererResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TriggererResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TriggererResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + + /** + * Decodes a TriggererResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TriggererResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + + /** + * Verifies a TriggererResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TriggererResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TriggererResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + + /** + * Creates a plain object from a TriggererResource message. Also converts values to other types if specified. + * @param message TriggererResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WorkerResource to JSON. + * Converts this TriggererResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WorkerResource + * Gets the default type url for TriggererResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TriggererResource. */ - interface ITriggererResource { - - /** TriggererResource count */ - count?: (number|null); + /** Properties of a DagProcessorResource. */ + interface IDagProcessorResource { - /** TriggererResource cpu */ + /** DagProcessorResource cpu */ cpu?: (number|null); - /** TriggererResource memoryGb */ + /** DagProcessorResource memoryGb */ memoryGb?: (number|null); + + /** DagProcessorResource storageGb */ + storageGb?: (number|null); + + /** DagProcessorResource count */ + count?: (number|null); } - /** Represents a TriggererResource. */ - class TriggererResource implements ITriggererResource { + /** Represents a DagProcessorResource. */ + class DagProcessorResource implements IDagProcessorResource { /** - * Constructs a new TriggererResource. + * Constructs a new DagProcessorResource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource); - - /** TriggererResource count. */ - public count: number; + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource); - /** TriggererResource cpu. */ + /** DagProcessorResource cpu. */ public cpu: number; - /** TriggererResource memoryGb. */ + /** DagProcessorResource memoryGb. */ public memoryGb: number; + /** DagProcessorResource storageGb. */ + public storageGb: number; + + /** DagProcessorResource count. */ + public count: number; + /** - * Creates a new TriggererResource instance using the specified properties. + * Creates a new DagProcessorResource instance using the specified properties. * @param [properties] Properties to set - * @returns TriggererResource instance + * @returns DagProcessorResource instance */ - public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource; /** - * Encodes the specified TriggererResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. - * @param message TriggererResource message or plain object to encode + * Encodes the specified DagProcessorResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. + * @param message DagProcessorResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TriggererResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. - * @param message TriggererResource message or plain object to encode + * Encodes the specified DagProcessorResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. + * @param message DagProcessorResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TriggererResource message from the specified reader or buffer. + * Decodes a DagProcessorResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TriggererResource + * @returns DagProcessorResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource; /** - * Decodes a TriggererResource message from the specified reader or buffer, length delimited. + * Decodes a DagProcessorResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TriggererResource + * @returns DagProcessorResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource; /** - * Verifies a TriggererResource message. + * Verifies a DagProcessorResource message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TriggererResource message from a plain object. Also converts values to their respective internal types. + * Creates a DagProcessorResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TriggererResource + * @returns DagProcessorResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource; + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource; /** - * Creates a plain object from a TriggererResource message. Also converts values to other types if specified. - * @param message TriggererResource + * Creates a plain object from a DagProcessorResource message. Also converts values to other types if specified. + * @param message DagProcessorResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TriggererResource to JSON. + * Converts this DagProcessorResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TriggererResource + * Gets the default type url for DagProcessorResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -10830,6 +15919,307 @@ export namespace google { } } + /** Properties of a DataRetentionConfig. */ + interface IDataRetentionConfig { + + /** DataRetentionConfig taskLogsRetentionConfig */ + taskLogsRetentionConfig?: (google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig|null); + } + + /** Represents a DataRetentionConfig. */ + class DataRetentionConfig implements IDataRetentionConfig { + + /** + * Constructs a new DataRetentionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig); + + /** DataRetentionConfig taskLogsRetentionConfig. */ + public taskLogsRetentionConfig?: (google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig|null); + + /** + * Creates a new DataRetentionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataRetentionConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig): google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig; + + /** + * Encodes the specified DataRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.verify|verify} messages. + * @param message DataRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.verify|verify} messages. + * @param message DataRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig; + + /** + * Verifies a DataRetentionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataRetentionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig; + + /** + * Creates a plain object from a DataRetentionConfig message. Also converts values to other types if specified. + * @param message DataRetentionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataRetentionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataRetentionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TaskLogsRetentionConfig. */ + interface ITaskLogsRetentionConfig { + + /** TaskLogsRetentionConfig storageMode */ + storageMode?: (google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode|null); + } + + /** Represents a TaskLogsRetentionConfig. */ + class TaskLogsRetentionConfig implements ITaskLogsRetentionConfig { + + /** + * Constructs a new TaskLogsRetentionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig); + + /** TaskLogsRetentionConfig storageMode. */ + public storageMode: (google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode); + + /** + * Creates a new TaskLogsRetentionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskLogsRetentionConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig): google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig; + + /** + * Encodes the specified TaskLogsRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.verify|verify} messages. + * @param message TaskLogsRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TaskLogsRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.verify|verify} messages. + * @param message TaskLogsRetentionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig; + + /** + * Verifies a TaskLogsRetentionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TaskLogsRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskLogsRetentionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig; + + /** + * Creates a plain object from a TaskLogsRetentionConfig message. Also converts values to other types if specified. + * @param message TaskLogsRetentionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TaskLogsRetentionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TaskLogsRetentionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace TaskLogsRetentionConfig { + + /** TaskLogsStorageMode enum. */ + enum TaskLogsStorageMode { + TASK_LOGS_STORAGE_MODE_UNSPECIFIED = 0, + CLOUD_LOGGING_AND_CLOUD_STORAGE = 1, + CLOUD_LOGGING_ONLY = 2 + } + } + + /** Properties of a StorageConfig. */ + interface IStorageConfig { + + /** StorageConfig bucket */ + bucket?: (string|null); + } + + /** Represents a StorageConfig. */ + class StorageConfig implements IStorageConfig { + + /** + * Constructs a new StorageConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig); + + /** StorageConfig bucket. */ + public bucket: string; + + /** + * Creates a new StorageConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StorageConfig instance + */ + public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig): google.cloud.orchestration.airflow.service.v1beta1.StorageConfig; + + /** + * Encodes the specified StorageConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.verify|verify} messages. + * @param message StorageConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StorageConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.verify|verify} messages. + * @param message StorageConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StorageConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.StorageConfig; + + /** + * Decodes a StorageConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.StorageConfig; + + /** + * Verifies a StorageConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StorageConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StorageConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.StorageConfig; + + /** + * Creates a plain object from a StorageConfig message. Also converts values to other types if specified. + * @param message StorageConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.StorageConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StorageConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StorageConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RecoveryConfig. */ interface IRecoveryConfig { @@ -11371,6 +16761,12 @@ export namespace google { /** Environment labels */ labels?: ({ [k: string]: string }|null); + + /** Environment satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Environment storageConfig */ + storageConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig|null); } /** Represents an Environment. */ @@ -11403,6 +16799,12 @@ export namespace google { /** Environment labels. */ public labels: { [k: string]: string }; + /** Environment satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Environment storageConfig. */ + public storageConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig|null); + /** * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-orchestration-airflow-service/protos/protos.js b/packages/google-cloud-orchestration-airflow-service/protos/protos.js index ac9bd81a3209..a213eed45b01 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/protos.js +++ b/packages/google-cloud-orchestration-airflow-service/protos/protos.js @@ -380,6 +380,369 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listWorkloads}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef ListWorkloadsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse} [response] ListWorkloadsResponse + */ + + /** + * Calls ListWorkloads. + * @function listWorkloads + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest} request ListWorkloadsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.ListWorkloadsCallback} callback Node-style callback called with the error, if any, and ListWorkloadsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listWorkloads = function listWorkloads(request, callback) { + return this.rpcCall(listWorkloads, $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse, request, callback); + }, "name", { value: "ListWorkloads" }); + + /** + * Calls ListWorkloads. + * @function listWorkloads + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest} request ListWorkloadsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|createUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef CreateUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} [response] UserWorkloadsSecret + */ + + /** + * Calls CreateUserWorkloadsSecret. + * @function createUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest} request CreateUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and UserWorkloadsSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createUserWorkloadsSecret = function createUserWorkloadsSecret(request, callback) { + return this.rpcCall(createUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest, $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret, request, callback); + }, "name", { value: "CreateUserWorkloadsSecret" }); + + /** + * Calls CreateUserWorkloadsSecret. + * @function createUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest} request CreateUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|getUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef GetUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} [response] UserWorkloadsSecret + */ + + /** + * Calls GetUserWorkloadsSecret. + * @function getUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest} request GetUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and UserWorkloadsSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getUserWorkloadsSecret = function getUserWorkloadsSecret(request, callback) { + return this.rpcCall(getUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest, $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret, request, callback); + }, "name", { value: "GetUserWorkloadsSecret" }); + + /** + * Calls GetUserWorkloadsSecret. + * @function getUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest} request GetUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listUserWorkloadsSecrets}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef ListUserWorkloadsSecretsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse} [response] ListUserWorkloadsSecretsResponse + */ + + /** + * Calls ListUserWorkloadsSecrets. + * @function listUserWorkloadsSecrets + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest} request ListUserWorkloadsSecretsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsSecretsCallback} callback Node-style callback called with the error, if any, and ListUserWorkloadsSecretsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listUserWorkloadsSecrets = function listUserWorkloadsSecrets(request, callback) { + return this.rpcCall(listUserWorkloadsSecrets, $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse, request, callback); + }, "name", { value: "ListUserWorkloadsSecrets" }); + + /** + * Calls ListUserWorkloadsSecrets. + * @function listUserWorkloadsSecrets + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest} request ListUserWorkloadsSecretsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|updateUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef UpdateUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} [response] UserWorkloadsSecret + */ + + /** + * Calls UpdateUserWorkloadsSecret. + * @function updateUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest} request UpdateUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and UserWorkloadsSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.updateUserWorkloadsSecret = function updateUserWorkloadsSecret(request, callback) { + return this.rpcCall(updateUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest, $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret, request, callback); + }, "name", { value: "UpdateUserWorkloadsSecret" }); + + /** + * Calls UpdateUserWorkloadsSecret. + * @function updateUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest} request UpdateUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|deleteUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef DeleteUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteUserWorkloadsSecret. + * @function deleteUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest} request DeleteUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deleteUserWorkloadsSecret = function deleteUserWorkloadsSecret(request, callback) { + return this.rpcCall(deleteUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteUserWorkloadsSecret" }); + + /** + * Calls DeleteUserWorkloadsSecret. + * @function deleteUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest} request DeleteUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|createUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef CreateUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} [response] UserWorkloadsConfigMap + */ + + /** + * Calls CreateUserWorkloadsConfigMap. + * @function createUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest} request CreateUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createUserWorkloadsConfigMap = function createUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(createUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest, $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap, request, callback); + }, "name", { value: "CreateUserWorkloadsConfigMap" }); + + /** + * Calls CreateUserWorkloadsConfigMap. + * @function createUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest} request CreateUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|getUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef GetUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} [response] UserWorkloadsConfigMap + */ + + /** + * Calls GetUserWorkloadsConfigMap. + * @function getUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest} request GetUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getUserWorkloadsConfigMap = function getUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(getUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest, $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap, request, callback); + }, "name", { value: "GetUserWorkloadsConfigMap" }); + + /** + * Calls GetUserWorkloadsConfigMap. + * @function getUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest} request GetUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listUserWorkloadsConfigMaps}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef ListUserWorkloadsConfigMapsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse} [response] ListUserWorkloadsConfigMapsResponse + */ + + /** + * Calls ListUserWorkloadsConfigMaps. + * @function listUserWorkloadsConfigMaps + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest} request ListUserWorkloadsConfigMapsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsConfigMapsCallback} callback Node-style callback called with the error, if any, and ListUserWorkloadsConfigMapsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listUserWorkloadsConfigMaps = function listUserWorkloadsConfigMaps(request, callback) { + return this.rpcCall(listUserWorkloadsConfigMaps, $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse, request, callback); + }, "name", { value: "ListUserWorkloadsConfigMaps" }); + + /** + * Calls ListUserWorkloadsConfigMaps. + * @function listUserWorkloadsConfigMaps + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest} request ListUserWorkloadsConfigMapsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|updateUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef UpdateUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} [response] UserWorkloadsConfigMap + */ + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @function updateUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest} request UpdateUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.updateUserWorkloadsConfigMap = function updateUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(updateUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest, $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap, request, callback); + }, "name", { value: "UpdateUserWorkloadsConfigMap" }); + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @function updateUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest} request UpdateUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|deleteUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @typedef DeleteUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @function deleteUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest} request DeleteUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deleteUserWorkloadsConfigMap = function deleteUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(deleteUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteUserWorkloadsConfigMap" }); + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @function deleteUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest} request DeleteUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|saveSnapshot}. * @memberof google.cloud.orchestration.airflow.service.v1.Environments @@ -4040,25 +4403,25 @@ return PollAirflowCommandResponse; })(); - v1.SaveSnapshotRequest = (function() { + v1.CreateUserWorkloadsSecretRequest = (function() { /** - * Properties of a SaveSnapshotRequest. + * Properties of a CreateUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface ISaveSnapshotRequest - * @property {string|null} [environment] SaveSnapshotRequest environment - * @property {string|null} [snapshotLocation] SaveSnapshotRequest snapshotLocation + * @interface ICreateUserWorkloadsSecretRequest + * @property {string|null} [parent] CreateUserWorkloadsSecretRequest parent + * @property {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null} [userWorkloadsSecret] CreateUserWorkloadsSecretRequest userWorkloadsSecret */ /** - * Constructs a new SaveSnapshotRequest. + * Constructs a new CreateUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a SaveSnapshotRequest. - * @implements ISaveSnapshotRequest + * @classdesc Represents a CreateUserWorkloadsSecretRequest. + * @implements ICreateUserWorkloadsSecretRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest=} [properties] Properties to set */ - function SaveSnapshotRequest(properties) { + function CreateUserWorkloadsSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4066,89 +4429,89 @@ } /** - * SaveSnapshotRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * CreateUserWorkloadsSecretRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @instance */ - SaveSnapshotRequest.prototype.environment = ""; + CreateUserWorkloadsSecretRequest.prototype.parent = ""; /** - * SaveSnapshotRequest snapshotLocation. - * @member {string} snapshotLocation - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * CreateUserWorkloadsSecretRequest userWorkloadsSecret. + * @member {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null|undefined} userWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @instance */ - SaveSnapshotRequest.prototype.snapshotLocation = ""; + CreateUserWorkloadsSecretRequest.prototype.userWorkloadsSecret = null; /** - * Creates a new SaveSnapshotRequest instance using the specified properties. + * Creates a new CreateUserWorkloadsSecretRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest instance + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest instance */ - SaveSnapshotRequest.create = function create(properties) { - return new SaveSnapshotRequest(properties); + CreateUserWorkloadsSecretRequest.create = function create(properties) { + return new CreateUserWorkloadsSecretRequest(properties); }; /** - * Encodes the specified SaveSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. + * Encodes the specified CreateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest} message SaveSnapshotRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest} message CreateUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SaveSnapshotRequest.encode = function encode(message, writer) { + CreateUserWorkloadsSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.snapshotLocation != null && Object.hasOwnProperty.call(message, "snapshotLocation")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotLocation); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.userWorkloadsSecret != null && Object.hasOwnProperty.call(message, "userWorkloadsSecret")) + $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.encode(message.userWorkloadsSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SaveSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. + * Encodes the specified CreateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest} message SaveSnapshotRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest} message CreateUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SaveSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SaveSnapshotRequest message from the specified reader or buffer. + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SaveSnapshotRequest.decode = function decode(reader, length) { + CreateUserWorkloadsSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.snapshotLocation = reader.string(); + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.decode(reader, reader.uint32()); break; } default: @@ -4160,131 +4523,136 @@ }; /** - * Decodes a SaveSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SaveSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + CreateUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SaveSnapshotRequest message. + * Verifies a CreateUserWorkloadsSecretRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SaveSnapshotRequest.verify = function verify(message) { + CreateUserWorkloadsSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) - if (!$util.isString(message.snapshotLocation)) - return "snapshotLocation: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify(message.userWorkloadsSecret); + if (error) + return "userWorkloadsSecret." + error; + } return null; }; /** - * Creates a SaveSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest */ - SaveSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest) + CreateUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.snapshotLocation != null) - message.snapshotLocation = String(object.snapshotLocation); + var message = new $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.userWorkloadsSecret != null) { + if (typeof object.userWorkloadsSecret !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest.userWorkloadsSecret: object expected"); + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.fromObject(object.userWorkloadsSecret); + } return message; }; /** - * Creates a plain object from a SaveSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateUserWorkloadsSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} message SaveSnapshotRequest + * @param {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest} message CreateUserWorkloadsSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SaveSnapshotRequest.toObject = function toObject(message, options) { + CreateUserWorkloadsSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = ""; - object.snapshotLocation = ""; + object.parent = ""; + object.userWorkloadsSecret = null; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) - object.snapshotLocation = message.snapshotLocation; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) + object.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.toObject(message.userWorkloadsSecret, options); return object; }; /** - * Converts this SaveSnapshotRequest to JSON. + * Converts this CreateUserWorkloadsSecretRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @instance * @returns {Object.} JSON object */ - SaveSnapshotRequest.prototype.toJSON = function toJSON() { + CreateUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SaveSnapshotRequest + * Gets the default type url for CreateUserWorkloadsSecretRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SaveSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest"; }; - return SaveSnapshotRequest; + return CreateUserWorkloadsSecretRequest; })(); - v1.SaveSnapshotResponse = (function() { + v1.GetUserWorkloadsSecretRequest = (function() { /** - * Properties of a SaveSnapshotResponse. + * Properties of a GetUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface ISaveSnapshotResponse - * @property {string|null} [snapshotPath] SaveSnapshotResponse snapshotPath + * @interface IGetUserWorkloadsSecretRequest + * @property {string|null} [name] GetUserWorkloadsSecretRequest name */ /** - * Constructs a new SaveSnapshotResponse. + * Constructs a new GetUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a SaveSnapshotResponse. - * @implements ISaveSnapshotResponse + * @classdesc Represents a GetUserWorkloadsSecretRequest. + * @implements IGetUserWorkloadsSecretRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest=} [properties] Properties to set */ - function SaveSnapshotResponse(properties) { + function GetUserWorkloadsSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4292,75 +4660,75 @@ } /** - * SaveSnapshotResponse snapshotPath. - * @member {string} snapshotPath - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * GetUserWorkloadsSecretRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @instance */ - SaveSnapshotResponse.prototype.snapshotPath = ""; + GetUserWorkloadsSecretRequest.prototype.name = ""; /** - * Creates a new SaveSnapshotResponse instance using the specified properties. + * Creates a new GetUserWorkloadsSecretRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse instance + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest instance */ - SaveSnapshotResponse.create = function create(properties) { - return new SaveSnapshotResponse(properties); + GetUserWorkloadsSecretRequest.create = function create(properties) { + return new GetUserWorkloadsSecretRequest(properties); }; /** - * Encodes the specified SaveSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. + * Encodes the specified GetUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse} message SaveSnapshotResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest} message GetUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SaveSnapshotResponse.encode = function encode(message, writer) { + GetUserWorkloadsSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshotPath != null && Object.hasOwnProperty.call(message, "snapshotPath")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.snapshotPath); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SaveSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. + * Encodes the specified GetUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse} message SaveSnapshotResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest} message GetUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SaveSnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SaveSnapshotResponse message from the specified reader or buffer. + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SaveSnapshotResponse.decode = function decode(reader, length) { + GetUserWorkloadsSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.snapshotPath = reader.string(); + message.name = reader.string(); break; } default: @@ -4372,127 +4740,124 @@ }; /** - * Decodes a SaveSnapshotResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SaveSnapshotResponse.decodeDelimited = function decodeDelimited(reader) { + GetUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SaveSnapshotResponse message. + * Verifies a GetUserWorkloadsSecretRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SaveSnapshotResponse.verify = function verify(message) { + GetUserWorkloadsSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) - if (!$util.isString(message.snapshotPath)) - return "snapshotPath: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SaveSnapshotResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest */ - SaveSnapshotResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse) + GetUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse(); - if (object.snapshotPath != null) - message.snapshotPath = String(object.snapshotPath); + var message = new $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SaveSnapshotResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetUserWorkloadsSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} message SaveSnapshotResponse + * @param {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest} message GetUserWorkloadsSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SaveSnapshotResponse.toObject = function toObject(message, options) { + GetUserWorkloadsSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.snapshotPath = ""; - if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) - object.snapshotPath = message.snapshotPath; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SaveSnapshotResponse to JSON. + * Converts this GetUserWorkloadsSecretRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @instance * @returns {Object.} JSON object */ - SaveSnapshotResponse.prototype.toJSON = function toJSON() { + GetUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SaveSnapshotResponse + * Gets the default type url for GetUserWorkloadsSecretRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SaveSnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest"; }; - return SaveSnapshotResponse; + return GetUserWorkloadsSecretRequest; })(); - v1.LoadSnapshotRequest = (function() { + v1.ListUserWorkloadsSecretsRequest = (function() { /** - * Properties of a LoadSnapshotRequest. + * Properties of a ListUserWorkloadsSecretsRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface ILoadSnapshotRequest - * @property {string|null} [environment] LoadSnapshotRequest environment - * @property {string|null} [snapshotPath] LoadSnapshotRequest snapshotPath - * @property {boolean|null} [skipPypiPackagesInstallation] LoadSnapshotRequest skipPypiPackagesInstallation - * @property {boolean|null} [skipEnvironmentVariablesSetting] LoadSnapshotRequest skipEnvironmentVariablesSetting - * @property {boolean|null} [skipAirflowOverridesSetting] LoadSnapshotRequest skipAirflowOverridesSetting - * @property {boolean|null} [skipGcsDataCopying] LoadSnapshotRequest skipGcsDataCopying + * @interface IListUserWorkloadsSecretsRequest + * @property {string|null} [parent] ListUserWorkloadsSecretsRequest parent + * @property {number|null} [pageSize] ListUserWorkloadsSecretsRequest pageSize + * @property {string|null} [pageToken] ListUserWorkloadsSecretsRequest pageToken */ /** - * Constructs a new LoadSnapshotRequest. + * Constructs a new ListUserWorkloadsSecretsRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a LoadSnapshotRequest. - * @implements ILoadSnapshotRequest + * @classdesc Represents a ListUserWorkloadsSecretsRequest. + * @implements IListUserWorkloadsSecretsRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest=} [properties] Properties to set */ - function LoadSnapshotRequest(properties) { + function ListUserWorkloadsSecretsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4500,145 +4865,103 @@ } /** - * LoadSnapshotRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest - * @instance - */ - LoadSnapshotRequest.prototype.environment = ""; - - /** - * LoadSnapshotRequest snapshotPath. - * @member {string} snapshotPath - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest - * @instance - */ - LoadSnapshotRequest.prototype.snapshotPath = ""; - - /** - * LoadSnapshotRequest skipPypiPackagesInstallation. - * @member {boolean} skipPypiPackagesInstallation - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest - * @instance - */ - LoadSnapshotRequest.prototype.skipPypiPackagesInstallation = false; - - /** - * LoadSnapshotRequest skipEnvironmentVariablesSetting. - * @member {boolean} skipEnvironmentVariablesSetting - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * ListUserWorkloadsSecretsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @instance */ - LoadSnapshotRequest.prototype.skipEnvironmentVariablesSetting = false; + ListUserWorkloadsSecretsRequest.prototype.parent = ""; /** - * LoadSnapshotRequest skipAirflowOverridesSetting. - * @member {boolean} skipAirflowOverridesSetting - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * ListUserWorkloadsSecretsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @instance */ - LoadSnapshotRequest.prototype.skipAirflowOverridesSetting = false; + ListUserWorkloadsSecretsRequest.prototype.pageSize = 0; /** - * LoadSnapshotRequest skipGcsDataCopying. - * @member {boolean} skipGcsDataCopying - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * ListUserWorkloadsSecretsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @instance */ - LoadSnapshotRequest.prototype.skipGcsDataCopying = false; + ListUserWorkloadsSecretsRequest.prototype.pageToken = ""; /** - * Creates a new LoadSnapshotRequest instance using the specified properties. + * Creates a new ListUserWorkloadsSecretsRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest instance */ - LoadSnapshotRequest.create = function create(properties) { - return new LoadSnapshotRequest(properties); + ListUserWorkloadsSecretsRequest.create = function create(properties) { + return new ListUserWorkloadsSecretsRequest(properties); }; /** - * Encodes the specified LoadSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. + * Encodes the specified ListUserWorkloadsSecretsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest} message LoadSnapshotRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest} message ListUserWorkloadsSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadSnapshotRequest.encode = function encode(message, writer) { + ListUserWorkloadsSecretsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.snapshotPath != null && Object.hasOwnProperty.call(message, "snapshotPath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotPath); - if (message.skipPypiPackagesInstallation != null && Object.hasOwnProperty.call(message, "skipPypiPackagesInstallation")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipPypiPackagesInstallation); - if (message.skipEnvironmentVariablesSetting != null && Object.hasOwnProperty.call(message, "skipEnvironmentVariablesSetting")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skipEnvironmentVariablesSetting); - if (message.skipAirflowOverridesSetting != null && Object.hasOwnProperty.call(message, "skipAirflowOverridesSetting")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.skipAirflowOverridesSetting); - if (message.skipGcsDataCopying != null && Object.hasOwnProperty.call(message, "skipGcsDataCopying")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.skipGcsDataCopying); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified LoadSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. + * Encodes the specified ListUserWorkloadsSecretsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest} message LoadSnapshotRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest} message ListUserWorkloadsSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUserWorkloadsSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoadSnapshotRequest message from the specified reader or buffer. + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadSnapshotRequest.decode = function decode(reader, length) { + ListUserWorkloadsSecretsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.snapshotPath = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.skipPypiPackagesInstallation = reader.bool(); - break; - } - case 4: { - message.skipEnvironmentVariablesSetting = reader.bool(); - break; - } - case 5: { - message.skipAirflowOverridesSetting = reader.bool(); - break; - } - case 6: { - message.skipGcsDataCopying = reader.bool(); + message.pageToken = reader.string(); break; } default: @@ -4650,162 +4973,139 @@ }; /** - * Decodes a LoadSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + ListUserWorkloadsSecretsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LoadSnapshotRequest message. + * Verifies a ListUserWorkloadsSecretsRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoadSnapshotRequest.verify = function verify(message) { + ListUserWorkloadsSecretsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) - if (!$util.isString(message.snapshotPath)) - return "snapshotPath: string expected"; - if (message.skipPypiPackagesInstallation != null && message.hasOwnProperty("skipPypiPackagesInstallation")) - if (typeof message.skipPypiPackagesInstallation !== "boolean") - return "skipPypiPackagesInstallation: boolean expected"; - if (message.skipEnvironmentVariablesSetting != null && message.hasOwnProperty("skipEnvironmentVariablesSetting")) - if (typeof message.skipEnvironmentVariablesSetting !== "boolean") - return "skipEnvironmentVariablesSetting: boolean expected"; - if (message.skipAirflowOverridesSetting != null && message.hasOwnProperty("skipAirflowOverridesSetting")) - if (typeof message.skipAirflowOverridesSetting !== "boolean") - return "skipAirflowOverridesSetting: boolean expected"; - if (message.skipGcsDataCopying != null && message.hasOwnProperty("skipGcsDataCopying")) - if (typeof message.skipGcsDataCopying !== "boolean") - return "skipGcsDataCopying: boolean expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a LoadSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsSecretsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest */ - LoadSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest) + ListUserWorkloadsSecretsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.snapshotPath != null) - message.snapshotPath = String(object.snapshotPath); - if (object.skipPypiPackagesInstallation != null) - message.skipPypiPackagesInstallation = Boolean(object.skipPypiPackagesInstallation); - if (object.skipEnvironmentVariablesSetting != null) - message.skipEnvironmentVariablesSetting = Boolean(object.skipEnvironmentVariablesSetting); - if (object.skipAirflowOverridesSetting != null) - message.skipAirflowOverridesSetting = Boolean(object.skipAirflowOverridesSetting); - if (object.skipGcsDataCopying != null) - message.skipGcsDataCopying = Boolean(object.skipGcsDataCopying); + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a LoadSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUserWorkloadsSecretsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} message LoadSnapshotRequest + * @param {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest} message ListUserWorkloadsSecretsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoadSnapshotRequest.toObject = function toObject(message, options) { + ListUserWorkloadsSecretsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = ""; - object.snapshotPath = ""; - object.skipPypiPackagesInstallation = false; - object.skipEnvironmentVariablesSetting = false; - object.skipAirflowOverridesSetting = false; - object.skipGcsDataCopying = false; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) - object.snapshotPath = message.snapshotPath; - if (message.skipPypiPackagesInstallation != null && message.hasOwnProperty("skipPypiPackagesInstallation")) - object.skipPypiPackagesInstallation = message.skipPypiPackagesInstallation; - if (message.skipEnvironmentVariablesSetting != null && message.hasOwnProperty("skipEnvironmentVariablesSetting")) - object.skipEnvironmentVariablesSetting = message.skipEnvironmentVariablesSetting; - if (message.skipAirflowOverridesSetting != null && message.hasOwnProperty("skipAirflowOverridesSetting")) - object.skipAirflowOverridesSetting = message.skipAirflowOverridesSetting; - if (message.skipGcsDataCopying != null && message.hasOwnProperty("skipGcsDataCopying")) - object.skipGcsDataCopying = message.skipGcsDataCopying; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this LoadSnapshotRequest to JSON. + * Converts this ListUserWorkloadsSecretsRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @instance * @returns {Object.} JSON object */ - LoadSnapshotRequest.prototype.toJSON = function toJSON() { + ListUserWorkloadsSecretsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LoadSnapshotRequest + * Gets the default type url for ListUserWorkloadsSecretsRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LoadSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUserWorkloadsSecretsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest"; }; - return LoadSnapshotRequest; + return ListUserWorkloadsSecretsRequest; })(); - v1.LoadSnapshotResponse = (function() { + v1.UpdateUserWorkloadsSecretRequest = (function() { /** - * Properties of a LoadSnapshotResponse. + * Properties of an UpdateUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface ILoadSnapshotResponse + * @interface IUpdateUserWorkloadsSecretRequest + * @property {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null} [userWorkloadsSecret] UpdateUserWorkloadsSecretRequest userWorkloadsSecret */ /** - * Constructs a new LoadSnapshotResponse. + * Constructs a new UpdateUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a LoadSnapshotResponse. - * @implements ILoadSnapshotResponse + * @classdesc Represents an UpdateUserWorkloadsSecretRequest. + * @implements IUpdateUserWorkloadsSecretRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest=} [properties] Properties to set */ - function LoadSnapshotResponse(properties) { + function UpdateUserWorkloadsSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4813,63 +5113,77 @@ } /** - * Creates a new LoadSnapshotResponse instance using the specified properties. + * UpdateUserWorkloadsSecretRequest userWorkloadsSecret. + * @member {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret|null|undefined} userWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest + * @instance + */ + UpdateUserWorkloadsSecretRequest.prototype.userWorkloadsSecret = null; + + /** + * Creates a new UpdateUserWorkloadsSecretRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse instance + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest instance */ - LoadSnapshotResponse.create = function create(properties) { - return new LoadSnapshotResponse(properties); + UpdateUserWorkloadsSecretRequest.create = function create(properties) { + return new UpdateUserWorkloadsSecretRequest(properties); }; /** - * Encodes the specified LoadSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. + * Encodes the specified UpdateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse} message LoadSnapshotResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest} message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadSnapshotResponse.encode = function encode(message, writer) { + UpdateUserWorkloadsSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.userWorkloadsSecret != null && Object.hasOwnProperty.call(message, "userWorkloadsSecret")) + $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.encode(message.userWorkloadsSecret, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LoadSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. + * Encodes the specified UpdateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse} message LoadSnapshotResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest} message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadSnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoadSnapshotResponse message from the specified reader or buffer. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadSnapshotResponse.decode = function decode(reader, length) { + UpdateUserWorkloadsSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -4879,109 +5193,127 @@ }; /** - * Decodes a LoadSnapshotResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadSnapshotResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LoadSnapshotResponse message. + * Verifies an UpdateUserWorkloadsSecretRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoadSnapshotResponse.verify = function verify(message) { + UpdateUserWorkloadsSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify(message.userWorkloadsSecret); + if (error) + return "userWorkloadsSecret." + error; + } return null; }; /** - * Creates a LoadSnapshotResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest */ - LoadSnapshotResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse) + UpdateUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest) return object; - return new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse(); + var message = new $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest(); + if (object.userWorkloadsSecret != null) { + if (typeof object.userWorkloadsSecret !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest.userWorkloadsSecret: object expected"); + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.fromObject(object.userWorkloadsSecret); + } + return message; }; /** - * Creates a plain object from a LoadSnapshotResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateUserWorkloadsSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} message LoadSnapshotResponse + * @param {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest} message UpdateUserWorkloadsSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoadSnapshotResponse.toObject = function toObject() { - return {}; + UpdateUserWorkloadsSecretRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.userWorkloadsSecret = null; + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) + object.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.toObject(message.userWorkloadsSecret, options); + return object; }; /** - * Converts this LoadSnapshotResponse to JSON. + * Converts this UpdateUserWorkloadsSecretRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @instance * @returns {Object.} JSON object */ - LoadSnapshotResponse.prototype.toJSON = function toJSON() { + UpdateUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LoadSnapshotResponse + * Gets the default type url for UpdateUserWorkloadsSecretRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LoadSnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest"; }; - return LoadSnapshotResponse; + return UpdateUserWorkloadsSecretRequest; })(); - v1.DatabaseFailoverRequest = (function() { + v1.DeleteUserWorkloadsSecretRequest = (function() { /** - * Properties of a DatabaseFailoverRequest. + * Properties of a DeleteUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IDatabaseFailoverRequest - * @property {string|null} [environment] DatabaseFailoverRequest environment + * @interface IDeleteUserWorkloadsSecretRequest + * @property {string|null} [name] DeleteUserWorkloadsSecretRequest name */ /** - * Constructs a new DatabaseFailoverRequest. + * Constructs a new DeleteUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a DatabaseFailoverRequest. - * @implements IDatabaseFailoverRequest + * @classdesc Represents a DeleteUserWorkloadsSecretRequest. + * @implements IDeleteUserWorkloadsSecretRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest=} [properties] Properties to set */ - function DatabaseFailoverRequest(properties) { + function DeleteUserWorkloadsSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4989,75 +5321,75 @@ } /** - * DatabaseFailoverRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * DeleteUserWorkloadsSecretRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @instance */ - DatabaseFailoverRequest.prototype.environment = ""; + DeleteUserWorkloadsSecretRequest.prototype.name = ""; /** - * Creates a new DatabaseFailoverRequest instance using the specified properties. + * Creates a new DeleteUserWorkloadsSecretRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest instance + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest instance */ - DatabaseFailoverRequest.create = function create(properties) { - return new DatabaseFailoverRequest(properties); + DeleteUserWorkloadsSecretRequest.create = function create(properties) { + return new DeleteUserWorkloadsSecretRequest(properties); }; /** - * Encodes the specified DatabaseFailoverRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest} message DatabaseFailoverRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest} message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DatabaseFailoverRequest.encode = function encode(message, writer) { + DeleteUserWorkloadsSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DatabaseFailoverRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest} message DatabaseFailoverRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest} message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DatabaseFailoverRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DatabaseFailoverRequest message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DatabaseFailoverRequest.decode = function decode(reader, length) { + DeleteUserWorkloadsSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.name = reader.string(); break; } default: @@ -5069,121 +5401,123 @@ }; /** - * Decodes a DatabaseFailoverRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DatabaseFailoverRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DatabaseFailoverRequest message. + * Verifies a DeleteUserWorkloadsSecretRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DatabaseFailoverRequest.verify = function verify(message) { + DeleteUserWorkloadsSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a DatabaseFailoverRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest */ - DatabaseFailoverRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest) + DeleteUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest(); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a DatabaseFailoverRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteUserWorkloadsSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} message DatabaseFailoverRequest + * @param {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest} message DeleteUserWorkloadsSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DatabaseFailoverRequest.toObject = function toObject(message, options) { + DeleteUserWorkloadsSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.environment = ""; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this DatabaseFailoverRequest to JSON. + * Converts this DeleteUserWorkloadsSecretRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @instance * @returns {Object.} JSON object */ - DatabaseFailoverRequest.prototype.toJSON = function toJSON() { + DeleteUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DatabaseFailoverRequest + * Gets the default type url for DeleteUserWorkloadsSecretRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DatabaseFailoverRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest"; }; - return DatabaseFailoverRequest; + return DeleteUserWorkloadsSecretRequest; })(); - v1.DatabaseFailoverResponse = (function() { + v1.CreateUserWorkloadsConfigMapRequest = (function() { /** - * Properties of a DatabaseFailoverResponse. + * Properties of a CreateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IDatabaseFailoverResponse + * @interface ICreateUserWorkloadsConfigMapRequest + * @property {string|null} [parent] CreateUserWorkloadsConfigMapRequest parent + * @property {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null} [userWorkloadsConfigMap] CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ /** - * Constructs a new DatabaseFailoverResponse. + * Constructs a new CreateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a DatabaseFailoverResponse. - * @implements IDatabaseFailoverResponse + * @classdesc Represents a CreateUserWorkloadsConfigMapRequest. + * @implements ICreateUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function DatabaseFailoverResponse(properties) { + function CreateUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5191,63 +5525,91 @@ } /** - * Creates a new DatabaseFailoverResponse instance using the specified properties. + * CreateUserWorkloadsConfigMapRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest + * @instance + */ + CreateUserWorkloadsConfigMapRequest.prototype.parent = ""; + + /** + * CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. + * @member {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null|undefined} userWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest + * @instance + */ + CreateUserWorkloadsConfigMapRequest.prototype.userWorkloadsConfigMap = null; + + /** + * Creates a new CreateUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse instance + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest instance */ - DatabaseFailoverResponse.create = function create(properties) { - return new DatabaseFailoverResponse(properties); + CreateUserWorkloadsConfigMapRequest.create = function create(properties) { + return new CreateUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified DatabaseFailoverResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. + * Encodes the specified CreateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse} message DatabaseFailoverResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest} message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DatabaseFailoverResponse.encode = function encode(message, writer) { + CreateUserWorkloadsConfigMapRequest.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.userWorkloadsConfigMap != null && Object.hasOwnProperty.call(message, "userWorkloadsConfigMap")) + $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.encode(message.userWorkloadsConfigMap, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DatabaseFailoverResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. + * Encodes the specified CreateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse} message DatabaseFailoverResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest} message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DatabaseFailoverResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DatabaseFailoverResponse message from the specified reader or buffer. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DatabaseFailoverResponse.decode = function decode(reader, length) { + CreateUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -5257,109 +5619,136 @@ }; /** - * Decodes a DatabaseFailoverResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DatabaseFailoverResponse.decodeDelimited = function decodeDelimited(reader) { + CreateUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DatabaseFailoverResponse message. + * Verifies a CreateUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DatabaseFailoverResponse.verify = function verify(message) { + CreateUserWorkloadsConfigMapRequest.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.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify(message.userWorkloadsConfigMap); + if (error) + return "userWorkloadsConfigMap." + error; + } return null; }; /** - * Creates a DatabaseFailoverResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse + * @returns {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest */ - DatabaseFailoverResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse) + CreateUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest) return object; - return new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse(); + var message = new $root.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.userWorkloadsConfigMap != null) { + if (typeof object.userWorkloadsConfigMap !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest.userWorkloadsConfigMap: object expected"); + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.fromObject(object.userWorkloadsConfigMap); + } + return message; }; /** - * Creates a plain object from a DatabaseFailoverResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} message DatabaseFailoverResponse + * @param {google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest} message CreateUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DatabaseFailoverResponse.toObject = function toObject() { - return {}; + CreateUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.userWorkloadsConfigMap = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) + object.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.toObject(message.userWorkloadsConfigMap, options); + return object; }; /** - * Converts this DatabaseFailoverResponse to JSON. + * Converts this CreateUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - DatabaseFailoverResponse.prototype.toJSON = function toJSON() { + CreateUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DatabaseFailoverResponse + * Gets the default type url for CreateUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse + * @memberof google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DatabaseFailoverResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest"; }; - return DatabaseFailoverResponse; + return CreateUserWorkloadsConfigMapRequest; })(); - v1.FetchDatabasePropertiesRequest = (function() { + v1.GetUserWorkloadsConfigMapRequest = (function() { /** - * Properties of a FetchDatabasePropertiesRequest. + * Properties of a GetUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IFetchDatabasePropertiesRequest - * @property {string|null} [environment] FetchDatabasePropertiesRequest environment + * @interface IGetUserWorkloadsConfigMapRequest + * @property {string|null} [name] GetUserWorkloadsConfigMapRequest name */ /** - * Constructs a new FetchDatabasePropertiesRequest. + * Constructs a new GetUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a FetchDatabasePropertiesRequest. - * @implements IFetchDatabasePropertiesRequest + * @classdesc Represents a GetUserWorkloadsConfigMapRequest. + * @implements IGetUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function FetchDatabasePropertiesRequest(properties) { + function GetUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5367,75 +5756,75 @@ } /** - * FetchDatabasePropertiesRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * GetUserWorkloadsConfigMapRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @instance */ - FetchDatabasePropertiesRequest.prototype.environment = ""; + GetUserWorkloadsConfigMapRequest.prototype.name = ""; /** - * Creates a new FetchDatabasePropertiesRequest instance using the specified properties. + * Creates a new GetUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest instance + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest instance */ - FetchDatabasePropertiesRequest.create = function create(properties) { - return new FetchDatabasePropertiesRequest(properties); + GetUserWorkloadsConfigMapRequest.create = function create(properties) { + return new GetUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified FetchDatabasePropertiesRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. + * Encodes the specified GetUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest} message FetchDatabasePropertiesRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest} message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchDatabasePropertiesRequest.encode = function encode(message, writer) { + GetUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FetchDatabasePropertiesRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. + * Encodes the specified GetUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest} message FetchDatabasePropertiesRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest} message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchDatabasePropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchDatabasePropertiesRequest.decode = function decode(reader, length) { + GetUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.name = reader.string(); break; } default: @@ -5447,124 +5836,124 @@ }; /** - * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchDatabasePropertiesRequest.decodeDelimited = function decodeDelimited(reader) { + GetUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchDatabasePropertiesRequest message. + * Verifies a GetUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchDatabasePropertiesRequest.verify = function verify(message) { + GetUserWorkloadsConfigMapRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FetchDatabasePropertiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest + * @returns {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest */ - FetchDatabasePropertiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest) + GetUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest(); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FetchDatabasePropertiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} message FetchDatabasePropertiesRequest + * @param {google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest} message GetUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchDatabasePropertiesRequest.toObject = function toObject(message, options) { + GetUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.environment = ""; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FetchDatabasePropertiesRequest to JSON. + * Converts this GetUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - FetchDatabasePropertiesRequest.prototype.toJSON = function toJSON() { + GetUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchDatabasePropertiesRequest + * Gets the default type url for GetUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest + * @memberof google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchDatabasePropertiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest"; }; - return FetchDatabasePropertiesRequest; + return GetUserWorkloadsConfigMapRequest; })(); - v1.FetchDatabasePropertiesResponse = (function() { + v1.ListUserWorkloadsConfigMapsRequest = (function() { /** - * Properties of a FetchDatabasePropertiesResponse. + * Properties of a ListUserWorkloadsConfigMapsRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IFetchDatabasePropertiesResponse - * @property {string|null} [primaryGceZone] FetchDatabasePropertiesResponse primaryGceZone - * @property {string|null} [secondaryGceZone] FetchDatabasePropertiesResponse secondaryGceZone - * @property {boolean|null} [isFailoverReplicaAvailable] FetchDatabasePropertiesResponse isFailoverReplicaAvailable + * @interface IListUserWorkloadsConfigMapsRequest + * @property {string|null} [parent] ListUserWorkloadsConfigMapsRequest parent + * @property {number|null} [pageSize] ListUserWorkloadsConfigMapsRequest pageSize + * @property {string|null} [pageToken] ListUserWorkloadsConfigMapsRequest pageToken */ /** - * Constructs a new FetchDatabasePropertiesResponse. + * Constructs a new ListUserWorkloadsConfigMapsRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a FetchDatabasePropertiesResponse. - * @implements IFetchDatabasePropertiesResponse + * @classdesc Represents a ListUserWorkloadsConfigMapsRequest. + * @implements IListUserWorkloadsConfigMapsRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest=} [properties] Properties to set */ - function FetchDatabasePropertiesResponse(properties) { + function ListUserWorkloadsConfigMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5572,103 +5961,103 @@ } /** - * FetchDatabasePropertiesResponse primaryGceZone. - * @member {string} primaryGceZone - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * ListUserWorkloadsConfigMapsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @instance */ - FetchDatabasePropertiesResponse.prototype.primaryGceZone = ""; + ListUserWorkloadsConfigMapsRequest.prototype.parent = ""; /** - * FetchDatabasePropertiesResponse secondaryGceZone. - * @member {string} secondaryGceZone - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * ListUserWorkloadsConfigMapsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @instance */ - FetchDatabasePropertiesResponse.prototype.secondaryGceZone = ""; + ListUserWorkloadsConfigMapsRequest.prototype.pageSize = 0; /** - * FetchDatabasePropertiesResponse isFailoverReplicaAvailable. - * @member {boolean} isFailoverReplicaAvailable - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * ListUserWorkloadsConfigMapsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @instance */ - FetchDatabasePropertiesResponse.prototype.isFailoverReplicaAvailable = false; + ListUserWorkloadsConfigMapsRequest.prototype.pageToken = ""; /** - * Creates a new FetchDatabasePropertiesResponse instance using the specified properties. + * Creates a new ListUserWorkloadsConfigMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest instance */ - FetchDatabasePropertiesResponse.create = function create(properties) { - return new FetchDatabasePropertiesResponse(properties); + ListUserWorkloadsConfigMapsRequest.create = function create(properties) { + return new ListUserWorkloadsConfigMapsRequest(properties); }; /** - * Encodes the specified FetchDatabasePropertiesResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse} message FetchDatabasePropertiesResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest} message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchDatabasePropertiesResponse.encode = function encode(message, writer) { + ListUserWorkloadsConfigMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.primaryGceZone != null && Object.hasOwnProperty.call(message, "primaryGceZone")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.primaryGceZone); - if (message.secondaryGceZone != null && Object.hasOwnProperty.call(message, "secondaryGceZone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.secondaryGceZone); - if (message.isFailoverReplicaAvailable != null && Object.hasOwnProperty.call(message, "isFailoverReplicaAvailable")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFailoverReplicaAvailable); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified FetchDatabasePropertiesResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse} message FetchDatabasePropertiesResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest} message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchDatabasePropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListUserWorkloadsConfigMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchDatabasePropertiesResponse.decode = function decode(reader, length) { + ListUserWorkloadsConfigMapsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.primaryGceZone = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.secondaryGceZone = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.isFailoverReplicaAvailable = reader.bool(); + message.pageToken = reader.string(); break; } default: @@ -5680,156 +6069,139 @@ }; /** - * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchDatabasePropertiesResponse.decodeDelimited = function decodeDelimited(reader) { + ListUserWorkloadsConfigMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchDatabasePropertiesResponse message. + * Verifies a ListUserWorkloadsConfigMapsRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchDatabasePropertiesResponse.verify = function verify(message) { + ListUserWorkloadsConfigMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.primaryGceZone != null && message.hasOwnProperty("primaryGceZone")) - if (!$util.isString(message.primaryGceZone)) - return "primaryGceZone: string expected"; - if (message.secondaryGceZone != null && message.hasOwnProperty("secondaryGceZone")) - if (!$util.isString(message.secondaryGceZone)) - return "secondaryGceZone: string expected"; - if (message.isFailoverReplicaAvailable != null && message.hasOwnProperty("isFailoverReplicaAvailable")) - if (typeof message.isFailoverReplicaAvailable !== "boolean") - return "isFailoverReplicaAvailable: boolean expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a FetchDatabasePropertiesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest */ - FetchDatabasePropertiesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse) + ListUserWorkloadsConfigMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse(); - if (object.primaryGceZone != null) - message.primaryGceZone = String(object.primaryGceZone); - if (object.secondaryGceZone != null) - message.secondaryGceZone = String(object.secondaryGceZone); - if (object.isFailoverReplicaAvailable != null) - message.isFailoverReplicaAvailable = Boolean(object.isFailoverReplicaAvailable); + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a FetchDatabasePropertiesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListUserWorkloadsConfigMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} message FetchDatabasePropertiesResponse + * @param {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest} message ListUserWorkloadsConfigMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchDatabasePropertiesResponse.toObject = function toObject(message, options) { + ListUserWorkloadsConfigMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.primaryGceZone = ""; - object.secondaryGceZone = ""; - object.isFailoverReplicaAvailable = false; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.primaryGceZone != null && message.hasOwnProperty("primaryGceZone")) - object.primaryGceZone = message.primaryGceZone; - if (message.secondaryGceZone != null && message.hasOwnProperty("secondaryGceZone")) - object.secondaryGceZone = message.secondaryGceZone; - if (message.isFailoverReplicaAvailable != null && message.hasOwnProperty("isFailoverReplicaAvailable")) - object.isFailoverReplicaAvailable = message.isFailoverReplicaAvailable; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this FetchDatabasePropertiesResponse to JSON. + * Converts this ListUserWorkloadsConfigMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @instance * @returns {Object.} JSON object */ - FetchDatabasePropertiesResponse.prototype.toJSON = function toJSON() { + ListUserWorkloadsConfigMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchDatabasePropertiesResponse + * Gets the default type url for ListUserWorkloadsConfigMapsRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchDatabasePropertiesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUserWorkloadsConfigMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest"; }; - return FetchDatabasePropertiesResponse; + return ListUserWorkloadsConfigMapsRequest; })(); - v1.EnvironmentConfig = (function() { + v1.UpdateUserWorkloadsConfigMapRequest = (function() { /** - * Properties of an EnvironmentConfig. + * Properties of an UpdateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IEnvironmentConfig - * @property {string|null} [gkeCluster] EnvironmentConfig gkeCluster - * @property {string|null} [dagGcsPrefix] EnvironmentConfig dagGcsPrefix - * @property {number|null} [nodeCount] EnvironmentConfig nodeCount - * @property {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null} [softwareConfig] EnvironmentConfig softwareConfig - * @property {google.cloud.orchestration.airflow.service.v1.INodeConfig|null} [nodeConfig] EnvironmentConfig nodeConfig - * @property {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null} [privateEnvironmentConfig] EnvironmentConfig privateEnvironmentConfig - * @property {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null} [webServerNetworkAccessControl] EnvironmentConfig webServerNetworkAccessControl - * @property {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null} [databaseConfig] EnvironmentConfig databaseConfig - * @property {google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null} [webServerConfig] EnvironmentConfig webServerConfig - * @property {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null} [encryptionConfig] EnvironmentConfig encryptionConfig - * @property {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null} [maintenanceWindow] EnvironmentConfig maintenanceWindow - * @property {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null} [workloadsConfig] EnvironmentConfig workloadsConfig - * @property {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|null} [environmentSize] EnvironmentConfig environmentSize - * @property {string|null} [airflowUri] EnvironmentConfig airflowUri - * @property {string|null} [airflowByoidUri] EnvironmentConfig airflowByoidUri - * @property {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] EnvironmentConfig masterAuthorizedNetworksConfig - * @property {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null} [recoveryConfig] EnvironmentConfig recoveryConfig - * @property {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|null} [resilienceMode] EnvironmentConfig resilienceMode + * @interface IUpdateUserWorkloadsConfigMapRequest + * @property {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null} [userWorkloadsConfigMap] UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ /** - * Constructs a new EnvironmentConfig. + * Constructs a new UpdateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents an EnvironmentConfig. - * @implements IEnvironmentConfig + * @classdesc Represents an UpdateUserWorkloadsConfigMapRequest. + * @implements IUpdateUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function EnvironmentConfig(properties) { + function UpdateUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5837,313 +6209,283 @@ } /** - * EnvironmentConfig gkeCluster. - * @member {string} gkeCluster - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance - */ - EnvironmentConfig.prototype.gkeCluster = ""; - - /** - * EnvironmentConfig dagGcsPrefix. - * @member {string} dagGcsPrefix - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance - */ - EnvironmentConfig.prototype.dagGcsPrefix = ""; - - /** - * EnvironmentConfig nodeCount. - * @member {number} nodeCount - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. + * @member {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap|null|undefined} userWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest * @instance */ - EnvironmentConfig.prototype.nodeCount = 0; + UpdateUserWorkloadsConfigMapRequest.prototype.userWorkloadsConfigMap = null; /** - * EnvironmentConfig softwareConfig. - * @member {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null|undefined} softwareConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Creates a new UpdateUserWorkloadsConfigMapRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest instance */ - EnvironmentConfig.prototype.softwareConfig = null; + UpdateUserWorkloadsConfigMapRequest.create = function create(properties) { + return new UpdateUserWorkloadsConfigMapRequest(properties); + }; /** - * EnvironmentConfig nodeConfig. - * @member {google.cloud.orchestration.airflow.service.v1.INodeConfig|null|undefined} nodeConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest} message UpdateUserWorkloadsConfigMapRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EnvironmentConfig.prototype.nodeConfig = null; + UpdateUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userWorkloadsConfigMap != null && Object.hasOwnProperty.call(message, "userWorkloadsConfigMap")) + $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.encode(message.userWorkloadsConfigMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * EnvironmentConfig privateEnvironmentConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null|undefined} privateEnvironmentConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest} message UpdateUserWorkloadsConfigMapRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EnvironmentConfig.prototype.privateEnvironmentConfig = null; + UpdateUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * EnvironmentConfig webServerNetworkAccessControl. - * @member {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null|undefined} webServerNetworkAccessControl - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnvironmentConfig.prototype.webServerNetworkAccessControl = null; + UpdateUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * EnvironmentConfig databaseConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null|undefined} databaseConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnvironmentConfig.prototype.databaseConfig = null; + UpdateUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * EnvironmentConfig webServerConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null|undefined} webServerConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Verifies an UpdateUserWorkloadsConfigMapRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnvironmentConfig.prototype.webServerConfig = null; + UpdateUserWorkloadsConfigMapRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify(message.userWorkloadsConfigMap); + if (error) + return "userWorkloadsConfigMap." + error; + } + return null; + }; /** - * EnvironmentConfig encryptionConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null|undefined} encryptionConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Creates an UpdateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest */ - EnvironmentConfig.prototype.encryptionConfig = null; + UpdateUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest(); + if (object.userWorkloadsConfigMap != null) { + if (typeof object.userWorkloadsConfigMap !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest.userWorkloadsConfigMap: object expected"); + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.fromObject(object.userWorkloadsConfigMap); + } + return message; + }; /** - * EnvironmentConfig maintenanceWindow. - * @member {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null|undefined} maintenanceWindow - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Creates a plain object from an UpdateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest} message UpdateUserWorkloadsConfigMapRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - EnvironmentConfig.prototype.maintenanceWindow = null; + UpdateUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.userWorkloadsConfigMap = null; + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) + object.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.toObject(message.userWorkloadsConfigMap, options); + return object; + }; /** - * EnvironmentConfig workloadsConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null|undefined} workloadsConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * Converts this UpdateUserWorkloadsConfigMapRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest * @instance + * @returns {Object.} JSON object */ - EnvironmentConfig.prototype.workloadsConfig = null; + UpdateUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * EnvironmentConfig environmentSize. - * @member {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize} environmentSize - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Gets the default type url for UpdateUserWorkloadsConfigMapRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - EnvironmentConfig.prototype.environmentSize = 0; + UpdateUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest"; + }; - /** - * EnvironmentConfig airflowUri. - * @member {string} airflowUri - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance - */ - EnvironmentConfig.prototype.airflowUri = ""; + return UpdateUserWorkloadsConfigMapRequest; + })(); - /** - * EnvironmentConfig airflowByoidUri. - * @member {string} airflowByoidUri - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance - */ - EnvironmentConfig.prototype.airflowByoidUri = ""; + v1.DeleteUserWorkloadsConfigMapRequest = (function() { /** - * EnvironmentConfig masterAuthorizedNetworksConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null|undefined} masterAuthorizedNetworksConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Properties of a DeleteUserWorkloadsConfigMapRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IDeleteUserWorkloadsConfigMapRequest + * @property {string|null} [name] DeleteUserWorkloadsConfigMapRequest name */ - EnvironmentConfig.prototype.masterAuthorizedNetworksConfig = null; /** - * EnvironmentConfig recoveryConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null|undefined} recoveryConfig - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig - * @instance + * Constructs a new DeleteUserWorkloadsConfigMapRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a DeleteUserWorkloadsConfigMapRequest. + * @implements IDeleteUserWorkloadsConfigMapRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - EnvironmentConfig.prototype.recoveryConfig = null; + function DeleteUserWorkloadsConfigMapRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * EnvironmentConfig resilienceMode. - * @member {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode} resilienceMode - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * DeleteUserWorkloadsConfigMapRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @instance */ - EnvironmentConfig.prototype.resilienceMode = 0; + DeleteUserWorkloadsConfigMapRequest.prototype.name = ""; /** - * Creates a new EnvironmentConfig instance using the specified properties. + * Creates a new DeleteUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest instance */ - EnvironmentConfig.create = function create(properties) { - return new EnvironmentConfig(properties); + DeleteUserWorkloadsConfigMapRequest.create = function create(properties) { + return new DeleteUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest} message DeleteUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnvironmentConfig.encode = function encode(message, writer) { + DeleteUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gkeCluster != null && Object.hasOwnProperty.call(message, "gkeCluster")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gkeCluster); - if (message.dagGcsPrefix != null && Object.hasOwnProperty.call(message, "dagGcsPrefix")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dagGcsPrefix); - if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.nodeCount); - if (message.softwareConfig != null && Object.hasOwnProperty.call(message, "softwareConfig")) - $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.encode(message.softwareConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig")) - $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.airflowUri != null && Object.hasOwnProperty.call(message, "airflowUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.airflowUri); - if (message.privateEnvironmentConfig != null && Object.hasOwnProperty.call(message, "privateEnvironmentConfig")) - $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.encode(message.privateEnvironmentConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.webServerNetworkAccessControl != null && Object.hasOwnProperty.call(message, "webServerNetworkAccessControl")) - $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.encode(message.webServerNetworkAccessControl, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.databaseConfig != null && Object.hasOwnProperty.call(message, "databaseConfig")) - $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.encode(message.databaseConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.webServerConfig != null && Object.hasOwnProperty.call(message, "webServerConfig")) - $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.encode(message.webServerConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig")) - $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.maintenanceWindow != null && Object.hasOwnProperty.call(message, "maintenanceWindow")) - $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.encode(message.maintenanceWindow, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.workloadsConfig != null && Object.hasOwnProperty.call(message, "workloadsConfig")) - $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.encode(message.workloadsConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.environmentSize != null && Object.hasOwnProperty.call(message, "environmentSize")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.environmentSize); - if (message.masterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "masterAuthorizedNetworksConfig")) - $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.recoveryConfig != null && Object.hasOwnProperty.call(message, "recoveryConfig")) - $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.encode(message.recoveryConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.resilienceMode != null && Object.hasOwnProperty.call(message, "resilienceMode")) - writer.uint32(/* id 19, wireType 0 =*/152).int32(message.resilienceMode); - if (message.airflowByoidUri != null && Object.hasOwnProperty.call(message, "airflowByoidUri")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.airflowByoidUri); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest} message DeleteUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) { + DeleteUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnvironmentConfig message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnvironmentConfig.decode = function decode(reader, length) { + DeleteUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.gkeCluster = reader.string(); - break; - } - case 2: { - message.dagGcsPrefix = reader.string(); - break; - } - case 3: { - message.nodeCount = reader.int32(); - break; - } - case 4: { - message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.decode(reader, reader.uint32()); - break; - } - case 5: { - message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.decode(reader, reader.uint32()); - break; - } - case 7: { - message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.decode(reader, reader.uint32()); - break; - } - case 8: { - message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.decode(reader, reader.uint32()); - break; - } - case 9: { - message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.decode(reader, reader.uint32()); - break; - } - case 11: { - message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.decode(reader, reader.uint32()); - break; - } - case 12: { - message.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.decode(reader, reader.uint32()); - break; - } - case 15: { - message.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.decode(reader, reader.uint32()); - break; - } - case 16: { - message.environmentSize = reader.int32(); - break; - } - case 6: { - message.airflowUri = reader.string(); - break; - } - case 20: { - message.airflowByoidUri = reader.string(); - break; - } - case 17: { - message.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); - break; - } - case 18: { - message.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.decode(reader, reader.uint32()); - break; - } - case 19: { - message.resilienceMode = reader.int32(); + message.name = reader.string(); break; } default: @@ -6155,395 +6497,124 @@ }; /** - * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnvironmentConfig.decodeDelimited = function decodeDelimited(reader) { + DeleteUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnvironmentConfig message. + * Verifies a DeleteUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnvironmentConfig.verify = function verify(message) { + DeleteUserWorkloadsConfigMapRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster")) - if (!$util.isString(message.gkeCluster)) - return "gkeCluster: string expected"; - if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix")) - if (!$util.isString(message.dagGcsPrefix)) - return "dagGcsPrefix: string expected"; - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - if (!$util.isInteger(message.nodeCount)) - return "nodeCount: integer expected"; - if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify(message.softwareConfig); - if (error) - return "softwareConfig." + error; - } - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.verify(message.nodeConfig); - if (error) - return "nodeConfig." + error; - } - if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify(message.privateEnvironmentConfig); - if (error) - return "privateEnvironmentConfig." + error; - } - if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify(message.webServerNetworkAccessControl); - if (error) - return "webServerNetworkAccessControl." + error; - } - if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify(message.databaseConfig); - if (error) - return "databaseConfig." + error; - } - if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify(message.webServerConfig); - if (error) - return "webServerConfig." + error; - } - if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify(message.encryptionConfig); - if (error) - return "encryptionConfig." + error; - } - if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify(message.maintenanceWindow); - if (error) - return "maintenanceWindow." + error; - } - if (message.workloadsConfig != null && message.hasOwnProperty("workloadsConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify(message.workloadsConfig); - if (error) - return "workloadsConfig." + error; - } - if (message.environmentSize != null && message.hasOwnProperty("environmentSize")) - switch (message.environmentSize) { - default: - return "environmentSize: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.airflowUri != null && message.hasOwnProperty("airflowUri")) - if (!$util.isString(message.airflowUri)) - return "airflowUri: string expected"; - if (message.airflowByoidUri != null && message.hasOwnProperty("airflowByoidUri")) - if (!$util.isString(message.airflowByoidUri)) - return "airflowByoidUri: string expected"; - if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify(message.masterAuthorizedNetworksConfig); - if (error) - return "masterAuthorizedNetworksConfig." + error; - } - if (message.recoveryConfig != null && message.hasOwnProperty("recoveryConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify(message.recoveryConfig); - if (error) - return "recoveryConfig." + error; - } - if (message.resilienceMode != null && message.hasOwnProperty("resilienceMode")) - switch (message.resilienceMode) { - default: - return "resilienceMode: enum value expected"; - case 0: - case 1: - break; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an EnvironmentConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest */ - EnvironmentConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig) + DeleteUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig(); - if (object.gkeCluster != null) - message.gkeCluster = String(object.gkeCluster); - if (object.dagGcsPrefix != null) - message.dagGcsPrefix = String(object.dagGcsPrefix); - if (object.nodeCount != null) - message.nodeCount = object.nodeCount | 0; - if (object.softwareConfig != null) { - if (typeof object.softwareConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.softwareConfig: object expected"); - message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.fromObject(object.softwareConfig); - } - if (object.nodeConfig != null) { - if (typeof object.nodeConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.nodeConfig: object expected"); - message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.fromObject(object.nodeConfig); - } - if (object.privateEnvironmentConfig != null) { - if (typeof object.privateEnvironmentConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.privateEnvironmentConfig: object expected"); - message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.fromObject(object.privateEnvironmentConfig); - } - if (object.webServerNetworkAccessControl != null) { - if (typeof object.webServerNetworkAccessControl !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.webServerNetworkAccessControl: object expected"); - message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.fromObject(object.webServerNetworkAccessControl); - } - if (object.databaseConfig != null) { - if (typeof object.databaseConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.databaseConfig: object expected"); - message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.fromObject(object.databaseConfig); - } - if (object.webServerConfig != null) { - if (typeof object.webServerConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.webServerConfig: object expected"); - message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.fromObject(object.webServerConfig); - } - if (object.encryptionConfig != null) { - if (typeof object.encryptionConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.encryptionConfig: object expected"); - message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.fromObject(object.encryptionConfig); - } - if (object.maintenanceWindow != null) { - if (typeof object.maintenanceWindow !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.maintenanceWindow: object expected"); - message.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.fromObject(object.maintenanceWindow); - } - if (object.workloadsConfig != null) { - if (typeof object.workloadsConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.workloadsConfig: object expected"); - message.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.fromObject(object.workloadsConfig); - } - switch (object.environmentSize) { - default: - if (typeof object.environmentSize === "number") { - message.environmentSize = object.environmentSize; - break; - } - break; - case "ENVIRONMENT_SIZE_UNSPECIFIED": - case 0: - message.environmentSize = 0; - break; - case "ENVIRONMENT_SIZE_SMALL": - case 1: - message.environmentSize = 1; - break; - case "ENVIRONMENT_SIZE_MEDIUM": - case 2: - message.environmentSize = 2; - break; - case "ENVIRONMENT_SIZE_LARGE": - case 3: - message.environmentSize = 3; - break; - } - if (object.airflowUri != null) - message.airflowUri = String(object.airflowUri); - if (object.airflowByoidUri != null) - message.airflowByoidUri = String(object.airflowByoidUri); - if (object.masterAuthorizedNetworksConfig != null) { - if (typeof object.masterAuthorizedNetworksConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.masterAuthorizedNetworksConfig: object expected"); - message.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.fromObject(object.masterAuthorizedNetworksConfig); - } - if (object.recoveryConfig != null) { - if (typeof object.recoveryConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.recoveryConfig: object expected"); - message.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.fromObject(object.recoveryConfig); - } - switch (object.resilienceMode) { - default: - if (typeof object.resilienceMode === "number") { - message.resilienceMode = object.resilienceMode; - break; - } - break; - case "RESILIENCE_MODE_UNSPECIFIED": - case 0: - message.resilienceMode = 0; - break; - case "HIGH_RESILIENCE": - case 1: - message.resilienceMode = 1; - break; - } + var message = new $root.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified. + * Creates a plain object from a DeleteUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} message EnvironmentConfig + * @param {google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest} message DeleteUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnvironmentConfig.toObject = function toObject(message, options) { + DeleteUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.gkeCluster = ""; - object.dagGcsPrefix = ""; - object.nodeCount = 0; - object.softwareConfig = null; - object.nodeConfig = null; - object.airflowUri = ""; - object.privateEnvironmentConfig = null; - object.webServerNetworkAccessControl = null; - object.databaseConfig = null; - object.webServerConfig = null; - object.encryptionConfig = null; - object.maintenanceWindow = null; - object.workloadsConfig = null; - object.environmentSize = options.enums === String ? "ENVIRONMENT_SIZE_UNSPECIFIED" : 0; - object.masterAuthorizedNetworksConfig = null; - object.recoveryConfig = null; - object.resilienceMode = options.enums === String ? "RESILIENCE_MODE_UNSPECIFIED" : 0; - object.airflowByoidUri = ""; - } - if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster")) - object.gkeCluster = message.gkeCluster; - if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix")) - object.dagGcsPrefix = message.dagGcsPrefix; - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - object.nodeCount = message.nodeCount; - if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig")) - object.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.toObject(message.softwareConfig, options); - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) - object.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.toObject(message.nodeConfig, options); - if (message.airflowUri != null && message.hasOwnProperty("airflowUri")) - object.airflowUri = message.airflowUri; - if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig")) - object.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.toObject(message.privateEnvironmentConfig, options); - if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl")) - object.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.toObject(message.webServerNetworkAccessControl, options); - if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig")) - object.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.toObject(message.databaseConfig, options); - if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig")) - object.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.toObject(message.webServerConfig, options); - if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) - object.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.toObject(message.encryptionConfig, options); - if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow")) - object.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.toObject(message.maintenanceWindow, options); - if (message.workloadsConfig != null && message.hasOwnProperty("workloadsConfig")) - object.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.toObject(message.workloadsConfig, options); - if (message.environmentSize != null && message.hasOwnProperty("environmentSize")) - object.environmentSize = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize[message.environmentSize] === undefined ? message.environmentSize : $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize[message.environmentSize] : message.environmentSize; - if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) - object.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options); - if (message.recoveryConfig != null && message.hasOwnProperty("recoveryConfig")) - object.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.toObject(message.recoveryConfig, options); - if (message.resilienceMode != null && message.hasOwnProperty("resilienceMode")) - object.resilienceMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode[message.resilienceMode] === undefined ? message.resilienceMode : $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode[message.resilienceMode] : message.resilienceMode; - if (message.airflowByoidUri != null && message.hasOwnProperty("airflowByoidUri")) - object.airflowByoidUri = message.airflowByoidUri; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this EnvironmentConfig to JSON. + * Converts this DeleteUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - EnvironmentConfig.prototype.toJSON = function toJSON() { + DeleteUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnvironmentConfig + * Gets the default type url for DeleteUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.EnvironmentConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest"; }; - /** - * EnvironmentSize enum. - * @name google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize - * @enum {number} - * @property {number} ENVIRONMENT_SIZE_UNSPECIFIED=0 ENVIRONMENT_SIZE_UNSPECIFIED value - * @property {number} ENVIRONMENT_SIZE_SMALL=1 ENVIRONMENT_SIZE_SMALL value - * @property {number} ENVIRONMENT_SIZE_MEDIUM=2 ENVIRONMENT_SIZE_MEDIUM value - * @property {number} ENVIRONMENT_SIZE_LARGE=3 ENVIRONMENT_SIZE_LARGE value - */ - EnvironmentConfig.EnvironmentSize = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENVIRONMENT_SIZE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENVIRONMENT_SIZE_SMALL"] = 1; - values[valuesById[2] = "ENVIRONMENT_SIZE_MEDIUM"] = 2; - values[valuesById[3] = "ENVIRONMENT_SIZE_LARGE"] = 3; - return values; - })(); - - /** - * ResilienceMode enum. - * @name google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode - * @enum {number} - * @property {number} RESILIENCE_MODE_UNSPECIFIED=0 RESILIENCE_MODE_UNSPECIFIED value - * @property {number} HIGH_RESILIENCE=1 HIGH_RESILIENCE value - */ - EnvironmentConfig.ResilienceMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESILIENCE_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "HIGH_RESILIENCE"] = 1; - return values; - })(); - - return EnvironmentConfig; + return DeleteUserWorkloadsConfigMapRequest; })(); - v1.WebServerNetworkAccessControl = (function() { + v1.UserWorkloadsSecret = (function() { /** - * Properties of a WebServerNetworkAccessControl. + * Properties of a UserWorkloadsSecret. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IWebServerNetworkAccessControl - * @property {Array.|null} [allowedIpRanges] WebServerNetworkAccessControl allowedIpRanges + * @interface IUserWorkloadsSecret + * @property {string|null} [name] UserWorkloadsSecret name + * @property {Object.|null} [data] UserWorkloadsSecret data */ /** - * Constructs a new WebServerNetworkAccessControl. + * Constructs a new UserWorkloadsSecret. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a WebServerNetworkAccessControl. - * @implements IWebServerNetworkAccessControl + * @classdesc Represents a UserWorkloadsSecret. + * @implements IUserWorkloadsSecret * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret=} [properties] Properties to set */ - function WebServerNetworkAccessControl(properties) { - this.allowedIpRanges = []; + function UserWorkloadsSecret(properties) { + this.data = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6551,78 +6622,109 @@ } /** - * WebServerNetworkAccessControl allowedIpRanges. - * @member {Array.} allowedIpRanges - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * UserWorkloadsSecret name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @instance */ - WebServerNetworkAccessControl.prototype.allowedIpRanges = $util.emptyArray; + UserWorkloadsSecret.prototype.name = ""; /** - * Creates a new WebServerNetworkAccessControl instance using the specified properties. + * UserWorkloadsSecret data. + * @member {Object.} data + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret + * @instance + */ + UserWorkloadsSecret.prototype.data = $util.emptyObject; + + /** + * Creates a new UserWorkloadsSecret instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl instance + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} UserWorkloadsSecret instance */ - WebServerNetworkAccessControl.create = function create(properties) { - return new WebServerNetworkAccessControl(properties); + UserWorkloadsSecret.create = function create(properties) { + return new UserWorkloadsSecret(properties); }; /** - * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. + * Encodes the specified UserWorkloadsSecret message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret} message UserWorkloadsSecret message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebServerNetworkAccessControl.encode = function encode(message, writer) { + UserWorkloadsSecret.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowedIpRanges != null && message.allowedIpRanges.length) - for (var i = 0; i < message.allowedIpRanges.length; ++i) - $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.encode(message.allowedIpRanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + for (var keys = Object.keys(message.data), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.data[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. + * Encodes the specified UserWorkloadsSecret message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret} message UserWorkloadsSecret message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebServerNetworkAccessControl.encodeDelimited = function encodeDelimited(message, writer) { + UserWorkloadsSecret.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebServerNetworkAccessControl.decode = function decode(reader, length) { + UserWorkloadsSecret.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.allowedIpRanges && message.allowedIpRanges.length)) - message.allowedIpRanges = []; - message.allowedIpRanges.push($root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + if (message.data === $util.emptyObject) + message.data = {}; + 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.data[key] = value; break; } default: @@ -6634,366 +6736,395 @@ }; /** - * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebServerNetworkAccessControl.decodeDelimited = function decodeDelimited(reader) { + UserWorkloadsSecret.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebServerNetworkAccessControl message. + * Verifies a UserWorkloadsSecret message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebServerNetworkAccessControl.verify = function verify(message) { + UserWorkloadsSecret.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.allowedIpRanges != null && message.hasOwnProperty("allowedIpRanges")) { - if (!Array.isArray(message.allowedIpRanges)) - return "allowedIpRanges: array expected"; - for (var i = 0; i < message.allowedIpRanges.length; ++i) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify(message.allowedIpRanges[i]); - if (error) - return "allowedIpRanges." + error; - } - } - return null; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + if (!$util.isObject(message.data)) + return "data: object expected"; + var key = Object.keys(message.data); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.data[key[i]])) + return "data: string{k:string} expected"; + } + return null; }; /** - * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsSecret message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} UserWorkloadsSecret */ - WebServerNetworkAccessControl.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl) + UserWorkloadsSecret.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl(); - if (object.allowedIpRanges) { - if (!Array.isArray(object.allowedIpRanges)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.allowedIpRanges: array expected"); - message.allowedIpRanges = []; - for (var i = 0; i < object.allowedIpRanges.length; ++i) { - if (typeof object.allowedIpRanges[i] !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.allowedIpRanges: object expected"); - message.allowedIpRanges[i] = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.fromObject(object.allowedIpRanges[i]); - } + var message = new $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret(); + if (object.name != null) + message.name = String(object.name); + if (object.data) { + if (typeof object.data !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.data: object expected"); + message.data = {}; + for (var keys = Object.keys(object.data), i = 0; i < keys.length; ++i) + message.data[keys[i]] = String(object.data[keys[i]]); } return message; }; /** - * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified. + * Creates a plain object from a UserWorkloadsSecret message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} message WebServerNetworkAccessControl + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} message UserWorkloadsSecret * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebServerNetworkAccessControl.toObject = function toObject(message, options) { + UserWorkloadsSecret.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.allowedIpRanges = []; - if (message.allowedIpRanges && message.allowedIpRanges.length) { - object.allowedIpRanges = []; - for (var j = 0; j < message.allowedIpRanges.length; ++j) - object.allowedIpRanges[j] = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.toObject(message.allowedIpRanges[j], options); + if (options.objects || options.defaults) + object.data = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.data && (keys2 = Object.keys(message.data)).length) { + object.data = {}; + for (var j = 0; j < keys2.length; ++j) + object.data[keys2[j]] = message.data[keys2[j]]; } return object; }; /** - * Converts this WebServerNetworkAccessControl to JSON. + * Converts this UserWorkloadsSecret to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @instance * @returns {Object.} JSON object */ - WebServerNetworkAccessControl.prototype.toJSON = function toJSON() { + UserWorkloadsSecret.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WebServerNetworkAccessControl + * Gets the default type url for UserWorkloadsSecret * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WebServerNetworkAccessControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserWorkloadsSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret"; }; - WebServerNetworkAccessControl.AllowedIpRange = (function() { + return UserWorkloadsSecret; + })(); - /** - * Properties of an AllowedIpRange. - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl - * @interface IAllowedIpRange - * @property {string|null} [value] AllowedIpRange value - * @property {string|null} [description] AllowedIpRange description - */ + v1.ListUserWorkloadsSecretsResponse = (function() { - /** - * Constructs a new AllowedIpRange. - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl - * @classdesc Represents an AllowedIpRange. - * @implements IAllowedIpRange - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set - */ - function AllowedIpRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListUserWorkloadsSecretsResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IListUserWorkloadsSecretsResponse + * @property {Array.|null} [userWorkloadsSecrets] ListUserWorkloadsSecretsResponse userWorkloadsSecrets + * @property {string|null} [nextPageToken] ListUserWorkloadsSecretsResponse nextPageToken + */ - /** - * AllowedIpRange value. - * @member {string} value - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @instance - */ - AllowedIpRange.prototype.value = ""; + /** + * Constructs a new ListUserWorkloadsSecretsResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a ListUserWorkloadsSecretsResponse. + * @implements IListUserWorkloadsSecretsResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse=} [properties] Properties to set + */ + function ListUserWorkloadsSecretsResponse(properties) { + this.userWorkloadsSecrets = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * AllowedIpRange description. - * @member {string} description - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @instance - */ - AllowedIpRange.prototype.description = ""; + /** + * ListUserWorkloadsSecretsResponse userWorkloadsSecrets. + * @member {Array.} userWorkloadsSecrets + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @instance + */ + ListUserWorkloadsSecretsResponse.prototype.userWorkloadsSecrets = $util.emptyArray; - /** - * Creates a new AllowedIpRange instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange instance - */ - AllowedIpRange.create = function create(properties) { - return new AllowedIpRange(properties); - }; + /** + * ListUserWorkloadsSecretsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @instance + */ + ListUserWorkloadsSecretsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AllowedIpRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - return writer; - }; + /** + * Creates a new ListUserWorkloadsSecretsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse instance + */ + ListUserWorkloadsSecretsResponse.create = function create(properties) { + return new ListUserWorkloadsSecretsResponse(properties); + }; - /** - * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AllowedIpRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListUserWorkloadsSecretsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse} message ListUserWorkloadsSecretsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListUserWorkloadsSecretsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userWorkloadsSecrets != null && message.userWorkloadsSecrets.length) + for (var i = 0; i < message.userWorkloadsSecrets.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.encode(message.userWorkloadsSecrets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Decodes an AllowedIpRange message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AllowedIpRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = reader.string(); - break; - } - case 2: { - message.description = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListUserWorkloadsSecretsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse} message ListUserWorkloadsSecretsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListUserWorkloadsSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListUserWorkloadsSecretsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.userWorkloadsSecrets && message.userWorkloadsSecrets.length)) + message.userWorkloadsSecrets = []; + message.userWorkloadsSecrets.push($root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AllowedIpRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListUserWorkloadsSecretsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an AllowedIpRange message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AllowedIpRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - return null; - }; - - /** - * Creates an AllowedIpRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange - */ - AllowedIpRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange(); - if (object.value != null) - message.value = String(object.value); - if (object.description != null) - message.description = String(object.description); - return message; - }; - - /** - * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} message AllowedIpRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AllowedIpRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.value = ""; - object.description = ""; + /** + * Verifies a ListUserWorkloadsSecretsResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListUserWorkloadsSecretsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userWorkloadsSecrets != null && message.hasOwnProperty("userWorkloadsSecrets")) { + if (!Array.isArray(message.userWorkloadsSecrets)) + return "userWorkloadsSecrets: array expected"; + for (var i = 0; i < message.userWorkloadsSecrets.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.verify(message.userWorkloadsSecrets[i]); + if (error) + return "userWorkloadsSecrets." + error; } - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListUserWorkloadsSecretsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse + */ + ListUserWorkloadsSecretsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse) return object; - }; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse(); + if (object.userWorkloadsSecrets) { + if (!Array.isArray(object.userWorkloadsSecrets)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse.userWorkloadsSecrets: array expected"); + message.userWorkloadsSecrets = []; + for (var i = 0; i < object.userWorkloadsSecrets.length; ++i) { + if (typeof object.userWorkloadsSecrets[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse.userWorkloadsSecrets: object expected"); + message.userWorkloadsSecrets[i] = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.fromObject(object.userWorkloadsSecrets[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * Converts this AllowedIpRange to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @instance - * @returns {Object.} JSON object - */ - AllowedIpRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListUserWorkloadsSecretsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse} message ListUserWorkloadsSecretsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListUserWorkloadsSecretsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userWorkloadsSecrets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userWorkloadsSecrets && message.userWorkloadsSecrets.length) { + object.userWorkloadsSecrets = []; + for (var j = 0; j < message.userWorkloadsSecrets.length; ++j) + object.userWorkloadsSecrets[j] = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret.toObject(message.userWorkloadsSecrets[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * Gets the default type url for AllowedIpRange - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AllowedIpRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange"; - }; + /** + * Converts this ListUserWorkloadsSecretsResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @instance + * @returns {Object.} JSON object + */ + ListUserWorkloadsSecretsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return AllowedIpRange; - })(); + /** + * Gets the default type url for ListUserWorkloadsSecretsResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListUserWorkloadsSecretsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse"; + }; - return WebServerNetworkAccessControl; + return ListUserWorkloadsSecretsResponse; })(); - v1.DatabaseConfig = (function() { + v1.UserWorkloadsConfigMap = (function() { /** - * Properties of a DatabaseConfig. + * Properties of a UserWorkloadsConfigMap. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IDatabaseConfig - * @property {string|null} [machineType] DatabaseConfig machineType + * @interface IUserWorkloadsConfigMap + * @property {string|null} [name] UserWorkloadsConfigMap name + * @property {Object.|null} [data] UserWorkloadsConfigMap data */ /** - * Constructs a new DatabaseConfig. + * Constructs a new UserWorkloadsConfigMap. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a DatabaseConfig. - * @implements IDatabaseConfig + * @classdesc Represents a UserWorkloadsConfigMap. + * @implements IUserWorkloadsConfigMap * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap=} [properties] Properties to set */ - function DatabaseConfig(properties) { + function UserWorkloadsConfigMap(properties) { + this.data = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7001,75 +7132,109 @@ } /** - * DatabaseConfig machineType. - * @member {string} machineType - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * UserWorkloadsConfigMap name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @instance */ - DatabaseConfig.prototype.machineType = ""; + UserWorkloadsConfigMap.prototype.name = ""; /** - * Creates a new DatabaseConfig instance using the specified properties. + * UserWorkloadsConfigMap data. + * @member {Object.} data + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap + * @instance + */ + UserWorkloadsConfigMap.prototype.data = $util.emptyObject; + + /** + * Creates a new UserWorkloadsConfigMap instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} UserWorkloadsConfigMap instance */ - DatabaseConfig.create = function create(properties) { - return new DatabaseConfig(properties); + UserWorkloadsConfigMap.create = function create(properties) { + return new UserWorkloadsConfigMap(properties); }; /** - * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. + * Encodes the specified UserWorkloadsConfigMap message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig} message DatabaseConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap} message UserWorkloadsConfigMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DatabaseConfig.encode = function encode(message, writer) { + UserWorkloadsConfigMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + for (var keys = Object.keys(message.data), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.data[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. + * Encodes the specified UserWorkloadsConfigMap message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig} message DatabaseConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap} message UserWorkloadsConfigMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DatabaseConfig.encodeDelimited = function encodeDelimited(message, writer) { + UserWorkloadsConfigMap.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DatabaseConfig message from the specified reader or buffer. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DatabaseConfig.decode = function decode(reader, length) { + UserWorkloadsConfigMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.machineType = reader.string(); + message.name = reader.string(); + break; + } + case 2: { + if (message.data === $util.emptyObject) + message.data = {}; + 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.data[key] = value; break; } default: @@ -7081,122 +7246,147 @@ }; /** - * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DatabaseConfig.decodeDelimited = function decodeDelimited(reader) { + UserWorkloadsConfigMap.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DatabaseConfig message. + * Verifies a UserWorkloadsConfigMap message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DatabaseConfig.verify = function verify(message) { + UserWorkloadsConfigMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + if (!$util.isObject(message.data)) + return "data: object expected"; + var key = Object.keys(message.data); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.data[key[i]])) + return "data: string{k:string} expected"; + } return null; }; /** - * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsConfigMap message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig + * @returns {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} UserWorkloadsConfigMap */ - DatabaseConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig) + UserWorkloadsConfigMap.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig(); - if (object.machineType != null) - message.machineType = String(object.machineType); + var message = new $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap(); + if (object.name != null) + message.name = String(object.name); + if (object.data) { + if (typeof object.data !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.data: object expected"); + message.data = {}; + for (var keys = Object.keys(object.data), i = 0; i < keys.length; ++i) + message.data[keys[i]] = String(object.data[keys[i]]); + } return message; }; /** - * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified. + * Creates a plain object from a UserWorkloadsConfigMap message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} message DatabaseConfig + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} message UserWorkloadsConfigMap * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DatabaseConfig.toObject = function toObject(message, options) { + UserWorkloadsConfigMap.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.data = {}; if (options.defaults) - object.machineType = ""; - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.data && (keys2 = Object.keys(message.data)).length) { + object.data = {}; + for (var j = 0; j < keys2.length; ++j) + object.data[keys2[j]] = message.data[keys2[j]]; + } return object; }; /** - * Converts this DatabaseConfig to JSON. + * Converts this UserWorkloadsConfigMap to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @instance * @returns {Object.} JSON object */ - DatabaseConfig.prototype.toJSON = function toJSON() { + UserWorkloadsConfigMap.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DatabaseConfig + * Gets the default type url for UserWorkloadsConfigMap * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DatabaseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserWorkloadsConfigMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap"; }; - return DatabaseConfig; + return UserWorkloadsConfigMap; })(); - v1.WebServerConfig = (function() { + v1.ListUserWorkloadsConfigMapsResponse = (function() { /** - * Properties of a WebServerConfig. + * Properties of a ListUserWorkloadsConfigMapsResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IWebServerConfig - * @property {string|null} [machineType] WebServerConfig machineType + * @interface IListUserWorkloadsConfigMapsResponse + * @property {Array.|null} [userWorkloadsConfigMaps] ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps + * @property {string|null} [nextPageToken] ListUserWorkloadsConfigMapsResponse nextPageToken */ /** - * Constructs a new WebServerConfig. + * Constructs a new ListUserWorkloadsConfigMapsResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a WebServerConfig. - * @implements IWebServerConfig + * @classdesc Represents a ListUserWorkloadsConfigMapsResponse. + * @implements IListUserWorkloadsConfigMapsResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse=} [properties] Properties to set */ - function WebServerConfig(properties) { + function ListUserWorkloadsConfigMapsResponse(properties) { + this.userWorkloadsConfigMaps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7204,75 +7394,92 @@ } /** - * WebServerConfig machineType. - * @member {string} machineType - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps. + * @member {Array.} userWorkloadsConfigMaps + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @instance */ - WebServerConfig.prototype.machineType = ""; + ListUserWorkloadsConfigMapsResponse.prototype.userWorkloadsConfigMaps = $util.emptyArray; /** - * Creates a new WebServerConfig instance using the specified properties. + * ListUserWorkloadsConfigMapsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse + * @instance + */ + ListUserWorkloadsConfigMapsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListUserWorkloadsConfigMapsResponse instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse instance */ - WebServerConfig.create = function create(properties) { - return new WebServerConfig(properties); + ListUserWorkloadsConfigMapsResponse.create = function create(properties) { + return new ListUserWorkloadsConfigMapsResponse(properties); }; /** - * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig} message WebServerConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse} message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebServerConfig.encode = function encode(message, writer) { + ListUserWorkloadsConfigMapsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.userWorkloadsConfigMaps != null && message.userWorkloadsConfigMaps.length) + for (var i = 0; i < message.userWorkloadsConfigMaps.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.encode(message.userWorkloadsConfigMaps[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 WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig} message WebServerConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse} message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebServerConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListUserWorkloadsConfigMapsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebServerConfig message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebServerConfig.decode = function decode(reader, length) { + ListUserWorkloadsConfigMapsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.machineType = reader.string(); + if (!(message.userWorkloadsConfigMaps && message.userWorkloadsConfigMaps.length)) + message.userWorkloadsConfigMaps = []; + message.userWorkloadsConfigMaps.push($root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -7284,122 +7491,151 @@ }; /** - * Decodes a WebServerConfig message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebServerConfig.decodeDelimited = function decodeDelimited(reader) { + ListUserWorkloadsConfigMapsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebServerConfig message. + * Verifies a ListUserWorkloadsConfigMapsResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebServerConfig.verify = function verify(message) { + ListUserWorkloadsConfigMapsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; + if (message.userWorkloadsConfigMaps != null && message.hasOwnProperty("userWorkloadsConfigMaps")) { + if (!Array.isArray(message.userWorkloadsConfigMaps)) + return "userWorkloadsConfigMaps: array expected"; + for (var i = 0; i < message.userWorkloadsConfigMaps.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.verify(message.userWorkloadsConfigMaps[i]); + if (error) + return "userWorkloadsConfigMaps." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig + * @returns {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse */ - WebServerConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig) + ListUserWorkloadsConfigMapsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig(); - if (object.machineType != null) - message.machineType = String(object.machineType); + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse(); + if (object.userWorkloadsConfigMaps) { + if (!Array.isArray(object.userWorkloadsConfigMaps)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse.userWorkloadsConfigMaps: array expected"); + message.userWorkloadsConfigMaps = []; + for (var i = 0; i < object.userWorkloadsConfigMaps.length; ++i) { + if (typeof object.userWorkloadsConfigMaps[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse.userWorkloadsConfigMaps: object expected"); + message.userWorkloadsConfigMaps[i] = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.fromObject(object.userWorkloadsConfigMaps[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListUserWorkloadsConfigMapsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.WebServerConfig} message WebServerConfig + * @param {google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse} message ListUserWorkloadsConfigMapsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebServerConfig.toObject = function toObject(message, options) { + ListUserWorkloadsConfigMapsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.userWorkloadsConfigMaps = []; if (options.defaults) - object.machineType = ""; - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; + object.nextPageToken = ""; + if (message.userWorkloadsConfigMaps && message.userWorkloadsConfigMaps.length) { + object.userWorkloadsConfigMaps = []; + for (var j = 0; j < message.userWorkloadsConfigMaps.length; ++j) + object.userWorkloadsConfigMaps[j] = $root.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap.toObject(message.userWorkloadsConfigMaps[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this WebServerConfig to JSON. + * Converts this ListUserWorkloadsConfigMapsResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @instance * @returns {Object.} JSON object */ - WebServerConfig.prototype.toJSON = function toJSON() { + ListUserWorkloadsConfigMapsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WebServerConfig + * Gets the default type url for ListUserWorkloadsConfigMapsResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WebServerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUserWorkloadsConfigMapsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse"; }; - return WebServerConfig; + return ListUserWorkloadsConfigMapsResponse; })(); - v1.EncryptionConfig = (function() { + v1.ListWorkloadsRequest = (function() { /** - * Properties of an EncryptionConfig. + * Properties of a ListWorkloadsRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IEncryptionConfig - * @property {string|null} [kmsKeyName] EncryptionConfig kmsKeyName + * @interface IListWorkloadsRequest + * @property {string|null} [parent] ListWorkloadsRequest parent + * @property {number|null} [pageSize] ListWorkloadsRequest pageSize + * @property {string|null} [pageToken] ListWorkloadsRequest pageToken + * @property {string|null} [filter] ListWorkloadsRequest filter */ /** - * Constructs a new EncryptionConfig. + * Constructs a new ListWorkloadsRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents an EncryptionConfig. - * @implements IEncryptionConfig + * @classdesc Represents a ListWorkloadsRequest. + * @implements IListWorkloadsRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest=} [properties] Properties to set */ - function EncryptionConfig(properties) { + function ListWorkloadsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7407,75 +7643,117 @@ } /** - * EncryptionConfig kmsKeyName. - * @member {string} kmsKeyName - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * ListWorkloadsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @instance */ - EncryptionConfig.prototype.kmsKeyName = ""; + ListWorkloadsRequest.prototype.parent = ""; /** - * Creates a new EncryptionConfig instance using the specified properties. + * ListWorkloadsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest + * @instance + */ + ListWorkloadsRequest.prototype.pageSize = 0; + + /** + * ListWorkloadsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest + * @instance + */ + ListWorkloadsRequest.prototype.pageToken = ""; + + /** + * ListWorkloadsRequest filter. + * @member {string} filter + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest + * @instance + */ + ListWorkloadsRequest.prototype.filter = ""; + + /** + * Creates a new ListWorkloadsRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest} ListWorkloadsRequest instance */ - EncryptionConfig.create = function create(properties) { - return new EncryptionConfig(properties); + ListWorkloadsRequest.create = function create(properties) { + return new ListWorkloadsRequest(properties); }; /** - * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. + * Encodes the specified ListWorkloadsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig} message EncryptionConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest} message ListWorkloadsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptionConfig.encode = function encode(message, writer) { + ListWorkloadsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. + * Encodes the specified ListWorkloadsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig} message EncryptionConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest} message ListWorkloadsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListWorkloadsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EncryptionConfig message from the specified reader or buffer. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest} ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptionConfig.decode = function decode(reader, length) { + ListWorkloadsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.kmsKeyName = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); break; } default: @@ -7487,124 +7765,149 @@ }; /** - * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest} ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptionConfig.decodeDelimited = function decodeDelimited(reader) { + ListWorkloadsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EncryptionConfig message. + * Verifies a ListWorkloadsRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EncryptionConfig.verify = function verify(message) { + ListWorkloadsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) - if (!$util.isString(message.kmsKeyName)) - return "kmsKeyName: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest} ListWorkloadsRequest */ - EncryptionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig) + ListWorkloadsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig(); - if (object.kmsKeyName != null) - message.kmsKeyName = String(object.kmsKeyName); + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListWorkloadsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} message EncryptionConfig + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest} message ListWorkloadsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EncryptionConfig.toObject = function toObject(message, options) { + ListWorkloadsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.kmsKeyName = ""; - if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) - object.kmsKeyName = message.kmsKeyName; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this EncryptionConfig to JSON. + * Converts this ListWorkloadsRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @instance * @returns {Object.} JSON object */ - EncryptionConfig.prototype.toJSON = function toJSON() { + ListWorkloadsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EncryptionConfig + * Gets the default type url for ListWorkloadsRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWorkloadsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.EncryptionConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest"; }; - return EncryptionConfig; + return ListWorkloadsRequest; })(); - v1.MaintenanceWindow = (function() { + v1.ListWorkloadsResponse = (function() { /** - * Properties of a MaintenanceWindow. + * Properties of a ListWorkloadsResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IMaintenanceWindow - * @property {google.protobuf.ITimestamp|null} [startTime] MaintenanceWindow startTime - * @property {google.protobuf.ITimestamp|null} [endTime] MaintenanceWindow endTime - * @property {string|null} [recurrence] MaintenanceWindow recurrence + * @interface IListWorkloadsResponse + * @property {Array.|null} [workloads] ListWorkloadsResponse workloads + * @property {string|null} [nextPageToken] ListWorkloadsResponse nextPageToken */ /** - * Constructs a new MaintenanceWindow. + * Constructs a new ListWorkloadsResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a MaintenanceWindow. - * @implements IMaintenanceWindow + * @classdesc Represents a ListWorkloadsResponse. + * @implements IListWorkloadsResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse=} [properties] Properties to set */ - function MaintenanceWindow(properties) { + function ListWorkloadsResponse(properties) { + this.workloads = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7612,103 +7915,92 @@ } /** - * MaintenanceWindow startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.startTime = null; - - /** - * MaintenanceWindow endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * ListWorkloadsResponse workloads. + * @member {Array.} workloads + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @instance */ - MaintenanceWindow.prototype.endTime = null; + ListWorkloadsResponse.prototype.workloads = $util.emptyArray; /** - * MaintenanceWindow recurrence. - * @member {string} recurrence - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * ListWorkloadsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @instance */ - MaintenanceWindow.prototype.recurrence = ""; + ListWorkloadsResponse.prototype.nextPageToken = ""; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * Creates a new ListWorkloadsResponse instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow instance + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse} ListWorkloadsResponse instance */ - MaintenanceWindow.create = function create(properties) { - return new MaintenanceWindow(properties); + ListWorkloadsResponse.create = function create(properties) { + return new ListWorkloadsResponse(properties); }; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified ListWorkloadsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse} message ListWorkloadsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encode = function encode(message, writer) { + ListWorkloadsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.recurrence); + if (message.workloads != null && message.workloads.length) + for (var i = 0; i < message.workloads.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.encode(message.workloads[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 MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified ListWorkloadsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse} message ListWorkloadsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + ListWorkloadsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse} ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decode = function decode(reader, length) { + ListWorkloadsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.workloads && message.workloads.length)) + message.workloads = []; + message.workloads.push($root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.decode(reader, reader.uint32())); break; } case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.recurrence = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -7720,734 +8012,894 @@ }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse} ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + ListWorkloadsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenanceWindow message. + * Verifies a ListWorkloadsResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenanceWindow.verify = function verify(message) { + ListWorkloadsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + if (message.workloads != null && message.hasOwnProperty("workloads")) { + if (!Array.isArray(message.workloads)) + return "workloads: array expected"; + for (var i = 0; i < message.workloads.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.verify(message.workloads[i]); + if (error) + return "workloads." + error; + } } - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - if (!$util.isString(message.recurrence)) - return "recurrence: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse} ListWorkloadsResponse */ - MaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow) + ListWorkloadsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow(); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.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.orchestration.airflow.service.v1.MaintenanceWindow.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse(); + if (object.workloads) { + if (!Array.isArray(object.workloads)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.workloads: array expected"); + message.workloads = []; + for (var i = 0; i < object.workloads.length; ++i) { + if (typeof object.workloads[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.workloads: object expected"); + message.workloads[i] = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.fromObject(object.workloads[i]); + } } - if (object.recurrence != null) - message.recurrence = String(object.recurrence); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a ListWorkloadsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} message MaintenanceWindow + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse} message ListWorkloadsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenanceWindow.toObject = function toObject(message, options) { + ListWorkloadsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.startTime = null; - object.endTime = null; - object.recurrence = ""; + if (options.arrays || options.defaults) + object.workloads = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.workloads && message.workloads.length) { + object.workloads = []; + for (var j = 0; j < message.workloads.length; ++j) + object.workloads[j] = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.toObject(message.workloads[j], options); } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - object.recurrence = message.recurrence; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this MaintenanceWindow to JSON. + * Converts this ListWorkloadsResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @instance * @returns {Object.} JSON object */ - MaintenanceWindow.prototype.toJSON = function toJSON() { + ListWorkloadsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MaintenanceWindow + * Gets the default type url for ListWorkloadsResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWorkloadsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.MaintenanceWindow"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse"; }; - return MaintenanceWindow; - })(); - - v1.SoftwareConfig = (function() { + ListWorkloadsResponse.ComposerWorkload = (function() { - /** - * Properties of a SoftwareConfig. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface ISoftwareConfig - * @property {string|null} [imageVersion] SoftwareConfig imageVersion - * @property {Object.|null} [airflowConfigOverrides] SoftwareConfig airflowConfigOverrides - * @property {Object.|null} [pypiPackages] SoftwareConfig pypiPackages - * @property {Object.|null} [envVariables] SoftwareConfig envVariables - * @property {string|null} [pythonVersion] SoftwareConfig pythonVersion - * @property {number|null} [schedulerCount] SoftwareConfig schedulerCount - */ + /** + * Properties of a ComposerWorkload. + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse + * @interface IComposerWorkload + * @property {string|null} [name] ComposerWorkload name + * @property {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType|null} [type] ComposerWorkload type + * @property {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus|null} [status] ComposerWorkload status + */ - /** - * Constructs a new SoftwareConfig. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a SoftwareConfig. - * @implements ISoftwareConfig - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig=} [properties] Properties to set - */ - function SoftwareConfig(properties) { - this.airflowConfigOverrides = {}; - this.pypiPackages = {}; - this.envVariables = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new ComposerWorkload. + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse + * @classdesc Represents a ComposerWorkload. + * @implements IComposerWorkload + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload=} [properties] Properties to set + */ + function ComposerWorkload(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SoftwareConfig imageVersion. - * @member {string} imageVersion - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - */ - SoftwareConfig.prototype.imageVersion = ""; + /** + * ComposerWorkload name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @instance + */ + ComposerWorkload.prototype.name = ""; - /** - * SoftwareConfig airflowConfigOverrides. - * @member {Object.} airflowConfigOverrides - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - */ - SoftwareConfig.prototype.airflowConfigOverrides = $util.emptyObject; + /** + * ComposerWorkload type. + * @member {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType} type + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @instance + */ + ComposerWorkload.prototype.type = 0; - /** - * SoftwareConfig pypiPackages. - * @member {Object.} pypiPackages - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - */ - SoftwareConfig.prototype.pypiPackages = $util.emptyObject; + /** + * ComposerWorkload status. + * @member {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus|null|undefined} status + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @instance + */ + ComposerWorkload.prototype.status = null; - /** - * SoftwareConfig envVariables. - * @member {Object.} envVariables - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - */ - SoftwareConfig.prototype.envVariables = $util.emptyObject; + /** + * Creates a new ComposerWorkload instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload instance + */ + ComposerWorkload.create = function create(properties) { + return new ComposerWorkload(properties); + }; - /** - * SoftwareConfig pythonVersion. - * @member {string} pythonVersion - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - */ - SoftwareConfig.prototype.pythonVersion = ""; + /** + * Encodes the specified ComposerWorkload message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload} message ComposerWorkload message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComposerWorkload.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.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.encode(message.status, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * SoftwareConfig schedulerCount. - * @member {number} schedulerCount - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - */ - SoftwareConfig.prototype.schedulerCount = 0; + /** + * Encodes the specified ComposerWorkload message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload} message ComposerWorkload message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComposerWorkload.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new SoftwareConfig instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig instance - */ - SoftwareConfig.create = function create(properties) { - return new SoftwareConfig(properties); - }; + /** + * Decodes a ComposerWorkload message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComposerWorkload.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.type = reader.int32(); + break; + } + case 3: { + message.status = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig} message SoftwareConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SoftwareConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersion); - if (message.airflowConfigOverrides != null && Object.hasOwnProperty.call(message, "airflowConfigOverrides")) - for (var keys = Object.keys(message.airflowConfigOverrides), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.airflowConfigOverrides[keys[i]]).ldelim(); - if (message.pypiPackages != null && Object.hasOwnProperty.call(message, "pypiPackages")) - for (var keys = Object.keys(message.pypiPackages), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.pypiPackages[keys[i]]).ldelim(); - if (message.envVariables != null && Object.hasOwnProperty.call(message, "envVariables")) - for (var keys = Object.keys(message.envVariables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.envVariables[keys[i]]).ldelim(); - if (message.pythonVersion != null && Object.hasOwnProperty.call(message, "pythonVersion")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pythonVersion); - if (message.schedulerCount != null && Object.hasOwnProperty.call(message, "schedulerCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.schedulerCount); - return writer; - }; + /** + * Decodes a ComposerWorkload message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComposerWorkload.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig} message SoftwareConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SoftwareConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a ComposerWorkload message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComposerWorkload.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.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; - /** - * Decodes a SoftwareConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SoftwareConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.imageVersion = reader.string(); - break; - } - case 2: { - if (message.airflowConfigOverrides === $util.emptyObject) - message.airflowConfigOverrides = {}; - 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.airflowConfigOverrides[key] = value; - break; - } - case 3: { - if (message.pypiPackages === $util.emptyObject) - message.pypiPackages = {}; - 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.pypiPackages[key] = value; - break; - } - case 4: { - if (message.envVariables === $util.emptyObject) - message.envVariables = {}; - 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.envVariables[key] = value; - break; - } - case 6: { - message.pythonVersion = reader.string(); - break; - } - case 7: { - message.schedulerCount = reader.int32(); + /** + * Creates a ComposerWorkload message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload + */ + ComposerWorkload.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; break; } - default: - reader.skipType(tag & 7); + break; + case "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CELERY_WORKER": + case 1: + message.type = 1; + break; + case "KUBERNETES_WORKER": + case 2: + message.type = 2; + break; + case "KUBERNETES_OPERATOR_POD": + case 3: + message.type = 3; + break; + case "SCHEDULER": + case 4: + message.type = 4; + break; + case "DAG_PROCESSOR": + case 5: + message.type = 5; + break; + case "TRIGGERER": + case 6: + message.type = 6; + break; + case "WEB_SERVER": + case 7: + message.type = 7; + break; + case "REDIS": + case 8: + message.type = 8; break; } - } - return message; - }; + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload.status: object expected"); + message.status = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.fromObject(object.status); + } + return message; + }; - /** - * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SoftwareConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a ComposerWorkload message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload} message ComposerWorkload + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComposerWorkload.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED" : 0; + object.status = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType[message.type] === undefined ? message.type : $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType[message.type] : message.type; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.toObject(message.status, options); + return object; + }; + + /** + * Converts this ComposerWorkload to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @instance + * @returns {Object.} JSON object + */ + ComposerWorkload.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComposerWorkload + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComposerWorkload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload"; + }; + + return ComposerWorkload; + })(); /** - * Verifies a SoftwareConfig message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SoftwareConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) - if (!$util.isString(message.imageVersion)) - return "imageVersion: string expected"; - if (message.airflowConfigOverrides != null && message.hasOwnProperty("airflowConfigOverrides")) { - if (!$util.isObject(message.airflowConfigOverrides)) - return "airflowConfigOverrides: object expected"; - var key = Object.keys(message.airflowConfigOverrides); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.airflowConfigOverrides[key[i]])) - return "airflowConfigOverrides: string{k:string} expected"; - } - if (message.pypiPackages != null && message.hasOwnProperty("pypiPackages")) { - if (!$util.isObject(message.pypiPackages)) - return "pypiPackages: object expected"; - var key = Object.keys(message.pypiPackages); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.pypiPackages[key[i]])) - return "pypiPackages: string{k:string} expected"; - } - if (message.envVariables != null && message.hasOwnProperty("envVariables")) { - if (!$util.isObject(message.envVariables)) - return "envVariables: object expected"; - var key = Object.keys(message.envVariables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.envVariables[key[i]])) - return "envVariables: string{k:string} expected"; - } - if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion")) - if (!$util.isString(message.pythonVersion)) - return "pythonVersion: string expected"; - if (message.schedulerCount != null && message.hasOwnProperty("schedulerCount")) - if (!$util.isInteger(message.schedulerCount)) - return "schedulerCount: integer expected"; - return null; - }; - - /** - * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig - */ - SoftwareConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig(); - if (object.imageVersion != null) - message.imageVersion = String(object.imageVersion); - if (object.airflowConfigOverrides) { - if (typeof object.airflowConfigOverrides !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.airflowConfigOverrides: object expected"); - message.airflowConfigOverrides = {}; - for (var keys = Object.keys(object.airflowConfigOverrides), i = 0; i < keys.length; ++i) - message.airflowConfigOverrides[keys[i]] = String(object.airflowConfigOverrides[keys[i]]); - } - if (object.pypiPackages) { - if (typeof object.pypiPackages !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.pypiPackages: object expected"); - message.pypiPackages = {}; - for (var keys = Object.keys(object.pypiPackages), i = 0; i < keys.length; ++i) - message.pypiPackages[keys[i]] = String(object.pypiPackages[keys[i]]); - } - if (object.envVariables) { - if (typeof object.envVariables !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.envVariables: object expected"); - message.envVariables = {}; - for (var keys = Object.keys(object.envVariables), i = 0; i < keys.length; ++i) - message.envVariables[keys[i]] = String(object.envVariables[keys[i]]); - } - if (object.pythonVersion != null) - message.pythonVersion = String(object.pythonVersion); - if (object.schedulerCount != null) - message.schedulerCount = object.schedulerCount | 0; - return message; - }; + * ComposerWorkloadType enum. + * @name google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadType + * @enum {number} + * @property {number} COMPOSER_WORKLOAD_TYPE_UNSPECIFIED=0 COMPOSER_WORKLOAD_TYPE_UNSPECIFIED value + * @property {number} CELERY_WORKER=1 CELERY_WORKER value + * @property {number} KUBERNETES_WORKER=2 KUBERNETES_WORKER value + * @property {number} KUBERNETES_OPERATOR_POD=3 KUBERNETES_OPERATOR_POD value + * @property {number} SCHEDULER=4 SCHEDULER value + * @property {number} DAG_PROCESSOR=5 DAG_PROCESSOR value + * @property {number} TRIGGERER=6 TRIGGERER value + * @property {number} WEB_SERVER=7 WEB_SERVER value + * @property {number} REDIS=8 REDIS value + */ + ListWorkloadsResponse.ComposerWorkloadType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CELERY_WORKER"] = 1; + values[valuesById[2] = "KUBERNETES_WORKER"] = 2; + values[valuesById[3] = "KUBERNETES_OPERATOR_POD"] = 3; + values[valuesById[4] = "SCHEDULER"] = 4; + values[valuesById[5] = "DAG_PROCESSOR"] = 5; + values[valuesById[6] = "TRIGGERER"] = 6; + values[valuesById[7] = "WEB_SERVER"] = 7; + values[valuesById[8] = "REDIS"] = 8; + return values; + })(); - /** - * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} message SoftwareConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SoftwareConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.airflowConfigOverrides = {}; - object.pypiPackages = {}; - object.envVariables = {}; - } - if (options.defaults) { - object.imageVersion = ""; - object.pythonVersion = ""; - object.schedulerCount = 0; - } - if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) - object.imageVersion = message.imageVersion; - var keys2; - if (message.airflowConfigOverrides && (keys2 = Object.keys(message.airflowConfigOverrides)).length) { - object.airflowConfigOverrides = {}; - for (var j = 0; j < keys2.length; ++j) - object.airflowConfigOverrides[keys2[j]] = message.airflowConfigOverrides[keys2[j]]; - } - if (message.pypiPackages && (keys2 = Object.keys(message.pypiPackages)).length) { - object.pypiPackages = {}; - for (var j = 0; j < keys2.length; ++j) - object.pypiPackages[keys2[j]] = message.pypiPackages[keys2[j]]; - } - if (message.envVariables && (keys2 = Object.keys(message.envVariables)).length) { - object.envVariables = {}; - for (var j = 0; j < keys2.length; ++j) - object.envVariables[keys2[j]] = message.envVariables[keys2[j]]; - } - if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion")) - object.pythonVersion = message.pythonVersion; - if (message.schedulerCount != null && message.hasOwnProperty("schedulerCount")) - object.schedulerCount = message.schedulerCount; - return object; - }; + ListWorkloadsResponse.ComposerWorkloadStatus = (function() { - /** - * Converts this SoftwareConfig to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @instance - * @returns {Object.} JSON object - */ - SoftwareConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a ComposerWorkloadStatus. + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse + * @interface IComposerWorkloadStatus + * @property {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState|null} [state] ComposerWorkloadStatus state + * @property {string|null} [statusMessage] ComposerWorkloadStatus statusMessage + * @property {string|null} [detailedStatusMessage] ComposerWorkloadStatus detailedStatusMessage + */ - /** - * Gets the default type url for SoftwareConfig - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SoftwareConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new ComposerWorkloadStatus. + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse + * @classdesc Represents a ComposerWorkloadStatus. + * @implements IComposerWorkloadStatus + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus=} [properties] Properties to set + */ + function ComposerWorkloadStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SoftwareConfig"; - }; - - return SoftwareConfig; - })(); - - v1.IPAllocationPolicy = (function() { - - /** - * Properties of a IPAllocationPolicy. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IIPAllocationPolicy - * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases - * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName - * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock - * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName - * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock - */ - - /** - * Constructs a new IPAllocationPolicy. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a IPAllocationPolicy. - * @implements IIPAllocationPolicy - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy=} [properties] Properties to set - */ - function IPAllocationPolicy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - /** - * IPAllocationPolicy useIpAliases. - * @member {boolean} useIpAliases - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.useIpAliases = false; + /** + * ComposerWorkloadStatus state. + * @member {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState} state + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @instance + */ + ComposerWorkloadStatus.prototype.state = 0; - /** - * IPAllocationPolicy clusterSecondaryRangeName. - * @member {string|null|undefined} clusterSecondaryRangeName - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.clusterSecondaryRangeName = null; + /** + * ComposerWorkloadStatus statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @instance + */ + ComposerWorkloadStatus.prototype.statusMessage = ""; - /** - * IPAllocationPolicy clusterIpv4CidrBlock. - * @member {string|null|undefined} clusterIpv4CidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.clusterIpv4CidrBlock = null; + /** + * ComposerWorkloadStatus detailedStatusMessage. + * @member {string} detailedStatusMessage + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @instance + */ + ComposerWorkloadStatus.prototype.detailedStatusMessage = ""; - /** - * IPAllocationPolicy servicesSecondaryRangeName. - * @member {string|null|undefined} servicesSecondaryRangeName - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.servicesSecondaryRangeName = null; + /** + * Creates a new ComposerWorkloadStatus instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus instance + */ + ComposerWorkloadStatus.create = function create(properties) { + return new ComposerWorkloadStatus(properties); + }; - /** - * IPAllocationPolicy servicesIpv4CidrBlock. - * @member {string|null|undefined} servicesIpv4CidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.servicesIpv4CidrBlock = null; + /** + * Encodes the specified ComposerWorkloadStatus message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus} message ComposerWorkloadStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComposerWorkloadStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.statusMessage); + if (message.detailedStatusMessage != null && Object.hasOwnProperty.call(message, "detailedStatusMessage")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.detailedStatusMessage); + return writer; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified ComposerWorkloadStatus message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkloadStatus} message ComposerWorkloadStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComposerWorkloadStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * IPAllocationPolicy clusterIpAllocation. - * @member {"clusterSecondaryRangeName"|"clusterIpv4CidrBlock"|undefined} clusterIpAllocation - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + /** + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComposerWorkloadStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + message.statusMessage = reader.string(); + break; + } + case 3: { + message.detailedStatusMessage = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComposerWorkloadStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ComposerWorkloadStatus message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComposerWorkloadStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.detailedStatusMessage != null && message.hasOwnProperty("detailedStatusMessage")) + if (!$util.isString(message.detailedStatusMessage)) + return "detailedStatusMessage: string expected"; + return null; + }; + + /** + * Creates a ComposerWorkloadStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus + */ + ComposerWorkloadStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "COMPOSER_WORKLOAD_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "OK": + case 2: + message.state = 2; + break; + case "WARNING": + case 3: + message.state = 3; + break; + case "ERROR": + case 4: + message.state = 4; + break; + case "SUCCEEDED": + case 5: + message.state = 5; + break; + case "FAILED": + case 6: + message.state = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.detailedStatusMessage != null) + message.detailedStatusMessage = String(object.detailedStatusMessage); + return message; + }; + + /** + * Creates a plain object from a ComposerWorkloadStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus} message ComposerWorkloadStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComposerWorkloadStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.state = options.enums === String ? "COMPOSER_WORKLOAD_STATE_UNSPECIFIED" : 0; + object.statusMessage = ""; + object.detailedStatusMessage = ""; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState[message.state] : message.state; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.detailedStatusMessage != null && message.hasOwnProperty("detailedStatusMessage")) + object.detailedStatusMessage = message.detailedStatusMessage; + return object; + }; + + /** + * Converts this ComposerWorkloadStatus to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @instance + * @returns {Object.} JSON object + */ + ComposerWorkloadStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComposerWorkloadStatus + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComposerWorkloadStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadStatus"; + }; + + return ComposerWorkloadStatus; + })(); + + /** + * ComposerWorkloadState enum. + * @name google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkloadState + * @enum {number} + * @property {number} COMPOSER_WORKLOAD_STATE_UNSPECIFIED=0 COMPOSER_WORKLOAD_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OK=2 OK value + * @property {number} WARNING=3 WARNING value + * @property {number} ERROR=4 ERROR value + * @property {number} SUCCEEDED=5 SUCCEEDED value + * @property {number} FAILED=6 FAILED value + */ + ListWorkloadsResponse.ComposerWorkloadState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPOSER_WORKLOAD_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OK"] = 2; + values[valuesById[3] = "WARNING"] = 3; + values[valuesById[4] = "ERROR"] = 4; + values[valuesById[5] = "SUCCEEDED"] = 5; + values[valuesById[6] = "FAILED"] = 6; + return values; + })(); + + return ListWorkloadsResponse; + })(); + + v1.SaveSnapshotRequest = (function() { + + /** + * Properties of a SaveSnapshotRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface ISaveSnapshotRequest + * @property {string|null} [environment] SaveSnapshotRequest environment + * @property {string|null} [snapshotLocation] SaveSnapshotRequest snapshotLocation + */ + + /** + * Constructs a new SaveSnapshotRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a SaveSnapshotRequest. + * @implements ISaveSnapshotRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest=} [properties] Properties to set + */ + function SaveSnapshotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SaveSnapshotRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @instance */ - Object.defineProperty(IPAllocationPolicy.prototype, "clusterIpAllocation", { - get: $util.oneOfGetter($oneOfFields = ["clusterSecondaryRangeName", "clusterIpv4CidrBlock"]), - set: $util.oneOfSetter($oneOfFields) - }); + SaveSnapshotRequest.prototype.environment = ""; /** - * IPAllocationPolicy servicesIpAllocation. - * @member {"servicesSecondaryRangeName"|"servicesIpv4CidrBlock"|undefined} servicesIpAllocation - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * SaveSnapshotRequest snapshotLocation. + * @member {string} snapshotLocation + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @instance */ - Object.defineProperty(IPAllocationPolicy.prototype, "servicesIpAllocation", { - get: $util.oneOfGetter($oneOfFields = ["servicesSecondaryRangeName", "servicesIpv4CidrBlock"]), - set: $util.oneOfSetter($oneOfFields) - }); + SaveSnapshotRequest.prototype.snapshotLocation = ""; /** - * Creates a new IPAllocationPolicy instance using the specified properties. + * Creates a new SaveSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy instance + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest instance */ - IPAllocationPolicy.create = function create(properties) { - return new IPAllocationPolicy(properties); + SaveSnapshotRequest.create = function create(properties) { + return new SaveSnapshotRequest(properties); }; /** - * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. + * Encodes the specified SaveSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest} message SaveSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IPAllocationPolicy.encode = function encode(message, writer) { + SaveSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); - if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterSecondaryRangeName); - if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.servicesSecondaryRangeName); - if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4CidrBlock); - if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.servicesIpv4CidrBlock); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.snapshotLocation != null && Object.hasOwnProperty.call(message, "snapshotLocation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotLocation); return writer; }; /** - * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. + * Encodes the specified SaveSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest} message SaveSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + SaveSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer. + * Decodes a SaveSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IPAllocationPolicy.decode = function decode(reader, length) { + SaveSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.useIpAliases = reader.bool(); + message.environment = reader.string(); break; } case 2: { - message.clusterSecondaryRangeName = reader.string(); - break; - } - case 4: { - message.clusterIpv4CidrBlock = reader.string(); - break; - } - case 3: { - message.servicesSecondaryRangeName = reader.string(); - break; - } - case 5: { - message.servicesIpv4CidrBlock = reader.string(); + message.snapshotLocation = reader.string(); break; } default: @@ -8459,186 +8911,131 @@ }; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. + * Decodes a SaveSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) { + SaveSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a IPAllocationPolicy message. + * Verifies a SaveSnapshotRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IPAllocationPolicy.verify = function verify(message) { + SaveSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) - if (typeof message.useIpAliases !== "boolean") - return "useIpAliases: boolean expected"; - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) { - properties.clusterIpAllocation = 1; - if (!$util.isString(message.clusterSecondaryRangeName)) - return "clusterSecondaryRangeName: string expected"; - } - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) { - if (properties.clusterIpAllocation === 1) - return "clusterIpAllocation: multiple values"; - properties.clusterIpAllocation = 1; - if (!$util.isString(message.clusterIpv4CidrBlock)) - return "clusterIpv4CidrBlock: string expected"; - } - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) { - properties.servicesIpAllocation = 1; - if (!$util.isString(message.servicesSecondaryRangeName)) - return "servicesSecondaryRangeName: string expected"; - } - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) { - if (properties.servicesIpAllocation === 1) - return "servicesIpAllocation: multiple values"; - properties.servicesIpAllocation = 1; - if (!$util.isString(message.servicesIpv4CidrBlock)) - return "servicesIpv4CidrBlock: string expected"; - } + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) + if (!$util.isString(message.snapshotLocation)) + return "snapshotLocation: string expected"; return null; }; /** - * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a SaveSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} SaveSnapshotRequest */ - IPAllocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy) + SaveSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy(); - if (object.useIpAliases != null) - message.useIpAliases = Boolean(object.useIpAliases); - if (object.clusterSecondaryRangeName != null) - message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName); - if (object.clusterIpv4CidrBlock != null) - message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock); - if (object.servicesSecondaryRangeName != null) - message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName); - if (object.servicesIpv4CidrBlock != null) - message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock); + var message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.snapshotLocation != null) + message.snapshotLocation = String(object.snapshotLocation); return message; }; /** - * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. + * Creates a plain object from a SaveSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} message IPAllocationPolicy + * @param {google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest} message SaveSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IPAllocationPolicy.toObject = function toObject(message, options) { + SaveSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.useIpAliases = false; - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) - object.useIpAliases = message.useIpAliases; - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) { - object.clusterSecondaryRangeName = message.clusterSecondaryRangeName; - if (options.oneofs) - object.clusterIpAllocation = "clusterSecondaryRangeName"; - } - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) { - object.servicesSecondaryRangeName = message.servicesSecondaryRangeName; - if (options.oneofs) - object.servicesIpAllocation = "servicesSecondaryRangeName"; - } - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) { - object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock; - if (options.oneofs) - object.clusterIpAllocation = "clusterIpv4CidrBlock"; - } - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) { - object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock; - if (options.oneofs) - object.servicesIpAllocation = "servicesIpv4CidrBlock"; + if (options.defaults) { + object.environment = ""; + object.snapshotLocation = ""; } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) + object.snapshotLocation = message.snapshotLocation; return object; }; /** - * Converts this IPAllocationPolicy to JSON. + * Converts this SaveSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @instance * @returns {Object.} JSON object */ - IPAllocationPolicy.prototype.toJSON = function toJSON() { + SaveSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IPAllocationPolicy + * Gets the default type url for SaveSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IPAllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SaveSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest"; }; - return IPAllocationPolicy; + return SaveSnapshotRequest; })(); - v1.NodeConfig = (function() { + v1.SaveSnapshotResponse = (function() { /** - * Properties of a NodeConfig. + * Properties of a SaveSnapshotResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface INodeConfig - * @property {string|null} [location] NodeConfig location - * @property {string|null} [machineType] NodeConfig machineType - * @property {string|null} [network] NodeConfig network - * @property {string|null} [subnetwork] NodeConfig subnetwork - * @property {number|null} [diskSizeGb] NodeConfig diskSizeGb - * @property {Array.|null} [oauthScopes] NodeConfig oauthScopes - * @property {string|null} [serviceAccount] NodeConfig serviceAccount - * @property {Array.|null} [tags] NodeConfig tags - * @property {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] NodeConfig ipAllocationPolicy - * @property {boolean|null} [enableIpMasqAgent] NodeConfig enableIpMasqAgent + * @interface ISaveSnapshotResponse + * @property {string|null} [snapshotPath] SaveSnapshotResponse snapshotPath */ /** - * Constructs a new NodeConfig. + * Constructs a new SaveSnapshotResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a NodeConfig. - * @implements INodeConfig + * @classdesc Represents a SaveSnapshotResponse. + * @implements ISaveSnapshotResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse=} [properties] Properties to set */ - function NodeConfig(properties) { - this.oauthScopes = []; - this.tags = []; + function SaveSnapshotResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8646,207 +9043,353 @@ } /** - * NodeConfig location. - * @member {string} location - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig - * @instance - */ - NodeConfig.prototype.location = ""; - - /** - * NodeConfig machineType. - * @member {string} machineType - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * SaveSnapshotResponse snapshotPath. + * @member {string} snapshotPath + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse * @instance */ - NodeConfig.prototype.machineType = ""; + SaveSnapshotResponse.prototype.snapshotPath = ""; /** - * NodeConfig network. - * @member {string} network - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig - * @instance + * Creates a new SaveSnapshotResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse instance */ - NodeConfig.prototype.network = ""; + SaveSnapshotResponse.create = function create(properties) { + return new SaveSnapshotResponse(properties); + }; /** - * NodeConfig subnetwork. - * @member {string} subnetwork - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig - * @instance + * Encodes the specified SaveSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse} message SaveSnapshotResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - NodeConfig.prototype.subnetwork = ""; + SaveSnapshotResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.snapshotPath != null && Object.hasOwnProperty.call(message, "snapshotPath")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.snapshotPath); + return writer; + }; /** - * NodeConfig diskSizeGb. - * @member {number} diskSizeGb - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig - * @instance + * Encodes the specified SaveSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse} message SaveSnapshotResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - NodeConfig.prototype.diskSizeGb = 0; + SaveSnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * NodeConfig oauthScopes. - * @member {Array.} oauthScopes - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig - * @instance + * Decodes a SaveSnapshotResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeConfig.prototype.oauthScopes = $util.emptyArray; + SaveSnapshotResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.snapshotPath = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * NodeConfig serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig - * @instance + * Decodes a SaveSnapshotResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeConfig.prototype.serviceAccount = ""; + SaveSnapshotResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * NodeConfig tags. - * @member {Array.} tags - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * Verifies a SaveSnapshotResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SaveSnapshotResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) + if (!$util.isString(message.snapshotPath)) + return "snapshotPath: string expected"; + return null; + }; + + /** + * Creates a SaveSnapshotResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} SaveSnapshotResponse + */ + SaveSnapshotResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse(); + if (object.snapshotPath != null) + message.snapshotPath = String(object.snapshotPath); + return message; + }; + + /** + * Creates a plain object from a SaveSnapshotResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse} message SaveSnapshotResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SaveSnapshotResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.snapshotPath = ""; + if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) + object.snapshotPath = message.snapshotPath; + return object; + }; + + /** + * Converts this SaveSnapshotResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse * @instance + * @returns {Object.} JSON object */ - NodeConfig.prototype.tags = $util.emptyArray; + SaveSnapshotResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * NodeConfig ipAllocationPolicy. - * @member {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * Gets the default type url for SaveSnapshotResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SaveSnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse"; + }; + + return SaveSnapshotResponse; + })(); + + v1.LoadSnapshotRequest = (function() { + + /** + * Properties of a LoadSnapshotRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface ILoadSnapshotRequest + * @property {string|null} [environment] LoadSnapshotRequest environment + * @property {string|null} [snapshotPath] LoadSnapshotRequest snapshotPath + * @property {boolean|null} [skipPypiPackagesInstallation] LoadSnapshotRequest skipPypiPackagesInstallation + * @property {boolean|null} [skipEnvironmentVariablesSetting] LoadSnapshotRequest skipEnvironmentVariablesSetting + * @property {boolean|null} [skipAirflowOverridesSetting] LoadSnapshotRequest skipAirflowOverridesSetting + * @property {boolean|null} [skipGcsDataCopying] LoadSnapshotRequest skipGcsDataCopying + */ + + /** + * Constructs a new LoadSnapshotRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a LoadSnapshotRequest. + * @implements ILoadSnapshotRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest=} [properties] Properties to set + */ + function LoadSnapshotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LoadSnapshotRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @instance */ - NodeConfig.prototype.ipAllocationPolicy = null; + LoadSnapshotRequest.prototype.environment = ""; /** - * NodeConfig enableIpMasqAgent. - * @member {boolean} enableIpMasqAgent - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * LoadSnapshotRequest snapshotPath. + * @member {string} snapshotPath + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @instance */ - NodeConfig.prototype.enableIpMasqAgent = false; + LoadSnapshotRequest.prototype.snapshotPath = ""; /** - * Creates a new NodeConfig instance using the specified properties. + * LoadSnapshotRequest skipPypiPackagesInstallation. + * @member {boolean} skipPypiPackagesInstallation + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @instance + */ + LoadSnapshotRequest.prototype.skipPypiPackagesInstallation = false; + + /** + * LoadSnapshotRequest skipEnvironmentVariablesSetting. + * @member {boolean} skipEnvironmentVariablesSetting + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @instance + */ + LoadSnapshotRequest.prototype.skipEnvironmentVariablesSetting = false; + + /** + * LoadSnapshotRequest skipAirflowOverridesSetting. + * @member {boolean} skipAirflowOverridesSetting + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @instance + */ + LoadSnapshotRequest.prototype.skipAirflowOverridesSetting = false; + + /** + * LoadSnapshotRequest skipGcsDataCopying. + * @member {boolean} skipGcsDataCopying + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest + * @instance + */ + LoadSnapshotRequest.prototype.skipGcsDataCopying = false; + + /** + * Creates a new LoadSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest instance */ - NodeConfig.create = function create(properties) { - return new NodeConfig(properties); + LoadSnapshotRequest.create = function create(properties) { + return new LoadSnapshotRequest(properties); }; /** - * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. + * Encodes the specified LoadSnapshotRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig} message NodeConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest} message LoadSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeConfig.encode = function encode(message, writer) { + LoadSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.network); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.subnetwork); - if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.diskSizeGb); - if (message.oauthScopes != null && message.oauthScopes.length) - for (var i = 0; i < message.oauthScopes.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.oauthScopes[i]); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.serviceAccount); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]); - if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy")) - $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.enableIpMasqAgent != null && Object.hasOwnProperty.call(message, "enableIpMasqAgent")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enableIpMasqAgent); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.snapshotPath != null && Object.hasOwnProperty.call(message, "snapshotPath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotPath); + if (message.skipPypiPackagesInstallation != null && Object.hasOwnProperty.call(message, "skipPypiPackagesInstallation")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipPypiPackagesInstallation); + if (message.skipEnvironmentVariablesSetting != null && Object.hasOwnProperty.call(message, "skipEnvironmentVariablesSetting")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skipEnvironmentVariablesSetting); + if (message.skipAirflowOverridesSetting != null && Object.hasOwnProperty.call(message, "skipAirflowOverridesSetting")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.skipAirflowOverridesSetting); + if (message.skipGcsDataCopying != null && Object.hasOwnProperty.call(message, "skipGcsDataCopying")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.skipGcsDataCopying); return writer; }; /** - * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. + * Encodes the specified LoadSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig} message NodeConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest} message LoadSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeConfig.encodeDelimited = function encodeDelimited(message, writer) { + LoadSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeConfig message from the specified reader or buffer. + * Decodes a LoadSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeConfig.decode = function decode(reader, length) { + LoadSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.NodeConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.location = reader.string(); + message.environment = reader.string(); break; } case 2: { - message.machineType = reader.string(); + message.snapshotPath = reader.string(); break; } case 3: { - message.network = reader.string(); + message.skipPypiPackagesInstallation = reader.bool(); break; } case 4: { - message.subnetwork = reader.string(); + message.skipEnvironmentVariablesSetting = reader.bool(); break; } case 5: { - message.diskSizeGb = reader.int32(); + message.skipAirflowOverridesSetting = reader.bool(); break; } case 6: { - if (!(message.oauthScopes && message.oauthScopes.length)) - message.oauthScopes = []; - message.oauthScopes.push(reader.string()); - break; - } - case 7: { - message.serviceAccount = reader.string(); - break; - } - case 8: { - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - } - case 9: { - message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.decode(reader, reader.uint32()); - break; - } - case 11: { - message.enableIpMasqAgent = reader.bool(); + message.skipGcsDataCopying = reader.bool(); break; } default: @@ -8858,228 +9401,162 @@ }; /** - * Decodes a NodeConfig message from the specified reader or buffer, length delimited. + * Decodes a LoadSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeConfig.decodeDelimited = function decodeDelimited(reader) { + LoadSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeConfig message. + * Verifies a LoadSnapshotRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeConfig.verify = function verify(message) { + LoadSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) - if (!$util.isInteger(message.diskSizeGb)) - return "diskSizeGb: integer expected"; - if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { - if (!Array.isArray(message.oauthScopes)) - return "oauthScopes: array expected"; - for (var i = 0; i < message.oauthScopes.length; ++i) - if (!$util.isString(message.oauthScopes[i])) - return "oauthScopes: string[] expected"; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy); - if (error) - return "ipAllocationPolicy." + error; - } - if (message.enableIpMasqAgent != null && message.hasOwnProperty("enableIpMasqAgent")) - if (typeof message.enableIpMasqAgent !== "boolean") - return "enableIpMasqAgent: boolean expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) + if (!$util.isString(message.snapshotPath)) + return "snapshotPath: string expected"; + if (message.skipPypiPackagesInstallation != null && message.hasOwnProperty("skipPypiPackagesInstallation")) + if (typeof message.skipPypiPackagesInstallation !== "boolean") + return "skipPypiPackagesInstallation: boolean expected"; + if (message.skipEnvironmentVariablesSetting != null && message.hasOwnProperty("skipEnvironmentVariablesSetting")) + if (typeof message.skipEnvironmentVariablesSetting !== "boolean") + return "skipEnvironmentVariablesSetting: boolean expected"; + if (message.skipAirflowOverridesSetting != null && message.hasOwnProperty("skipAirflowOverridesSetting")) + if (typeof message.skipAirflowOverridesSetting !== "boolean") + return "skipAirflowOverridesSetting: boolean expected"; + if (message.skipGcsDataCopying != null && message.hasOwnProperty("skipGcsDataCopying")) + if (typeof message.skipGcsDataCopying !== "boolean") + return "skipGcsDataCopying: boolean expected"; return null; }; /** - * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LoadSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} LoadSnapshotRequest */ - NodeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.NodeConfig) + LoadSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.NodeConfig(); - if (object.location != null) - message.location = String(object.location); - if (object.machineType != null) - message.machineType = String(object.machineType); - if (object.network != null) - message.network = String(object.network); - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); - if (object.diskSizeGb != null) - message.diskSizeGb = object.diskSizeGb | 0; - if (object.oauthScopes) { - if (!Array.isArray(object.oauthScopes)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.oauthScopes: array expected"); - message.oauthScopes = []; - for (var i = 0; i < object.oauthScopes.length; ++i) - message.oauthScopes[i] = String(object.oauthScopes[i]); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.ipAllocationPolicy != null) { - if (typeof object.ipAllocationPolicy !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.ipAllocationPolicy: object expected"); - message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy); - } - if (object.enableIpMasqAgent != null) - message.enableIpMasqAgent = Boolean(object.enableIpMasqAgent); + var message = new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.snapshotPath != null) + message.snapshotPath = String(object.snapshotPath); + if (object.skipPypiPackagesInstallation != null) + message.skipPypiPackagesInstallation = Boolean(object.skipPypiPackagesInstallation); + if (object.skipEnvironmentVariablesSetting != null) + message.skipEnvironmentVariablesSetting = Boolean(object.skipEnvironmentVariablesSetting); + if (object.skipAirflowOverridesSetting != null) + message.skipAirflowOverridesSetting = Boolean(object.skipAirflowOverridesSetting); + if (object.skipGcsDataCopying != null) + message.skipGcsDataCopying = Boolean(object.skipGcsDataCopying); return message; }; /** - * Creates a plain object from a NodeConfig message. Also converts values to other types if specified. + * Creates a plain object from a LoadSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.NodeConfig} message NodeConfig + * @param {google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest} message LoadSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeConfig.toObject = function toObject(message, options) { + LoadSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.oauthScopes = []; - object.tags = []; - } if (options.defaults) { - object.location = ""; - object.machineType = ""; - object.network = ""; - object.subnetwork = ""; - object.diskSizeGb = 0; - object.serviceAccount = ""; - object.ipAllocationPolicy = null; - object.enableIpMasqAgent = false; - } - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) - object.diskSizeGb = message.diskSizeGb; - if (message.oauthScopes && message.oauthScopes.length) { - object.oauthScopes = []; - for (var j = 0; j < message.oauthScopes.length; ++j) - object.oauthScopes[j] = message.oauthScopes[j]; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; + object.environment = ""; + object.snapshotPath = ""; + object.skipPypiPackagesInstallation = false; + object.skipEnvironmentVariablesSetting = false; + object.skipAirflowOverridesSetting = false; + object.skipGcsDataCopying = false; } - if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) - object.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options); - if (message.enableIpMasqAgent != null && message.hasOwnProperty("enableIpMasqAgent")) - object.enableIpMasqAgent = message.enableIpMasqAgent; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.snapshotPath != null && message.hasOwnProperty("snapshotPath")) + object.snapshotPath = message.snapshotPath; + if (message.skipPypiPackagesInstallation != null && message.hasOwnProperty("skipPypiPackagesInstallation")) + object.skipPypiPackagesInstallation = message.skipPypiPackagesInstallation; + if (message.skipEnvironmentVariablesSetting != null && message.hasOwnProperty("skipEnvironmentVariablesSetting")) + object.skipEnvironmentVariablesSetting = message.skipEnvironmentVariablesSetting; + if (message.skipAirflowOverridesSetting != null && message.hasOwnProperty("skipAirflowOverridesSetting")) + object.skipAirflowOverridesSetting = message.skipAirflowOverridesSetting; + if (message.skipGcsDataCopying != null && message.hasOwnProperty("skipGcsDataCopying")) + object.skipGcsDataCopying = message.skipGcsDataCopying; return object; }; /** - * Converts this NodeConfig to JSON. + * Converts this LoadSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @instance * @returns {Object.} JSON object */ - NodeConfig.prototype.toJSON = function toJSON() { + LoadSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodeConfig + * Gets the default type url for LoadSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LoadSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.NodeConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest"; }; - return NodeConfig; + return LoadSnapshotRequest; })(); - v1.PrivateClusterConfig = (function() { + v1.LoadSnapshotResponse = (function() { /** - * Properties of a PrivateClusterConfig. + * Properties of a LoadSnapshotResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IPrivateClusterConfig - * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint - * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock - * @property {string|null} [masterIpv4ReservedRange] PrivateClusterConfig masterIpv4ReservedRange + * @interface ILoadSnapshotResponse */ /** - * Constructs a new PrivateClusterConfig. + * Constructs a new LoadSnapshotResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a PrivateClusterConfig. - * @implements IPrivateClusterConfig + * @classdesc Represents a LoadSnapshotResponse. + * @implements ILoadSnapshotResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse=} [properties] Properties to set */ - function PrivateClusterConfig(properties) { + function LoadSnapshotResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9087,105 +9564,63 @@ } /** - * PrivateClusterConfig enablePrivateEndpoint. - * @member {boolean} enablePrivateEndpoint - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig - * @instance + * Creates a new LoadSnapshotResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse instance */ - PrivateClusterConfig.prototype.enablePrivateEndpoint = false; + LoadSnapshotResponse.create = function create(properties) { + return new LoadSnapshotResponse(properties); + }; /** - * PrivateClusterConfig masterIpv4CidrBlock. - * @member {string} masterIpv4CidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig - * @instance - */ - PrivateClusterConfig.prototype.masterIpv4CidrBlock = ""; - - /** - * PrivateClusterConfig masterIpv4ReservedRange. - * @member {string} masterIpv4ReservedRange - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig - * @instance - */ - PrivateClusterConfig.prototype.masterIpv4ReservedRange = ""; - - /** - * Creates a new PrivateClusterConfig instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig instance - */ - PrivateClusterConfig.create = function create(properties) { - return new PrivateClusterConfig(properties); - }; - - /** - * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. + * Encodes the specified LoadSnapshotResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse} message LoadSnapshotResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateClusterConfig.encode = function encode(message, writer) { + LoadSnapshotResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEndpoint); - if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.masterIpv4CidrBlock); - if (message.masterIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "masterIpv4ReservedRange")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4ReservedRange); return writer; }; /** - * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. + * Encodes the specified LoadSnapshotResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse} message LoadSnapshotResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) { + LoadSnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * Decodes a LoadSnapshotResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateClusterConfig.decode = function decode(reader, length) { + LoadSnapshotResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.enablePrivateEndpoint = reader.bool(); - break; - } - case 2: { - message.masterIpv4CidrBlock = reader.string(); - break; - } - case 3: { - message.masterIpv4ReservedRange = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -9195,139 +9630,109 @@ }; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * Decodes a LoadSnapshotResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) { + LoadSnapshotResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateClusterConfig message. + * Verifies a LoadSnapshotResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateClusterConfig.verify = function verify(message) { + LoadSnapshotResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) - if (typeof message.enablePrivateEndpoint !== "boolean") - return "enablePrivateEndpoint: boolean expected"; - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) - if (!$util.isString(message.masterIpv4CidrBlock)) - return "masterIpv4CidrBlock: string expected"; - if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange")) - if (!$util.isString(message.masterIpv4ReservedRange)) - return "masterIpv4ReservedRange: string expected"; return null; }; /** - * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LoadSnapshotResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig + * @returns {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} LoadSnapshotResponse */ - PrivateClusterConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig) + LoadSnapshotResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig(); - if (object.enablePrivateEndpoint != null) - message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint); - if (object.masterIpv4CidrBlock != null) - message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock); - if (object.masterIpv4ReservedRange != null) - message.masterIpv4ReservedRange = String(object.masterIpv4ReservedRange); - return message; + return new $root.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse(); }; /** - * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. + * Creates a plain object from a LoadSnapshotResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} message PrivateClusterConfig + * @param {google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse} message LoadSnapshotResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateClusterConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.enablePrivateEndpoint = false; - object.masterIpv4CidrBlock = ""; - object.masterIpv4ReservedRange = ""; - } - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) - object.enablePrivateEndpoint = message.enablePrivateEndpoint; - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) - object.masterIpv4CidrBlock = message.masterIpv4CidrBlock; - if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange")) - object.masterIpv4ReservedRange = message.masterIpv4ReservedRange; - return object; + LoadSnapshotResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PrivateClusterConfig to JSON. + * Converts this LoadSnapshotResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @instance * @returns {Object.} JSON object */ - PrivateClusterConfig.prototype.toJSON = function toJSON() { + LoadSnapshotResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrivateClusterConfig + * Gets the default type url for LoadSnapshotResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrivateClusterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LoadSnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse"; }; - return PrivateClusterConfig; + return LoadSnapshotResponse; })(); - v1.NetworkingConfig = (function() { + v1.DatabaseFailoverRequest = (function() { /** - * Properties of a NetworkingConfig. + * Properties of a DatabaseFailoverRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface INetworkingConfig - * @property {google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|null} [connectionType] NetworkingConfig connectionType + * @interface IDatabaseFailoverRequest + * @property {string|null} [environment] DatabaseFailoverRequest environment */ /** - * Constructs a new NetworkingConfig. + * Constructs a new DatabaseFailoverRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a NetworkingConfig. - * @implements INetworkingConfig + * @classdesc Represents a DatabaseFailoverRequest. + * @implements IDatabaseFailoverRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest=} [properties] Properties to set */ - function NetworkingConfig(properties) { + function DatabaseFailoverRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9335,75 +9740,75 @@ } /** - * NetworkingConfig connectionType. - * @member {google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType} connectionType - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * DatabaseFailoverRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @instance */ - NetworkingConfig.prototype.connectionType = 0; + DatabaseFailoverRequest.prototype.environment = ""; /** - * Creates a new NetworkingConfig instance using the specified properties. + * Creates a new DatabaseFailoverRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest instance */ - NetworkingConfig.create = function create(properties) { - return new NetworkingConfig(properties); + DatabaseFailoverRequest.create = function create(properties) { + return new DatabaseFailoverRequest(properties); }; /** - * Encodes the specified NetworkingConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. + * Encodes the specified DatabaseFailoverRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig} message NetworkingConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest} message DatabaseFailoverRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkingConfig.encode = function encode(message, writer) { + DatabaseFailoverRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionType != null && Object.hasOwnProperty.call(message, "connectionType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.connectionType); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); return writer; }; /** - * Encodes the specified NetworkingConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. + * Encodes the specified DatabaseFailoverRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig} message NetworkingConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest} message DatabaseFailoverRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkingConfig.encodeDelimited = function encodeDelimited(message, writer) { + DatabaseFailoverRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkingConfig message from the specified reader or buffer. + * Decodes a DatabaseFailoverRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkingConfig.decode = function decode(reader, length) { + DatabaseFailoverRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.connectionType = reader.int32(); + message.environment = reader.string(); break; } default: @@ -9415,171 +9820,121 @@ }; /** - * Decodes a NetworkingConfig message from the specified reader or buffer, length delimited. + * Decodes a DatabaseFailoverRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkingConfig.decodeDelimited = function decodeDelimited(reader) { + DatabaseFailoverRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkingConfig message. + * Verifies a DatabaseFailoverRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkingConfig.verify = function verify(message) { + DatabaseFailoverRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connectionType != null && message.hasOwnProperty("connectionType")) - switch (message.connectionType) { - default: - return "connectionType: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates a NetworkingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseFailoverRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} DatabaseFailoverRequest */ - NetworkingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig) + DatabaseFailoverRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig(); - switch (object.connectionType) { - default: - if (typeof object.connectionType === "number") { - message.connectionType = object.connectionType; - break; - } - break; - case "CONNECTION_TYPE_UNSPECIFIED": - case 0: - message.connectionType = 0; - break; - case "VPC_PEERING": - case 1: - message.connectionType = 1; - break; - case "PRIVATE_SERVICE_CONNECT": - case 2: - message.connectionType = 2; - break; - } + var message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest(); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a NetworkingConfig message. Also converts values to other types if specified. + * Creates a plain object from a DatabaseFailoverRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} message NetworkingConfig + * @param {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest} message DatabaseFailoverRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkingConfig.toObject = function toObject(message, options) { + DatabaseFailoverRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.connectionType = options.enums === String ? "CONNECTION_TYPE_UNSPECIFIED" : 0; - if (message.connectionType != null && message.hasOwnProperty("connectionType")) - object.connectionType = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType[message.connectionType] === undefined ? message.connectionType : $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType[message.connectionType] : message.connectionType; + object.environment = ""; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this NetworkingConfig to JSON. + * Converts this DatabaseFailoverRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @instance * @returns {Object.} JSON object */ - NetworkingConfig.prototype.toJSON = function toJSON() { + DatabaseFailoverRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NetworkingConfig + * Gets the default type url for DatabaseFailoverRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NetworkingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DatabaseFailoverRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.NetworkingConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest"; }; - /** - * ConnectionType enum. - * @name google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType - * @enum {number} - * @property {number} CONNECTION_TYPE_UNSPECIFIED=0 CONNECTION_TYPE_UNSPECIFIED value - * @property {number} VPC_PEERING=1 VPC_PEERING value - * @property {number} PRIVATE_SERVICE_CONNECT=2 PRIVATE_SERVICE_CONNECT value - */ - NetworkingConfig.ConnectionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONNECTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "VPC_PEERING"] = 1; - values[valuesById[2] = "PRIVATE_SERVICE_CONNECT"] = 2; - return values; - })(); - - return NetworkingConfig; + return DatabaseFailoverRequest; })(); - v1.PrivateEnvironmentConfig = (function() { + v1.DatabaseFailoverResponse = (function() { /** - * Properties of a PrivateEnvironmentConfig. + * Properties of a DatabaseFailoverResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IPrivateEnvironmentConfig - * @property {boolean|null} [enablePrivateEnvironment] PrivateEnvironmentConfig enablePrivateEnvironment - * @property {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null} [privateClusterConfig] PrivateEnvironmentConfig privateClusterConfig - * @property {string|null} [webServerIpv4CidrBlock] PrivateEnvironmentConfig webServerIpv4CidrBlock - * @property {string|null} [cloudSqlIpv4CidrBlock] PrivateEnvironmentConfig cloudSqlIpv4CidrBlock - * @property {string|null} [webServerIpv4ReservedRange] PrivateEnvironmentConfig webServerIpv4ReservedRange - * @property {string|null} [cloudComposerNetworkIpv4CidrBlock] PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock - * @property {string|null} [cloudComposerNetworkIpv4ReservedRange] PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange - * @property {boolean|null} [enablePrivatelyUsedPublicIps] PrivateEnvironmentConfig enablePrivatelyUsedPublicIps - * @property {string|null} [cloudComposerConnectionSubnetwork] PrivateEnvironmentConfig cloudComposerConnectionSubnetwork - * @property {google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null} [networkingConfig] PrivateEnvironmentConfig networkingConfig + * @interface IDatabaseFailoverResponse */ /** - * Constructs a new PrivateEnvironmentConfig. + * Constructs a new DatabaseFailoverResponse. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a PrivateEnvironmentConfig. - * @implements IPrivateEnvironmentConfig + * @classdesc Represents a DatabaseFailoverResponse. + * @implements IDatabaseFailoverResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse=} [properties] Properties to set */ - function PrivateEnvironmentConfig(properties) { + function DatabaseFailoverResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9587,203 +9942,63 @@ } /** - * PrivateEnvironmentConfig enablePrivateEnvironment. - * @member {boolean} enablePrivateEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.enablePrivateEnvironment = false; - - /** - * PrivateEnvironmentConfig privateClusterConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.privateClusterConfig = null; - - /** - * PrivateEnvironmentConfig webServerIpv4CidrBlock. - * @member {string} webServerIpv4CidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.webServerIpv4CidrBlock = ""; - - /** - * PrivateEnvironmentConfig cloudSqlIpv4CidrBlock. - * @member {string} cloudSqlIpv4CidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.cloudSqlIpv4CidrBlock = ""; - - /** - * PrivateEnvironmentConfig webServerIpv4ReservedRange. - * @member {string} webServerIpv4ReservedRange - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.webServerIpv4ReservedRange = ""; - - /** - * PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock. - * @member {string} cloudComposerNetworkIpv4CidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.cloudComposerNetworkIpv4CidrBlock = ""; - - /** - * PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange. - * @member {string} cloudComposerNetworkIpv4ReservedRange - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.cloudComposerNetworkIpv4ReservedRange = ""; - - /** - * PrivateEnvironmentConfig enablePrivatelyUsedPublicIps. - * @member {boolean} enablePrivatelyUsedPublicIps - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.enablePrivatelyUsedPublicIps = false; - - /** - * PrivateEnvironmentConfig cloudComposerConnectionSubnetwork. - * @member {string} cloudComposerConnectionSubnetwork - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.cloudComposerConnectionSubnetwork = ""; - - /** - * PrivateEnvironmentConfig networkingConfig. - * @member {google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null|undefined} networkingConfig - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig - * @instance - */ - PrivateEnvironmentConfig.prototype.networkingConfig = null; - - /** - * Creates a new PrivateEnvironmentConfig instance using the specified properties. + * Creates a new DatabaseFailoverResponse instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse instance */ - PrivateEnvironmentConfig.create = function create(properties) { - return new PrivateEnvironmentConfig(properties); + DatabaseFailoverResponse.create = function create(properties) { + return new DatabaseFailoverResponse(properties); }; /** - * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. + * Encodes the specified DatabaseFailoverResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse} message DatabaseFailoverResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateEnvironmentConfig.encode = function encode(message, writer) { + DatabaseFailoverResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateEnvironment != null && Object.hasOwnProperty.call(message, "enablePrivateEnvironment")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEnvironment); - if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig")) - $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.webServerIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "webServerIpv4CidrBlock")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.webServerIpv4CidrBlock); - if (message.cloudSqlIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudSqlIpv4CidrBlock")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cloudSqlIpv4CidrBlock); - if (message.webServerIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "webServerIpv4ReservedRange")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.webServerIpv4ReservedRange); - if (message.enablePrivatelyUsedPublicIps != null && Object.hasOwnProperty.call(message, "enablePrivatelyUsedPublicIps")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.enablePrivatelyUsedPublicIps); - if (message.cloudComposerNetworkIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudComposerNetworkIpv4CidrBlock")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.cloudComposerNetworkIpv4CidrBlock); - if (message.cloudComposerNetworkIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "cloudComposerNetworkIpv4ReservedRange")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.cloudComposerNetworkIpv4ReservedRange); - if (message.cloudComposerConnectionSubnetwork != null && Object.hasOwnProperty.call(message, "cloudComposerConnectionSubnetwork")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.cloudComposerConnectionSubnetwork); - if (message.networkingConfig != null && Object.hasOwnProperty.call(message, "networkingConfig")) - $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.encode(message.networkingConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. + * Encodes the specified DatabaseFailoverResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse} message DatabaseFailoverResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateEnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) { + DatabaseFailoverResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer. + * Decodes a DatabaseFailoverResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateEnvironmentConfig.decode = function decode(reader, length) { + DatabaseFailoverResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.enablePrivateEnvironment = reader.bool(); - break; - } - case 2: { - message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.decode(reader, reader.uint32()); - break; - } - case 3: { - message.webServerIpv4CidrBlock = reader.string(); - break; - } - case 4: { - message.cloudSqlIpv4CidrBlock = reader.string(); - break; - } - case 5: { - message.webServerIpv4ReservedRange = reader.string(); - break; - } - case 7: { - message.cloudComposerNetworkIpv4CidrBlock = reader.string(); - break; - } - case 8: { - message.cloudComposerNetworkIpv4ReservedRange = reader.string(); - break; - } - case 6: { - message.enablePrivatelyUsedPublicIps = reader.bool(); - break; - } - case 9: { - message.cloudComposerConnectionSubnetwork = reader.string(); - break; - } - case 10: { - message.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -9793,207 +10008,109 @@ }; /** - * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited. + * Decodes a DatabaseFailoverResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateEnvironmentConfig.decodeDelimited = function decodeDelimited(reader) { + DatabaseFailoverResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateEnvironmentConfig message. + * Verifies a DatabaseFailoverResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateEnvironmentConfig.verify = function verify(message) { + DatabaseFailoverResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment")) - if (typeof message.enablePrivateEnvironment !== "boolean") - return "enablePrivateEnvironment: boolean expected"; - if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify(message.privateClusterConfig); - if (error) - return "privateClusterConfig." + error; - } - if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock")) - if (!$util.isString(message.webServerIpv4CidrBlock)) - return "webServerIpv4CidrBlock: string expected"; - if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock")) - if (!$util.isString(message.cloudSqlIpv4CidrBlock)) - return "cloudSqlIpv4CidrBlock: string expected"; - if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange")) - if (!$util.isString(message.webServerIpv4ReservedRange)) - return "webServerIpv4ReservedRange: string expected"; - if (message.cloudComposerNetworkIpv4CidrBlock != null && message.hasOwnProperty("cloudComposerNetworkIpv4CidrBlock")) - if (!$util.isString(message.cloudComposerNetworkIpv4CidrBlock)) - return "cloudComposerNetworkIpv4CidrBlock: string expected"; - if (message.cloudComposerNetworkIpv4ReservedRange != null && message.hasOwnProperty("cloudComposerNetworkIpv4ReservedRange")) - if (!$util.isString(message.cloudComposerNetworkIpv4ReservedRange)) - return "cloudComposerNetworkIpv4ReservedRange: string expected"; - if (message.enablePrivatelyUsedPublicIps != null && message.hasOwnProperty("enablePrivatelyUsedPublicIps")) - if (typeof message.enablePrivatelyUsedPublicIps !== "boolean") - return "enablePrivatelyUsedPublicIps: boolean expected"; - if (message.cloudComposerConnectionSubnetwork != null && message.hasOwnProperty("cloudComposerConnectionSubnetwork")) - if (!$util.isString(message.cloudComposerConnectionSubnetwork)) - return "cloudComposerConnectionSubnetwork: string expected"; - if (message.networkingConfig != null && message.hasOwnProperty("networkingConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify(message.networkingConfig); - if (error) - return "networkingConfig." + error; - } return null; }; /** - * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseFailoverResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} DatabaseFailoverResponse */ - PrivateEnvironmentConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig) + DatabaseFailoverResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig(); - if (object.enablePrivateEnvironment != null) - message.enablePrivateEnvironment = Boolean(object.enablePrivateEnvironment); - if (object.privateClusterConfig != null) { - if (typeof object.privateClusterConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.privateClusterConfig: object expected"); - message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig); - } - if (object.webServerIpv4CidrBlock != null) - message.webServerIpv4CidrBlock = String(object.webServerIpv4CidrBlock); - if (object.cloudSqlIpv4CidrBlock != null) - message.cloudSqlIpv4CidrBlock = String(object.cloudSqlIpv4CidrBlock); - if (object.webServerIpv4ReservedRange != null) - message.webServerIpv4ReservedRange = String(object.webServerIpv4ReservedRange); - if (object.cloudComposerNetworkIpv4CidrBlock != null) - message.cloudComposerNetworkIpv4CidrBlock = String(object.cloudComposerNetworkIpv4CidrBlock); - if (object.cloudComposerNetworkIpv4ReservedRange != null) - message.cloudComposerNetworkIpv4ReservedRange = String(object.cloudComposerNetworkIpv4ReservedRange); - if (object.enablePrivatelyUsedPublicIps != null) - message.enablePrivatelyUsedPublicIps = Boolean(object.enablePrivatelyUsedPublicIps); - if (object.cloudComposerConnectionSubnetwork != null) - message.cloudComposerConnectionSubnetwork = String(object.cloudComposerConnectionSubnetwork); - if (object.networkingConfig != null) { - if (typeof object.networkingConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.networkingConfig: object expected"); - message.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.fromObject(object.networkingConfig); - } - return message; + return new $root.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse(); }; /** - * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified. + * Creates a plain object from a DatabaseFailoverResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} message PrivateEnvironmentConfig + * @param {google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse} message DatabaseFailoverResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateEnvironmentConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.enablePrivateEnvironment = false; - object.privateClusterConfig = null; - object.webServerIpv4CidrBlock = ""; - object.cloudSqlIpv4CidrBlock = ""; - object.webServerIpv4ReservedRange = ""; - object.enablePrivatelyUsedPublicIps = false; - object.cloudComposerNetworkIpv4CidrBlock = ""; - object.cloudComposerNetworkIpv4ReservedRange = ""; - object.cloudComposerConnectionSubnetwork = ""; - object.networkingConfig = null; - } - if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment")) - object.enablePrivateEnvironment = message.enablePrivateEnvironment; - if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) - object.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options); - if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock")) - object.webServerIpv4CidrBlock = message.webServerIpv4CidrBlock; - if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock")) - object.cloudSqlIpv4CidrBlock = message.cloudSqlIpv4CidrBlock; - if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange")) - object.webServerIpv4ReservedRange = message.webServerIpv4ReservedRange; - if (message.enablePrivatelyUsedPublicIps != null && message.hasOwnProperty("enablePrivatelyUsedPublicIps")) - object.enablePrivatelyUsedPublicIps = message.enablePrivatelyUsedPublicIps; - if (message.cloudComposerNetworkIpv4CidrBlock != null && message.hasOwnProperty("cloudComposerNetworkIpv4CidrBlock")) - object.cloudComposerNetworkIpv4CidrBlock = message.cloudComposerNetworkIpv4CidrBlock; - if (message.cloudComposerNetworkIpv4ReservedRange != null && message.hasOwnProperty("cloudComposerNetworkIpv4ReservedRange")) - object.cloudComposerNetworkIpv4ReservedRange = message.cloudComposerNetworkIpv4ReservedRange; - if (message.cloudComposerConnectionSubnetwork != null && message.hasOwnProperty("cloudComposerConnectionSubnetwork")) - object.cloudComposerConnectionSubnetwork = message.cloudComposerConnectionSubnetwork; - if (message.networkingConfig != null && message.hasOwnProperty("networkingConfig")) - object.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.toObject(message.networkingConfig, options); - return object; + DatabaseFailoverResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PrivateEnvironmentConfig to JSON. + * Converts this DatabaseFailoverResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @instance * @returns {Object.} JSON object */ - PrivateEnvironmentConfig.prototype.toJSON = function toJSON() { + DatabaseFailoverResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrivateEnvironmentConfig + * Gets the default type url for DatabaseFailoverResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrivateEnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DatabaseFailoverResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse"; }; - return PrivateEnvironmentConfig; + return DatabaseFailoverResponse; })(); - v1.WorkloadsConfig = (function() { + v1.FetchDatabasePropertiesRequest = (function() { /** - * Properties of a WorkloadsConfig. + * Properties of a FetchDatabasePropertiesRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IWorkloadsConfig - * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null} [scheduler] WorkloadsConfig scheduler - * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null} [webServer] WorkloadsConfig webServer - * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null} [worker] WorkloadsConfig worker + * @interface IFetchDatabasePropertiesRequest + * @property {string|null} [environment] FetchDatabasePropertiesRequest environment */ /** - * Constructs a new WorkloadsConfig. + * Constructs a new FetchDatabasePropertiesRequest. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a WorkloadsConfig. - * @implements IWorkloadsConfig + * @classdesc Represents a FetchDatabasePropertiesRequest. + * @implements IFetchDatabasePropertiesRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest=} [properties] Properties to set */ - function WorkloadsConfig(properties) { + function FetchDatabasePropertiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10001,103 +10118,75 @@ } /** - * WorkloadsConfig scheduler. - * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null|undefined} scheduler - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @instance - */ - WorkloadsConfig.prototype.scheduler = null; - - /** - * WorkloadsConfig webServer. - * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null|undefined} webServer - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @instance - */ - WorkloadsConfig.prototype.webServer = null; - - /** - * WorkloadsConfig worker. - * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null|undefined} worker - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * FetchDatabasePropertiesRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @instance */ - WorkloadsConfig.prototype.worker = null; + FetchDatabasePropertiesRequest.prototype.environment = ""; /** - * Creates a new WorkloadsConfig instance using the specified properties. + * Creates a new FetchDatabasePropertiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest instance */ - WorkloadsConfig.create = function create(properties) { - return new WorkloadsConfig(properties); + FetchDatabasePropertiesRequest.create = function create(properties) { + return new FetchDatabasePropertiesRequest(properties); }; /** - * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. + * Encodes the specified FetchDatabasePropertiesRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest} message FetchDatabasePropertiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkloadsConfig.encode = function encode(message, writer) { + FetchDatabasePropertiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scheduler != null && Object.hasOwnProperty.call(message, "scheduler")) - $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.encode(message.scheduler, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.webServer != null && Object.hasOwnProperty.call(message, "webServer")) - $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.encode(message.webServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.worker != null && Object.hasOwnProperty.call(message, "worker")) - $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.encode(message.worker, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); return writer; }; /** - * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. + * Encodes the specified FetchDatabasePropertiesRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest} message FetchDatabasePropertiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkloadsConfig.encodeDelimited = function encodeDelimited(message, writer) { + FetchDatabasePropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WorkloadsConfig message from the specified reader or buffer. + * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkloadsConfig.decode = function decode(reader, length) { + FetchDatabasePropertiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.scheduler = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.decode(reader, reader.uint32()); - break; - } - case 2: { - message.webServer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.decode(reader, reader.uint32()); - break; - } - case 3: { - message.worker = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.decode(reader, reader.uint32()); + message.environment = reader.string(); break; } default: @@ -10109,1302 +10198,921 @@ }; /** - * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited. + * Decodes a FetchDatabasePropertiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkloadsConfig.decodeDelimited = function decodeDelimited(reader) { + FetchDatabasePropertiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WorkloadsConfig message. + * Verifies a FetchDatabasePropertiesRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkloadsConfig.verify = function verify(message) { + FetchDatabasePropertiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.scheduler != null && message.hasOwnProperty("scheduler")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify(message.scheduler); - if (error) - return "scheduler." + error; - } - if (message.webServer != null && message.hasOwnProperty("webServer")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify(message.webServer); - if (error) - return "webServer." + error; - } - if (message.worker != null && message.hasOwnProperty("worker")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify(message.worker); - if (error) - return "worker." + error; - } + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FetchDatabasePropertiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} FetchDatabasePropertiesRequest */ - WorkloadsConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig) + FetchDatabasePropertiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig(); - if (object.scheduler != null) { - if (typeof object.scheduler !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.scheduler: object expected"); - message.scheduler = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.fromObject(object.scheduler); - } - if (object.webServer != null) { - if (typeof object.webServer !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.webServer: object expected"); - message.webServer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.fromObject(object.webServer); - } - if (object.worker != null) { - if (typeof object.worker !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.worker: object expected"); - message.worker = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.fromObject(object.worker); - } + var message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest(); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified. + * Creates a plain object from a FetchDatabasePropertiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} message WorkloadsConfig + * @param {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest} message FetchDatabasePropertiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WorkloadsConfig.toObject = function toObject(message, options) { + FetchDatabasePropertiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.scheduler = null; - object.webServer = null; - object.worker = null; - } - if (message.scheduler != null && message.hasOwnProperty("scheduler")) - object.scheduler = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.toObject(message.scheduler, options); - if (message.webServer != null && message.hasOwnProperty("webServer")) - object.webServer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.toObject(message.webServer, options); - if (message.worker != null && message.hasOwnProperty("worker")) - object.worker = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.toObject(message.worker, options); + if (options.defaults) + object.environment = ""; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this WorkloadsConfig to JSON. + * Converts this FetchDatabasePropertiesRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @instance * @returns {Object.} JSON object */ - WorkloadsConfig.prototype.toJSON = function toJSON() { + FetchDatabasePropertiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WorkloadsConfig + * Gets the default type url for FetchDatabasePropertiesRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WorkloadsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchDatabasePropertiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest"; }; - WorkloadsConfig.SchedulerResource = (function() { - - /** - * Properties of a SchedulerResource. - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @interface ISchedulerResource - * @property {number|null} [cpu] SchedulerResource cpu - * @property {number|null} [memoryGb] SchedulerResource memoryGb - * @property {number|null} [storageGb] SchedulerResource storageGb - * @property {number|null} [count] SchedulerResource count - */ + return FetchDatabasePropertiesRequest; + })(); - /** - * Constructs a new SchedulerResource. - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @classdesc Represents a SchedulerResource. - * @implements ISchedulerResource - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set - */ - function SchedulerResource(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.FetchDatabasePropertiesResponse = (function() { - /** - * SchedulerResource cpu. - * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @instance - */ - SchedulerResource.prototype.cpu = 0; + /** + * Properties of a FetchDatabasePropertiesResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IFetchDatabasePropertiesResponse + * @property {string|null} [primaryGceZone] FetchDatabasePropertiesResponse primaryGceZone + * @property {string|null} [secondaryGceZone] FetchDatabasePropertiesResponse secondaryGceZone + * @property {boolean|null} [isFailoverReplicaAvailable] FetchDatabasePropertiesResponse isFailoverReplicaAvailable + */ - /** - * SchedulerResource memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @instance - */ - SchedulerResource.prototype.memoryGb = 0; + /** + * Constructs a new FetchDatabasePropertiesResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a FetchDatabasePropertiesResponse. + * @implements IFetchDatabasePropertiesResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse=} [properties] Properties to set + */ + function FetchDatabasePropertiesResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SchedulerResource storageGb. - * @member {number} storageGb - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @instance - */ - SchedulerResource.prototype.storageGb = 0; + /** + * FetchDatabasePropertiesResponse primaryGceZone. + * @member {string} primaryGceZone + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @instance + */ + FetchDatabasePropertiesResponse.prototype.primaryGceZone = ""; - /** - * SchedulerResource count. - * @member {number} count - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @instance - */ - SchedulerResource.prototype.count = 0; + /** + * FetchDatabasePropertiesResponse secondaryGceZone. + * @member {string} secondaryGceZone + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @instance + */ + FetchDatabasePropertiesResponse.prototype.secondaryGceZone = ""; - /** - * Creates a new SchedulerResource instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource instance - */ - SchedulerResource.create = function create(properties) { - return new SchedulerResource(properties); - }; + /** + * FetchDatabasePropertiesResponse isFailoverReplicaAvailable. + * @member {boolean} isFailoverReplicaAvailable + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @instance + */ + FetchDatabasePropertiesResponse.prototype.isFailoverReplicaAvailable = false; - /** - * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchedulerResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); - if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); - if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count); - return writer; - }; + /** + * Creates a new FetchDatabasePropertiesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse instance + */ + FetchDatabasePropertiesResponse.create = function create(properties) { + return new FetchDatabasePropertiesResponse(properties); + }; - /** - * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchedulerResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FetchDatabasePropertiesResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse} message FetchDatabasePropertiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchDatabasePropertiesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primaryGceZone != null && Object.hasOwnProperty.call(message, "primaryGceZone")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.primaryGceZone); + if (message.secondaryGceZone != null && Object.hasOwnProperty.call(message, "secondaryGceZone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.secondaryGceZone); + if (message.isFailoverReplicaAvailable != null && Object.hasOwnProperty.call(message, "isFailoverReplicaAvailable")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFailoverReplicaAvailable); + return writer; + }; - /** - * Decodes a SchedulerResource message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchedulerResource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.cpu = reader.float(); - break; - } - case 2: { - message.memoryGb = reader.float(); - break; - } - case 3: { - message.storageGb = reader.float(); - break; - } - case 4: { - message.count = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified FetchDatabasePropertiesResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse} message FetchDatabasePropertiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchDatabasePropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchDatabasePropertiesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.primaryGceZone = reader.string(); + break; + } + case 2: { + message.secondaryGceZone = reader.string(); + break; + } + case 3: { + message.isFailoverReplicaAvailable = reader.bool(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SchedulerResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchedulerResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a SchedulerResource message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchedulerResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cpu != null && message.hasOwnProperty("cpu")) - if (typeof message.cpu !== "number") - return "cpu: number expected"; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - if (typeof message.memoryGb !== "number") - return "memoryGb: number expected"; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - if (typeof message.storageGb !== "number") - return "storageGb: number expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; - return null; - }; + /** + * Decodes a FetchDatabasePropertiesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchDatabasePropertiesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource - */ - SchedulerResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource(); - if (object.cpu != null) - message.cpu = Number(object.cpu); - if (object.memoryGb != null) - message.memoryGb = Number(object.memoryGb); - if (object.storageGb != null) - message.storageGb = Number(object.storageGb); - if (object.count != null) - message.count = object.count | 0; - return message; - }; + /** + * Verifies a FetchDatabasePropertiesResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FetchDatabasePropertiesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.primaryGceZone != null && message.hasOwnProperty("primaryGceZone")) + if (!$util.isString(message.primaryGceZone)) + return "primaryGceZone: string expected"; + if (message.secondaryGceZone != null && message.hasOwnProperty("secondaryGceZone")) + if (!$util.isString(message.secondaryGceZone)) + return "secondaryGceZone: string expected"; + if (message.isFailoverReplicaAvailable != null && message.hasOwnProperty("isFailoverReplicaAvailable")) + if (typeof message.isFailoverReplicaAvailable !== "boolean") + return "isFailoverReplicaAvailable: boolean expected"; + return null; + }; - /** - * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} message SchedulerResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SchedulerResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.cpu = 0; - object.memoryGb = 0; - object.storageGb = 0; - object.count = 0; - } - if (message.cpu != null && message.hasOwnProperty("cpu")) - object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; + /** + * Creates a FetchDatabasePropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} FetchDatabasePropertiesResponse + */ + FetchDatabasePropertiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse) return object; - }; - - /** - * Converts this SchedulerResource to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @instance - * @returns {Object.} JSON object - */ - SchedulerResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse(); + if (object.primaryGceZone != null) + message.primaryGceZone = String(object.primaryGceZone); + if (object.secondaryGceZone != null) + message.secondaryGceZone = String(object.secondaryGceZone); + if (object.isFailoverReplicaAvailable != null) + message.isFailoverReplicaAvailable = Boolean(object.isFailoverReplicaAvailable); + return message; + }; - /** - * Gets the default type url for SchedulerResource - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SchedulerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource"; - }; + /** + * Creates a plain object from a FetchDatabasePropertiesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse} message FetchDatabasePropertiesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FetchDatabasePropertiesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.primaryGceZone = ""; + object.secondaryGceZone = ""; + object.isFailoverReplicaAvailable = false; + } + if (message.primaryGceZone != null && message.hasOwnProperty("primaryGceZone")) + object.primaryGceZone = message.primaryGceZone; + if (message.secondaryGceZone != null && message.hasOwnProperty("secondaryGceZone")) + object.secondaryGceZone = message.secondaryGceZone; + if (message.isFailoverReplicaAvailable != null && message.hasOwnProperty("isFailoverReplicaAvailable")) + object.isFailoverReplicaAvailable = message.isFailoverReplicaAvailable; + return object; + }; - return SchedulerResource; - })(); + /** + * Converts this FetchDatabasePropertiesResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @instance + * @returns {Object.} JSON object + */ + FetchDatabasePropertiesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - WorkloadsConfig.WebServerResource = (function() { + /** + * Gets the default type url for FetchDatabasePropertiesResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FetchDatabasePropertiesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse"; + }; - /** - * Properties of a WebServerResource. - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @interface IWebServerResource - * @property {number|null} [cpu] WebServerResource cpu - * @property {number|null} [memoryGb] WebServerResource memoryGb - * @property {number|null} [storageGb] WebServerResource storageGb - */ + return FetchDatabasePropertiesResponse; + })(); - /** - * Constructs a new WebServerResource. - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @classdesc Represents a WebServerResource. - * @implements IWebServerResource - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set - */ - function WebServerResource(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.StorageConfig = (function() { - /** - * WebServerResource cpu. - * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @instance - */ - WebServerResource.prototype.cpu = 0; + /** + * Properties of a StorageConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IStorageConfig + * @property {string|null} [bucket] StorageConfig bucket + */ - /** - * WebServerResource memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @instance - */ - WebServerResource.prototype.memoryGb = 0; + /** + * Constructs a new StorageConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a StorageConfig. + * @implements IStorageConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IStorageConfig=} [properties] Properties to set + */ + function StorageConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * WebServerResource storageGb. - * @member {number} storageGb - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @instance - */ - WebServerResource.prototype.storageGb = 0; + /** + * StorageConfig bucket. + * @member {string} bucket + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @instance + */ + StorageConfig.prototype.bucket = ""; - /** - * Creates a new WebServerResource instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource instance - */ - WebServerResource.create = function create(properties) { - return new WebServerResource(properties); - }; + /** + * Creates a new StorageConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IStorageConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.StorageConfig} StorageConfig instance + */ + StorageConfig.create = function create(properties) { + return new StorageConfig(properties); + }; - /** - * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WebServerResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); - if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); - if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); - return writer; - }; + /** + * Encodes the specified StorageConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.StorageConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IStorageConfig} message StorageConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StorageConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket); + return writer; + }; - /** - * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WebServerResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified StorageConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.StorageConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IStorageConfig} message StorageConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StorageConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a WebServerResource message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WebServerResource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.cpu = reader.float(); - break; - } - case 2: { - message.memoryGb = reader.float(); - break; - } - case 3: { - message.storageGb = reader.float(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a StorageConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.StorageConfig} StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StorageConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.StorageConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.bucket = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a WebServerResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WebServerResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a WebServerResource message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WebServerResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cpu != null && message.hasOwnProperty("cpu")) - if (typeof message.cpu !== "number") - return "cpu: number expected"; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - if (typeof message.memoryGb !== "number") - return "memoryGb: number expected"; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - if (typeof message.storageGb !== "number") - return "storageGb: number expected"; - return null; - }; + /** + * Decodes a StorageConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.StorageConfig} StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StorageConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource - */ - WebServerResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource(); - if (object.cpu != null) - message.cpu = Number(object.cpu); - if (object.memoryGb != null) - message.memoryGb = Number(object.memoryGb); - if (object.storageGb != null) - message.storageGb = Number(object.storageGb); - return message; - }; + /** + * Verifies a StorageConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StorageConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bucket != null && message.hasOwnProperty("bucket")) + if (!$util.isString(message.bucket)) + return "bucket: string expected"; + return null; + }; - /** - * Creates a plain object from a WebServerResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} message WebServerResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WebServerResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.cpu = 0; - object.memoryGb = 0; - object.storageGb = 0; - } - if (message.cpu != null && message.hasOwnProperty("cpu")) - object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + /** + * Creates a StorageConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.StorageConfig} StorageConfig + */ + StorageConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.StorageConfig) return object; - }; + var message = new $root.google.cloud.orchestration.airflow.service.v1.StorageConfig(); + if (object.bucket != null) + message.bucket = String(object.bucket); + return message; + }; - /** - * Converts this WebServerResource to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @instance - * @returns {Object.} JSON object - */ - WebServerResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a StorageConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.StorageConfig} message StorageConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StorageConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.bucket = ""; + if (message.bucket != null && message.hasOwnProperty("bucket")) + object.bucket = message.bucket; + return object; + }; - /** - * Gets the default type url for WebServerResource - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - WebServerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource"; - }; + /** + * Converts this StorageConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @instance + * @returns {Object.} JSON object + */ + StorageConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return WebServerResource; - })(); + /** + * Gets the default type url for StorageConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.StorageConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StorageConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.StorageConfig"; + }; - WorkloadsConfig.WorkerResource = (function() { + return StorageConfig; + })(); - /** - * Properties of a WorkerResource. - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @interface IWorkerResource - * @property {number|null} [cpu] WorkerResource cpu - * @property {number|null} [memoryGb] WorkerResource memoryGb - * @property {number|null} [storageGb] WorkerResource storageGb - * @property {number|null} [minCount] WorkerResource minCount - * @property {number|null} [maxCount] WorkerResource maxCount - */ + v1.EnvironmentConfig = (function() { - /** - * Constructs a new WorkerResource. - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig - * @classdesc Represents a WorkerResource. - * @implements IWorkerResource - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set - */ - function WorkerResource(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an EnvironmentConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IEnvironmentConfig + * @property {string|null} [gkeCluster] EnvironmentConfig gkeCluster + * @property {string|null} [dagGcsPrefix] EnvironmentConfig dagGcsPrefix + * @property {number|null} [nodeCount] EnvironmentConfig nodeCount + * @property {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null} [softwareConfig] EnvironmentConfig softwareConfig + * @property {google.cloud.orchestration.airflow.service.v1.INodeConfig|null} [nodeConfig] EnvironmentConfig nodeConfig + * @property {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null} [privateEnvironmentConfig] EnvironmentConfig privateEnvironmentConfig + * @property {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null} [webServerNetworkAccessControl] EnvironmentConfig webServerNetworkAccessControl + * @property {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null} [databaseConfig] EnvironmentConfig databaseConfig + * @property {google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null} [webServerConfig] EnvironmentConfig webServerConfig + * @property {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null} [encryptionConfig] EnvironmentConfig encryptionConfig + * @property {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null} [maintenanceWindow] EnvironmentConfig maintenanceWindow + * @property {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null} [workloadsConfig] EnvironmentConfig workloadsConfig + * @property {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize|null} [environmentSize] EnvironmentConfig environmentSize + * @property {string|null} [airflowUri] EnvironmentConfig airflowUri + * @property {string|null} [airflowByoidUri] EnvironmentConfig airflowByoidUri + * @property {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] EnvironmentConfig masterAuthorizedNetworksConfig + * @property {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null} [recoveryConfig] EnvironmentConfig recoveryConfig + * @property {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode|null} [resilienceMode] EnvironmentConfig resilienceMode + * @property {google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig|null} [dataRetentionConfig] EnvironmentConfig dataRetentionConfig + */ - /** - * WorkerResource cpu. - * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @instance - */ - WorkerResource.prototype.cpu = 0; + /** + * Constructs a new EnvironmentConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents an EnvironmentConfig. + * @implements IEnvironmentConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig=} [properties] Properties to set + */ + function EnvironmentConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * WorkerResource memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @instance - */ - WorkerResource.prototype.memoryGb = 0; + /** + * EnvironmentConfig gkeCluster. + * @member {string} gkeCluster + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.gkeCluster = ""; - /** - * WorkerResource storageGb. - * @member {number} storageGb - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @instance - */ - WorkerResource.prototype.storageGb = 0; + /** + * EnvironmentConfig dagGcsPrefix. + * @member {string} dagGcsPrefix + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.dagGcsPrefix = ""; - /** - * WorkerResource minCount. - * @member {number} minCount - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @instance - */ - WorkerResource.prototype.minCount = 0; + /** + * EnvironmentConfig nodeCount. + * @member {number} nodeCount + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.nodeCount = 0; - /** - * WorkerResource maxCount. - * @member {number} maxCount - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @instance - */ - WorkerResource.prototype.maxCount = 0; + /** + * EnvironmentConfig softwareConfig. + * @member {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null|undefined} softwareConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.softwareConfig = null; - /** - * Creates a new WorkerResource instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource instance - */ - WorkerResource.create = function create(properties) { - return new WorkerResource(properties); - }; + /** + * EnvironmentConfig nodeConfig. + * @member {google.cloud.orchestration.airflow.service.v1.INodeConfig|null|undefined} nodeConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.nodeConfig = null; - /** - * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkerResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); - if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); - if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); - if (message.minCount != null && Object.hasOwnProperty.call(message, "minCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minCount); - if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxCount); - return writer; - }; + /** + * EnvironmentConfig privateEnvironmentConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null|undefined} privateEnvironmentConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.privateEnvironmentConfig = null; - /** - * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkerResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * EnvironmentConfig webServerNetworkAccessControl. + * @member {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null|undefined} webServerNetworkAccessControl + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.webServerNetworkAccessControl = null; - /** - * Decodes a WorkerResource message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkerResource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.cpu = reader.float(); - break; - } - case 2: { - message.memoryGb = reader.float(); - break; - } - case 3: { - message.storageGb = reader.float(); - break; - } - case 4: { - message.minCount = reader.int32(); - break; - } - case 5: { - message.maxCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * EnvironmentConfig databaseConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null|undefined} databaseConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.databaseConfig = null; - /** - * Decodes a WorkerResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkerResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * EnvironmentConfig webServerConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null|undefined} webServerConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.webServerConfig = null; - /** - * Verifies a WorkerResource message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkerResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cpu != null && message.hasOwnProperty("cpu")) - if (typeof message.cpu !== "number") - return "cpu: number expected"; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - if (typeof message.memoryGb !== "number") - return "memoryGb: number expected"; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - if (typeof message.storageGb !== "number") - return "storageGb: number expected"; - if (message.minCount != null && message.hasOwnProperty("minCount")) - if (!$util.isInteger(message.minCount)) - return "minCount: integer expected"; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - if (!$util.isInteger(message.maxCount)) - return "maxCount: integer expected"; - return null; - }; + /** + * EnvironmentConfig encryptionConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null|undefined} encryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.encryptionConfig = null; - /** - * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource - */ - WorkerResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource(); - if (object.cpu != null) - message.cpu = Number(object.cpu); - if (object.memoryGb != null) - message.memoryGb = Number(object.memoryGb); - if (object.storageGb != null) - message.storageGb = Number(object.storageGb); - if (object.minCount != null) - message.minCount = object.minCount | 0; - if (object.maxCount != null) - message.maxCount = object.maxCount | 0; - return message; - }; + /** + * EnvironmentConfig maintenanceWindow. + * @member {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow|null|undefined} maintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.maintenanceWindow = null; - /** - * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} message WorkerResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WorkerResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.cpu = 0; - object.memoryGb = 0; - object.storageGb = 0; - object.minCount = 0; - object.maxCount = 0; - } - if (message.cpu != null && message.hasOwnProperty("cpu")) - object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; - if (message.minCount != null && message.hasOwnProperty("minCount")) - object.minCount = message.minCount; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - object.maxCount = message.maxCount; - return object; - }; - - /** - * Converts this WorkerResource to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @instance - * @returns {Object.} JSON object - */ - WorkerResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * EnvironmentConfig workloadsConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig|null|undefined} workloadsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.workloadsConfig = null; - /** - * Gets the default type url for WorkerResource - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - WorkerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource"; - }; + /** + * EnvironmentConfig environmentSize. + * @member {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize} environmentSize + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.environmentSize = 0; - return WorkerResource; - })(); + /** + * EnvironmentConfig airflowUri. + * @member {string} airflowUri + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.airflowUri = ""; - return WorkloadsConfig; - })(); + /** + * EnvironmentConfig airflowByoidUri. + * @member {string} airflowByoidUri + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.airflowByoidUri = ""; - v1.RecoveryConfig = (function() { + /** + * EnvironmentConfig masterAuthorizedNetworksConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig|null|undefined} masterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.masterAuthorizedNetworksConfig = null; /** - * Properties of a RecoveryConfig. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IRecoveryConfig - * @property {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null} [scheduledSnapshotsConfig] RecoveryConfig scheduledSnapshotsConfig + * EnvironmentConfig recoveryConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig|null|undefined} recoveryConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance */ + EnvironmentConfig.prototype.recoveryConfig = null; /** - * Constructs a new RecoveryConfig. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a RecoveryConfig. - * @implements IRecoveryConfig - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig=} [properties] Properties to set + * EnvironmentConfig resilienceMode. + * @member {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode} resilienceMode + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig + * @instance */ - function RecoveryConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + EnvironmentConfig.prototype.resilienceMode = 0; /** - * RecoveryConfig scheduledSnapshotsConfig. - * @member {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null|undefined} scheduledSnapshotsConfig - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * EnvironmentConfig dataRetentionConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig|null|undefined} dataRetentionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @instance */ - RecoveryConfig.prototype.scheduledSnapshotsConfig = null; + EnvironmentConfig.prototype.dataRetentionConfig = null; /** - * Creates a new RecoveryConfig instance using the specified properties. + * Creates a new EnvironmentConfig instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig instance */ - RecoveryConfig.create = function create(properties) { - return new RecoveryConfig(properties); + EnvironmentConfig.create = function create(properties) { + return new EnvironmentConfig(properties); }; /** - * Encodes the specified RecoveryConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. + * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig} message RecoveryConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecoveryConfig.encode = function encode(message, writer) { + EnvironmentConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scheduledSnapshotsConfig != null && Object.hasOwnProperty.call(message, "scheduledSnapshotsConfig")) - $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.encode(message.scheduledSnapshotsConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.gkeCluster != null && Object.hasOwnProperty.call(message, "gkeCluster")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gkeCluster); + if (message.dagGcsPrefix != null && Object.hasOwnProperty.call(message, "dagGcsPrefix")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dagGcsPrefix); + if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.nodeCount); + if (message.softwareConfig != null && Object.hasOwnProperty.call(message, "softwareConfig")) + $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.encode(message.softwareConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig")) + $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.airflowUri != null && Object.hasOwnProperty.call(message, "airflowUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.airflowUri); + if (message.privateEnvironmentConfig != null && Object.hasOwnProperty.call(message, "privateEnvironmentConfig")) + $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.encode(message.privateEnvironmentConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.webServerNetworkAccessControl != null && Object.hasOwnProperty.call(message, "webServerNetworkAccessControl")) + $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.encode(message.webServerNetworkAccessControl, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.databaseConfig != null && Object.hasOwnProperty.call(message, "databaseConfig")) + $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.encode(message.databaseConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.webServerConfig != null && Object.hasOwnProperty.call(message, "webServerConfig")) + $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.encode(message.webServerConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig")) + $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.maintenanceWindow != null && Object.hasOwnProperty.call(message, "maintenanceWindow")) + $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.encode(message.maintenanceWindow, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.workloadsConfig != null && Object.hasOwnProperty.call(message, "workloadsConfig")) + $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.encode(message.workloadsConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.environmentSize != null && Object.hasOwnProperty.call(message, "environmentSize")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.environmentSize); + if (message.masterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "masterAuthorizedNetworksConfig")) + $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.recoveryConfig != null && Object.hasOwnProperty.call(message, "recoveryConfig")) + $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.encode(message.recoveryConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.resilienceMode != null && Object.hasOwnProperty.call(message, "resilienceMode")) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.resilienceMode); + if (message.airflowByoidUri != null && Object.hasOwnProperty.call(message, "airflowByoidUri")) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.airflowByoidUri); + if (message.dataRetentionConfig != null && Object.hasOwnProperty.call(message, "dataRetentionConfig")) + $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.encode(message.dataRetentionConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecoveryConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. + * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig} message RecoveryConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecoveryConfig.encodeDelimited = function encodeDelimited(message, writer) { + EnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecoveryConfig message from the specified reader or buffer. + * Decodes an EnvironmentConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig + * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecoveryConfig.decode = function decode(reader, length) { + EnvironmentConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.scheduledSnapshotsConfig = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.decode(reader, reader.uint32()); + message.gkeCluster = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RecoveryConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecoveryConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecoveryConfig message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecoveryConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scheduledSnapshotsConfig != null && message.hasOwnProperty("scheduledSnapshotsConfig")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify(message.scheduledSnapshotsConfig); - if (error) - return "scheduledSnapshotsConfig." + error; - } - return null; - }; - - /** - * Creates a RecoveryConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig - */ - RecoveryConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig(); - if (object.scheduledSnapshotsConfig != null) { - if (typeof object.scheduledSnapshotsConfig !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.RecoveryConfig.scheduledSnapshotsConfig: object expected"); - message.scheduledSnapshotsConfig = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.fromObject(object.scheduledSnapshotsConfig); - } - return message; - }; - - /** - * Creates a plain object from a RecoveryConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} message RecoveryConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecoveryConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.scheduledSnapshotsConfig = null; - if (message.scheduledSnapshotsConfig != null && message.hasOwnProperty("scheduledSnapshotsConfig")) - object.scheduledSnapshotsConfig = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.toObject(message.scheduledSnapshotsConfig, options); - return object; - }; - - /** - * Converts this RecoveryConfig to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig - * @instance - * @returns {Object.} JSON object - */ - RecoveryConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RecoveryConfig - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RecoveryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.RecoveryConfig"; - }; - - return RecoveryConfig; - })(); - - v1.ScheduledSnapshotsConfig = (function() { - - /** - * Properties of a ScheduledSnapshotsConfig. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IScheduledSnapshotsConfig - * @property {boolean|null} [enabled] ScheduledSnapshotsConfig enabled - * @property {string|null} [snapshotLocation] ScheduledSnapshotsConfig snapshotLocation - * @property {string|null} [snapshotCreationSchedule] ScheduledSnapshotsConfig snapshotCreationSchedule - * @property {string|null} [timeZone] ScheduledSnapshotsConfig timeZone - */ - - /** - * Constructs a new ScheduledSnapshotsConfig. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a ScheduledSnapshotsConfig. - * @implements IScheduledSnapshotsConfig - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig=} [properties] Properties to set - */ - function ScheduledSnapshotsConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ScheduledSnapshotsConfig enabled. - * @member {boolean} enabled - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @instance - */ - ScheduledSnapshotsConfig.prototype.enabled = false; - - /** - * ScheduledSnapshotsConfig snapshotLocation. - * @member {string} snapshotLocation - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @instance - */ - ScheduledSnapshotsConfig.prototype.snapshotLocation = ""; - - /** - * ScheduledSnapshotsConfig snapshotCreationSchedule. - * @member {string} snapshotCreationSchedule - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @instance - */ - ScheduledSnapshotsConfig.prototype.snapshotCreationSchedule = ""; - - /** - * ScheduledSnapshotsConfig timeZone. - * @member {string} timeZone - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @instance - */ - ScheduledSnapshotsConfig.prototype.timeZone = ""; - - /** - * Creates a new ScheduledSnapshotsConfig instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig instance - */ - ScheduledSnapshotsConfig.create = function create(properties) { - return new ScheduledSnapshotsConfig(properties); - }; - - /** - * Encodes the specified ScheduledSnapshotsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig} message ScheduledSnapshotsConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScheduledSnapshotsConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.snapshotCreationSchedule != null && Object.hasOwnProperty.call(message, "snapshotCreationSchedule")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.snapshotCreationSchedule); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.timeZone); - if (message.snapshotLocation != null && Object.hasOwnProperty.call(message, "snapshotLocation")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.snapshotLocation); - return writer; - }; - - /** - * Encodes the specified ScheduledSnapshotsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig} message ScheduledSnapshotsConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScheduledSnapshotsConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScheduledSnapshotsConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enabled = reader.bool(); + case 2: { + message.dagGcsPrefix = reader.string(); break; } - case 6: { - message.snapshotLocation = reader.string(); + case 3: { + message.nodeCount = reader.int32(); break; } - case 3: { - message.snapshotCreationSchedule = reader.string(); + case 4: { + message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.decode(reader, reader.uint32()); break; } case 5: { - message.timeZone = reader.string(); + message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.decode(reader, reader.uint32()); + break; + } + case 7: { + message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.decode(reader, reader.uint32()); + break; + } + case 9: { + message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.decode(reader, reader.uint32()); + break; + } + case 11: { + message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.decode(reader, reader.uint32()); + break; + } + case 12: { + message.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.decode(reader, reader.uint32()); + break; + } + case 15: { + message.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.decode(reader, reader.uint32()); + break; + } + case 16: { + message.environmentSize = reader.int32(); + break; + } + case 6: { + message.airflowUri = reader.string(); + break; + } + case 20: { + message.airflowByoidUri = reader.string(); + break; + } + case 17: { + message.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); + break; + } + case 18: { + message.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.decode(reader, reader.uint32()); + break; + } + case 19: { + message.resilienceMode = reader.int32(); + break; + } + case 21: { + message.dataRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.decode(reader, reader.uint32()); break; } default: @@ -11416,149 +11124,408 @@ }; /** - * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer, length delimited. + * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig + * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ScheduledSnapshotsConfig.decodeDelimited = function decodeDelimited(reader) { + EnvironmentConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ScheduledSnapshotsConfig message. + * Verifies an EnvironmentConfig message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ScheduledSnapshotsConfig.verify = function verify(message) { + EnvironmentConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) - if (!$util.isString(message.snapshotLocation)) - return "snapshotLocation: string expected"; - if (message.snapshotCreationSchedule != null && message.hasOwnProperty("snapshotCreationSchedule")) - if (!$util.isString(message.snapshotCreationSchedule)) - return "snapshotCreationSchedule: string expected"; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; + if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster")) + if (!$util.isString(message.gkeCluster)) + return "gkeCluster: string expected"; + if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix")) + if (!$util.isString(message.dagGcsPrefix)) + return "dagGcsPrefix: string expected"; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; + if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify(message.softwareConfig); + if (error) + return "softwareConfig." + error; + } + if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.verify(message.nodeConfig); + if (error) + return "nodeConfig." + error; + } + if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify(message.privateEnvironmentConfig); + if (error) + return "privateEnvironmentConfig." + error; + } + if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify(message.webServerNetworkAccessControl); + if (error) + return "webServerNetworkAccessControl." + error; + } + if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify(message.databaseConfig); + if (error) + return "databaseConfig." + error; + } + if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify(message.webServerConfig); + if (error) + return "webServerConfig." + error; + } + if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify(message.encryptionConfig); + if (error) + return "encryptionConfig." + error; + } + if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify(message.maintenanceWindow); + if (error) + return "maintenanceWindow." + error; + } + if (message.workloadsConfig != null && message.hasOwnProperty("workloadsConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify(message.workloadsConfig); + if (error) + return "workloadsConfig." + error; + } + if (message.environmentSize != null && message.hasOwnProperty("environmentSize")) + switch (message.environmentSize) { + default: + return "environmentSize: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.airflowUri != null && message.hasOwnProperty("airflowUri")) + if (!$util.isString(message.airflowUri)) + return "airflowUri: string expected"; + if (message.airflowByoidUri != null && message.hasOwnProperty("airflowByoidUri")) + if (!$util.isString(message.airflowByoidUri)) + return "airflowByoidUri: string expected"; + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify(message.masterAuthorizedNetworksConfig); + if (error) + return "masterAuthorizedNetworksConfig." + error; + } + if (message.recoveryConfig != null && message.hasOwnProperty("recoveryConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify(message.recoveryConfig); + if (error) + return "recoveryConfig." + error; + } + if (message.resilienceMode != null && message.hasOwnProperty("resilienceMode")) + switch (message.resilienceMode) { + default: + return "resilienceMode: enum value expected"; + case 0: + case 1: + break; + } + if (message.dataRetentionConfig != null && message.hasOwnProperty("dataRetentionConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.verify(message.dataRetentionConfig); + if (error) + return "dataRetentionConfig." + error; + } return null; }; /** - * Creates a ScheduledSnapshotsConfig message from a plain object. Also converts values to their respective internal types. + * Creates an EnvironmentConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig + * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig */ - ScheduledSnapshotsConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig) + EnvironmentConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.snapshotLocation != null) - message.snapshotLocation = String(object.snapshotLocation); - if (object.snapshotCreationSchedule != null) - message.snapshotCreationSchedule = String(object.snapshotCreationSchedule); - if (object.timeZone != null) - message.timeZone = String(object.timeZone); + var message = new $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig(); + if (object.gkeCluster != null) + message.gkeCluster = String(object.gkeCluster); + if (object.dagGcsPrefix != null) + message.dagGcsPrefix = String(object.dagGcsPrefix); + if (object.nodeCount != null) + message.nodeCount = object.nodeCount | 0; + if (object.softwareConfig != null) { + if (typeof object.softwareConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.softwareConfig: object expected"); + message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.fromObject(object.softwareConfig); + } + if (object.nodeConfig != null) { + if (typeof object.nodeConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.nodeConfig: object expected"); + message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.fromObject(object.nodeConfig); + } + if (object.privateEnvironmentConfig != null) { + if (typeof object.privateEnvironmentConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.privateEnvironmentConfig: object expected"); + message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.fromObject(object.privateEnvironmentConfig); + } + if (object.webServerNetworkAccessControl != null) { + if (typeof object.webServerNetworkAccessControl !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.webServerNetworkAccessControl: object expected"); + message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.fromObject(object.webServerNetworkAccessControl); + } + if (object.databaseConfig != null) { + if (typeof object.databaseConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.databaseConfig: object expected"); + message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.fromObject(object.databaseConfig); + } + if (object.webServerConfig != null) { + if (typeof object.webServerConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.webServerConfig: object expected"); + message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.fromObject(object.webServerConfig); + } + if (object.encryptionConfig != null) { + if (typeof object.encryptionConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.encryptionConfig: object expected"); + message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.fromObject(object.encryptionConfig); + } + if (object.maintenanceWindow != null) { + if (typeof object.maintenanceWindow !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.maintenanceWindow: object expected"); + message.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.fromObject(object.maintenanceWindow); + } + if (object.workloadsConfig != null) { + if (typeof object.workloadsConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.workloadsConfig: object expected"); + message.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.fromObject(object.workloadsConfig); + } + switch (object.environmentSize) { + default: + if (typeof object.environmentSize === "number") { + message.environmentSize = object.environmentSize; + break; + } + break; + case "ENVIRONMENT_SIZE_UNSPECIFIED": + case 0: + message.environmentSize = 0; + break; + case "ENVIRONMENT_SIZE_SMALL": + case 1: + message.environmentSize = 1; + break; + case "ENVIRONMENT_SIZE_MEDIUM": + case 2: + message.environmentSize = 2; + break; + case "ENVIRONMENT_SIZE_LARGE": + case 3: + message.environmentSize = 3; + break; + } + if (object.airflowUri != null) + message.airflowUri = String(object.airflowUri); + if (object.airflowByoidUri != null) + message.airflowByoidUri = String(object.airflowByoidUri); + if (object.masterAuthorizedNetworksConfig != null) { + if (typeof object.masterAuthorizedNetworksConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.masterAuthorizedNetworksConfig: object expected"); + message.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.fromObject(object.masterAuthorizedNetworksConfig); + } + if (object.recoveryConfig != null) { + if (typeof object.recoveryConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.recoveryConfig: object expected"); + message.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.fromObject(object.recoveryConfig); + } + switch (object.resilienceMode) { + default: + if (typeof object.resilienceMode === "number") { + message.resilienceMode = object.resilienceMode; + break; + } + break; + case "RESILIENCE_MODE_UNSPECIFIED": + case 0: + message.resilienceMode = 0; + break; + case "HIGH_RESILIENCE": + case 1: + message.resilienceMode = 1; + break; + } + if (object.dataRetentionConfig != null) { + if (typeof object.dataRetentionConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.dataRetentionConfig: object expected"); + message.dataRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.fromObject(object.dataRetentionConfig); + } return message; }; /** - * Creates a plain object from a ScheduledSnapshotsConfig message. Also converts values to other types if specified. + * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} message ScheduledSnapshotsConfig + * @param {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} message EnvironmentConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ScheduledSnapshotsConfig.toObject = function toObject(message, options) { + EnvironmentConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enabled = false; - object.snapshotCreationSchedule = ""; - object.timeZone = ""; - object.snapshotLocation = ""; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.snapshotCreationSchedule != null && message.hasOwnProperty("snapshotCreationSchedule")) - object.snapshotCreationSchedule = message.snapshotCreationSchedule; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) - object.snapshotLocation = message.snapshotLocation; - return object; + object.gkeCluster = ""; + object.dagGcsPrefix = ""; + object.nodeCount = 0; + object.softwareConfig = null; + object.nodeConfig = null; + object.airflowUri = ""; + object.privateEnvironmentConfig = null; + object.webServerNetworkAccessControl = null; + object.databaseConfig = null; + object.webServerConfig = null; + object.encryptionConfig = null; + object.maintenanceWindow = null; + object.workloadsConfig = null; + object.environmentSize = options.enums === String ? "ENVIRONMENT_SIZE_UNSPECIFIED" : 0; + object.masterAuthorizedNetworksConfig = null; + object.recoveryConfig = null; + object.resilienceMode = options.enums === String ? "RESILIENCE_MODE_UNSPECIFIED" : 0; + object.airflowByoidUri = ""; + object.dataRetentionConfig = null; + } + if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster")) + object.gkeCluster = message.gkeCluster; + if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix")) + object.dagGcsPrefix = message.dagGcsPrefix; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; + if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig")) + object.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.toObject(message.softwareConfig, options); + if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) + object.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.toObject(message.nodeConfig, options); + if (message.airflowUri != null && message.hasOwnProperty("airflowUri")) + object.airflowUri = message.airflowUri; + if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig")) + object.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.toObject(message.privateEnvironmentConfig, options); + if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl")) + object.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.toObject(message.webServerNetworkAccessControl, options); + if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig")) + object.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.toObject(message.databaseConfig, options); + if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig")) + object.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.toObject(message.webServerConfig, options); + if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) + object.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.toObject(message.encryptionConfig, options); + if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow")) + object.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.toObject(message.maintenanceWindow, options); + if (message.workloadsConfig != null && message.hasOwnProperty("workloadsConfig")) + object.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.toObject(message.workloadsConfig, options); + if (message.environmentSize != null && message.hasOwnProperty("environmentSize")) + object.environmentSize = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize[message.environmentSize] === undefined ? message.environmentSize : $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize[message.environmentSize] : message.environmentSize; + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) + object.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options); + if (message.recoveryConfig != null && message.hasOwnProperty("recoveryConfig")) + object.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig.toObject(message.recoveryConfig, options); + if (message.resilienceMode != null && message.hasOwnProperty("resilienceMode")) + object.resilienceMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode[message.resilienceMode] === undefined ? message.resilienceMode : $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode[message.resilienceMode] : message.resilienceMode; + if (message.airflowByoidUri != null && message.hasOwnProperty("airflowByoidUri")) + object.airflowByoidUri = message.airflowByoidUri; + if (message.dataRetentionConfig != null && message.hasOwnProperty("dataRetentionConfig")) + object.dataRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.toObject(message.dataRetentionConfig, options); + return object; }; /** - * Converts this ScheduledSnapshotsConfig to JSON. + * Converts this EnvironmentConfig to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @instance * @returns {Object.} JSON object */ - ScheduledSnapshotsConfig.prototype.toJSON = function toJSON() { + EnvironmentConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ScheduledSnapshotsConfig + * Gets the default type url for EnvironmentConfig * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ScheduledSnapshotsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.EnvironmentConfig"; }; - return ScheduledSnapshotsConfig; + /** + * EnvironmentSize enum. + * @name google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize + * @enum {number} + * @property {number} ENVIRONMENT_SIZE_UNSPECIFIED=0 ENVIRONMENT_SIZE_UNSPECIFIED value + * @property {number} ENVIRONMENT_SIZE_SMALL=1 ENVIRONMENT_SIZE_SMALL value + * @property {number} ENVIRONMENT_SIZE_MEDIUM=2 ENVIRONMENT_SIZE_MEDIUM value + * @property {number} ENVIRONMENT_SIZE_LARGE=3 ENVIRONMENT_SIZE_LARGE value + */ + EnvironmentConfig.EnvironmentSize = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENVIRONMENT_SIZE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENVIRONMENT_SIZE_SMALL"] = 1; + values[valuesById[2] = "ENVIRONMENT_SIZE_MEDIUM"] = 2; + values[valuesById[3] = "ENVIRONMENT_SIZE_LARGE"] = 3; + return values; + })(); + + /** + * ResilienceMode enum. + * @name google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.ResilienceMode + * @enum {number} + * @property {number} RESILIENCE_MODE_UNSPECIFIED=0 RESILIENCE_MODE_UNSPECIFIED value + * @property {number} HIGH_RESILIENCE=1 HIGH_RESILIENCE value + */ + EnvironmentConfig.ResilienceMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESILIENCE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "HIGH_RESILIENCE"] = 1; + return values; + })(); + + return EnvironmentConfig; })(); - v1.MasterAuthorizedNetworksConfig = (function() { + v1.WebServerNetworkAccessControl = (function() { /** - * Properties of a MasterAuthorizedNetworksConfig. + * Properties of a WebServerNetworkAccessControl. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IMasterAuthorizedNetworksConfig - * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled - * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks + * @interface IWebServerNetworkAccessControl + * @property {Array.|null} [allowedIpRanges] WebServerNetworkAccessControl allowedIpRanges */ /** - * Constructs a new MasterAuthorizedNetworksConfig. + * Constructs a new WebServerNetworkAccessControl. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a MasterAuthorizedNetworksConfig. - * @implements IMasterAuthorizedNetworksConfig + * @classdesc Represents a WebServerNetworkAccessControl. + * @implements IWebServerNetworkAccessControl * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl=} [properties] Properties to set */ - function MasterAuthorizedNetworksConfig(properties) { - this.cidrBlocks = []; + function WebServerNetworkAccessControl(properties) { + this.allowedIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11566,92 +11533,78 @@ } /** - * MasterAuthorizedNetworksConfig enabled. - * @member {boolean} enabled - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig - * @instance - */ - MasterAuthorizedNetworksConfig.prototype.enabled = false; - - /** - * MasterAuthorizedNetworksConfig cidrBlocks. - * @member {Array.} cidrBlocks - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * WebServerNetworkAccessControl allowedIpRanges. + * @member {Array.} allowedIpRanges + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @instance */ - MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; + WebServerNetworkAccessControl.prototype.allowedIpRanges = $util.emptyArray; /** - * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * Creates a new WebServerNetworkAccessControl instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static - * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl instance */ - MasterAuthorizedNetworksConfig.create = function create(properties) { - return new MasterAuthorizedNetworksConfig(properties); + WebServerNetworkAccessControl.create = function create(properties) { + return new WebServerNetworkAccessControl(properties); }; /** - * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static - * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + WebServerNetworkAccessControl.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.cidrBlocks != null && message.cidrBlocks.length) - for (var i = 0; i < message.cidrBlocks.length; ++i) - $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowedIpRanges != null && message.allowedIpRanges.length) + for (var i = 0; i < message.allowedIpRanges.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.encode(message.allowedIpRanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static - * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + WebServerNetworkAccessControl.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterAuthorizedNetworksConfig.decode = function decode(reader, length) { + WebServerNetworkAccessControl.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enabled = reader.bool(); - break; - } - case 2: { - if (!(message.cidrBlocks && message.cidrBlocks.length)) - message.cidrBlocks = []; - message.cidrBlocks.push($root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32())); + if (!(message.allowedIpRanges && message.allowedIpRanges.length)) + message.allowedIpRanges = []; + message.allowedIpRanges.push($root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.decode(reader, reader.uint32())); break; } default: @@ -11663,146 +11616,137 @@ }; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + WebServerNetworkAccessControl.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MasterAuthorizedNetworksConfig message. + * Verifies a WebServerNetworkAccessControl message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterAuthorizedNetworksConfig.verify = function verify(message) { + WebServerNetworkAccessControl.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.cidrBlocks != null && message.hasOwnProperty("cidrBlocks")) { - if (!Array.isArray(message.cidrBlocks)) - return "cidrBlocks: array expected"; - for (var i = 0; i < message.cidrBlocks.length; ++i) { - var error = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify(message.cidrBlocks[i]); + if (message.allowedIpRanges != null && message.hasOwnProperty("allowedIpRanges")) { + if (!Array.isArray(message.allowedIpRanges)) + return "allowedIpRanges: array expected"; + for (var i = 0; i < message.allowedIpRanges.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify(message.allowedIpRanges[i]); if (error) - return "cidrBlocks." + error; + return "allowedIpRanges." + error; } } return null; }; /** - * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl */ - MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig) + WebServerNetworkAccessControl.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.cidrBlocks) { - if (!Array.isArray(object.cidrBlocks)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.cidrBlocks: array expected"); - message.cidrBlocks = []; - for (var i = 0; i < object.cidrBlocks.length; ++i) { - if (typeof object.cidrBlocks[i] !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.cidrBlocks: object expected"); - message.cidrBlocks[i] = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]); + var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl(); + if (object.allowedIpRanges) { + if (!Array.isArray(object.allowedIpRanges)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.allowedIpRanges: array expected"); + message.allowedIpRanges = []; + for (var i = 0; i < object.allowedIpRanges.length; ++i) { + if (typeof object.allowedIpRanges[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.allowedIpRanges: object expected"); + message.allowedIpRanges[i] = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.fromObject(object.allowedIpRanges[i]); } } return message; }; /** - * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. + * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static - * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig + * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} message WebServerNetworkAccessControl * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) { + WebServerNetworkAccessControl.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.cidrBlocks = []; - if (options.defaults) - object.enabled = false; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.cidrBlocks && message.cidrBlocks.length) { - object.cidrBlocks = []; - for (var j = 0; j < message.cidrBlocks.length; ++j) - object.cidrBlocks[j] = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options); + object.allowedIpRanges = []; + if (message.allowedIpRanges && message.allowedIpRanges.length) { + object.allowedIpRanges = []; + for (var j = 0; j < message.allowedIpRanges.length; ++j) + object.allowedIpRanges[j] = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.toObject(message.allowedIpRanges[j], options); } return object; }; /** - * Converts this MasterAuthorizedNetworksConfig to JSON. + * Converts this WebServerNetworkAccessControl to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @instance * @returns {Object.} JSON object */ - MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() { + WebServerNetworkAccessControl.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MasterAuthorizedNetworksConfig + * Gets the default type url for WebServerNetworkAccessControl * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MasterAuthorizedNetworksConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WebServerNetworkAccessControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl"; }; - MasterAuthorizedNetworksConfig.CidrBlock = (function() { + WebServerNetworkAccessControl.AllowedIpRange = (function() { /** - * Properties of a CidrBlock. - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig - * @interface ICidrBlock - * @property {string|null} [displayName] CidrBlock displayName - * @property {string|null} [cidrBlock] CidrBlock cidrBlock + * Properties of an AllowedIpRange. + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @interface IAllowedIpRange + * @property {string|null} [value] AllowedIpRange value + * @property {string|null} [description] AllowedIpRange description */ /** - * Constructs a new CidrBlock. - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig - * @classdesc Represents a CidrBlock. - * @implements ICidrBlock + * Constructs a new AllowedIpRange. + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl + * @classdesc Represents an AllowedIpRange. + * @implements IAllowedIpRange * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set */ - function CidrBlock(properties) { + function AllowedIpRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11810,89 +11754,89 @@ } /** - * CidrBlock displayName. - * @member {string} displayName - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * AllowedIpRange value. + * @member {string} value + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @instance */ - CidrBlock.prototype.displayName = ""; + AllowedIpRange.prototype.value = ""; /** - * CidrBlock cidrBlock. - * @member {string} cidrBlock - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * AllowedIpRange description. + * @member {string} description + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @instance */ - CidrBlock.prototype.cidrBlock = ""; + AllowedIpRange.prototype.description = ""; /** - * Creates a new CidrBlock instance using the specified properties. + * Creates a new AllowedIpRange instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static - * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock instance + * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange instance */ - CidrBlock.create = function create(properties) { - return new CidrBlock(properties); + AllowedIpRange.create = function create(properties) { + return new AllowedIpRange(properties); }; /** - * Encodes the specified CidrBlock message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static - * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CidrBlock.encode = function encode(message, writer) { + AllowedIpRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; /** - * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static - * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CidrBlock.encodeDelimited = function encodeDelimited(message, writer) { + AllowedIpRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CidrBlock message from the specified reader or buffer. + * Decodes an AllowedIpRange message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CidrBlock.decode = function decode(reader, length) { + AllowedIpRange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.displayName = reader.string(); + message.value = reader.string(); break; } case 2: { - message.cidrBlock = reader.string(); + message.description = reader.string(); break; } default: @@ -11904,141 +11848,135 @@ }; /** - * Decodes a CidrBlock message from the specified reader or buffer, length delimited. + * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CidrBlock.decodeDelimited = function decodeDelimited(reader) { + AllowedIpRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CidrBlock message. + * Verifies an AllowedIpRange message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CidrBlock.verify = function verify(message) { + AllowedIpRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) - if (!$util.isString(message.cidrBlock)) - return "cidrBlock: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types. + * Creates an AllowedIpRange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange */ - CidrBlock.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock) + AllowedIpRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.cidrBlock != null) - message.cidrBlock = String(object.cidrBlock); + var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange(); + if (object.value != null) + message.value = String(object.value); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. + * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static - * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} message CidrBlock + * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} message AllowedIpRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CidrBlock.toObject = function toObject(message, options) { + AllowedIpRange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.displayName = ""; - object.cidrBlock = ""; + object.value = ""; + object.description = ""; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) - object.cidrBlock = message.cidrBlock; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this CidrBlock to JSON. + * Converts this AllowedIpRange to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @instance * @returns {Object.} JSON object */ - CidrBlock.prototype.toJSON = function toJSON() { + AllowedIpRange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CidrBlock + * Gets the default type url for AllowedIpRange * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CidrBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AllowedIpRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange"; }; - return CidrBlock; + return AllowedIpRange; })(); - return MasterAuthorizedNetworksConfig; + return WebServerNetworkAccessControl; })(); - v1.Environment = (function() { + v1.DatabaseConfig = (function() { /** - * Properties of an Environment. + * Properties of a DatabaseConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IEnvironment - * @property {string|null} [name] Environment name - * @property {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null} [config] Environment config - * @property {string|null} [uuid] Environment uuid - * @property {google.cloud.orchestration.airflow.service.v1.Environment.State|null} [state] Environment state - * @property {google.protobuf.ITimestamp|null} [createTime] Environment createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime - * @property {Object.|null} [labels] Environment labels + * @interface IDatabaseConfig + * @property {string|null} [machineType] DatabaseConfig machineType + * @property {string|null} [zone] DatabaseConfig zone */ /** - * Constructs a new Environment. + * Constructs a new DatabaseConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents an Environment. - * @implements IEnvironment + * @classdesc Represents a DatabaseConfig. + * @implements IDatabaseConfig * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig=} [properties] Properties to set */ - function Environment(properties) { - this.labels = {}; + function DatabaseConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12046,179 +11984,89 @@ } /** - * Environment name. - * @member {string} name - * @memberof google.cloud.orchestration.airflow.service.v1.Environment - * @instance - */ - Environment.prototype.name = ""; - - /** - * Environment config. - * @member {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null|undefined} config - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * DatabaseConfig machineType. + * @member {string} machineType + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @instance */ - Environment.prototype.config = null; + DatabaseConfig.prototype.machineType = ""; /** - * Environment uuid. - * @member {string} uuid - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * DatabaseConfig zone. + * @member {string} zone + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @instance */ - Environment.prototype.uuid = ""; + DatabaseConfig.prototype.zone = ""; /** - * Environment state. - * @member {google.cloud.orchestration.airflow.service.v1.Environment.State} state - * @memberof google.cloud.orchestration.airflow.service.v1.Environment - * @instance - */ - Environment.prototype.state = 0; - - /** - * Environment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.orchestration.airflow.service.v1.Environment - * @instance - */ - Environment.prototype.createTime = null; - - /** - * Environment updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.orchestration.airflow.service.v1.Environment - * @instance - */ - Environment.prototype.updateTime = null; - - /** - * Environment labels. - * @member {Object.} labels - * @memberof google.cloud.orchestration.airflow.service.v1.Environment - * @instance - */ - Environment.prototype.labels = $util.emptyObject; - - /** - * Creates a new Environment instance using the specified properties. + * Creates a new DatabaseConfig instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment instance + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig instance */ - Environment.create = function create(properties) { - return new Environment(properties); + DatabaseConfig.create = function create(properties) { + return new DatabaseConfig(properties); }; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. + * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig} message DatabaseConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encode = function encode(message, writer) { + DatabaseConfig.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.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); return writer; }; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. + * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig} message DatabaseConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { + DatabaseConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a DatabaseConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decode = function decode(reader, length) { + DatabaseConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.Environment(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.machineType = reader.string(); break; } case 2: { - message.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.decode(reader, reader.uint32()); - break; - } - case 3: { - message.uuid = reader.string(); - break; - } - case 4: { - message.state = reader.int32(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; + message.zone = reader.string(); break; } default: @@ -12230,267 +12078,131 @@ }; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decodeDelimited = function decodeDelimited(reader) { + DatabaseConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Environment message. + * Verifies a DatabaseConfig message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Environment.verify = function verify(message) { + DatabaseConfig.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.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify(message.config); - if (error) - return "config." + error; - } - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment + * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.Environment) + DatabaseConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.Environment(); - if (object.name != null) - message.name = String(object.name); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.config: object expected"); - message.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.fromObject(object.config); - } - if (object.uuid != null) - message.uuid = String(object.uuid); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "CREATING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - case "ERROR": - case 5: - message.state = 5; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.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.orchestration.airflow.service.v1.Environment.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - return message; - }; - - /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.Environment - * @static - * @param {google.cloud.orchestration.airflow.service.v1.Environment} message Environment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Environment.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.config = null; - object.uuid = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.createTime = null; - object.updateTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.toObject(message.config, options); - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.Environment.State[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.Environment.State[message.state] : message.state; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + var message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig(); + if (object.machineType != null) + message.machineType = String(object.machineType); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} message DatabaseConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DatabaseConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.machineType = ""; + object.zone = ""; } + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; return object; }; /** - * Converts this Environment to JSON. + * Converts this DatabaseConfig to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @instance * @returns {Object.} JSON object */ - Environment.prototype.toJSON = function toJSON() { + DatabaseConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Environment + * Gets the default type url for DatabaseConfig * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DatabaseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.Environment"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseConfig"; }; - /** - * State enum. - * @name google.cloud.orchestration.airflow.service.v1.Environment.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} CREATING=1 CREATING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - * @property {number} ERROR=5 ERROR value - */ - Environment.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - values[valuesById[5] = "ERROR"] = 5; - return values; - })(); - - return Environment; + return DatabaseConfig; })(); - v1.CheckUpgradeResponse = (function() { + v1.WebServerConfig = (function() { /** - * Properties of a CheckUpgradeResponse. + * Properties of a WebServerConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface ICheckUpgradeResponse - * @property {string|null} [buildLogUri] CheckUpgradeResponse buildLogUri - * @property {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|null} [containsPypiModulesConflict] CheckUpgradeResponse containsPypiModulesConflict - * @property {string|null} [pypiConflictBuildLogExtract] CheckUpgradeResponse pypiConflictBuildLogExtract - * @property {string|null} [imageVersion] CheckUpgradeResponse imageVersion - * @property {Object.|null} [pypiDependencies] CheckUpgradeResponse pypiDependencies + * @interface IWebServerConfig + * @property {string|null} [machineType] WebServerConfig machineType */ /** - * Constructs a new CheckUpgradeResponse. + * Constructs a new WebServerConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a CheckUpgradeResponse. - * @implements ICheckUpgradeResponse + * @classdesc Represents a WebServerConfig. + * @implements IWebServerConfig * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig=} [properties] Properties to set */ - function CheckUpgradeResponse(properties) { - this.pypiDependencies = {}; + function WebServerConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12498,151 +12210,75 @@ } /** - * CheckUpgradeResponse buildLogUri. - * @member {string} buildLogUri - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse - * @instance - */ - CheckUpgradeResponse.prototype.buildLogUri = ""; - - /** - * CheckUpgradeResponse containsPypiModulesConflict. - * @member {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult} containsPypiModulesConflict - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse - * @instance - */ - CheckUpgradeResponse.prototype.containsPypiModulesConflict = 0; - - /** - * CheckUpgradeResponse pypiConflictBuildLogExtract. - * @member {string} pypiConflictBuildLogExtract - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse - * @instance - */ - CheckUpgradeResponse.prototype.pypiConflictBuildLogExtract = ""; - - /** - * CheckUpgradeResponse imageVersion. - * @member {string} imageVersion - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse - * @instance - */ - CheckUpgradeResponse.prototype.imageVersion = ""; - - /** - * CheckUpgradeResponse pypiDependencies. - * @member {Object.} pypiDependencies - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * WebServerConfig machineType. + * @member {string} machineType + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @instance */ - CheckUpgradeResponse.prototype.pypiDependencies = $util.emptyObject; + WebServerConfig.prototype.machineType = ""; /** - * Creates a new CheckUpgradeResponse instance using the specified properties. + * Creates a new WebServerConfig instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse instance + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig instance */ - CheckUpgradeResponse.create = function create(properties) { - return new CheckUpgradeResponse(properties); + WebServerConfig.create = function create(properties) { + return new WebServerConfig(properties); }; /** - * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. + * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse} message CheckUpgradeResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig} message WebServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckUpgradeResponse.encode = function encode(message, writer) { + WebServerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.buildLogUri != null && Object.hasOwnProperty.call(message, "buildLogUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.buildLogUri); - if (message.pypiConflictBuildLogExtract != null && Object.hasOwnProperty.call(message, "pypiConflictBuildLogExtract")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pypiConflictBuildLogExtract); - if (message.containsPypiModulesConflict != null && Object.hasOwnProperty.call(message, "containsPypiModulesConflict")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.containsPypiModulesConflict); - if (message.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageVersion); - if (message.pypiDependencies != null && Object.hasOwnProperty.call(message, "pypiDependencies")) - for (var keys = Object.keys(message.pypiDependencies), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.pypiDependencies[keys[i]]).ldelim(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); return writer; }; /** - * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. + * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse} message CheckUpgradeResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig} message WebServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) { + WebServerConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckUpgradeResponse message from the specified reader or buffer. + * Decodes a WebServerConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckUpgradeResponse.decode = function decode(reader, length) { + WebServerConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.buildLogUri = reader.string(); - break; - } - case 4: { - message.containsPypiModulesConflict = reader.int32(); - break; - } - case 3: { - message.pypiConflictBuildLogExtract = reader.string(); - break; - } - case 5: { - message.imageVersion = reader.string(); - break; - } - case 6: { - if (message.pypiDependencies === $util.emptyObject) - message.pypiDependencies = {}; - 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.pypiDependencies[key] = value; + message.machineType = reader.string(); break; } default: @@ -12654,215 +12290,122 @@ }; /** - * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited. + * Decodes a WebServerConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckUpgradeResponse.decodeDelimited = function decodeDelimited(reader) { + WebServerConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckUpgradeResponse message. + * Verifies a WebServerConfig message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckUpgradeResponse.verify = function verify(message) { + WebServerConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.buildLogUri != null && message.hasOwnProperty("buildLogUri")) - if (!$util.isString(message.buildLogUri)) - return "buildLogUri: string expected"; - if (message.containsPypiModulesConflict != null && message.hasOwnProperty("containsPypiModulesConflict")) - switch (message.containsPypiModulesConflict) { - default: - return "containsPypiModulesConflict: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.pypiConflictBuildLogExtract != null && message.hasOwnProperty("pypiConflictBuildLogExtract")) - if (!$util.isString(message.pypiConflictBuildLogExtract)) - return "pypiConflictBuildLogExtract: string expected"; - if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) - if (!$util.isString(message.imageVersion)) - return "imageVersion: string expected"; - if (message.pypiDependencies != null && message.hasOwnProperty("pypiDependencies")) { - if (!$util.isObject(message.pypiDependencies)) - return "pypiDependencies: object expected"; - var key = Object.keys(message.pypiDependencies); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.pypiDependencies[key[i]])) - return "pypiDependencies: string{k:string} expected"; - } + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; return null; }; /** - * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse + * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig */ - CheckUpgradeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse) + WebServerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse(); - if (object.buildLogUri != null) - message.buildLogUri = String(object.buildLogUri); - switch (object.containsPypiModulesConflict) { - default: - if (typeof object.containsPypiModulesConflict === "number") { - message.containsPypiModulesConflict = object.containsPypiModulesConflict; - break; - } - break; - case "CONFLICT_RESULT_UNSPECIFIED": - case 0: - message.containsPypiModulesConflict = 0; - break; - case "CONFLICT": - case 1: - message.containsPypiModulesConflict = 1; - break; - case "NO_CONFLICT": - case 2: - message.containsPypiModulesConflict = 2; - break; - } - if (object.pypiConflictBuildLogExtract != null) - message.pypiConflictBuildLogExtract = String(object.pypiConflictBuildLogExtract); - if (object.imageVersion != null) - message.imageVersion = String(object.imageVersion); - if (object.pypiDependencies) { - if (typeof object.pypiDependencies !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.pypiDependencies: object expected"); - message.pypiDependencies = {}; - for (var keys = Object.keys(object.pypiDependencies), i = 0; i < keys.length; ++i) - message.pypiDependencies[keys[i]] = String(object.pypiDependencies[keys[i]]); - } + var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig(); + if (object.machineType != null) + message.machineType = String(object.machineType); return message; }; /** - * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified. + * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} message CheckUpgradeResponse + * @param {google.cloud.orchestration.airflow.service.v1.WebServerConfig} message WebServerConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckUpgradeResponse.toObject = function toObject(message, options) { + WebServerConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.pypiDependencies = {}; - if (options.defaults) { - object.buildLogUri = ""; - object.pypiConflictBuildLogExtract = ""; - object.containsPypiModulesConflict = options.enums === String ? "CONFLICT_RESULT_UNSPECIFIED" : 0; - object.imageVersion = ""; - } - if (message.buildLogUri != null && message.hasOwnProperty("buildLogUri")) - object.buildLogUri = message.buildLogUri; - if (message.pypiConflictBuildLogExtract != null && message.hasOwnProperty("pypiConflictBuildLogExtract")) - object.pypiConflictBuildLogExtract = message.pypiConflictBuildLogExtract; - if (message.containsPypiModulesConflict != null && message.hasOwnProperty("containsPypiModulesConflict")) - object.containsPypiModulesConflict = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult[message.containsPypiModulesConflict] === undefined ? message.containsPypiModulesConflict : $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult[message.containsPypiModulesConflict] : message.containsPypiModulesConflict; - if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) - object.imageVersion = message.imageVersion; - var keys2; - if (message.pypiDependencies && (keys2 = Object.keys(message.pypiDependencies)).length) { - object.pypiDependencies = {}; - for (var j = 0; j < keys2.length; ++j) - object.pypiDependencies[keys2[j]] = message.pypiDependencies[keys2[j]]; - } + if (options.defaults) + object.machineType = ""; + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; return object; }; /** - * Converts this CheckUpgradeResponse to JSON. + * Converts this WebServerConfig to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @instance * @returns {Object.} JSON object */ - CheckUpgradeResponse.prototype.toJSON = function toJSON() { + WebServerConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckUpgradeResponse + * Gets the default type url for WebServerConfig * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckUpgradeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WebServerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerConfig"; }; - /** - * ConflictResult enum. - * @name google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult - * @enum {number} - * @property {number} CONFLICT_RESULT_UNSPECIFIED=0 CONFLICT_RESULT_UNSPECIFIED value - * @property {number} CONFLICT=1 CONFLICT value - * @property {number} NO_CONFLICT=2 NO_CONFLICT value - */ - CheckUpgradeResponse.ConflictResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONFLICT_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONFLICT"] = 1; - values[valuesById[2] = "NO_CONFLICT"] = 2; - return values; - })(); - - return CheckUpgradeResponse; + return WebServerConfig; })(); - v1.OperationMetadata = (function() { + v1.EncryptionConfig = (function() { /** - * Properties of an OperationMetadata. + * Properties of an EncryptionConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IOperationMetadata - * @property {google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|null} [state] OperationMetadata state - * @property {google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|null} [operationType] OperationMetadata operationType - * @property {string|null} [resource] OperationMetadata resource - * @property {string|null} [resourceUuid] OperationMetadata resourceUuid - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @interface IEncryptionConfig + * @property {string|null} [kmsKeyName] EncryptionConfig kmsKeyName */ /** - * Constructs a new OperationMetadata. + * Constructs a new EncryptionConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents an EncryptionConfig. + * @implements IEncryptionConfig * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig=} [properties] Properties to set */ - function OperationMetadata(properties) { + function EncryptionConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12870,145 +12413,75 @@ } /** - * OperationMetadata state. - * @member {google.cloud.orchestration.airflow.service.v1.OperationMetadata.State} state - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.state = 0; - - /** - * OperationMetadata operationType. - * @member {google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type} operationType - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.operationType = 0; - - /** - * OperationMetadata resource. - * @member {string} resource - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.resource = ""; - - /** - * OperationMetadata resourceUuid. - * @member {string} resourceUuid - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.resourceUuid = ""; - - /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; - - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * EncryptionConfig kmsKeyName. + * @member {string} kmsKeyName + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @instance */ - OperationMetadata.prototype.endTime = null; + EncryptionConfig.prototype.kmsKeyName = ""; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new EncryptionConfig instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata instance + * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + EncryptionConfig.create = function create(properties) { + return new EncryptionConfig(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig} message EncryptionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + EncryptionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operationType); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); - if (message.resourceUuid != null && Object.hasOwnProperty.call(message, "resourceUuid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceUuid); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig} message EncryptionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + EncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an EncryptionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length) { + EncryptionConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.state = reader.int32(); - break; - } - case 2: { - message.operationType = reader.int32(); - break; - } - case 3: { - message.resource = reader.string(); - break; - } - case 4: { - message.resourceUuid = reader.string(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.kmsKeyName = reader.string(); break; } default: @@ -13020,380 +12493,124 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + EncryptionConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationMetadata message. + * Verifies an EncryptionConfig message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationMetadata.verify = function verify(message) { + EncryptionConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 3: - case 4: - break; - } - if (message.operationType != null && message.hasOwnProperty("operationType")) - switch (message.operationType) { - default: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid")) - if (!$util.isString(message.resourceUuid)) - return "resourceUuid: 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.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) + if (!$util.isString(message.kmsKeyName)) + return "kmsKeyName: string expected"; return null; }; /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata) + EncryptionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "SUCCESSFUL": - case 3: - message.state = 3; - break; - case "FAILED": - case 4: - message.state = 4; - break; - } - switch (object.operationType) { - default: - if (typeof object.operationType === "number") { - message.operationType = object.operationType; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.operationType = 0; - break; - case "CREATE": - case 1: - message.operationType = 1; - break; - case "DELETE": - case 2: - message.operationType = 2; - break; - case "UPDATE": - case 3: - message.operationType = 3; - break; - case "CHECK": - case 4: - message.operationType = 4; - break; - case "SAVE_SNAPSHOT": - case 5: - message.operationType = 5; - break; - case "LOAD_SNAPSHOT": - case 6: - message.operationType = 6; - break; - case "DATABASE_FAILOVER": - case 7: - message.operationType = 7; - break; - } - if (object.resource != null) - message.resource = String(object.resource); - if (object.resourceUuid != null) - message.resourceUuid = String(object.resourceUuid); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } + var message = new $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); return message; }; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.OperationMetadata} message OperationMetadata + * @param {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} message EncryptionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationMetadata.toObject = function toObject(message, options) { + EncryptionConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.resource = ""; - object.resourceUuid = ""; - object.createTime = null; - object.endTime = null; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State[message.state] : message.state; - if (message.operationType != null && message.hasOwnProperty("operationType")) - object.operationType = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type[message.operationType] === undefined ? message.operationType : $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type[message.operationType] : message.operationType; - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid")) - object.resourceUuid = message.resourceUuid; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (options.defaults) + object.kmsKeyName = ""; + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) + object.kmsKeyName = message.kmsKeyName; return object; }; /** - * Converts this OperationMetadata to JSON. + * Converts this EncryptionConfig to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @instance * @returns {Object.} JSON object */ - OperationMetadata.prototype.toJSON = function toJSON() { + EncryptionConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for EncryptionConfig * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.OperationMetadata"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.EncryptionConfig"; }; + return EncryptionConfig; + })(); + + v1.MaintenanceWindow = (function() { + /** - * State enum. - * @name google.cloud.orchestration.airflow.service.v1.OperationMetadata.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} SUCCESSFUL=3 SUCCESSFUL value - * @property {number} FAILED=4 FAILED value - */ - OperationMetadata.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values["SUCCESSFUL"] = 3; - values[valuesById[4] = "FAILED"] = 4; - return values; - })(); - - /** - * Type enum. - * @name google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} CREATE=1 CREATE value - * @property {number} DELETE=2 DELETE value - * @property {number} UPDATE=3 UPDATE value - * @property {number} CHECK=4 CHECK value - * @property {number} SAVE_SNAPSHOT=5 SAVE_SNAPSHOT value - * @property {number} LOAD_SNAPSHOT=6 LOAD_SNAPSHOT value - * @property {number} DATABASE_FAILOVER=7 DATABASE_FAILOVER value - */ - OperationMetadata.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATE"] = 1; - values[valuesById[2] = "DELETE"] = 2; - values[valuesById[3] = "UPDATE"] = 3; - values[valuesById[4] = "CHECK"] = 4; - values[valuesById[5] = "SAVE_SNAPSHOT"] = 5; - values[valuesById[6] = "LOAD_SNAPSHOT"] = 6; - values[valuesById[7] = "DATABASE_FAILOVER"] = 7; - return values; - })(); - - return OperationMetadata; - })(); - - v1.ImageVersions = (function() { - - /** - * Constructs a new ImageVersions service. - * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents an ImageVersions - * @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 ImageVersions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ImageVersions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ImageVersions; - - /** - * Creates new ImageVersions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions - * @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 {ImageVersions} RPC service. Useful where requests and/or responses are streamed. - */ - ImageVersions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.ImageVersions|listImageVersions}. - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions - * @typedef ListImageVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} [response] ListImageVersionsResponse - */ - - /** - * Calls ListImageVersions. - * @function listImageVersions - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions - * @instance - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} request ListImageVersionsRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersionsCallback} callback Node-style callback called with the error, if any, and ListImageVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ImageVersions.prototype.listImageVersions = function listImageVersions(request, callback) { - return this.rpcCall(listImageVersions, $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse, request, callback); - }, "name", { value: "ListImageVersions" }); - - /** - * Calls ListImageVersions. - * @function listImageVersions - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions - * @instance - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} request ListImageVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return ImageVersions; - })(); - - v1.ListImageVersionsRequest = (function() { - - /** - * Properties of a ListImageVersionsRequest. + * Properties of a MaintenanceWindow. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IListImageVersionsRequest - * @property {string|null} [parent] ListImageVersionsRequest parent - * @property {number|null} [pageSize] ListImageVersionsRequest pageSize - * @property {string|null} [pageToken] ListImageVersionsRequest pageToken - * @property {boolean|null} [includePastReleases] ListImageVersionsRequest includePastReleases + * @interface IMaintenanceWindow + * @property {google.protobuf.ITimestamp|null} [startTime] MaintenanceWindow startTime + * @property {google.protobuf.ITimestamp|null} [endTime] MaintenanceWindow endTime + * @property {string|null} [recurrence] MaintenanceWindow recurrence */ /** - * Constructs a new ListImageVersionsRequest. + * Constructs a new MaintenanceWindow. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a ListImageVersionsRequest. - * @implements IListImageVersionsRequest + * @classdesc Represents a MaintenanceWindow. + * @implements IMaintenanceWindow * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow=} [properties] Properties to set */ - function ListImageVersionsRequest(properties) { + function MaintenanceWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13401,117 +12618,103 @@ } /** - * ListImageVersionsRequest parent. - * @member {string} parent - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest - * @instance - */ - ListImageVersionsRequest.prototype.parent = ""; - - /** - * ListImageVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * MaintenanceWindow startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @instance */ - ListImageVersionsRequest.prototype.pageSize = 0; + MaintenanceWindow.prototype.startTime = null; /** - * ListImageVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * MaintenanceWindow endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @instance */ - ListImageVersionsRequest.prototype.pageToken = ""; + MaintenanceWindow.prototype.endTime = null; /** - * ListImageVersionsRequest includePastReleases. - * @member {boolean} includePastReleases - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * MaintenanceWindow recurrence. + * @member {string} recurrence + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @instance */ - ListImageVersionsRequest.prototype.includePastReleases = false; + MaintenanceWindow.prototype.recurrence = ""; /** - * Creates a new ListImageVersionsRequest instance using the specified properties. + * Creates a new MaintenanceWindow instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest instance + * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow instance */ - ListImageVersionsRequest.create = function create(properties) { - return new ListImageVersionsRequest(properties); + MaintenanceWindow.create = function create(properties) { + return new MaintenanceWindow(properties); }; /** - * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} message ListImageVersionsRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListImageVersionsRequest.encode = function encode(message, writer) { + MaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.includePastReleases != null && Object.hasOwnProperty.call(message, "includePastReleases")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includePastReleases); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.recurrence); return writer; }; /** - * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} message ListImageVersionsRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListImageVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListImageVersionsRequest message from the specified reader or buffer. + * Decodes a MaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest + * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListImageVersionsRequest.decode = function decode(reader, length) { + MaintenanceWindow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.pageSize = reader.int32(); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.includePastReleases = reader.bool(); + message.recurrence = reader.string(); break; } default: @@ -13523,149 +12726,159 @@ }; /** - * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest + * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListImageVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListImageVersionsRequest message. + * Verifies a MaintenanceWindow message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListImageVersionsRequest.verify = function verify(message) { + MaintenanceWindow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.includePastReleases != null && message.hasOwnProperty("includePastReleases")) - if (typeof message.includePastReleases !== "boolean") - return "includePastReleases: boolean expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (!$util.isString(message.recurrence)) + return "recurrence: string expected"; return null; }; /** - * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest + * @returns {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} MaintenanceWindow */ - ListImageVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest) + MaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.includePastReleases != null) - message.includePastReleases = Boolean(object.includePastReleases); + var message = new $root.google.cloud.orchestration.airflow.service.v1.MaintenanceWindow(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.MaintenanceWindow.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.orchestration.airflow.service.v1.MaintenanceWindow.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.recurrence != null) + message.recurrence = String(object.recurrence); return message; }; /** - * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static - * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} message ListImageVersionsRequest + * @param {google.cloud.orchestration.airflow.service.v1.MaintenanceWindow} message MaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListImageVersionsRequest.toObject = function toObject(message, options) { + MaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.includePastReleases = false; + object.startTime = null; + object.endTime = null; + object.recurrence = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.includePastReleases != null && message.hasOwnProperty("includePastReleases")) - object.includePastReleases = message.includePastReleases; + 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.recurrence != null && message.hasOwnProperty("recurrence")) + object.recurrence = message.recurrence; return object; }; /** - * Converts this ListImageVersionsRequest to JSON. + * Converts this MaintenanceWindow to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @instance * @returns {Object.} JSON object */ - ListImageVersionsRequest.prototype.toJSON = function toJSON() { + MaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListImageVersionsRequest + * Gets the default type url for MaintenanceWindow * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @memberof google.cloud.orchestration.airflow.service.v1.MaintenanceWindow * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListImageVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.MaintenanceWindow"; }; - return ListImageVersionsRequest; + return MaintenanceWindow; })(); - v1.ListImageVersionsResponse = (function() { + v1.SoftwareConfig = (function() { /** - * Properties of a ListImageVersionsResponse. + * Properties of a SoftwareConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IListImageVersionsResponse - * @property {Array.|null} [imageVersions] ListImageVersionsResponse imageVersions - * @property {string|null} [nextPageToken] ListImageVersionsResponse nextPageToken + * @interface ISoftwareConfig + * @property {string|null} [imageVersion] SoftwareConfig imageVersion + * @property {Object.|null} [airflowConfigOverrides] SoftwareConfig airflowConfigOverrides + * @property {Object.|null} [pypiPackages] SoftwareConfig pypiPackages + * @property {Object.|null} [envVariables] SoftwareConfig envVariables + * @property {string|null} [pythonVersion] SoftwareConfig pythonVersion + * @property {number|null} [schedulerCount] SoftwareConfig schedulerCount + * @property {google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration|null} [cloudDataLineageIntegration] SoftwareConfig cloudDataLineageIntegration + * @property {google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode|null} [webServerPluginsMode] SoftwareConfig webServerPluginsMode */ /** - * Constructs a new ListImageVersionsResponse. + * Constructs a new SoftwareConfig. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents a ListImageVersionsResponse. - * @implements IListImageVersionsResponse + * @classdesc Represents a SoftwareConfig. + * @implements ISoftwareConfig * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig=} [properties] Properties to set */ - function ListImageVersionsResponse(properties) { - this.imageVersions = []; + function SoftwareConfig(properties) { + this.airflowConfigOverrides = {}; + this.pypiPackages = {}; + this.envVariables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13673,251 +12886,508 @@ } /** - * ListImageVersionsResponse imageVersions. - * @member {Array.} imageVersions - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * SoftwareConfig imageVersion. + * @member {string} imageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @instance */ - ListImageVersionsResponse.prototype.imageVersions = $util.emptyArray; + SoftwareConfig.prototype.imageVersion = ""; /** - * ListImageVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * SoftwareConfig airflowConfigOverrides. + * @member {Object.} airflowConfigOverrides + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @instance */ - ListImageVersionsResponse.prototype.nextPageToken = ""; + SoftwareConfig.prototype.airflowConfigOverrides = $util.emptyObject; /** - * Creates a new ListImageVersionsResponse instance using the specified properties. + * SoftwareConfig pypiPackages. + * @member {Object.} pypiPackages + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.pypiPackages = $util.emptyObject; + + /** + * SoftwareConfig envVariables. + * @member {Object.} envVariables + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.envVariables = $util.emptyObject; + + /** + * SoftwareConfig pythonVersion. + * @member {string} pythonVersion + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.pythonVersion = ""; + + /** + * SoftwareConfig schedulerCount. + * @member {number} schedulerCount + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.schedulerCount = 0; + + /** + * SoftwareConfig cloudDataLineageIntegration. + * @member {google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration|null|undefined} cloudDataLineageIntegration + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.cloudDataLineageIntegration = null; + + /** + * SoftwareConfig webServerPluginsMode. + * @member {google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode} webServerPluginsMode + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.webServerPluginsMode = 0; + + /** + * Creates a new SoftwareConfig instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse instance + * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig instance */ - ListImageVersionsResponse.create = function create(properties) { - return new ListImageVersionsResponse(properties); + SoftwareConfig.create = function create(properties) { + return new SoftwareConfig(properties); }; /** - * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. + * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse} message ListImageVersionsResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig} message SoftwareConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListImageVersionsResponse.encode = function encode(message, writer) { + SoftwareConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.imageVersions != null && message.imageVersions.length) - for (var i = 0; i < message.imageVersions.length; ++i) - $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.encode(message.imageVersions[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.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersion); + if (message.airflowConfigOverrides != null && Object.hasOwnProperty.call(message, "airflowConfigOverrides")) + for (var keys = Object.keys(message.airflowConfigOverrides), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.airflowConfigOverrides[keys[i]]).ldelim(); + if (message.pypiPackages != null && Object.hasOwnProperty.call(message, "pypiPackages")) + for (var keys = Object.keys(message.pypiPackages), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.pypiPackages[keys[i]]).ldelim(); + if (message.envVariables != null && Object.hasOwnProperty.call(message, "envVariables")) + for (var keys = Object.keys(message.envVariables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.envVariables[keys[i]]).ldelim(); + if (message.pythonVersion != null && Object.hasOwnProperty.call(message, "pythonVersion")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pythonVersion); + if (message.schedulerCount != null && Object.hasOwnProperty.call(message, "schedulerCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.schedulerCount); + if (message.cloudDataLineageIntegration != null && Object.hasOwnProperty.call(message, "cloudDataLineageIntegration")) + $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.encode(message.cloudDataLineageIntegration, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.webServerPluginsMode != null && Object.hasOwnProperty.call(message, "webServerPluginsMode")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.webServerPluginsMode); return writer; }; /** - * Encodes the specified ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. + * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse} message ListImageVersionsResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig} message SoftwareConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListImageVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SoftwareConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListImageVersionsResponse message from the specified reader or buffer. + * Decodes a SoftwareConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse + * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListImageVersionsResponse.decode = function decode(reader, length) { + SoftwareConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.imageVersions && message.imageVersions.length)) - message.imageVersions = []; - message.imageVersions.push($root.google.cloud.orchestration.airflow.service.v1.ImageVersion.decode(reader, reader.uint32())); + message.imageVersion = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - + if (message.airflowConfigOverrides === $util.emptyObject) + message.airflowConfigOverrides = {}; + 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.airflowConfigOverrides[key] = value; + break; + } + case 3: { + if (message.pypiPackages === $util.emptyObject) + message.pypiPackages = {}; + 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.pypiPackages[key] = value; + break; + } + case 4: { + if (message.envVariables === $util.emptyObject) + message.envVariables = {}; + 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.envVariables[key] = value; + break; + } + case 6: { + message.pythonVersion = reader.string(); + break; + } + case 7: { + message.schedulerCount = reader.int32(); + break; + } + case 8: { + message.cloudDataLineageIntegration = $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.decode(reader, reader.uint32()); + break; + } + case 10: { + message.webServerPluginsMode = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + /** - * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse + * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListImageVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + SoftwareConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListImageVersionsResponse message. + * Verifies a SoftwareConfig message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListImageVersionsResponse.verify = function verify(message) { + SoftwareConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.imageVersions != null && message.hasOwnProperty("imageVersions")) { - if (!Array.isArray(message.imageVersions)) - return "imageVersions: array expected"; - for (var i = 0; i < message.imageVersions.length; ++i) { - var error = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.verify(message.imageVersions[i]); - if (error) - return "imageVersions." + error; - } + if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) + if (!$util.isString(message.imageVersion)) + return "imageVersion: string expected"; + if (message.airflowConfigOverrides != null && message.hasOwnProperty("airflowConfigOverrides")) { + if (!$util.isObject(message.airflowConfigOverrides)) + return "airflowConfigOverrides: object expected"; + var key = Object.keys(message.airflowConfigOverrides); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.airflowConfigOverrides[key[i]])) + return "airflowConfigOverrides: string{k:string} expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.pypiPackages != null && message.hasOwnProperty("pypiPackages")) { + if (!$util.isObject(message.pypiPackages)) + return "pypiPackages: object expected"; + var key = Object.keys(message.pypiPackages); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.pypiPackages[key[i]])) + return "pypiPackages: string{k:string} expected"; + } + if (message.envVariables != null && message.hasOwnProperty("envVariables")) { + if (!$util.isObject(message.envVariables)) + return "envVariables: object expected"; + var key = Object.keys(message.envVariables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.envVariables[key[i]])) + return "envVariables: string{k:string} expected"; + } + if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion")) + if (!$util.isString(message.pythonVersion)) + return "pythonVersion: string expected"; + if (message.schedulerCount != null && message.hasOwnProperty("schedulerCount")) + if (!$util.isInteger(message.schedulerCount)) + return "schedulerCount: integer expected"; + if (message.cloudDataLineageIntegration != null && message.hasOwnProperty("cloudDataLineageIntegration")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.verify(message.cloudDataLineageIntegration); + if (error) + return "cloudDataLineageIntegration." + error; + } + if (message.webServerPluginsMode != null && message.hasOwnProperty("webServerPluginsMode")) + switch (message.webServerPluginsMode) { + default: + return "webServerPluginsMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse + * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig */ - ListImageVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse) + SoftwareConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse(); - if (object.imageVersions) { - if (!Array.isArray(object.imageVersions)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.imageVersions: array expected"); - message.imageVersions = []; - for (var i = 0; i < object.imageVersions.length; ++i) { - if (typeof object.imageVersions[i] !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.imageVersions: object expected"); - message.imageVersions[i] = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.fromObject(object.imageVersions[i]); + var message = new $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig(); + if (object.imageVersion != null) + message.imageVersion = String(object.imageVersion); + if (object.airflowConfigOverrides) { + if (typeof object.airflowConfigOverrides !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.airflowConfigOverrides: object expected"); + message.airflowConfigOverrides = {}; + for (var keys = Object.keys(object.airflowConfigOverrides), i = 0; i < keys.length; ++i) + message.airflowConfigOverrides[keys[i]] = String(object.airflowConfigOverrides[keys[i]]); + } + if (object.pypiPackages) { + if (typeof object.pypiPackages !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.pypiPackages: object expected"); + message.pypiPackages = {}; + for (var keys = Object.keys(object.pypiPackages), i = 0; i < keys.length; ++i) + message.pypiPackages[keys[i]] = String(object.pypiPackages[keys[i]]); + } + if (object.envVariables) { + if (typeof object.envVariables !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.envVariables: object expected"); + message.envVariables = {}; + for (var keys = Object.keys(object.envVariables), i = 0; i < keys.length; ++i) + message.envVariables[keys[i]] = String(object.envVariables[keys[i]]); + } + if (object.pythonVersion != null) + message.pythonVersion = String(object.pythonVersion); + if (object.schedulerCount != null) + message.schedulerCount = object.schedulerCount | 0; + if (object.cloudDataLineageIntegration != null) { + if (typeof object.cloudDataLineageIntegration !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.cloudDataLineageIntegration: object expected"); + message.cloudDataLineageIntegration = $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.fromObject(object.cloudDataLineageIntegration); + } + switch (object.webServerPluginsMode) { + default: + if (typeof object.webServerPluginsMode === "number") { + message.webServerPluginsMode = object.webServerPluginsMode; + break; } + break; + case "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED": + case 0: + message.webServerPluginsMode = 0; + break; + case "PLUGINS_DISABLED": + case 1: + message.webServerPluginsMode = 1; + break; + case "PLUGINS_ENABLED": + case 2: + message.webServerPluginsMode = 2; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} message ListImageVersionsResponse + * @param {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} message SoftwareConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListImageVersionsResponse.toObject = function toObject(message, options) { + SoftwareConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.imageVersions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.imageVersions && message.imageVersions.length) { - object.imageVersions = []; - for (var j = 0; j < message.imageVersions.length; ++j) - object.imageVersions[j] = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.toObject(message.imageVersions[j], options); + if (options.objects || options.defaults) { + object.airflowConfigOverrides = {}; + object.pypiPackages = {}; + object.envVariables = {}; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListImageVersionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse - * @instance - * @returns {Object.} JSON object - */ - ListImageVersionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListImageVersionsResponse + if (options.defaults) { + object.imageVersion = ""; + object.pythonVersion = ""; + object.schedulerCount = 0; + object.cloudDataLineageIntegration = null; + object.webServerPluginsMode = options.enums === String ? "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED" : 0; + } + if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) + object.imageVersion = message.imageVersion; + var keys2; + if (message.airflowConfigOverrides && (keys2 = Object.keys(message.airflowConfigOverrides)).length) { + object.airflowConfigOverrides = {}; + for (var j = 0; j < keys2.length; ++j) + object.airflowConfigOverrides[keys2[j]] = message.airflowConfigOverrides[keys2[j]]; + } + if (message.pypiPackages && (keys2 = Object.keys(message.pypiPackages)).length) { + object.pypiPackages = {}; + for (var j = 0; j < keys2.length; ++j) + object.pypiPackages[keys2[j]] = message.pypiPackages[keys2[j]]; + } + if (message.envVariables && (keys2 = Object.keys(message.envVariables)).length) { + object.envVariables = {}; + for (var j = 0; j < keys2.length; ++j) + object.envVariables[keys2[j]] = message.envVariables[keys2[j]]; + } + if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion")) + object.pythonVersion = message.pythonVersion; + if (message.schedulerCount != null && message.hasOwnProperty("schedulerCount")) + object.schedulerCount = message.schedulerCount; + if (message.cloudDataLineageIntegration != null && message.hasOwnProperty("cloudDataLineageIntegration")) + object.cloudDataLineageIntegration = $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.toObject(message.cloudDataLineageIntegration, options); + if (message.webServerPluginsMode != null && message.hasOwnProperty("webServerPluginsMode")) + object.webServerPluginsMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode[message.webServerPluginsMode] === undefined ? message.webServerPluginsMode : $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode[message.webServerPluginsMode] : message.webServerPluginsMode; + return object; + }; + + /** + * Converts this SoftwareConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig + * @instance + * @returns {Object.} JSON object + */ + SoftwareConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SoftwareConfig * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListImageVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SoftwareConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SoftwareConfig"; }; - return ListImageVersionsResponse; + /** + * WebServerPluginsMode enum. + * @name google.cloud.orchestration.airflow.service.v1.SoftwareConfig.WebServerPluginsMode + * @enum {number} + * @property {number} WEB_SERVER_PLUGINS_MODE_UNSPECIFIED=0 WEB_SERVER_PLUGINS_MODE_UNSPECIFIED value + * @property {number} PLUGINS_DISABLED=1 PLUGINS_DISABLED value + * @property {number} PLUGINS_ENABLED=2 PLUGINS_ENABLED value + */ + SoftwareConfig.WebServerPluginsMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PLUGINS_DISABLED"] = 1; + values[valuesById[2] = "PLUGINS_ENABLED"] = 2; + return values; + })(); + + return SoftwareConfig; })(); - v1.ImageVersion = (function() { + v1.IPAllocationPolicy = (function() { /** - * Properties of an ImageVersion. + * Properties of a IPAllocationPolicy. * @memberof google.cloud.orchestration.airflow.service.v1 - * @interface IImageVersion - * @property {string|null} [imageVersionId] ImageVersion imageVersionId - * @property {boolean|null} [isDefault] ImageVersion isDefault - * @property {Array.|null} [supportedPythonVersions] ImageVersion supportedPythonVersions - * @property {google.type.IDate|null} [releaseDate] ImageVersion releaseDate - * @property {boolean|null} [creationDisabled] ImageVersion creationDisabled - * @property {boolean|null} [upgradeDisabled] ImageVersion upgradeDisabled + * @interface IIPAllocationPolicy + * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases + * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName + * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock + * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName + * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock */ /** - * Constructs a new ImageVersion. + * Constructs a new IPAllocationPolicy. * @memberof google.cloud.orchestration.airflow.service.v1 - * @classdesc Represents an ImageVersion. - * @implements IImageVersion + * @classdesc Represents a IPAllocationPolicy. + * @implements IIPAllocationPolicy * @constructor - * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy=} [properties] Properties to set */ - function ImageVersion(properties) { - this.supportedPythonVersions = []; + function IPAllocationPolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13925,148 +13395,156 @@ } /** - * ImageVersion imageVersionId. - * @member {string} imageVersionId - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * IPAllocationPolicy useIpAliases. + * @member {boolean} useIpAliases + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @instance */ - ImageVersion.prototype.imageVersionId = ""; + IPAllocationPolicy.prototype.useIpAliases = false; /** - * ImageVersion isDefault. - * @member {boolean} isDefault - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * IPAllocationPolicy clusterSecondaryRangeName. + * @member {string|null|undefined} clusterSecondaryRangeName + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @instance */ - ImageVersion.prototype.isDefault = false; + IPAllocationPolicy.prototype.clusterSecondaryRangeName = null; /** - * ImageVersion supportedPythonVersions. - * @member {Array.} supportedPythonVersions - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * IPAllocationPolicy clusterIpv4CidrBlock. + * @member {string|null|undefined} clusterIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @instance */ - ImageVersion.prototype.supportedPythonVersions = $util.emptyArray; + IPAllocationPolicy.prototype.clusterIpv4CidrBlock = null; /** - * ImageVersion releaseDate. - * @member {google.type.IDate|null|undefined} releaseDate - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * IPAllocationPolicy servicesSecondaryRangeName. + * @member {string|null|undefined} servicesSecondaryRangeName + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @instance */ - ImageVersion.prototype.releaseDate = null; + IPAllocationPolicy.prototype.servicesSecondaryRangeName = null; /** - * ImageVersion creationDisabled. - * @member {boolean} creationDisabled - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * IPAllocationPolicy servicesIpv4CidrBlock. + * @member {string|null|undefined} servicesIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @instance */ - ImageVersion.prototype.creationDisabled = false; + IPAllocationPolicy.prototype.servicesIpv4CidrBlock = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ImageVersion upgradeDisabled. - * @member {boolean} upgradeDisabled - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * IPAllocationPolicy clusterIpAllocation. + * @member {"clusterSecondaryRangeName"|"clusterIpv4CidrBlock"|undefined} clusterIpAllocation + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @instance */ - ImageVersion.prototype.upgradeDisabled = false; + Object.defineProperty(IPAllocationPolicy.prototype, "clusterIpAllocation", { + get: $util.oneOfGetter($oneOfFields = ["clusterSecondaryRangeName", "clusterIpv4CidrBlock"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ImageVersion instance using the specified properties. + * IPAllocationPolicy servicesIpAllocation. + * @member {"servicesSecondaryRangeName"|"servicesIpv4CidrBlock"|undefined} servicesIpAllocation + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @instance + */ + Object.defineProperty(IPAllocationPolicy.prototype, "servicesIpAllocation", { + get: $util.oneOfGetter($oneOfFields = ["servicesSecondaryRangeName", "servicesIpv4CidrBlock"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IPAllocationPolicy instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static - * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion instance + * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy instance */ - ImageVersion.create = function create(properties) { - return new ImageVersion(properties); + IPAllocationPolicy.create = function create(properties) { + return new IPAllocationPolicy(properties); }; /** - * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. + * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static - * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion} message ImageVersion message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImageVersion.encode = function encode(message, writer) { + IPAllocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.imageVersionId != null && Object.hasOwnProperty.call(message, "imageVersionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersionId); - if (message.isDefault != null && Object.hasOwnProperty.call(message, "isDefault")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDefault); - if (message.supportedPythonVersions != null && message.supportedPythonVersions.length) - for (var i = 0; i < message.supportedPythonVersions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.supportedPythonVersions[i]); - if (message.releaseDate != null && Object.hasOwnProperty.call(message, "releaseDate")) - $root.google.type.Date.encode(message.releaseDate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.creationDisabled != null && Object.hasOwnProperty.call(message, "creationDisabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.creationDisabled); - if (message.upgradeDisabled != null && Object.hasOwnProperty.call(message, "upgradeDisabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.upgradeDisabled); + if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); + if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterSecondaryRangeName); + if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.servicesSecondaryRangeName); + if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4CidrBlock); + if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.servicesIpv4CidrBlock); return writer; }; /** - * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. + * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static - * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion} message ImageVersion message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImageVersion.encodeDelimited = function encodeDelimited(message, writer) { + IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImageVersion message from the specified reader or buffer. + * Decodes a IPAllocationPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion + * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImageVersion.decode = function decode(reader, length) { + IPAllocationPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ImageVersion(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.imageVersionId = reader.string(); + message.useIpAliases = reader.bool(); break; } case 2: { - message.isDefault = reader.bool(); - break; - } - case 3: { - if (!(message.supportedPythonVersions && message.supportedPythonVersions.length)) - message.supportedPythonVersions = []; - message.supportedPythonVersions.push(reader.string()); + message.clusterSecondaryRangeName = reader.string(); break; } case 4: { - message.releaseDate = $root.google.type.Date.decode(reader, reader.uint32()); + message.clusterIpv4CidrBlock = reader.string(); break; } - case 5: { - message.creationDisabled = reader.bool(); + case 3: { + message.servicesSecondaryRangeName = reader.string(); break; } - case 6: { - message.upgradeDisabled = reader.bool(); + case 5: { + message.servicesIpv4CidrBlock = reader.string(); break; } default: @@ -14078,691 +13556,12438 @@ }; /** - * Decodes an ImageVersion message from the specified reader or buffer, length delimited. + * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion + * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImageVersion.decodeDelimited = function decodeDelimited(reader) { + IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImageVersion message. + * Verifies a IPAllocationPolicy message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImageVersion.verify = function verify(message) { + IPAllocationPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.imageVersionId != null && message.hasOwnProperty("imageVersionId")) - if (!$util.isString(message.imageVersionId)) - return "imageVersionId: string expected"; - if (message.isDefault != null && message.hasOwnProperty("isDefault")) - if (typeof message.isDefault !== "boolean") - return "isDefault: boolean expected"; - if (message.supportedPythonVersions != null && message.hasOwnProperty("supportedPythonVersions")) { - if (!Array.isArray(message.supportedPythonVersions)) - return "supportedPythonVersions: array expected"; - for (var i = 0; i < message.supportedPythonVersions.length; ++i) - if (!$util.isString(message.supportedPythonVersions[i])) - return "supportedPythonVersions: string[] expected"; + var properties = {}; + if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) + if (typeof message.useIpAliases !== "boolean") + return "useIpAliases: boolean expected"; + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) { + properties.clusterIpAllocation = 1; + if (!$util.isString(message.clusterSecondaryRangeName)) + return "clusterSecondaryRangeName: string expected"; } - if (message.releaseDate != null && message.hasOwnProperty("releaseDate")) { - var error = $root.google.type.Date.verify(message.releaseDate); - if (error) - return "releaseDate." + error; + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) { + if (properties.clusterIpAllocation === 1) + return "clusterIpAllocation: multiple values"; + properties.clusterIpAllocation = 1; + if (!$util.isString(message.clusterIpv4CidrBlock)) + return "clusterIpv4CidrBlock: string expected"; + } + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) { + properties.servicesIpAllocation = 1; + if (!$util.isString(message.servicesSecondaryRangeName)) + return "servicesSecondaryRangeName: string expected"; + } + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) { + if (properties.servicesIpAllocation === 1) + return "servicesIpAllocation: multiple values"; + properties.servicesIpAllocation = 1; + if (!$util.isString(message.servicesIpv4CidrBlock)) + return "servicesIpv4CidrBlock: string expected"; } - if (message.creationDisabled != null && message.hasOwnProperty("creationDisabled")) - if (typeof message.creationDisabled !== "boolean") - return "creationDisabled: boolean expected"; - if (message.upgradeDisabled != null && message.hasOwnProperty("upgradeDisabled")) - if (typeof message.upgradeDisabled !== "boolean") - return "upgradeDisabled: boolean expected"; return null; }; /** - * Creates an ImageVersion message from a plain object. Also converts values to their respective internal types. + * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion + * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy */ - ImageVersion.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ImageVersion) + IPAllocationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1.ImageVersion(); - if (object.imageVersionId != null) - message.imageVersionId = String(object.imageVersionId); - if (object.isDefault != null) - message.isDefault = Boolean(object.isDefault); - if (object.supportedPythonVersions) { - if (!Array.isArray(object.supportedPythonVersions)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1.ImageVersion.supportedPythonVersions: array expected"); - message.supportedPythonVersions = []; - for (var i = 0; i < object.supportedPythonVersions.length; ++i) - message.supportedPythonVersions[i] = String(object.supportedPythonVersions[i]); - } - if (object.releaseDate != null) { - if (typeof object.releaseDate !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1.ImageVersion.releaseDate: object expected"); - message.releaseDate = $root.google.type.Date.fromObject(object.releaseDate); - } - if (object.creationDisabled != null) - message.creationDisabled = Boolean(object.creationDisabled); - if (object.upgradeDisabled != null) - message.upgradeDisabled = Boolean(object.upgradeDisabled); + var message = new $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy(); + if (object.useIpAliases != null) + message.useIpAliases = Boolean(object.useIpAliases); + if (object.clusterSecondaryRangeName != null) + message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName); + if (object.clusterIpv4CidrBlock != null) + message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock); + if (object.servicesSecondaryRangeName != null) + message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName); + if (object.servicesIpv4CidrBlock != null) + message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock); return message; }; /** - * Creates a plain object from an ImageVersion message. Also converts values to other types if specified. + * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy * @static - * @param {google.cloud.orchestration.airflow.service.v1.ImageVersion} message ImageVersion + * @param {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} message IPAllocationPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImageVersion.toObject = function toObject(message, options) { + IPAllocationPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.supportedPythonVersions = []; - if (options.defaults) { - object.imageVersionId = ""; - object.isDefault = false; - object.releaseDate = null; - object.creationDisabled = false; - object.upgradeDisabled = false; + if (options.defaults) + object.useIpAliases = false; + if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) + object.useIpAliases = message.useIpAliases; + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) { + object.clusterSecondaryRangeName = message.clusterSecondaryRangeName; + if (options.oneofs) + object.clusterIpAllocation = "clusterSecondaryRangeName"; } - if (message.imageVersionId != null && message.hasOwnProperty("imageVersionId")) - object.imageVersionId = message.imageVersionId; - if (message.isDefault != null && message.hasOwnProperty("isDefault")) - object.isDefault = message.isDefault; - if (message.supportedPythonVersions && message.supportedPythonVersions.length) { - object.supportedPythonVersions = []; - for (var j = 0; j < message.supportedPythonVersions.length; ++j) - object.supportedPythonVersions[j] = message.supportedPythonVersions[j]; + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) { + object.servicesSecondaryRangeName = message.servicesSecondaryRangeName; + if (options.oneofs) + object.servicesIpAllocation = "servicesSecondaryRangeName"; + } + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) { + object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock; + if (options.oneofs) + object.clusterIpAllocation = "clusterIpv4CidrBlock"; + } + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) { + object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock; + if (options.oneofs) + object.servicesIpAllocation = "servicesIpv4CidrBlock"; } - if (message.releaseDate != null && message.hasOwnProperty("releaseDate")) - object.releaseDate = $root.google.type.Date.toObject(message.releaseDate, options); - if (message.creationDisabled != null && message.hasOwnProperty("creationDisabled")) - object.creationDisabled = message.creationDisabled; - if (message.upgradeDisabled != null && message.hasOwnProperty("upgradeDisabled")) - object.upgradeDisabled = message.upgradeDisabled; return object; }; - /** - * Converts this ImageVersion to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion - * @instance - * @returns {Object.} JSON object - */ - ImageVersion.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this IPAllocationPolicy to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @instance + * @returns {Object.} JSON object + */ + IPAllocationPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IPAllocationPolicy + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IPAllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy"; + }; + + return IPAllocationPolicy; + })(); + + v1.NodeConfig = (function() { + + /** + * Properties of a NodeConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface INodeConfig + * @property {string|null} [location] NodeConfig location + * @property {string|null} [machineType] NodeConfig machineType + * @property {string|null} [network] NodeConfig network + * @property {string|null} [subnetwork] NodeConfig subnetwork + * @property {number|null} [diskSizeGb] NodeConfig diskSizeGb + * @property {Array.|null} [oauthScopes] NodeConfig oauthScopes + * @property {string|null} [serviceAccount] NodeConfig serviceAccount + * @property {Array.|null} [tags] NodeConfig tags + * @property {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] NodeConfig ipAllocationPolicy + * @property {boolean|null} [enableIpMasqAgent] NodeConfig enableIpMasqAgent + * @property {string|null} [composerNetworkAttachment] NodeConfig composerNetworkAttachment + * @property {string|null} [composerInternalIpv4CidrBlock] NodeConfig composerInternalIpv4CidrBlock + */ + + /** + * Constructs a new NodeConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a NodeConfig. + * @implements INodeConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig=} [properties] Properties to set + */ + function NodeConfig(properties) { + this.oauthScopes = []; + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeConfig location. + * @member {string} location + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.location = ""; + + /** + * NodeConfig machineType. + * @member {string} machineType + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.machineType = ""; + + /** + * NodeConfig network. + * @member {string} network + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.network = ""; + + /** + * NodeConfig subnetwork. + * @member {string} subnetwork + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.subnetwork = ""; + + /** + * NodeConfig diskSizeGb. + * @member {number} diskSizeGb + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.diskSizeGb = 0; + + /** + * NodeConfig oauthScopes. + * @member {Array.} oauthScopes + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.oauthScopes = $util.emptyArray; + + /** + * NodeConfig serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.serviceAccount = ""; + + /** + * NodeConfig tags. + * @member {Array.} tags + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.tags = $util.emptyArray; + + /** + * NodeConfig ipAllocationPolicy. + * @member {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.ipAllocationPolicy = null; + + /** + * NodeConfig enableIpMasqAgent. + * @member {boolean} enableIpMasqAgent + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.enableIpMasqAgent = false; + + /** + * NodeConfig composerNetworkAttachment. + * @member {string} composerNetworkAttachment + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.composerNetworkAttachment = ""; + + /** + * NodeConfig composerInternalIpv4CidrBlock. + * @member {string} composerInternalIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.composerInternalIpv4CidrBlock = ""; + + /** + * Creates a new NodeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig instance + */ + NodeConfig.create = function create(properties) { + return new NodeConfig(properties); + }; + + /** + * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig} message NodeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.network); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.subnetwork); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.diskSizeGb); + if (message.oauthScopes != null && message.oauthScopes.length) + for (var i = 0; i < message.oauthScopes.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.oauthScopes[i]); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.serviceAccount); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]); + if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy")) + $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.enableIpMasqAgent != null && Object.hasOwnProperty.call(message, "enableIpMasqAgent")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enableIpMasqAgent); + if (message.composerNetworkAttachment != null && Object.hasOwnProperty.call(message, "composerNetworkAttachment")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.composerNetworkAttachment); + if (message.composerInternalIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "composerInternalIpv4CidrBlock")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.composerInternalIpv4CidrBlock); + return writer; + }; + + /** + * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig} message NodeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.NodeConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.location = reader.string(); + break; + } + case 2: { + message.machineType = reader.string(); + break; + } + case 3: { + message.network = reader.string(); + break; + } + case 4: { + message.subnetwork = reader.string(); + break; + } + case 5: { + message.diskSizeGb = reader.int32(); + break; + } + case 6: { + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); + break; + } + case 7: { + message.serviceAccount = reader.string(); + break; + } + case 8: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } + case 9: { + message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.decode(reader, reader.uint32()); + break; + } + case 11: { + message.enableIpMasqAgent = reader.bool(); + break; + } + case 12: { + message.composerNetworkAttachment = reader.string(); + break; + } + case 13: { + message.composerInternalIpv4CidrBlock = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (!$util.isInteger(message.diskSizeGb)) + return "diskSizeGb: integer expected"; + if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { + if (!Array.isArray(message.oauthScopes)) + return "oauthScopes: array expected"; + for (var i = 0; i < message.oauthScopes.length; ++i) + if (!$util.isString(message.oauthScopes[i])) + return "oauthScopes: string[] expected"; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy); + if (error) + return "ipAllocationPolicy." + error; + } + if (message.enableIpMasqAgent != null && message.hasOwnProperty("enableIpMasqAgent")) + if (typeof message.enableIpMasqAgent !== "boolean") + return "enableIpMasqAgent: boolean expected"; + if (message.composerNetworkAttachment != null && message.hasOwnProperty("composerNetworkAttachment")) + if (!$util.isString(message.composerNetworkAttachment)) + return "composerNetworkAttachment: string expected"; + if (message.composerInternalIpv4CidrBlock != null && message.hasOwnProperty("composerInternalIpv4CidrBlock")) + if (!$util.isString(message.composerInternalIpv4CidrBlock)) + return "composerInternalIpv4CidrBlock: string expected"; + return null; + }; + + /** + * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig + */ + NodeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.NodeConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.NodeConfig(); + if (object.location != null) + message.location = String(object.location); + if (object.machineType != null) + message.machineType = String(object.machineType); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.diskSizeGb != null) + message.diskSizeGb = object.diskSizeGb | 0; + if (object.oauthScopes) { + if (!Array.isArray(object.oauthScopes)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.oauthScopes: array expected"); + message.oauthScopes = []; + for (var i = 0; i < object.oauthScopes.length; ++i) + message.oauthScopes[i] = String(object.oauthScopes[i]); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.ipAllocationPolicy != null) { + if (typeof object.ipAllocationPolicy !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.ipAllocationPolicy: object expected"); + message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy); + } + if (object.enableIpMasqAgent != null) + message.enableIpMasqAgent = Boolean(object.enableIpMasqAgent); + if (object.composerNetworkAttachment != null) + message.composerNetworkAttachment = String(object.composerNetworkAttachment); + if (object.composerInternalIpv4CidrBlock != null) + message.composerInternalIpv4CidrBlock = String(object.composerInternalIpv4CidrBlock); + return message; + }; + + /** + * Creates a plain object from a NodeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.NodeConfig} message NodeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.oauthScopes = []; + object.tags = []; + } + if (options.defaults) { + object.location = ""; + object.machineType = ""; + object.network = ""; + object.subnetwork = ""; + object.diskSizeGb = 0; + object.serviceAccount = ""; + object.ipAllocationPolicy = null; + object.enableIpMasqAgent = false; + object.composerNetworkAttachment = ""; + object.composerInternalIpv4CidrBlock = ""; + } + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + object.diskSizeGb = message.diskSizeGb; + if (message.oauthScopes && message.oauthScopes.length) { + object.oauthScopes = []; + for (var j = 0; j < message.oauthScopes.length; ++j) + object.oauthScopes[j] = message.oauthScopes[j]; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) + object.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options); + if (message.enableIpMasqAgent != null && message.hasOwnProperty("enableIpMasqAgent")) + object.enableIpMasqAgent = message.enableIpMasqAgent; + if (message.composerNetworkAttachment != null && message.hasOwnProperty("composerNetworkAttachment")) + object.composerNetworkAttachment = message.composerNetworkAttachment; + if (message.composerInternalIpv4CidrBlock != null && message.hasOwnProperty("composerInternalIpv4CidrBlock")) + object.composerInternalIpv4CidrBlock = message.composerInternalIpv4CidrBlock; + return object; + }; + + /** + * Converts this NodeConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @instance + * @returns {Object.} JSON object + */ + NodeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodeConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.NodeConfig"; + }; + + return NodeConfig; + })(); + + v1.PrivateClusterConfig = (function() { + + /** + * Properties of a PrivateClusterConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IPrivateClusterConfig + * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint + * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock + * @property {string|null} [masterIpv4ReservedRange] PrivateClusterConfig masterIpv4ReservedRange + */ + + /** + * Constructs a new PrivateClusterConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a PrivateClusterConfig. + * @implements IPrivateClusterConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig=} [properties] Properties to set + */ + function PrivateClusterConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PrivateClusterConfig enablePrivateEndpoint. + * @member {boolean} enablePrivateEndpoint + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.enablePrivateEndpoint = false; + + /** + * PrivateClusterConfig masterIpv4CidrBlock. + * @member {string} masterIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.masterIpv4CidrBlock = ""; + + /** + * PrivateClusterConfig masterIpv4ReservedRange. + * @member {string} masterIpv4ReservedRange + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.masterIpv4ReservedRange = ""; + + /** + * Creates a new PrivateClusterConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig instance + */ + PrivateClusterConfig.create = function create(properties) { + return new PrivateClusterConfig(properties); + }; + + /** + * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateClusterConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEndpoint); + if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.masterIpv4CidrBlock); + if (message.masterIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "masterIpv4ReservedRange")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4ReservedRange); + return writer; + }; + + /** + * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateClusterConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateEndpoint = reader.bool(); + break; + } + case 2: { + message.masterIpv4CidrBlock = reader.string(); + break; + } + case 3: { + message.masterIpv4ReservedRange = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateClusterConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateClusterConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + if (typeof message.enablePrivateEndpoint !== "boolean") + return "enablePrivateEndpoint: boolean expected"; + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + if (!$util.isString(message.masterIpv4CidrBlock)) + return "masterIpv4CidrBlock: string expected"; + if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange")) + if (!$util.isString(message.masterIpv4ReservedRange)) + return "masterIpv4ReservedRange: string expected"; + return null; + }; + + /** + * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig + */ + PrivateClusterConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig(); + if (object.enablePrivateEndpoint != null) + message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint); + if (object.masterIpv4CidrBlock != null) + message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock); + if (object.masterIpv4ReservedRange != null) + message.masterIpv4ReservedRange = String(object.masterIpv4ReservedRange); + return message; + }; + + /** + * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} message PrivateClusterConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateClusterConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enablePrivateEndpoint = false; + object.masterIpv4CidrBlock = ""; + object.masterIpv4ReservedRange = ""; + } + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + object.enablePrivateEndpoint = message.enablePrivateEndpoint; + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + object.masterIpv4CidrBlock = message.masterIpv4CidrBlock; + if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange")) + object.masterIpv4ReservedRange = message.masterIpv4ReservedRange; + return object; + }; + + /** + * Converts this PrivateClusterConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateClusterConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateClusterConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateClusterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig"; + }; + + return PrivateClusterConfig; + })(); + + v1.NetworkingConfig = (function() { + + /** + * Properties of a NetworkingConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface INetworkingConfig + * @property {google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType|null} [connectionType] NetworkingConfig connectionType + */ + + /** + * Constructs a new NetworkingConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a NetworkingConfig. + * @implements INetworkingConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig=} [properties] Properties to set + */ + function NetworkingConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NetworkingConfig connectionType. + * @member {google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType} connectionType + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @instance + */ + NetworkingConfig.prototype.connectionType = 0; + + /** + * Creates a new NetworkingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig instance + */ + NetworkingConfig.create = function create(properties) { + return new NetworkingConfig(properties); + }; + + /** + * Encodes the specified NetworkingConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig} message NetworkingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connectionType != null && Object.hasOwnProperty.call(message, "connectionType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.connectionType); + return writer; + }; + + /** + * Encodes the specified NetworkingConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.INetworkingConfig} message NetworkingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.connectionType = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkingConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.connectionType != null && message.hasOwnProperty("connectionType")) + switch (message.connectionType) { + default: + return "connectionType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a NetworkingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} NetworkingConfig + */ + NetworkingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig(); + switch (object.connectionType) { + default: + if (typeof object.connectionType === "number") { + message.connectionType = object.connectionType; + break; + } + break; + case "CONNECTION_TYPE_UNSPECIFIED": + case 0: + message.connectionType = 0; + break; + case "VPC_PEERING": + case 1: + message.connectionType = 1; + break; + case "PRIVATE_SERVICE_CONNECT": + case 2: + message.connectionType = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a NetworkingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.NetworkingConfig} message NetworkingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.connectionType = options.enums === String ? "CONNECTION_TYPE_UNSPECIFIED" : 0; + if (message.connectionType != null && message.hasOwnProperty("connectionType")) + object.connectionType = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType[message.connectionType] === undefined ? message.connectionType : $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType[message.connectionType] : message.connectionType; + return object; + }; + + /** + * Converts this NetworkingConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @instance + * @returns {Object.} JSON object + */ + NetworkingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkingConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.NetworkingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.NetworkingConfig"; + }; + + /** + * ConnectionType enum. + * @name google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType + * @enum {number} + * @property {number} CONNECTION_TYPE_UNSPECIFIED=0 CONNECTION_TYPE_UNSPECIFIED value + * @property {number} VPC_PEERING=1 VPC_PEERING value + * @property {number} PRIVATE_SERVICE_CONNECT=2 PRIVATE_SERVICE_CONNECT value + */ + NetworkingConfig.ConnectionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CONNECTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "VPC_PEERING"] = 1; + values[valuesById[2] = "PRIVATE_SERVICE_CONNECT"] = 2; + return values; + })(); + + return NetworkingConfig; + })(); + + v1.PrivateEnvironmentConfig = (function() { + + /** + * Properties of a PrivateEnvironmentConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IPrivateEnvironmentConfig + * @property {boolean|null} [enablePrivateEnvironment] PrivateEnvironmentConfig enablePrivateEnvironment + * @property {boolean|null} [enablePrivateBuildsOnly] PrivateEnvironmentConfig enablePrivateBuildsOnly + * @property {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null} [privateClusterConfig] PrivateEnvironmentConfig privateClusterConfig + * @property {string|null} [webServerIpv4CidrBlock] PrivateEnvironmentConfig webServerIpv4CidrBlock + * @property {string|null} [cloudSqlIpv4CidrBlock] PrivateEnvironmentConfig cloudSqlIpv4CidrBlock + * @property {string|null} [webServerIpv4ReservedRange] PrivateEnvironmentConfig webServerIpv4ReservedRange + * @property {string|null} [cloudComposerNetworkIpv4CidrBlock] PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock + * @property {string|null} [cloudComposerNetworkIpv4ReservedRange] PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange + * @property {boolean|null} [enablePrivatelyUsedPublicIps] PrivateEnvironmentConfig enablePrivatelyUsedPublicIps + * @property {string|null} [cloudComposerConnectionSubnetwork] PrivateEnvironmentConfig cloudComposerConnectionSubnetwork + * @property {google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null} [networkingConfig] PrivateEnvironmentConfig networkingConfig + */ + + /** + * Constructs a new PrivateEnvironmentConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a PrivateEnvironmentConfig. + * @implements IPrivateEnvironmentConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig=} [properties] Properties to set + */ + function PrivateEnvironmentConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PrivateEnvironmentConfig enablePrivateEnvironment. + * @member {boolean} enablePrivateEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.enablePrivateEnvironment = false; + + /** + * PrivateEnvironmentConfig enablePrivateBuildsOnly. + * @member {boolean} enablePrivateBuildsOnly + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.enablePrivateBuildsOnly = false; + + /** + * PrivateEnvironmentConfig privateClusterConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.privateClusterConfig = null; + + /** + * PrivateEnvironmentConfig webServerIpv4CidrBlock. + * @member {string} webServerIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.webServerIpv4CidrBlock = ""; + + /** + * PrivateEnvironmentConfig cloudSqlIpv4CidrBlock. + * @member {string} cloudSqlIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.cloudSqlIpv4CidrBlock = ""; + + /** + * PrivateEnvironmentConfig webServerIpv4ReservedRange. + * @member {string} webServerIpv4ReservedRange + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.webServerIpv4ReservedRange = ""; + + /** + * PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock. + * @member {string} cloudComposerNetworkIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.cloudComposerNetworkIpv4CidrBlock = ""; + + /** + * PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange. + * @member {string} cloudComposerNetworkIpv4ReservedRange + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.cloudComposerNetworkIpv4ReservedRange = ""; + + /** + * PrivateEnvironmentConfig enablePrivatelyUsedPublicIps. + * @member {boolean} enablePrivatelyUsedPublicIps + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.enablePrivatelyUsedPublicIps = false; + + /** + * PrivateEnvironmentConfig cloudComposerConnectionSubnetwork. + * @member {string} cloudComposerConnectionSubnetwork + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.cloudComposerConnectionSubnetwork = ""; + + /** + * PrivateEnvironmentConfig networkingConfig. + * @member {google.cloud.orchestration.airflow.service.v1.INetworkingConfig|null|undefined} networkingConfig + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.networkingConfig = null; + + /** + * Creates a new PrivateEnvironmentConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig instance + */ + PrivateEnvironmentConfig.create = function create(properties) { + return new PrivateEnvironmentConfig(properties); + }; + + /** + * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateEnvironmentConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateEnvironment != null && Object.hasOwnProperty.call(message, "enablePrivateEnvironment")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEnvironment); + if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig")) + $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.webServerIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "webServerIpv4CidrBlock")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.webServerIpv4CidrBlock); + if (message.cloudSqlIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudSqlIpv4CidrBlock")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cloudSqlIpv4CidrBlock); + if (message.webServerIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "webServerIpv4ReservedRange")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.webServerIpv4ReservedRange); + if (message.enablePrivatelyUsedPublicIps != null && Object.hasOwnProperty.call(message, "enablePrivatelyUsedPublicIps")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.enablePrivatelyUsedPublicIps); + if (message.cloudComposerNetworkIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudComposerNetworkIpv4CidrBlock")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.cloudComposerNetworkIpv4CidrBlock); + if (message.cloudComposerNetworkIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "cloudComposerNetworkIpv4ReservedRange")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.cloudComposerNetworkIpv4ReservedRange); + if (message.cloudComposerConnectionSubnetwork != null && Object.hasOwnProperty.call(message, "cloudComposerConnectionSubnetwork")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.cloudComposerConnectionSubnetwork); + if (message.networkingConfig != null && Object.hasOwnProperty.call(message, "networkingConfig")) + $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.encode(message.networkingConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.enablePrivateBuildsOnly != null && Object.hasOwnProperty.call(message, "enablePrivateBuildsOnly")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enablePrivateBuildsOnly); + return writer; + }; + + /** + * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateEnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateEnvironmentConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateEnvironment = reader.bool(); + break; + } + case 11: { + message.enablePrivateBuildsOnly = reader.bool(); + break; + } + case 2: { + message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.webServerIpv4CidrBlock = reader.string(); + break; + } + case 4: { + message.cloudSqlIpv4CidrBlock = reader.string(); + break; + } + case 5: { + message.webServerIpv4ReservedRange = reader.string(); + break; + } + case 7: { + message.cloudComposerNetworkIpv4CidrBlock = reader.string(); + break; + } + case 8: { + message.cloudComposerNetworkIpv4ReservedRange = reader.string(); + break; + } + case 6: { + message.enablePrivatelyUsedPublicIps = reader.bool(); + break; + } + case 9: { + message.cloudComposerConnectionSubnetwork = reader.string(); + break; + } + case 10: { + message.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateEnvironmentConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateEnvironmentConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateEnvironmentConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment")) + if (typeof message.enablePrivateEnvironment !== "boolean") + return "enablePrivateEnvironment: boolean expected"; + if (message.enablePrivateBuildsOnly != null && message.hasOwnProperty("enablePrivateBuildsOnly")) + if (typeof message.enablePrivateBuildsOnly !== "boolean") + return "enablePrivateBuildsOnly: boolean expected"; + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify(message.privateClusterConfig); + if (error) + return "privateClusterConfig." + error; + } + if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock")) + if (!$util.isString(message.webServerIpv4CidrBlock)) + return "webServerIpv4CidrBlock: string expected"; + if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock")) + if (!$util.isString(message.cloudSqlIpv4CidrBlock)) + return "cloudSqlIpv4CidrBlock: string expected"; + if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange")) + if (!$util.isString(message.webServerIpv4ReservedRange)) + return "webServerIpv4ReservedRange: string expected"; + if (message.cloudComposerNetworkIpv4CidrBlock != null && message.hasOwnProperty("cloudComposerNetworkIpv4CidrBlock")) + if (!$util.isString(message.cloudComposerNetworkIpv4CidrBlock)) + return "cloudComposerNetworkIpv4CidrBlock: string expected"; + if (message.cloudComposerNetworkIpv4ReservedRange != null && message.hasOwnProperty("cloudComposerNetworkIpv4ReservedRange")) + if (!$util.isString(message.cloudComposerNetworkIpv4ReservedRange)) + return "cloudComposerNetworkIpv4ReservedRange: string expected"; + if (message.enablePrivatelyUsedPublicIps != null && message.hasOwnProperty("enablePrivatelyUsedPublicIps")) + if (typeof message.enablePrivatelyUsedPublicIps !== "boolean") + return "enablePrivatelyUsedPublicIps: boolean expected"; + if (message.cloudComposerConnectionSubnetwork != null && message.hasOwnProperty("cloudComposerConnectionSubnetwork")) + if (!$util.isString(message.cloudComposerConnectionSubnetwork)) + return "cloudComposerConnectionSubnetwork: string expected"; + if (message.networkingConfig != null && message.hasOwnProperty("networkingConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.verify(message.networkingConfig); + if (error) + return "networkingConfig." + error; + } + return null; + }; + + /** + * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig + */ + PrivateEnvironmentConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig(); + if (object.enablePrivateEnvironment != null) + message.enablePrivateEnvironment = Boolean(object.enablePrivateEnvironment); + if (object.enablePrivateBuildsOnly != null) + message.enablePrivateBuildsOnly = Boolean(object.enablePrivateBuildsOnly); + if (object.privateClusterConfig != null) { + if (typeof object.privateClusterConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.privateClusterConfig: object expected"); + message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig); + } + if (object.webServerIpv4CidrBlock != null) + message.webServerIpv4CidrBlock = String(object.webServerIpv4CidrBlock); + if (object.cloudSqlIpv4CidrBlock != null) + message.cloudSqlIpv4CidrBlock = String(object.cloudSqlIpv4CidrBlock); + if (object.webServerIpv4ReservedRange != null) + message.webServerIpv4ReservedRange = String(object.webServerIpv4ReservedRange); + if (object.cloudComposerNetworkIpv4CidrBlock != null) + message.cloudComposerNetworkIpv4CidrBlock = String(object.cloudComposerNetworkIpv4CidrBlock); + if (object.cloudComposerNetworkIpv4ReservedRange != null) + message.cloudComposerNetworkIpv4ReservedRange = String(object.cloudComposerNetworkIpv4ReservedRange); + if (object.enablePrivatelyUsedPublicIps != null) + message.enablePrivatelyUsedPublicIps = Boolean(object.enablePrivatelyUsedPublicIps); + if (object.cloudComposerConnectionSubnetwork != null) + message.cloudComposerConnectionSubnetwork = String(object.cloudComposerConnectionSubnetwork); + if (object.networkingConfig != null) { + if (typeof object.networkingConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.networkingConfig: object expected"); + message.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.fromObject(object.networkingConfig); + } + return message; + }; + + /** + * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} message PrivateEnvironmentConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateEnvironmentConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enablePrivateEnvironment = false; + object.privateClusterConfig = null; + object.webServerIpv4CidrBlock = ""; + object.cloudSqlIpv4CidrBlock = ""; + object.webServerIpv4ReservedRange = ""; + object.enablePrivatelyUsedPublicIps = false; + object.cloudComposerNetworkIpv4CidrBlock = ""; + object.cloudComposerNetworkIpv4ReservedRange = ""; + object.cloudComposerConnectionSubnetwork = ""; + object.networkingConfig = null; + object.enablePrivateBuildsOnly = false; + } + if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment")) + object.enablePrivateEnvironment = message.enablePrivateEnvironment; + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) + object.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options); + if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock")) + object.webServerIpv4CidrBlock = message.webServerIpv4CidrBlock; + if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock")) + object.cloudSqlIpv4CidrBlock = message.cloudSqlIpv4CidrBlock; + if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange")) + object.webServerIpv4ReservedRange = message.webServerIpv4ReservedRange; + if (message.enablePrivatelyUsedPublicIps != null && message.hasOwnProperty("enablePrivatelyUsedPublicIps")) + object.enablePrivatelyUsedPublicIps = message.enablePrivatelyUsedPublicIps; + if (message.cloudComposerNetworkIpv4CidrBlock != null && message.hasOwnProperty("cloudComposerNetworkIpv4CidrBlock")) + object.cloudComposerNetworkIpv4CidrBlock = message.cloudComposerNetworkIpv4CidrBlock; + if (message.cloudComposerNetworkIpv4ReservedRange != null && message.hasOwnProperty("cloudComposerNetworkIpv4ReservedRange")) + object.cloudComposerNetworkIpv4ReservedRange = message.cloudComposerNetworkIpv4ReservedRange; + if (message.cloudComposerConnectionSubnetwork != null && message.hasOwnProperty("cloudComposerConnectionSubnetwork")) + object.cloudComposerConnectionSubnetwork = message.cloudComposerConnectionSubnetwork; + if (message.networkingConfig != null && message.hasOwnProperty("networkingConfig")) + object.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.toObject(message.networkingConfig, options); + if (message.enablePrivateBuildsOnly != null && message.hasOwnProperty("enablePrivateBuildsOnly")) + object.enablePrivateBuildsOnly = message.enablePrivateBuildsOnly; + return object; + }; + + /** + * Converts this PrivateEnvironmentConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateEnvironmentConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateEnvironmentConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateEnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig"; + }; + + return PrivateEnvironmentConfig; + })(); + + v1.WorkloadsConfig = (function() { + + /** + * Properties of a WorkloadsConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IWorkloadsConfig + * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null} [scheduler] WorkloadsConfig scheduler + * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null} [webServer] WorkloadsConfig webServer + * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null} [worker] WorkloadsConfig worker + * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource|null} [triggerer] WorkloadsConfig triggerer + * @property {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource|null} [dagProcessor] WorkloadsConfig dagProcessor + */ + + /** + * Constructs a new WorkloadsConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a WorkloadsConfig. + * @implements IWorkloadsConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig=} [properties] Properties to set + */ + function WorkloadsConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkloadsConfig scheduler. + * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource|null|undefined} scheduler + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.scheduler = null; + + /** + * WorkloadsConfig webServer. + * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource|null|undefined} webServer + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.webServer = null; + + /** + * WorkloadsConfig worker. + * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource|null|undefined} worker + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.worker = null; + + /** + * WorkloadsConfig triggerer. + * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource|null|undefined} triggerer + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.triggerer = null; + + /** + * WorkloadsConfig dagProcessor. + * @member {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource|null|undefined} dagProcessor + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.dagProcessor = null; + + /** + * Creates a new WorkloadsConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig instance + */ + WorkloadsConfig.create = function create(properties) { + return new WorkloadsConfig(properties); + }; + + /** + * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkloadsConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scheduler != null && Object.hasOwnProperty.call(message, "scheduler")) + $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.encode(message.scheduler, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.webServer != null && Object.hasOwnProperty.call(message, "webServer")) + $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.encode(message.webServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.worker != null && Object.hasOwnProperty.call(message, "worker")) + $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.encode(message.worker, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.triggerer != null && Object.hasOwnProperty.call(message, "triggerer")) + $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.encode(message.triggerer, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.dagProcessor != null && Object.hasOwnProperty.call(message, "dagProcessor")) + $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.encode(message.dagProcessor, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkloadsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkloadsConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkloadsConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.scheduler = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.decode(reader, reader.uint32()); + break; + } + case 2: { + message.webServer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.decode(reader, reader.uint32()); + break; + } + case 3: { + message.worker = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.decode(reader, reader.uint32()); + break; + } + case 4: { + message.triggerer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.dagProcessor = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkloadsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WorkloadsConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkloadsConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scheduler != null && message.hasOwnProperty("scheduler")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify(message.scheduler); + if (error) + return "scheduler." + error; + } + if (message.webServer != null && message.hasOwnProperty("webServer")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify(message.webServer); + if (error) + return "webServer." + error; + } + if (message.worker != null && message.hasOwnProperty("worker")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify(message.worker); + if (error) + return "worker." + error; + } + if (message.triggerer != null && message.hasOwnProperty("triggerer")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.verify(message.triggerer); + if (error) + return "triggerer." + error; + } + if (message.dagProcessor != null && message.hasOwnProperty("dagProcessor")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.verify(message.dagProcessor); + if (error) + return "dagProcessor." + error; + } + return null; + }; + + /** + * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} WorkloadsConfig + */ + WorkloadsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig(); + if (object.scheduler != null) { + if (typeof object.scheduler !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.scheduler: object expected"); + message.scheduler = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.fromObject(object.scheduler); + } + if (object.webServer != null) { + if (typeof object.webServer !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.webServer: object expected"); + message.webServer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.fromObject(object.webServer); + } + if (object.worker != null) { + if (typeof object.worker !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.worker: object expected"); + message.worker = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.fromObject(object.worker); + } + if (object.triggerer != null) { + if (typeof object.triggerer !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.triggerer: object expected"); + message.triggerer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.fromObject(object.triggerer); + } + if (object.dagProcessor != null) { + if (typeof object.dagProcessor !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.dagProcessor: object expected"); + message.dagProcessor = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.fromObject(object.dagProcessor); + } + return message; + }; + + /** + * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig} message WorkloadsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkloadsConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.scheduler = null; + object.webServer = null; + object.worker = null; + object.triggerer = null; + object.dagProcessor = null; + } + if (message.scheduler != null && message.hasOwnProperty("scheduler")) + object.scheduler = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.toObject(message.scheduler, options); + if (message.webServer != null && message.hasOwnProperty("webServer")) + object.webServer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.toObject(message.webServer, options); + if (message.worker != null && message.hasOwnProperty("worker")) + object.worker = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.toObject(message.worker, options); + if (message.triggerer != null && message.hasOwnProperty("triggerer")) + object.triggerer = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.toObject(message.triggerer, options); + if (message.dagProcessor != null && message.hasOwnProperty("dagProcessor")) + object.dagProcessor = $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.toObject(message.dagProcessor, options); + return object; + }; + + /** + * Converts this WorkloadsConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @instance + * @returns {Object.} JSON object + */ + WorkloadsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkloadsConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkloadsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig"; + }; + + WorkloadsConfig.SchedulerResource = (function() { + + /** + * Properties of a SchedulerResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @interface ISchedulerResource + * @property {number|null} [cpu] SchedulerResource cpu + * @property {number|null} [memoryGb] SchedulerResource memoryGb + * @property {number|null} [storageGb] SchedulerResource storageGb + * @property {number|null} [count] SchedulerResource count + */ + + /** + * Constructs a new SchedulerResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @classdesc Represents a SchedulerResource. + * @implements ISchedulerResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set + */ + function SchedulerResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchedulerResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.cpu = 0; + + /** + * SchedulerResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.memoryGb = 0; + + /** + * SchedulerResource storageGb. + * @member {number} storageGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.storageGb = 0; + + /** + * SchedulerResource count. + * @member {number} count + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.count = 0; + + /** + * Creates a new SchedulerResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource instance + */ + SchedulerResource.create = function create(properties) { + return new SchedulerResource(properties); + }; + + /** + * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchedulerResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); + if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count); + return writer; + }; + + /** + * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchedulerResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SchedulerResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchedulerResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpu = reader.float(); + break; + } + case 2: { + message.memoryGb = reader.float(); + break; + } + case 3: { + message.storageGb = reader.float(); + break; + } + case 4: { + message.count = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SchedulerResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchedulerResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SchedulerResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchedulerResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + if (typeof message.storageGb !== "number") + return "storageGb: number expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; + return null; + }; + + /** + * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} SchedulerResource + */ + SchedulerResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource(); + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + if (object.storageGb != null) + message.storageGb = Number(object.storageGb); + if (object.count != null) + message.count = object.count | 0; + return message; + }; + + /** + * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource} message SchedulerResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SchedulerResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpu = 0; + object.memoryGb = 0; + object.storageGb = 0; + object.count = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + return object; + }; + + /** + * Converts this SchedulerResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @instance + * @returns {Object.} JSON object + */ + SchedulerResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SchedulerResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SchedulerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource"; + }; + + return SchedulerResource; + })(); + + WorkloadsConfig.WebServerResource = (function() { + + /** + * Properties of a WebServerResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @interface IWebServerResource + * @property {number|null} [cpu] WebServerResource cpu + * @property {number|null} [memoryGb] WebServerResource memoryGb + * @property {number|null} [storageGb] WebServerResource storageGb + */ + + /** + * Constructs a new WebServerResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @classdesc Represents a WebServerResource. + * @implements IWebServerResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set + */ + function WebServerResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WebServerResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @instance + */ + WebServerResource.prototype.cpu = 0; + + /** + * WebServerResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @instance + */ + WebServerResource.prototype.memoryGb = 0; + + /** + * WebServerResource storageGb. + * @member {number} storageGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @instance + */ + WebServerResource.prototype.storageGb = 0; + + /** + * Creates a new WebServerResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource instance + */ + WebServerResource.create = function create(properties) { + return new WebServerResource(properties); + }; + + /** + * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebServerResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); + if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + return writer; + }; + + /** + * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebServerResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebServerResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebServerResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpu = reader.float(); + break; + } + case 2: { + message.memoryGb = reader.float(); + break; + } + case 3: { + message.storageGb = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebServerResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebServerResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebServerResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebServerResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + if (typeof message.storageGb !== "number") + return "storageGb: number expected"; + return null; + }; + + /** + * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} WebServerResource + */ + WebServerResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource(); + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + if (object.storageGb != null) + message.storageGb = Number(object.storageGb); + return message; + }; + + /** + * Creates a plain object from a WebServerResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource} message WebServerResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebServerResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpu = 0; + object.memoryGb = 0; + object.storageGb = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + return object; + }; + + /** + * Converts this WebServerResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @instance + * @returns {Object.} JSON object + */ + WebServerResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WebServerResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WebServerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource"; + }; + + return WebServerResource; + })(); + + WorkloadsConfig.WorkerResource = (function() { + + /** + * Properties of a WorkerResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @interface IWorkerResource + * @property {number|null} [cpu] WorkerResource cpu + * @property {number|null} [memoryGb] WorkerResource memoryGb + * @property {number|null} [storageGb] WorkerResource storageGb + * @property {number|null} [minCount] WorkerResource minCount + * @property {number|null} [maxCount] WorkerResource maxCount + */ + + /** + * Constructs a new WorkerResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @classdesc Represents a WorkerResource. + * @implements IWorkerResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set + */ + function WorkerResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkerResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @instance + */ + WorkerResource.prototype.cpu = 0; + + /** + * WorkerResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @instance + */ + WorkerResource.prototype.memoryGb = 0; + + /** + * WorkerResource storageGb. + * @member {number} storageGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @instance + */ + WorkerResource.prototype.storageGb = 0; + + /** + * WorkerResource minCount. + * @member {number} minCount + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @instance + */ + WorkerResource.prototype.minCount = 0; + + /** + * WorkerResource maxCount. + * @member {number} maxCount + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @instance + */ + WorkerResource.prototype.maxCount = 0; + + /** + * Creates a new WorkerResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource instance + */ + WorkerResource.create = function create(properties) { + return new WorkerResource(properties); + }; + + /** + * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkerResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); + if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + if (message.minCount != null && Object.hasOwnProperty.call(message, "minCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minCount); + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxCount); + return writer; + }; + + /** + * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkerResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkerResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkerResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpu = reader.float(); + break; + } + case 2: { + message.memoryGb = reader.float(); + break; + } + case 3: { + message.storageGb = reader.float(); + break; + } + case 4: { + message.minCount = reader.int32(); + break; + } + case 5: { + message.maxCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WorkerResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkerResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WorkerResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkerResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + if (typeof message.storageGb !== "number") + return "storageGb: number expected"; + if (message.minCount != null && message.hasOwnProperty("minCount")) + if (!$util.isInteger(message.minCount)) + return "minCount: integer expected"; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) + if (!$util.isInteger(message.maxCount)) + return "maxCount: integer expected"; + return null; + }; + + /** + * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} WorkerResource + */ + WorkerResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource(); + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + if (object.storageGb != null) + message.storageGb = Number(object.storageGb); + if (object.minCount != null) + message.minCount = object.minCount | 0; + if (object.maxCount != null) + message.maxCount = object.maxCount | 0; + return message; + }; + + /** + * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource} message WorkerResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkerResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpu = 0; + object.memoryGb = 0; + object.storageGb = 0; + object.minCount = 0; + object.maxCount = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + if (message.minCount != null && message.hasOwnProperty("minCount")) + object.minCount = message.minCount; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) + object.maxCount = message.maxCount; + return object; + }; + + /** + * Converts this WorkerResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @instance + * @returns {Object.} JSON object + */ + WorkerResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkerResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource"; + }; + + return WorkerResource; + })(); + + WorkloadsConfig.TriggererResource = (function() { + + /** + * Properties of a TriggererResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @interface ITriggererResource + * @property {number|null} [count] TriggererResource count + * @property {number|null} [cpu] TriggererResource cpu + * @property {number|null} [memoryGb] TriggererResource memoryGb + */ + + /** + * Constructs a new TriggererResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @classdesc Represents a TriggererResource. + * @implements ITriggererResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource=} [properties] Properties to set + */ + function TriggererResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TriggererResource count. + * @member {number} count + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @instance + */ + TriggererResource.prototype.count = 0; + + /** + * TriggererResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @instance + */ + TriggererResource.prototype.cpu = 0; + + /** + * TriggererResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @instance + */ + TriggererResource.prototype.memoryGb = 0; + + /** + * Creates a new TriggererResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource} TriggererResource instance + */ + TriggererResource.create = function create(properties) { + return new TriggererResource(properties); + }; + + /** + * Encodes the specified TriggererResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource} message TriggererResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TriggererResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.memoryGb); + return writer; + }; + + /** + * Encodes the specified TriggererResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.ITriggererResource} message TriggererResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TriggererResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TriggererResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource} TriggererResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TriggererResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.count = reader.int32(); + break; + } + case 2: { + message.cpu = reader.float(); + break; + } + case 3: { + message.memoryGb = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TriggererResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource} TriggererResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TriggererResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TriggererResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TriggererResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + return null; + }; + + /** + * Creates a TriggererResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource} TriggererResource + */ + TriggererResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource(); + if (object.count != null) + message.count = object.count | 0; + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + return message; + }; + + /** + * Creates a plain object from a TriggererResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource} message TriggererResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TriggererResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.count = 0; + object.cpu = 0; + object.memoryGb = 0; + } + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + return object; + }; + + /** + * Converts this TriggererResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @instance + * @returns {Object.} JSON object + */ + TriggererResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TriggererResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TriggererResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.TriggererResource"; + }; + + return TriggererResource; + })(); + + WorkloadsConfig.DagProcessorResource = (function() { + + /** + * Properties of a DagProcessorResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @interface IDagProcessorResource + * @property {number|null} [cpu] DagProcessorResource cpu + * @property {number|null} [memoryGb] DagProcessorResource memoryGb + * @property {number|null} [storageGb] DagProcessorResource storageGb + * @property {number|null} [count] DagProcessorResource count + */ + + /** + * Constructs a new DagProcessorResource. + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig + * @classdesc Represents a DagProcessorResource. + * @implements IDagProcessorResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource=} [properties] Properties to set + */ + function DagProcessorResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DagProcessorResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @instance + */ + DagProcessorResource.prototype.cpu = 0; + + /** + * DagProcessorResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @instance + */ + DagProcessorResource.prototype.memoryGb = 0; + + /** + * DagProcessorResource storageGb. + * @member {number} storageGb + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @instance + */ + DagProcessorResource.prototype.storageGb = 0; + + /** + * DagProcessorResource count. + * @member {number} count + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @instance + */ + DagProcessorResource.prototype.count = 0; + + /** + * Creates a new DagProcessorResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource} DagProcessorResource instance + */ + DagProcessorResource.create = function create(properties) { + return new DagProcessorResource(properties); + }; + + /** + * Encodes the specified DagProcessorResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource} message DagProcessorResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DagProcessorResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); + if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count); + return writer; + }; + + /** + * Encodes the specified DagProcessorResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.IDagProcessorResource} message DagProcessorResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DagProcessorResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DagProcessorResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource} DagProcessorResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DagProcessorResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpu = reader.float(); + break; + } + case 2: { + message.memoryGb = reader.float(); + break; + } + case 3: { + message.storageGb = reader.float(); + break; + } + case 4: { + message.count = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DagProcessorResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource} DagProcessorResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DagProcessorResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DagProcessorResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DagProcessorResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + if (typeof message.storageGb !== "number") + return "storageGb: number expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; + return null; + }; + + /** + * Creates a DagProcessorResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource} DagProcessorResource + */ + DagProcessorResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource(); + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + if (object.storageGb != null) + message.storageGb = Number(object.storageGb); + if (object.count != null) + message.count = object.count | 0; + return message; + }; + + /** + * Creates a plain object from a DagProcessorResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource} message DagProcessorResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DagProcessorResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpu = 0; + object.memoryGb = 0; + object.storageGb = 0; + object.count = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + return object; + }; + + /** + * Converts this DagProcessorResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @instance + * @returns {Object.} JSON object + */ + DagProcessorResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DagProcessorResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DagProcessorResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.DagProcessorResource"; + }; + + return DagProcessorResource; + })(); + + return WorkloadsConfig; + })(); + + v1.RecoveryConfig = (function() { + + /** + * Properties of a RecoveryConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IRecoveryConfig + * @property {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null} [scheduledSnapshotsConfig] RecoveryConfig scheduledSnapshotsConfig + */ + + /** + * Constructs a new RecoveryConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a RecoveryConfig. + * @implements IRecoveryConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig=} [properties] Properties to set + */ + function RecoveryConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecoveryConfig scheduledSnapshotsConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig|null|undefined} scheduledSnapshotsConfig + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @instance + */ + RecoveryConfig.prototype.scheduledSnapshotsConfig = null; + + /** + * Creates a new RecoveryConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig instance + */ + RecoveryConfig.create = function create(properties) { + return new RecoveryConfig(properties); + }; + + /** + * Encodes the specified RecoveryConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig} message RecoveryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecoveryConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scheduledSnapshotsConfig != null && Object.hasOwnProperty.call(message, "scheduledSnapshotsConfig")) + $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.encode(message.scheduledSnapshotsConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecoveryConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.RecoveryConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IRecoveryConfig} message RecoveryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecoveryConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecoveryConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecoveryConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.scheduledSnapshotsConfig = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecoveryConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecoveryConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecoveryConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecoveryConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scheduledSnapshotsConfig != null && message.hasOwnProperty("scheduledSnapshotsConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify(message.scheduledSnapshotsConfig); + if (error) + return "scheduledSnapshotsConfig." + error; + } + return null; + }; + + /** + * Creates a RecoveryConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} RecoveryConfig + */ + RecoveryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.RecoveryConfig(); + if (object.scheduledSnapshotsConfig != null) { + if (typeof object.scheduledSnapshotsConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.RecoveryConfig.scheduledSnapshotsConfig: object expected"); + message.scheduledSnapshotsConfig = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.fromObject(object.scheduledSnapshotsConfig); + } + return message; + }; + + /** + * Creates a plain object from a RecoveryConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.RecoveryConfig} message RecoveryConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecoveryConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.scheduledSnapshotsConfig = null; + if (message.scheduledSnapshotsConfig != null && message.hasOwnProperty("scheduledSnapshotsConfig")) + object.scheduledSnapshotsConfig = $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.toObject(message.scheduledSnapshotsConfig, options); + return object; + }; + + /** + * Converts this RecoveryConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @instance + * @returns {Object.} JSON object + */ + RecoveryConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecoveryConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.RecoveryConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecoveryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.RecoveryConfig"; + }; + + return RecoveryConfig; + })(); + + v1.ScheduledSnapshotsConfig = (function() { + + /** + * Properties of a ScheduledSnapshotsConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IScheduledSnapshotsConfig + * @property {boolean|null} [enabled] ScheduledSnapshotsConfig enabled + * @property {string|null} [snapshotLocation] ScheduledSnapshotsConfig snapshotLocation + * @property {string|null} [snapshotCreationSchedule] ScheduledSnapshotsConfig snapshotCreationSchedule + * @property {string|null} [timeZone] ScheduledSnapshotsConfig timeZone + */ + + /** + * Constructs a new ScheduledSnapshotsConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a ScheduledSnapshotsConfig. + * @implements IScheduledSnapshotsConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig=} [properties] Properties to set + */ + function ScheduledSnapshotsConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ScheduledSnapshotsConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @instance + */ + ScheduledSnapshotsConfig.prototype.enabled = false; + + /** + * ScheduledSnapshotsConfig snapshotLocation. + * @member {string} snapshotLocation + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @instance + */ + ScheduledSnapshotsConfig.prototype.snapshotLocation = ""; + + /** + * ScheduledSnapshotsConfig snapshotCreationSchedule. + * @member {string} snapshotCreationSchedule + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @instance + */ + ScheduledSnapshotsConfig.prototype.snapshotCreationSchedule = ""; + + /** + * ScheduledSnapshotsConfig timeZone. + * @member {string} timeZone + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @instance + */ + ScheduledSnapshotsConfig.prototype.timeZone = ""; + + /** + * Creates a new ScheduledSnapshotsConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig instance + */ + ScheduledSnapshotsConfig.create = function create(properties) { + return new ScheduledSnapshotsConfig(properties); + }; + + /** + * Encodes the specified ScheduledSnapshotsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig} message ScheduledSnapshotsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScheduledSnapshotsConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.snapshotCreationSchedule != null && Object.hasOwnProperty.call(message, "snapshotCreationSchedule")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.snapshotCreationSchedule); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.timeZone); + if (message.snapshotLocation != null && Object.hasOwnProperty.call(message, "snapshotLocation")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.snapshotLocation); + return writer; + }; + + /** + * Encodes the specified ScheduledSnapshotsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IScheduledSnapshotsConfig} message ScheduledSnapshotsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScheduledSnapshotsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScheduledSnapshotsConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 6: { + message.snapshotLocation = reader.string(); + break; + } + case 3: { + message.snapshotCreationSchedule = reader.string(); + break; + } + case 5: { + message.timeZone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ScheduledSnapshotsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScheduledSnapshotsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ScheduledSnapshotsConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ScheduledSnapshotsConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) + if (!$util.isString(message.snapshotLocation)) + return "snapshotLocation: string expected"; + if (message.snapshotCreationSchedule != null && message.hasOwnProperty("snapshotCreationSchedule")) + if (!$util.isString(message.snapshotCreationSchedule)) + return "snapshotCreationSchedule: string expected"; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + return null; + }; + + /** + * Creates a ScheduledSnapshotsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} ScheduledSnapshotsConfig + */ + ScheduledSnapshotsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.snapshotLocation != null) + message.snapshotLocation = String(object.snapshotLocation); + if (object.snapshotCreationSchedule != null) + message.snapshotCreationSchedule = String(object.snapshotCreationSchedule); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + return message; + }; + + /** + * Creates a plain object from a ScheduledSnapshotsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig} message ScheduledSnapshotsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ScheduledSnapshotsConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enabled = false; + object.snapshotCreationSchedule = ""; + object.timeZone = ""; + object.snapshotLocation = ""; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.snapshotCreationSchedule != null && message.hasOwnProperty("snapshotCreationSchedule")) + object.snapshotCreationSchedule = message.snapshotCreationSchedule; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.snapshotLocation != null && message.hasOwnProperty("snapshotLocation")) + object.snapshotLocation = message.snapshotLocation; + return object; + }; + + /** + * Converts this ScheduledSnapshotsConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @instance + * @returns {Object.} JSON object + */ + ScheduledSnapshotsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ScheduledSnapshotsConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ScheduledSnapshotsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig"; + }; + + return ScheduledSnapshotsConfig; + })(); + + v1.MasterAuthorizedNetworksConfig = (function() { + + /** + * Properties of a MasterAuthorizedNetworksConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IMasterAuthorizedNetworksConfig + * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled + * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks + */ + + /** + * Constructs a new MasterAuthorizedNetworksConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a MasterAuthorizedNetworksConfig. + * @implements IMasterAuthorizedNetworksConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + */ + function MasterAuthorizedNetworksConfig(properties) { + this.cidrBlocks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MasterAuthorizedNetworksConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @instance + */ + MasterAuthorizedNetworksConfig.prototype.enabled = false; + + /** + * MasterAuthorizedNetworksConfig cidrBlocks. + * @member {Array.} cidrBlocks + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @instance + */ + MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; + + /** + * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance + */ + MasterAuthorizedNetworksConfig.create = function create(properties) { + return new MasterAuthorizedNetworksConfig(properties); + }; + + /** + * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.cidrBlocks != null && message.cidrBlocks.length) + for (var i = 0; i < message.cidrBlocks.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MasterAuthorizedNetworksConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + if (!(message.cidrBlocks && message.cidrBlocks.length)) + message.cidrBlocks = []; + message.cidrBlocks.push($root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MasterAuthorizedNetworksConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MasterAuthorizedNetworksConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.cidrBlocks != null && message.hasOwnProperty("cidrBlocks")) { + if (!Array.isArray(message.cidrBlocks)) + return "cidrBlocks: array expected"; + for (var i = 0; i < message.cidrBlocks.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify(message.cidrBlocks[i]); + if (error) + return "cidrBlocks." + error; + } + } + return null; + }; + + /** + * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + */ + MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.cidrBlocks) { + if (!Array.isArray(object.cidrBlocks)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.cidrBlocks: array expected"); + message.cidrBlocks = []; + for (var i = 0; i < object.cidrBlocks.length; ++i) { + if (typeof object.cidrBlocks[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.cidrBlocks: object expected"); + message.cidrBlocks[i] = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.cidrBlocks = []; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.cidrBlocks && message.cidrBlocks.length) { + object.cidrBlocks = []; + for (var j = 0; j < message.cidrBlocks.length; ++j) + object.cidrBlocks[j] = $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options); + } + return object; + }; + + /** + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @instance + * @returns {Object.} JSON object + */ + MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MasterAuthorizedNetworksConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MasterAuthorizedNetworksConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig"; + }; + + MasterAuthorizedNetworksConfig.CidrBlock = (function() { + + /** + * Properties of a CidrBlock. + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @interface ICidrBlock + * @property {string|null} [displayName] CidrBlock displayName + * @property {string|null} [cidrBlock] CidrBlock cidrBlock + */ + + /** + * Constructs a new CidrBlock. + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig + * @classdesc Represents a CidrBlock. + * @implements ICidrBlock + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set + */ + function CidrBlock(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CidrBlock displayName. + * @member {string} displayName + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + */ + CidrBlock.prototype.displayName = ""; + + /** + * CidrBlock cidrBlock. + * @member {string} cidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + */ + CidrBlock.prototype.cidrBlock = ""; + + /** + * Creates a new CidrBlock instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock instance + */ + CidrBlock.create = function create(properties) { + return new CidrBlock(properties); + }; + + /** + * Encodes the specified CidrBlock message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CidrBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); + return writer; + }; + + /** + * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CidrBlock.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CidrBlock message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CidrBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.displayName = reader.string(); + break; + } + case 2: { + message.cidrBlock = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CidrBlock message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CidrBlock.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CidrBlock message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CidrBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + if (!$util.isString(message.cidrBlock)) + return "cidrBlock: string expected"; + return null; + }; + + /** + * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + */ + CidrBlock.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.cidrBlock != null) + message.cidrBlock = String(object.cidrBlock); + return message; + }; + + /** + * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock} message CidrBlock + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CidrBlock.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.cidrBlock = ""; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + object.cidrBlock = message.cidrBlock; + return object; + }; + + /** + * Converts this CidrBlock to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + * @returns {Object.} JSON object + */ + CidrBlock.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CidrBlock + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CidrBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock"; + }; + + return CidrBlock; + })(); + + return MasterAuthorizedNetworksConfig; + })(); + + v1.CloudDataLineageIntegration = (function() { + + /** + * Properties of a CloudDataLineageIntegration. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface ICloudDataLineageIntegration + * @property {boolean|null} [enabled] CloudDataLineageIntegration enabled + */ + + /** + * Constructs a new CloudDataLineageIntegration. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a CloudDataLineageIntegration. + * @implements ICloudDataLineageIntegration + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration=} [properties] Properties to set + */ + function CloudDataLineageIntegration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CloudDataLineageIntegration enabled. + * @member {boolean} enabled + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @instance + */ + CloudDataLineageIntegration.prototype.enabled = false; + + /** + * Creates a new CloudDataLineageIntegration instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration} CloudDataLineageIntegration instance + */ + CloudDataLineageIntegration.create = function create(properties) { + return new CloudDataLineageIntegration(properties); + }; + + /** + * Encodes the specified CloudDataLineageIntegration message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration} message CloudDataLineageIntegration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudDataLineageIntegration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified CloudDataLineageIntegration message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ICloudDataLineageIntegration} message CloudDataLineageIntegration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudDataLineageIntegration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CloudDataLineageIntegration message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration} CloudDataLineageIntegration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudDataLineageIntegration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CloudDataLineageIntegration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration} CloudDataLineageIntegration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudDataLineageIntegration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CloudDataLineageIntegration message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloudDataLineageIntegration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a CloudDataLineageIntegration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration} CloudDataLineageIntegration + */ + CloudDataLineageIntegration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a CloudDataLineageIntegration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration} message CloudDataLineageIntegration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CloudDataLineageIntegration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this CloudDataLineageIntegration to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @instance + * @returns {Object.} JSON object + */ + CloudDataLineageIntegration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CloudDataLineageIntegration + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CloudDataLineageIntegration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CloudDataLineageIntegration"; + }; + + return CloudDataLineageIntegration; + })(); + + v1.Environment = (function() { + + /** + * Properties of an Environment. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IEnvironment + * @property {string|null} [name] Environment name + * @property {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null} [config] Environment config + * @property {string|null} [uuid] Environment uuid + * @property {google.cloud.orchestration.airflow.service.v1.Environment.State|null} [state] Environment state + * @property {google.protobuf.ITimestamp|null} [createTime] Environment createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime + * @property {Object.|null} [labels] Environment labels + * @property {boolean|null} [satisfiesPzs] Environment satisfiesPzs + * @property {google.cloud.orchestration.airflow.service.v1.IStorageConfig|null} [storageConfig] Environment storageConfig + */ + + /** + * Constructs a new Environment. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents an Environment. + * @implements IEnvironment + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment=} [properties] Properties to set + */ + function Environment(properties) { + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Environment name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.name = ""; + + /** + * Environment config. + * @member {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null|undefined} config + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.config = null; + + /** + * Environment uuid. + * @member {string} uuid + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.uuid = ""; + + /** + * Environment state. + * @member {google.cloud.orchestration.airflow.service.v1.Environment.State} state + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.state = 0; + + /** + * Environment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.createTime = null; + + /** + * Environment updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.updateTime = null; + + /** + * Environment labels. + * @member {Object.} labels + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.labels = $util.emptyObject; + + /** + * Environment satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.satisfiesPzs = false; + + /** + * Environment storageConfig. + * @member {google.cloud.orchestration.airflow.service.v1.IStorageConfig|null|undefined} storageConfig + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + */ + Environment.prototype.storageConfig = null; + + /** + * Creates a new Environment instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment instance + */ + Environment.create = function create(properties) { + return new Environment(properties); + }; + + /** + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment} message Environment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Environment.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.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.satisfiesPzs); + if (message.storageConfig != null && Object.hasOwnProperty.call(message, "storageConfig")) + $root.google.cloud.orchestration.airflow.service.v1.StorageConfig.encode(message.storageConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment} message Environment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Environment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Environment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Environment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.Environment(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.uuid = reader.string(); + break; + } + case 4: { + message.state = reader.int32(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 8: { + message.satisfiesPzs = reader.bool(); + break; + } + case 9: { + message.storageConfig = $root.google.cloud.orchestration.airflow.service.v1.StorageConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Environment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Environment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Environment message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Environment.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.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify(message.config); + if (error) + return "config." + error; + } + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.storageConfig != null && message.hasOwnProperty("storageConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.StorageConfig.verify(message.storageConfig); + if (error) + return "storageConfig." + error; + } + return null; + }; + + /** + * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment + */ + Environment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.Environment) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.Environment(); + if (object.name != null) + message.name = String(object.name); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.config: object expected"); + message.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.fromObject(object.config); + } + if (object.uuid != null) + message.uuid = String(object.uuid); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + case "ERROR": + case 5: + message.state = 5; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.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.orchestration.airflow.service.v1.Environment.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.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.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.storageConfig != null) { + if (typeof object.storageConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.storageConfig: object expected"); + message.storageConfig = $root.google.cloud.orchestration.airflow.service.v1.StorageConfig.fromObject(object.storageConfig); + } + return message; + }; + + /** + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {google.cloud.orchestration.airflow.service.v1.Environment} message Environment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Environment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.config = null; + object.uuid = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.updateTime = null; + object.satisfiesPzs = false; + object.storageConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.toObject(message.config, options); + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.Environment.State[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.Environment.State[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.storageConfig != null && message.hasOwnProperty("storageConfig")) + object.storageConfig = $root.google.cloud.orchestration.airflow.service.v1.StorageConfig.toObject(message.storageConfig, options); + return object; + }; + + /** + * Converts this Environment to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @instance + * @returns {Object.} JSON object + */ + Environment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Environment + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.Environment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.Environment"; + }; + + /** + * State enum. + * @name google.cloud.orchestration.airflow.service.v1.Environment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + * @property {number} ERROR=5 ERROR value + */ + Environment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + values[valuesById[5] = "ERROR"] = 5; + return values; + })(); + + return Environment; + })(); + + v1.CheckUpgradeResponse = (function() { + + /** + * Properties of a CheckUpgradeResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface ICheckUpgradeResponse + * @property {string|null} [buildLogUri] CheckUpgradeResponse buildLogUri + * @property {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|null} [containsPypiModulesConflict] CheckUpgradeResponse containsPypiModulesConflict + * @property {string|null} [pypiConflictBuildLogExtract] CheckUpgradeResponse pypiConflictBuildLogExtract + * @property {string|null} [imageVersion] CheckUpgradeResponse imageVersion + * @property {Object.|null} [pypiDependencies] CheckUpgradeResponse pypiDependencies + */ + + /** + * Constructs a new CheckUpgradeResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a CheckUpgradeResponse. + * @implements ICheckUpgradeResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse=} [properties] Properties to set + */ + function CheckUpgradeResponse(properties) { + this.pypiDependencies = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CheckUpgradeResponse buildLogUri. + * @member {string} buildLogUri + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @instance + */ + CheckUpgradeResponse.prototype.buildLogUri = ""; + + /** + * CheckUpgradeResponse containsPypiModulesConflict. + * @member {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult} containsPypiModulesConflict + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @instance + */ + CheckUpgradeResponse.prototype.containsPypiModulesConflict = 0; + + /** + * CheckUpgradeResponse pypiConflictBuildLogExtract. + * @member {string} pypiConflictBuildLogExtract + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @instance + */ + CheckUpgradeResponse.prototype.pypiConflictBuildLogExtract = ""; + + /** + * CheckUpgradeResponse imageVersion. + * @member {string} imageVersion + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @instance + */ + CheckUpgradeResponse.prototype.imageVersion = ""; + + /** + * CheckUpgradeResponse pypiDependencies. + * @member {Object.} pypiDependencies + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @instance + */ + CheckUpgradeResponse.prototype.pypiDependencies = $util.emptyObject; + + /** + * Creates a new CheckUpgradeResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse instance + */ + CheckUpgradeResponse.create = function create(properties) { + return new CheckUpgradeResponse(properties); + }; + + /** + * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse} message CheckUpgradeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckUpgradeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.buildLogUri != null && Object.hasOwnProperty.call(message, "buildLogUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.buildLogUri); + if (message.pypiConflictBuildLogExtract != null && Object.hasOwnProperty.call(message, "pypiConflictBuildLogExtract")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pypiConflictBuildLogExtract); + if (message.containsPypiModulesConflict != null && Object.hasOwnProperty.call(message, "containsPypiModulesConflict")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.containsPypiModulesConflict); + if (message.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageVersion); + if (message.pypiDependencies != null && Object.hasOwnProperty.call(message, "pypiDependencies")) + for (var keys = Object.keys(message.pypiDependencies), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.pypiDependencies[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse} message CheckUpgradeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CheckUpgradeResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckUpgradeResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.buildLogUri = reader.string(); + break; + } + case 4: { + message.containsPypiModulesConflict = reader.int32(); + break; + } + case 3: { + message.pypiConflictBuildLogExtract = reader.string(); + break; + } + case 5: { + message.imageVersion = reader.string(); + break; + } + case 6: { + if (message.pypiDependencies === $util.emptyObject) + message.pypiDependencies = {}; + 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.pypiDependencies[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckUpgradeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CheckUpgradeResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckUpgradeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.buildLogUri != null && message.hasOwnProperty("buildLogUri")) + if (!$util.isString(message.buildLogUri)) + return "buildLogUri: string expected"; + if (message.containsPypiModulesConflict != null && message.hasOwnProperty("containsPypiModulesConflict")) + switch (message.containsPypiModulesConflict) { + default: + return "containsPypiModulesConflict: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.pypiConflictBuildLogExtract != null && message.hasOwnProperty("pypiConflictBuildLogExtract")) + if (!$util.isString(message.pypiConflictBuildLogExtract)) + return "pypiConflictBuildLogExtract: string expected"; + if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) + if (!$util.isString(message.imageVersion)) + return "imageVersion: string expected"; + if (message.pypiDependencies != null && message.hasOwnProperty("pypiDependencies")) { + if (!$util.isObject(message.pypiDependencies)) + return "pypiDependencies: object expected"; + var key = Object.keys(message.pypiDependencies); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.pypiDependencies[key[i]])) + return "pypiDependencies: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse + */ + CheckUpgradeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse(); + if (object.buildLogUri != null) + message.buildLogUri = String(object.buildLogUri); + switch (object.containsPypiModulesConflict) { + default: + if (typeof object.containsPypiModulesConflict === "number") { + message.containsPypiModulesConflict = object.containsPypiModulesConflict; + break; + } + break; + case "CONFLICT_RESULT_UNSPECIFIED": + case 0: + message.containsPypiModulesConflict = 0; + break; + case "CONFLICT": + case 1: + message.containsPypiModulesConflict = 1; + break; + case "NO_CONFLICT": + case 2: + message.containsPypiModulesConflict = 2; + break; + } + if (object.pypiConflictBuildLogExtract != null) + message.pypiConflictBuildLogExtract = String(object.pypiConflictBuildLogExtract); + if (object.imageVersion != null) + message.imageVersion = String(object.imageVersion); + if (object.pypiDependencies) { + if (typeof object.pypiDependencies !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.pypiDependencies: object expected"); + message.pypiDependencies = {}; + for (var keys = Object.keys(object.pypiDependencies), i = 0; i < keys.length; ++i) + message.pypiDependencies[keys[i]] = String(object.pypiDependencies[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} message CheckUpgradeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckUpgradeResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.pypiDependencies = {}; + if (options.defaults) { + object.buildLogUri = ""; + object.pypiConflictBuildLogExtract = ""; + object.containsPypiModulesConflict = options.enums === String ? "CONFLICT_RESULT_UNSPECIFIED" : 0; + object.imageVersion = ""; + } + if (message.buildLogUri != null && message.hasOwnProperty("buildLogUri")) + object.buildLogUri = message.buildLogUri; + if (message.pypiConflictBuildLogExtract != null && message.hasOwnProperty("pypiConflictBuildLogExtract")) + object.pypiConflictBuildLogExtract = message.pypiConflictBuildLogExtract; + if (message.containsPypiModulesConflict != null && message.hasOwnProperty("containsPypiModulesConflict")) + object.containsPypiModulesConflict = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult[message.containsPypiModulesConflict] === undefined ? message.containsPypiModulesConflict : $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult[message.containsPypiModulesConflict] : message.containsPypiModulesConflict; + if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) + object.imageVersion = message.imageVersion; + var keys2; + if (message.pypiDependencies && (keys2 = Object.keys(message.pypiDependencies)).length) { + object.pypiDependencies = {}; + for (var j = 0; j < keys2.length; ++j) + object.pypiDependencies[keys2[j]] = message.pypiDependencies[keys2[j]]; + } + return object; + }; + + /** + * Converts this CheckUpgradeResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @instance + * @returns {Object.} JSON object + */ + CheckUpgradeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CheckUpgradeResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CheckUpgradeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse"; + }; + + /** + * ConflictResult enum. + * @name google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult + * @enum {number} + * @property {number} CONFLICT_RESULT_UNSPECIFIED=0 CONFLICT_RESULT_UNSPECIFIED value + * @property {number} CONFLICT=1 CONFLICT value + * @property {number} NO_CONFLICT=2 NO_CONFLICT value + */ + CheckUpgradeResponse.ConflictResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CONFLICT_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONFLICT"] = 1; + values[valuesById[2] = "NO_CONFLICT"] = 2; + return values; + })(); + + return CheckUpgradeResponse; + })(); + + v1.DataRetentionConfig = (function() { + + /** + * Properties of a DataRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IDataRetentionConfig + * @property {google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig|null} [taskLogsRetentionConfig] DataRetentionConfig taskLogsRetentionConfig + */ + + /** + * Constructs a new DataRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a DataRetentionConfig. + * @implements IDataRetentionConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig=} [properties] Properties to set + */ + function DataRetentionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataRetentionConfig taskLogsRetentionConfig. + * @member {google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig|null|undefined} taskLogsRetentionConfig + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @instance + */ + DataRetentionConfig.prototype.taskLogsRetentionConfig = null; + + /** + * Creates a new DataRetentionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.DataRetentionConfig} DataRetentionConfig instance + */ + DataRetentionConfig.create = function create(properties) { + return new DataRetentionConfig(properties); + }; + + /** + * Encodes the specified DataRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig} message DataRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskLogsRetentionConfig != null && Object.hasOwnProperty.call(message, "taskLogsRetentionConfig")) + $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.encode(message.taskLogsRetentionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IDataRetentionConfig} message DataRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.DataRetentionConfig} DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.taskLogsRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.DataRetentionConfig} DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataRetentionConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataRetentionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskLogsRetentionConfig != null && message.hasOwnProperty("taskLogsRetentionConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.verify(message.taskLogsRetentionConfig); + if (error) + return "taskLogsRetentionConfig." + error; + } + return null; + }; + + /** + * Creates a DataRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.DataRetentionConfig} DataRetentionConfig + */ + DataRetentionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig(); + if (object.taskLogsRetentionConfig != null) { + if (typeof object.taskLogsRetentionConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.DataRetentionConfig.taskLogsRetentionConfig: object expected"); + message.taskLogsRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.fromObject(object.taskLogsRetentionConfig); + } + return message; + }; + + /** + * Creates a plain object from a DataRetentionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.DataRetentionConfig} message DataRetentionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataRetentionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.taskLogsRetentionConfig = null; + if (message.taskLogsRetentionConfig != null && message.hasOwnProperty("taskLogsRetentionConfig")) + object.taskLogsRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.toObject(message.taskLogsRetentionConfig, options); + return object; + }; + + /** + * Converts this DataRetentionConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @instance + * @returns {Object.} JSON object + */ + DataRetentionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataRetentionConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.DataRetentionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataRetentionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DataRetentionConfig"; + }; + + return DataRetentionConfig; + })(); + + v1.TaskLogsRetentionConfig = (function() { + + /** + * Properties of a TaskLogsRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface ITaskLogsRetentionConfig + * @property {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode|null} [storageMode] TaskLogsRetentionConfig storageMode + */ + + /** + * Constructs a new TaskLogsRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a TaskLogsRetentionConfig. + * @implements ITaskLogsRetentionConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig=} [properties] Properties to set + */ + function TaskLogsRetentionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskLogsRetentionConfig storageMode. + * @member {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode} storageMode + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @instance + */ + TaskLogsRetentionConfig.prototype.storageMode = 0; + + /** + * Creates a new TaskLogsRetentionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig} TaskLogsRetentionConfig instance + */ + TaskLogsRetentionConfig.create = function create(properties) { + return new TaskLogsRetentionConfig(properties); + }; + + /** + * Encodes the specified TaskLogsRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig} message TaskLogsRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLogsRetentionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.storageMode != null && Object.hasOwnProperty.call(message, "storageMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.storageMode); + return writer; + }; + + /** + * Encodes the specified TaskLogsRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ITaskLogsRetentionConfig} message TaskLogsRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLogsRetentionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig} TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLogsRetentionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.storageMode = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig} TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLogsRetentionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TaskLogsRetentionConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskLogsRetentionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.storageMode != null && message.hasOwnProperty("storageMode")) + switch (message.storageMode) { + default: + return "storageMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a TaskLogsRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig} TaskLogsRetentionConfig + */ + TaskLogsRetentionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig(); + switch (object.storageMode) { + default: + if (typeof object.storageMode === "number") { + message.storageMode = object.storageMode; + break; + } + break; + case "TASK_LOGS_STORAGE_MODE_UNSPECIFIED": + case 0: + message.storageMode = 0; + break; + case "CLOUD_LOGGING_AND_CLOUD_STORAGE": + case 1: + message.storageMode = 1; + break; + case "CLOUD_LOGGING_ONLY": + case 2: + message.storageMode = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a TaskLogsRetentionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig} message TaskLogsRetentionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TaskLogsRetentionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.storageMode = options.enums === String ? "TASK_LOGS_STORAGE_MODE_UNSPECIFIED" : 0; + if (message.storageMode != null && message.hasOwnProperty("storageMode")) + object.storageMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode[message.storageMode] === undefined ? message.storageMode : $root.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode[message.storageMode] : message.storageMode; + return object; + }; + + /** + * Converts this TaskLogsRetentionConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @instance + * @returns {Object.} JSON object + */ + TaskLogsRetentionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TaskLogsRetentionConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TaskLogsRetentionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig"; + }; + + /** + * TaskLogsStorageMode enum. + * @name google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode + * @enum {number} + * @property {number} TASK_LOGS_STORAGE_MODE_UNSPECIFIED=0 TASK_LOGS_STORAGE_MODE_UNSPECIFIED value + * @property {number} CLOUD_LOGGING_AND_CLOUD_STORAGE=1 CLOUD_LOGGING_AND_CLOUD_STORAGE value + * @property {number} CLOUD_LOGGING_ONLY=2 CLOUD_LOGGING_ONLY value + */ + TaskLogsRetentionConfig.TaskLogsStorageMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TASK_LOGS_STORAGE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD_LOGGING_AND_CLOUD_STORAGE"] = 1; + values[valuesById[2] = "CLOUD_LOGGING_ONLY"] = 2; + return values; + })(); + + return TaskLogsRetentionConfig; + })(); + + v1.OperationMetadata = (function() { + + /** + * Properties of an OperationMetadata. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IOperationMetadata + * @property {google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|null} [state] OperationMetadata state + * @property {google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|null} [operationType] OperationMetadata operationType + * @property {string|null} [resource] OperationMetadata resource + * @property {string|null} [resourceUuid] OperationMetadata resourceUuid + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + */ + + /** + * Constructs a new OperationMetadata. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata=} [properties] Properties to set + */ + function OperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OperationMetadata state. + * @member {google.cloud.orchestration.airflow.service.v1.OperationMetadata.State} state + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.state = 0; + + /** + * OperationMetadata operationType. + * @member {google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type} operationType + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.operationType = 0; + + /** + * OperationMetadata resource. + * @member {string} resource + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.resource = ""; + + /** + * OperationMetadata resourceUuid. + * @member {string} resourceUuid + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.resourceUuid = ""; + + /** + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.createTime = null; + + /** + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.endTime = null; + + /** + * Creates a new OperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata instance + */ + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); + }; + + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operationType); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.resourceUuid != null && Object.hasOwnProperty.call(message, "resourceUuid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceUuid); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + message.operationType = reader.int32(); + break; + } + case 3: { + message.resource = reader.string(); + break; + } + case 4: { + message.resourceUuid = reader.string(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationMetadata message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 3: + case 4: + break; + } + if (message.operationType != null && message.hasOwnProperty("operationType")) + switch (message.operationType) { + default: + return "operationType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid")) + if (!$util.isString(message.resourceUuid)) + return "resourceUuid: 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.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata + */ + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "SUCCESSFUL": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + } + switch (object.operationType) { + default: + if (typeof object.operationType === "number") { + message.operationType = object.operationType; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.operationType = 0; + break; + case "CREATE": + case 1: + message.operationType = 1; + break; + case "DELETE": + case 2: + message.operationType = 2; + break; + case "UPDATE": + case 3: + message.operationType = 3; + break; + case "CHECK": + case 4: + message.operationType = 4; + break; + case "SAVE_SNAPSHOT": + case 5: + message.operationType = 5; + break; + case "LOAD_SNAPSHOT": + case 6: + message.operationType = 6; + break; + case "DATABASE_FAILOVER": + case 7: + message.operationType = 7; + break; + } + if (object.resource != null) + message.resource = String(object.resource); + if (object.resourceUuid != null) + message.resourceUuid = String(object.resourceUuid); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {google.cloud.orchestration.airflow.service.v1.OperationMetadata} message OperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.resource = ""; + object.resourceUuid = ""; + object.createTime = null; + object.endTime = null; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State[message.state] : message.state; + if (message.operationType != null && message.hasOwnProperty("operationType")) + object.operationType = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type[message.operationType] === undefined ? message.operationType : $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type[message.operationType] : message.operationType; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid")) + object.resourceUuid = message.resourceUuid; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this OperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @instance + * @returns {Object.} JSON object + */ + OperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OperationMetadata + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.OperationMetadata"; + }; + + /** + * State enum. + * @name google.cloud.orchestration.airflow.service.v1.OperationMetadata.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} SUCCESSFUL=3 SUCCESSFUL value + * @property {number} FAILED=4 FAILED value + */ + OperationMetadata.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values["SUCCESSFUL"] = 3; + values[valuesById[4] = "FAILED"] = 4; + return values; + })(); + + /** + * Type enum. + * @name google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} CREATE=1 CREATE value + * @property {number} DELETE=2 DELETE value + * @property {number} UPDATE=3 UPDATE value + * @property {number} CHECK=4 CHECK value + * @property {number} SAVE_SNAPSHOT=5 SAVE_SNAPSHOT value + * @property {number} LOAD_SNAPSHOT=6 LOAD_SNAPSHOT value + * @property {number} DATABASE_FAILOVER=7 DATABASE_FAILOVER value + */ + OperationMetadata.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATE"] = 1; + values[valuesById[2] = "DELETE"] = 2; + values[valuesById[3] = "UPDATE"] = 3; + values[valuesById[4] = "CHECK"] = 4; + values[valuesById[5] = "SAVE_SNAPSHOT"] = 5; + values[valuesById[6] = "LOAD_SNAPSHOT"] = 6; + values[valuesById[7] = "DATABASE_FAILOVER"] = 7; + return values; + })(); + + return OperationMetadata; + })(); + + v1.ImageVersions = (function() { + + /** + * Constructs a new ImageVersions service. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents an ImageVersions + * @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 ImageVersions(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ImageVersions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ImageVersions; + + /** + * Creates new ImageVersions service using the specified rpc implementation. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions + * @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 {ImageVersions} RPC service. Useful where requests and/or responses are streamed. + */ + ImageVersions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.ImageVersions|listImageVersions}. + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions + * @typedef ListImageVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} [response] ListImageVersionsResponse + */ + + /** + * Calls ListImageVersions. + * @function listImageVersions + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} request ListImageVersionsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersionsCallback} callback Node-style callback called with the error, if any, and ListImageVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ImageVersions.prototype.listImageVersions = function listImageVersions(request, callback) { + return this.rpcCall(listImageVersions, $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse, request, callback); + }, "name", { value: "ListImageVersions" }); + + /** + * Calls ListImageVersions. + * @function listImageVersions + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions + * @instance + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} request ListImageVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ImageVersions; + })(); + + v1.ListImageVersionsRequest = (function() { + + /** + * Properties of a ListImageVersionsRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IListImageVersionsRequest + * @property {string|null} [parent] ListImageVersionsRequest parent + * @property {number|null} [pageSize] ListImageVersionsRequest pageSize + * @property {string|null} [pageToken] ListImageVersionsRequest pageToken + * @property {boolean|null} [includePastReleases] ListImageVersionsRequest includePastReleases + */ + + /** + * Constructs a new ListImageVersionsRequest. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a ListImageVersionsRequest. + * @implements IListImageVersionsRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest=} [properties] Properties to set + */ + function ListImageVersionsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListImageVersionsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @instance + */ + ListImageVersionsRequest.prototype.parent = ""; + + /** + * ListImageVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @instance + */ + ListImageVersionsRequest.prototype.pageSize = 0; + + /** + * ListImageVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @instance + */ + ListImageVersionsRequest.prototype.pageToken = ""; + + /** + * ListImageVersionsRequest includePastReleases. + * @member {boolean} includePastReleases + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @instance + */ + ListImageVersionsRequest.prototype.includePastReleases = false; + + /** + * Creates a new ListImageVersionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest instance + */ + ListImageVersionsRequest.create = function create(properties) { + return new ListImageVersionsRequest(properties); + }; + + /** + * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} message ListImageVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListImageVersionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.includePastReleases != null && Object.hasOwnProperty.call(message, "includePastReleases")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includePastReleases); + return writer; + }; + + /** + * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} message ListImageVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListImageVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListImageVersionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListImageVersionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.includePastReleases = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListImageVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListImageVersionsRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListImageVersionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.includePastReleases != null && message.hasOwnProperty("includePastReleases")) + if (typeof message.includePastReleases !== "boolean") + return "includePastReleases: boolean expected"; + return null; + }; + + /** + * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest + */ + ListImageVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.includePastReleases != null) + message.includePastReleases = Boolean(object.includePastReleases); + return message; + }; + + /** + * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} message ListImageVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListImageVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.includePastReleases = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.includePastReleases != null && message.hasOwnProperty("includePastReleases")) + object.includePastReleases = message.includePastReleases; + return object; + }; + + /** + * Converts this ListImageVersionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListImageVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListImageVersionsRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListImageVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest"; + }; + + return ListImageVersionsRequest; + })(); + + v1.ListImageVersionsResponse = (function() { + + /** + * Properties of a ListImageVersionsResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IListImageVersionsResponse + * @property {Array.|null} [imageVersions] ListImageVersionsResponse imageVersions + * @property {string|null} [nextPageToken] ListImageVersionsResponse nextPageToken + */ + + /** + * Constructs a new ListImageVersionsResponse. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents a ListImageVersionsResponse. + * @implements IListImageVersionsResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse=} [properties] Properties to set + */ + function ListImageVersionsResponse(properties) { + this.imageVersions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListImageVersionsResponse imageVersions. + * @member {Array.} imageVersions + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @instance + */ + ListImageVersionsResponse.prototype.imageVersions = $util.emptyArray; + + /** + * ListImageVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @instance + */ + ListImageVersionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListImageVersionsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse instance + */ + ListImageVersionsResponse.create = function create(properties) { + return new ListImageVersionsResponse(properties); + }; + + /** + * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse} message ListImageVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListImageVersionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.imageVersions != null && message.imageVersions.length) + for (var i = 0; i < message.imageVersions.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.encode(message.imageVersions[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 ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse} message ListImageVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListImageVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListImageVersionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListImageVersionsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.imageVersions && message.imageVersions.length)) + message.imageVersions = []; + message.imageVersions.push($root.google.cloud.orchestration.airflow.service.v1.ImageVersion.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListImageVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListImageVersionsResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListImageVersionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.imageVersions != null && message.hasOwnProperty("imageVersions")) { + if (!Array.isArray(message.imageVersions)) + return "imageVersions: array expected"; + for (var i = 0; i < message.imageVersions.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.verify(message.imageVersions[i]); + if (error) + return "imageVersions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse + */ + ListImageVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse(); + if (object.imageVersions) { + if (!Array.isArray(object.imageVersions)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.imageVersions: array expected"); + message.imageVersions = []; + for (var i = 0; i < object.imageVersions.length; ++i) { + if (typeof object.imageVersions[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.imageVersions: object expected"); + message.imageVersions[i] = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.fromObject(object.imageVersions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} message ListImageVersionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListImageVersionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.imageVersions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.imageVersions && message.imageVersions.length) { + object.imageVersions = []; + for (var j = 0; j < message.imageVersions.length; ++j) + object.imageVersions[j] = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.toObject(message.imageVersions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListImageVersionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListImageVersionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListImageVersionsResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListImageVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse"; + }; + + return ListImageVersionsResponse; + })(); + + v1.ImageVersion = (function() { + + /** + * Properties of an ImageVersion. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @interface IImageVersion + * @property {string|null} [imageVersionId] ImageVersion imageVersionId + * @property {boolean|null} [isDefault] ImageVersion isDefault + * @property {Array.|null} [supportedPythonVersions] ImageVersion supportedPythonVersions + * @property {google.type.IDate|null} [releaseDate] ImageVersion releaseDate + * @property {boolean|null} [creationDisabled] ImageVersion creationDisabled + * @property {boolean|null} [upgradeDisabled] ImageVersion upgradeDisabled + */ + + /** + * Constructs a new ImageVersion. + * @memberof google.cloud.orchestration.airflow.service.v1 + * @classdesc Represents an ImageVersion. + * @implements IImageVersion + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion=} [properties] Properties to set + */ + function ImageVersion(properties) { + this.supportedPythonVersions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ImageVersion imageVersionId. + * @member {string} imageVersionId + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + */ + ImageVersion.prototype.imageVersionId = ""; + + /** + * ImageVersion isDefault. + * @member {boolean} isDefault + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + */ + ImageVersion.prototype.isDefault = false; + + /** + * ImageVersion supportedPythonVersions. + * @member {Array.} supportedPythonVersions + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + */ + ImageVersion.prototype.supportedPythonVersions = $util.emptyArray; + + /** + * ImageVersion releaseDate. + * @member {google.type.IDate|null|undefined} releaseDate + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + */ + ImageVersion.prototype.releaseDate = null; + + /** + * ImageVersion creationDisabled. + * @member {boolean} creationDisabled + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + */ + ImageVersion.prototype.creationDisabled = false; + + /** + * ImageVersion upgradeDisabled. + * @member {boolean} upgradeDisabled + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + */ + ImageVersion.prototype.upgradeDisabled = false; + + /** + * Creates a new ImageVersion instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion instance + */ + ImageVersion.create = function create(properties) { + return new ImageVersion(properties); + }; + + /** + * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion} message ImageVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageVersion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.imageVersionId != null && Object.hasOwnProperty.call(message, "imageVersionId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersionId); + if (message.isDefault != null && Object.hasOwnProperty.call(message, "isDefault")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDefault); + if (message.supportedPythonVersions != null && message.supportedPythonVersions.length) + for (var i = 0; i < message.supportedPythonVersions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.supportedPythonVersions[i]); + if (message.releaseDate != null && Object.hasOwnProperty.call(message, "releaseDate")) + $root.google.type.Date.encode(message.releaseDate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.creationDisabled != null && Object.hasOwnProperty.call(message, "creationDisabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.creationDisabled); + if (message.upgradeDisabled != null && Object.hasOwnProperty.call(message, "upgradeDisabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.upgradeDisabled); + return writer; + }; + + /** + * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion} message ImageVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageVersion message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageVersion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.ImageVersion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.imageVersionId = reader.string(); + break; + } + case 2: { + message.isDefault = reader.bool(); + break; + } + case 3: { + if (!(message.supportedPythonVersions && message.supportedPythonVersions.length)) + message.supportedPythonVersions = []; + message.supportedPythonVersions.push(reader.string()); + break; + } + case 4: { + message.releaseDate = $root.google.type.Date.decode(reader, reader.uint32()); + break; + } + case 5: { + message.creationDisabled = reader.bool(); + break; + } + case 6: { + message.upgradeDisabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageVersion message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageVersion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.imageVersionId != null && message.hasOwnProperty("imageVersionId")) + if (!$util.isString(message.imageVersionId)) + return "imageVersionId: string expected"; + if (message.isDefault != null && message.hasOwnProperty("isDefault")) + if (typeof message.isDefault !== "boolean") + return "isDefault: boolean expected"; + if (message.supportedPythonVersions != null && message.hasOwnProperty("supportedPythonVersions")) { + if (!Array.isArray(message.supportedPythonVersions)) + return "supportedPythonVersions: array expected"; + for (var i = 0; i < message.supportedPythonVersions.length; ++i) + if (!$util.isString(message.supportedPythonVersions[i])) + return "supportedPythonVersions: string[] expected"; + } + if (message.releaseDate != null && message.hasOwnProperty("releaseDate")) { + var error = $root.google.type.Date.verify(message.releaseDate); + if (error) + return "releaseDate." + error; + } + if (message.creationDisabled != null && message.hasOwnProperty("creationDisabled")) + if (typeof message.creationDisabled !== "boolean") + return "creationDisabled: boolean expected"; + if (message.upgradeDisabled != null && message.hasOwnProperty("upgradeDisabled")) + if (typeof message.upgradeDisabled !== "boolean") + return "upgradeDisabled: boolean expected"; + return null; + }; + + /** + * Creates an ImageVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion + */ + ImageVersion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ImageVersion) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1.ImageVersion(); + if (object.imageVersionId != null) + message.imageVersionId = String(object.imageVersionId); + if (object.isDefault != null) + message.isDefault = Boolean(object.isDefault); + if (object.supportedPythonVersions) { + if (!Array.isArray(object.supportedPythonVersions)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ImageVersion.supportedPythonVersions: array expected"); + message.supportedPythonVersions = []; + for (var i = 0; i < object.supportedPythonVersions.length; ++i) + message.supportedPythonVersions[i] = String(object.supportedPythonVersions[i]); + } + if (object.releaseDate != null) { + if (typeof object.releaseDate !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1.ImageVersion.releaseDate: object expected"); + message.releaseDate = $root.google.type.Date.fromObject(object.releaseDate); + } + if (object.creationDisabled != null) + message.creationDisabled = Boolean(object.creationDisabled); + if (object.upgradeDisabled != null) + message.upgradeDisabled = Boolean(object.upgradeDisabled); + return message; + }; + + /** + * Creates a plain object from an ImageVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {google.cloud.orchestration.airflow.service.v1.ImageVersion} message ImageVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.supportedPythonVersions = []; + if (options.defaults) { + object.imageVersionId = ""; + object.isDefault = false; + object.releaseDate = null; + object.creationDisabled = false; + object.upgradeDisabled = false; + } + if (message.imageVersionId != null && message.hasOwnProperty("imageVersionId")) + object.imageVersionId = message.imageVersionId; + if (message.isDefault != null && message.hasOwnProperty("isDefault")) + object.isDefault = message.isDefault; + if (message.supportedPythonVersions && message.supportedPythonVersions.length) { + object.supportedPythonVersions = []; + for (var j = 0; j < message.supportedPythonVersions.length; ++j) + object.supportedPythonVersions[j] = message.supportedPythonVersions[j]; + } + if (message.releaseDate != null && message.hasOwnProperty("releaseDate")) + object.releaseDate = $root.google.type.Date.toObject(message.releaseDate, options); + if (message.creationDisabled != null && message.hasOwnProperty("creationDisabled")) + object.creationDisabled = message.creationDisabled; + if (message.upgradeDisabled != null && message.hasOwnProperty("upgradeDisabled")) + object.upgradeDisabled = message.upgradeDisabled; + return object; + }; + + /** + * Converts this ImageVersion to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @instance + * @returns {Object.} JSON object + */ + ImageVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ImageVersion + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImageVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ImageVersion"; + }; + + return ImageVersion; + })(); + + return v1; + })(); + + service.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof google.cloud.orchestration.airflow.service + * @namespace + */ + var v1beta1 = {}; + + v1beta1.Environments = (function() { + + /** + * Constructs a new Environments service. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents an Environments + * @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 Environments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; + + /** + * Creates new Environments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @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 {Environments} RPC service. Useful where requests and/or responses are streamed. + */ + Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createEnvironment}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef CreateEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { + return this.rpcCall(createEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEnvironment" }); + + /** + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getEnvironment}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef GetEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} [response] Environment + */ + + /** + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { + return this.rpcCall(getEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.Environment, request, callback); + }, "name", { value: "GetEnvironment" }); + + /** + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listEnvironments}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef ListEnvironmentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse + */ + + /** + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { + return this.rpcCall(listEnvironments, $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse, request, callback); + }, "name", { value: "ListEnvironments" }); + + /** + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateEnvironment}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef UpdateEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { + return this.rpcCall(updateEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateEnvironment" }); + + /** + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteEnvironment}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef DeleteEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { + return this.rpcCall(deleteEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteEnvironment" }); + + /** + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|restartWebServer}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef RestartWebServerCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RestartWebServer. + * @function restartWebServer + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} request RestartWebServerRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServerCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.restartWebServer = function restartWebServer(request, callback) { + return this.rpcCall(restartWebServer, $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RestartWebServer" }); + + /** + * Calls RestartWebServer. + * @function restartWebServer + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} request RestartWebServerRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|checkUpgrade}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef CheckUpgradeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CheckUpgrade. + * @function checkUpgrade + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest} request CheckUpgradeRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgradeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.checkUpgrade = function checkUpgrade(request, callback) { + return this.rpcCall(checkUpgrade, $root.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CheckUpgrade" }); + + /** + * Calls CheckUpgrade. + * @function checkUpgrade + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest} request CheckUpgradeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|executeAirflowCommand}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef ExecuteAirflowCommandCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} [response] ExecuteAirflowCommandResponse + */ + + /** + * Calls ExecuteAirflowCommand. + * @function executeAirflowCommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} request ExecuteAirflowCommandRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ExecuteAirflowCommandCallback} callback Node-style callback called with the error, if any, and ExecuteAirflowCommandResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.executeAirflowCommand = function executeAirflowCommand(request, callback) { + return this.rpcCall(executeAirflowCommand, $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse, request, callback); + }, "name", { value: "ExecuteAirflowCommand" }); + + /** + * Calls ExecuteAirflowCommand. + * @function executeAirflowCommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} request ExecuteAirflowCommandRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|stopAirflowCommand}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef StopAirflowCommandCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} [response] StopAirflowCommandResponse + */ + + /** + * Calls StopAirflowCommand. + * @function stopAirflowCommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} request StopAirflowCommandRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.StopAirflowCommandCallback} callback Node-style callback called with the error, if any, and StopAirflowCommandResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.stopAirflowCommand = function stopAirflowCommand(request, callback) { + return this.rpcCall(stopAirflowCommand, $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse, request, callback); + }, "name", { value: "StopAirflowCommand" }); + + /** + * Calls StopAirflowCommand. + * @function stopAirflowCommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} request StopAirflowCommandRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|pollAirflowCommand}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef PollAirflowCommandCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} [response] PollAirflowCommandResponse + */ + + /** + * Calls PollAirflowCommand. + * @function pollAirflowCommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} request PollAirflowCommandRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.PollAirflowCommandCallback} callback Node-style callback called with the error, if any, and PollAirflowCommandResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.pollAirflowCommand = function pollAirflowCommand(request, callback) { + return this.rpcCall(pollAirflowCommand, $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse, request, callback); + }, "name", { value: "PollAirflowCommand" }); + + /** + * Calls PollAirflowCommand. + * @function pollAirflowCommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} request PollAirflowCommandRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listWorkloads}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef ListWorkloadsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse} [response] ListWorkloadsResponse + */ + + /** + * Calls ListWorkloads. + * @function listWorkloads + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest} request ListWorkloadsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ListWorkloadsCallback} callback Node-style callback called with the error, if any, and ListWorkloadsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listWorkloads = function listWorkloads(request, callback) { + return this.rpcCall(listWorkloads, $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse, request, callback); + }, "name", { value: "ListWorkloads" }); + + /** + * Calls ListWorkloads. + * @function listWorkloads + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest} request ListWorkloadsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef CreateUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} [response] UserWorkloadsSecret + */ + + /** + * Calls CreateUserWorkloadsSecret. + * @function createUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest} request CreateUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and UserWorkloadsSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createUserWorkloadsSecret = function createUserWorkloadsSecret(request, callback) { + return this.rpcCall(createUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret, request, callback); + }, "name", { value: "CreateUserWorkloadsSecret" }); + + /** + * Calls CreateUserWorkloadsSecret. + * @function createUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest} request CreateUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef GetUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} [response] UserWorkloadsSecret + */ + + /** + * Calls GetUserWorkloadsSecret. + * @function getUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest} request GetUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and UserWorkloadsSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getUserWorkloadsSecret = function getUserWorkloadsSecret(request, callback) { + return this.rpcCall(getUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret, request, callback); + }, "name", { value: "GetUserWorkloadsSecret" }); + + /** + * Calls GetUserWorkloadsSecret. + * @function getUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest} request GetUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listUserWorkloadsSecrets}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef ListUserWorkloadsSecretsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse} [response] ListUserWorkloadsSecretsResponse + */ + + /** + * Calls ListUserWorkloadsSecrets. + * @function listUserWorkloadsSecrets + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest} request ListUserWorkloadsSecretsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsSecretsCallback} callback Node-style callback called with the error, if any, and ListUserWorkloadsSecretsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listUserWorkloadsSecrets = function listUserWorkloadsSecrets(request, callback) { + return this.rpcCall(listUserWorkloadsSecrets, $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse, request, callback); + }, "name", { value: "ListUserWorkloadsSecrets" }); + + /** + * Calls ListUserWorkloadsSecrets. + * @function listUserWorkloadsSecrets + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest} request ListUserWorkloadsSecretsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef UpdateUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} [response] UserWorkloadsSecret + */ + + /** + * Calls UpdateUserWorkloadsSecret. + * @function updateUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest} request UpdateUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and UserWorkloadsSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.updateUserWorkloadsSecret = function updateUserWorkloadsSecret(request, callback) { + return this.rpcCall(updateUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret, request, callback); + }, "name", { value: "UpdateUserWorkloadsSecret" }); + + /** + * Calls UpdateUserWorkloadsSecret. + * @function updateUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest} request UpdateUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteUserWorkloadsSecret}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef DeleteUserWorkloadsSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteUserWorkloadsSecret. + * @function deleteUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest} request DeleteUserWorkloadsSecretRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsSecretCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deleteUserWorkloadsSecret = function deleteUserWorkloadsSecret(request, callback) { + return this.rpcCall(deleteUserWorkloadsSecret, $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteUserWorkloadsSecret" }); + + /** + * Calls DeleteUserWorkloadsSecret. + * @function deleteUserWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest} request DeleteUserWorkloadsSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef CreateUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} [response] UserWorkloadsConfigMap + */ + + /** + * Calls CreateUserWorkloadsConfigMap. + * @function createUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest} request CreateUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createUserWorkloadsConfigMap = function createUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(createUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap, request, callback); + }, "name", { value: "CreateUserWorkloadsConfigMap" }); + + /** + * Calls CreateUserWorkloadsConfigMap. + * @function createUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest} request CreateUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef GetUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} [response] UserWorkloadsConfigMap + */ + + /** + * Calls GetUserWorkloadsConfigMap. + * @function getUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest} request GetUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getUserWorkloadsConfigMap = function getUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(getUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap, request, callback); + }, "name", { value: "GetUserWorkloadsConfigMap" }); + + /** + * Calls GetUserWorkloadsConfigMap. + * @function getUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest} request GetUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listUserWorkloadsConfigMaps}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef ListUserWorkloadsConfigMapsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse} [response] ListUserWorkloadsConfigMapsResponse + */ + + /** + * Calls ListUserWorkloadsConfigMaps. + * @function listUserWorkloadsConfigMaps + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest} request ListUserWorkloadsConfigMapsRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsConfigMapsCallback} callback Node-style callback called with the error, if any, and ListUserWorkloadsConfigMapsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listUserWorkloadsConfigMaps = function listUserWorkloadsConfigMaps(request, callback) { + return this.rpcCall(listUserWorkloadsConfigMaps, $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse, request, callback); + }, "name", { value: "ListUserWorkloadsConfigMaps" }); + + /** + * Calls ListUserWorkloadsConfigMaps. + * @function listUserWorkloadsConfigMaps + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest} request ListUserWorkloadsConfigMapsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef UpdateUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} [response] UserWorkloadsConfigMap + */ + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @function updateUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest} request UpdateUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and UserWorkloadsConfigMap + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.updateUserWorkloadsConfigMap = function updateUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(updateUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap, request, callback); + }, "name", { value: "UpdateUserWorkloadsConfigMap" }); + + /** + * Calls UpdateUserWorkloadsConfigMap. + * @function updateUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest} request UpdateUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteUserWorkloadsConfigMap}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef DeleteUserWorkloadsConfigMapCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @function deleteUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest} request DeleteUserWorkloadsConfigMapRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsConfigMapCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deleteUserWorkloadsConfigMap = function deleteUserWorkloadsConfigMap(request, callback) { + return this.rpcCall(deleteUserWorkloadsConfigMap, $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteUserWorkloadsConfigMap" }); + + /** + * Calls DeleteUserWorkloadsConfigMap. + * @function deleteUserWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest} request DeleteUserWorkloadsConfigMapRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|saveSnapshot}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef SaveSnapshotCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls SaveSnapshot. + * @function saveSnapshot + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest} request SaveSnapshotRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.SaveSnapshotCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.saveSnapshot = function saveSnapshot(request, callback) { + return this.rpcCall(saveSnapshot, $root.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "SaveSnapshot" }); + + /** + * Calls SaveSnapshot. + * @function saveSnapshot + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest} request SaveSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|loadSnapshot}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef LoadSnapshotCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls LoadSnapshot. + * @function loadSnapshot + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest} request LoadSnapshotRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.LoadSnapshotCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.loadSnapshot = function loadSnapshot(request, callback) { + return this.rpcCall(loadSnapshot, $root.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "LoadSnapshot" }); + + /** + * Calls LoadSnapshot. + * @function loadSnapshot + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest} request LoadSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|databaseFailover}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef DatabaseFailoverCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DatabaseFailover. + * @function databaseFailover + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest} request DatabaseFailoverRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DatabaseFailoverCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.databaseFailover = function databaseFailover(request, callback) { + return this.rpcCall(databaseFailover, $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DatabaseFailover" }); + + /** + * Calls DatabaseFailover. + * @function databaseFailover + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest} request DatabaseFailoverRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|fetchDatabaseProperties}. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @typedef FetchDatabasePropertiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse} [response] FetchDatabasePropertiesResponse + */ + + /** + * Calls FetchDatabaseProperties. + * @function fetchDatabaseProperties + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest} request FetchDatabasePropertiesRequest message or plain object + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.FetchDatabasePropertiesCallback} callback Node-style callback called with the error, if any, and FetchDatabasePropertiesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.fetchDatabaseProperties = function fetchDatabaseProperties(request, callback) { + return this.rpcCall(fetchDatabaseProperties, $root.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse, request, callback); + }, "name", { value: "FetchDatabaseProperties" }); + + /** + * Calls FetchDatabaseProperties. + * @function fetchDatabaseProperties + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * @instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest} request FetchDatabasePropertiesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Environments; + })(); + + v1beta1.CreateEnvironmentRequest = (function() { + + /** + * Properties of a CreateEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface ICreateEnvironmentRequest + * @property {string|null} [parent] CreateEnvironmentRequest parent + * @property {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment + */ + + /** + * Constructs a new CreateEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a CreateEnvironmentRequest. + * @implements ICreateEnvironmentRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest=} [properties] Properties to set + */ + function CreateEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateEnvironmentRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @instance + */ + CreateEnvironmentRequest.prototype.parent = ""; + + /** + * CreateEnvironmentRequest environment. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @instance + */ + CreateEnvironmentRequest.prototype.environment = null; + + /** + * Creates a new CreateEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance + */ + CreateEnvironmentRequest.create = function create(properties) { + return new CreateEnvironmentRequest(properties); + }; + + /** + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEnvironmentRequest.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.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateEnvironmentRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateEnvironmentRequest.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.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + return null; + }; + + /** + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + */ + CreateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environment); + } + return message; + }; + + /** + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.environment = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environment, options); + return object; + }; + + /** + * Converts this CreateEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + CreateEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest"; + }; + + return CreateEnvironmentRequest; + })(); + + v1beta1.GetEnvironmentRequest = (function() { + + /** + * Properties of a GetEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IGetEnvironmentRequest + * @property {string|null} [name] GetEnvironmentRequest name + */ + + /** + * Constructs a new GetEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a GetEnvironmentRequest. + * @implements IGetEnvironmentRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest=} [properties] Properties to set + */ + function GetEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetEnvironmentRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @instance + */ + GetEnvironmentRequest.prototype.name = ""; + + /** + * Creates a new GetEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest instance + */ + GetEnvironmentRequest.create = function create(properties) { + return new GetEnvironmentRequest(properties); + }; + + /** + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEnvironmentRequest.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 GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest(); + 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 GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetEnvironmentRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEnvironmentRequest.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 GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest + */ + GetEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetEnvironmentRequest.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 GetEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + GetEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest"; + }; + + return GetEnvironmentRequest; + })(); + + v1beta1.ListEnvironmentsRequest = (function() { + + /** + * Properties of a ListEnvironmentsRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IListEnvironmentsRequest + * @property {string|null} [parent] ListEnvironmentsRequest parent + * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize + * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken + */ + + /** + * Constructs a new ListEnvironmentsRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a ListEnvironmentsRequest. + * @implements IListEnvironmentsRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest=} [properties] Properties to set + */ + function ListEnvironmentsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEnvironmentsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @instance + */ + ListEnvironmentsRequest.prototype.parent = ""; + + /** + * ListEnvironmentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @instance + */ + ListEnvironmentsRequest.prototype.pageSize = 0; + + /** + * ListEnvironmentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @instance + */ + ListEnvironmentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListEnvironmentsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance + */ + ListEnvironmentsRequest.create = function create(properties) { + return new ListEnvironmentsRequest(properties); + }; + + /** + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEnvironmentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEnvironmentsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEnvironmentsRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEnvironmentsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + */ + ListEnvironmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEnvironmentsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListEnvironmentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @instance + * @returns {Object.} JSON object + */ + ListEnvironmentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListEnvironmentsRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListEnvironmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest"; + }; + + return ListEnvironmentsRequest; + })(); + + v1beta1.ListEnvironmentsResponse = (function() { + + /** + * Properties of a ListEnvironmentsResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IListEnvironmentsResponse + * @property {Array.|null} [environments] ListEnvironmentsResponse environments + * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + */ + + /** + * Constructs a new ListEnvironmentsResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a ListEnvironmentsResponse. + * @implements IListEnvironmentsResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse=} [properties] Properties to set + */ + function ListEnvironmentsResponse(properties) { + this.environments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEnvironmentsResponse environments. + * @member {Array.} environments + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @instance + */ + ListEnvironmentsResponse.prototype.environments = $util.emptyArray; + + /** + * ListEnvironmentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @instance + */ + ListEnvironmentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListEnvironmentsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance + */ + ListEnvironmentsResponse.create = function create(properties) { + return new ListEnvironmentsResponse(properties); + }; + + /** + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEnvironmentsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environments[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 ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEnvironmentsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEnvironmentsResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEnvironmentsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + */ + ListEnvironmentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEnvironmentsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListEnvironmentsResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @instance + * @returns {Object.} JSON object + */ + ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListEnvironmentsResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListEnvironmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse"; + }; + + return ListEnvironmentsResponse; + })(); + + v1beta1.DeleteEnvironmentRequest = (function() { + + /** + * Properties of a DeleteEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IDeleteEnvironmentRequest + * @property {string|null} [name] DeleteEnvironmentRequest name + */ + + /** + * Constructs a new DeleteEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a DeleteEnvironmentRequest. + * @implements IDeleteEnvironmentRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + */ + function DeleteEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteEnvironmentRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @instance + */ + DeleteEnvironmentRequest.prototype.name = ""; + + /** + * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + */ + DeleteEnvironmentRequest.create = function create(properties) { + return new DeleteEnvironmentRequest(properties); + }; + + /** + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEnvironmentRequest.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 DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest(); + 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 DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteEnvironmentRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEnvironmentRequest.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 DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + */ + DeleteEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEnvironmentRequest.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 DeleteEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest"; + }; + + return DeleteEnvironmentRequest; + })(); + + v1beta1.UpdateEnvironmentRequest = (function() { + + /** + * Properties of an UpdateEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IUpdateEnvironmentRequest + * @property {string|null} [name] UpdateEnvironmentRequest name + * @property {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask + */ + + /** + * Constructs a new UpdateEnvironmentRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents an UpdateEnvironmentRequest. + * @implements IUpdateEnvironmentRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + */ + function UpdateEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateEnvironmentRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.name = ""; + + /** + * UpdateEnvironmentRequest environment. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.environment = null; + + /** + * UpdateEnvironmentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + */ + UpdateEnvironmentRequest.create = function create(properties) { + return new UpdateEnvironmentRequest(properties); + }; + + /** + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEnvironmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.name = reader.string(); + break; + } + case 1: { + message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateEnvironmentRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateEnvironmentRequest.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.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + */ + UpdateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.environment = null; + object.name = ""; + object.updateMask = null; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environment, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest"; + }; + + return UpdateEnvironmentRequest; + })(); + + v1beta1.RestartWebServerRequest = (function() { + + /** + * Properties of a RestartWebServerRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IRestartWebServerRequest + * @property {string|null} [name] RestartWebServerRequest name + */ + + /** + * Constructs a new RestartWebServerRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a RestartWebServerRequest. + * @implements IRestartWebServerRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest=} [properties] Properties to set + */ + function RestartWebServerRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RestartWebServerRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @instance + */ + RestartWebServerRequest.prototype.name = ""; + + /** + * Creates a new RestartWebServerRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest instance + */ + RestartWebServerRequest.create = function create(properties) { + return new RestartWebServerRequest(properties); + }; + + /** + * Encodes the specified RestartWebServerRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} message RestartWebServerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RestartWebServerRequest.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 RestartWebServerRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} message RestartWebServerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RestartWebServerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RestartWebServerRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RestartWebServerRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest(); + 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 RestartWebServerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RestartWebServerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RestartWebServerRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RestartWebServerRequest.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 RestartWebServerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest + */ + RestartWebServerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a RestartWebServerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} message RestartWebServerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RestartWebServerRequest.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 RestartWebServerRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @instance + * @returns {Object.} JSON object + */ + RestartWebServerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RestartWebServerRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RestartWebServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest"; + }; + + return RestartWebServerRequest; + })(); + + v1beta1.ExecuteAirflowCommandRequest = (function() { + + /** + * Properties of an ExecuteAirflowCommandRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IExecuteAirflowCommandRequest + * @property {string|null} [environment] ExecuteAirflowCommandRequest environment + * @property {string|null} [command] ExecuteAirflowCommandRequest command + * @property {string|null} [subcommand] ExecuteAirflowCommandRequest subcommand + * @property {Array.|null} [parameters] ExecuteAirflowCommandRequest parameters + */ + + /** + * Constructs a new ExecuteAirflowCommandRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents an ExecuteAirflowCommandRequest. + * @implements IExecuteAirflowCommandRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest=} [properties] Properties to set + */ + function ExecuteAirflowCommandRequest(properties) { + this.parameters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteAirflowCommandRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @instance + */ + ExecuteAirflowCommandRequest.prototype.environment = ""; + + /** + * ExecuteAirflowCommandRequest command. + * @member {string} command + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @instance + */ + ExecuteAirflowCommandRequest.prototype.command = ""; + + /** + * ExecuteAirflowCommandRequest subcommand. + * @member {string} subcommand + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @instance + */ + ExecuteAirflowCommandRequest.prototype.subcommand = ""; + + /** + * ExecuteAirflowCommandRequest parameters. + * @member {Array.} parameters + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @instance + */ + ExecuteAirflowCommandRequest.prototype.parameters = $util.emptyArray; + + /** + * Creates a new ExecuteAirflowCommandRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest instance + */ + ExecuteAirflowCommandRequest.create = function create(properties) { + return new ExecuteAirflowCommandRequest(properties); + }; + + /** + * Encodes the specified ExecuteAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} message ExecuteAirflowCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteAirflowCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.command != null && Object.hasOwnProperty.call(message, "command")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command); + if (message.subcommand != null && Object.hasOwnProperty.call(message, "subcommand")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcommand); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parameters[i]); + return writer; + }; + + /** + * Encodes the specified ExecuteAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} message ExecuteAirflowCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteAirflowCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteAirflowCommandRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.environment = reader.string(); + break; + } + case 2: { + message.command = reader.string(); + break; + } + case 3: { + message.subcommand = reader.string(); + break; + } + case 4: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteAirflowCommandRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteAirflowCommandRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteAirflowCommandRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.command != null && message.hasOwnProperty("command")) + if (!$util.isString(message.command)) + return "command: string expected"; + if (message.subcommand != null && message.hasOwnProperty("subcommand")) + if (!$util.isString(message.subcommand)) + return "subcommand: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) + if (!$util.isString(message.parameters[i])) + return "parameters: string[] expected"; + } + return null; + }; + + /** + * Creates an ExecuteAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest + */ + ExecuteAirflowCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.command != null) + message.command = String(object.command); + if (object.subcommand != null) + message.subcommand = String(object.subcommand); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) + message.parameters[i] = String(object.parameters[i]); + } + return message; + }; + + /** + * Creates a plain object from an ExecuteAirflowCommandRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} message ExecuteAirflowCommandRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteAirflowCommandRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parameters = []; + if (options.defaults) { + object.environment = ""; + object.command = ""; + object.subcommand = ""; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.command != null && message.hasOwnProperty("command")) + object.command = message.command; + if (message.subcommand != null && message.hasOwnProperty("subcommand")) + object.subcommand = message.subcommand; + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = message.parameters[j]; + } + return object; + }; + + /** + * Converts this ExecuteAirflowCommandRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @instance + * @returns {Object.} JSON object + */ + ExecuteAirflowCommandRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExecuteAirflowCommandRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExecuteAirflowCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest"; + }; + + return ExecuteAirflowCommandRequest; + })(); + + v1beta1.ExecuteAirflowCommandResponse = (function() { + + /** + * Properties of an ExecuteAirflowCommandResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IExecuteAirflowCommandResponse + * @property {string|null} [executionId] ExecuteAirflowCommandResponse executionId + * @property {string|null} [pod] ExecuteAirflowCommandResponse pod + * @property {string|null} [podNamespace] ExecuteAirflowCommandResponse podNamespace + * @property {string|null} [error] ExecuteAirflowCommandResponse error + */ + + /** + * Constructs a new ExecuteAirflowCommandResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents an ExecuteAirflowCommandResponse. + * @implements IExecuteAirflowCommandResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse=} [properties] Properties to set + */ + function ExecuteAirflowCommandResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteAirflowCommandResponse executionId. + * @member {string} executionId + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @instance + */ + ExecuteAirflowCommandResponse.prototype.executionId = ""; + + /** + * ExecuteAirflowCommandResponse pod. + * @member {string} pod + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @instance + */ + ExecuteAirflowCommandResponse.prototype.pod = ""; + + /** + * ExecuteAirflowCommandResponse podNamespace. + * @member {string} podNamespace + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @instance + */ + ExecuteAirflowCommandResponse.prototype.podNamespace = ""; + + /** + * ExecuteAirflowCommandResponse error. + * @member {string} error + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @instance + */ + ExecuteAirflowCommandResponse.prototype.error = ""; + + /** + * Creates a new ExecuteAirflowCommandResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse instance + */ + ExecuteAirflowCommandResponse.create = function create(properties) { + return new ExecuteAirflowCommandResponse(properties); + }; + + /** + * Encodes the specified ExecuteAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse} message ExecuteAirflowCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteAirflowCommandResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionId); + if (message.pod != null && Object.hasOwnProperty.call(message, "pod")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pod); + if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.podNamespace); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.error); + return writer; + }; + + /** + * Encodes the specified ExecuteAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse} message ExecuteAirflowCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteAirflowCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteAirflowCommandResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.executionId = reader.string(); + break; + } + case 2: { + message.pod = reader.string(); + break; + } + case 3: { + message.podNamespace = reader.string(); + break; + } + case 4: { + message.error = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteAirflowCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteAirflowCommandResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteAirflowCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; + if (message.pod != null && message.hasOwnProperty("pod")) + if (!$util.isString(message.pod)) + return "pod: string expected"; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + if (!$util.isString(message.podNamespace)) + return "podNamespace: string expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + return null; + }; + + /** + * Creates an ExecuteAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse + */ + ExecuteAirflowCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse(); + if (object.executionId != null) + message.executionId = String(object.executionId); + if (object.pod != null) + message.pod = String(object.pod); + if (object.podNamespace != null) + message.podNamespace = String(object.podNamespace); + if (object.error != null) + message.error = String(object.error); + return message; + }; + + /** + * Creates a plain object from an ExecuteAirflowCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} message ExecuteAirflowCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteAirflowCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.executionId = ""; + object.pod = ""; + object.podNamespace = ""; + object.error = ""; + } + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; + if (message.pod != null && message.hasOwnProperty("pod")) + object.pod = message.pod; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + object.podNamespace = message.podNamespace; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + return object; + }; + + /** + * Converts this ExecuteAirflowCommandResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @instance + * @returns {Object.} JSON object + */ + ExecuteAirflowCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExecuteAirflowCommandResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExecuteAirflowCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse"; + }; + + return ExecuteAirflowCommandResponse; + })(); + + v1beta1.StopAirflowCommandRequest = (function() { + + /** + * Properties of a StopAirflowCommandRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IStopAirflowCommandRequest + * @property {string|null} [environment] StopAirflowCommandRequest environment + * @property {string|null} [executionId] StopAirflowCommandRequest executionId + * @property {string|null} [pod] StopAirflowCommandRequest pod + * @property {string|null} [podNamespace] StopAirflowCommandRequest podNamespace + * @property {boolean|null} [force] StopAirflowCommandRequest force + */ + + /** + * Constructs a new StopAirflowCommandRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a StopAirflowCommandRequest. + * @implements IStopAirflowCommandRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest=} [properties] Properties to set + */ + function StopAirflowCommandRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StopAirflowCommandRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @instance + */ + StopAirflowCommandRequest.prototype.environment = ""; + + /** + * StopAirflowCommandRequest executionId. + * @member {string} executionId + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @instance + */ + StopAirflowCommandRequest.prototype.executionId = ""; + + /** + * StopAirflowCommandRequest pod. + * @member {string} pod + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @instance + */ + StopAirflowCommandRequest.prototype.pod = ""; + + /** + * StopAirflowCommandRequest podNamespace. + * @member {string} podNamespace + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @instance + */ + StopAirflowCommandRequest.prototype.podNamespace = ""; + + /** + * StopAirflowCommandRequest force. + * @member {boolean} force + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @instance + */ + StopAirflowCommandRequest.prototype.force = false; + + /** + * Creates a new StopAirflowCommandRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest instance + */ + StopAirflowCommandRequest.create = function create(properties) { + return new StopAirflowCommandRequest(properties); + }; + + /** + * Encodes the specified StopAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} message StopAirflowCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopAirflowCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.executionId); + if (message.pod != null && Object.hasOwnProperty.call(message, "pod")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pod); + if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.podNamespace); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.force); + return writer; + }; + + /** + * Encodes the specified StopAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} message StopAirflowCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopAirflowCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopAirflowCommandRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopAirflowCommandRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.environment = reader.string(); + break; + } + case 2: { + message.executionId = reader.string(); + break; + } + case 3: { + message.pod = reader.string(); + break; + } + case 4: { + message.podNamespace = reader.string(); + break; + } + case 5: { + message.force = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StopAirflowCommandRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopAirflowCommandRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopAirflowCommandRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopAirflowCommandRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; + if (message.pod != null && message.hasOwnProperty("pod")) + if (!$util.isString(message.pod)) + return "pod: string expected"; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + if (!$util.isString(message.podNamespace)) + return "podNamespace: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; + + /** + * Creates a StopAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest + */ + StopAirflowCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.executionId != null) + message.executionId = String(object.executionId); + if (object.pod != null) + message.pod = String(object.pod); + if (object.podNamespace != null) + message.podNamespace = String(object.podNamespace); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; + + /** + * Creates a plain object from a StopAirflowCommandRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} message StopAirflowCommandRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopAirflowCommandRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.environment = ""; + object.executionId = ""; + object.pod = ""; + object.podNamespace = ""; + object.force = false; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; + if (message.pod != null && message.hasOwnProperty("pod")) + object.pod = message.pod; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + object.podNamespace = message.podNamespace; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; + + /** + * Converts this StopAirflowCommandRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @instance + * @returns {Object.} JSON object + */ + StopAirflowCommandRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StopAirflowCommandRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StopAirflowCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest"; + }; + + return StopAirflowCommandRequest; + })(); + + v1beta1.StopAirflowCommandResponse = (function() { + + /** + * Properties of a StopAirflowCommandResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IStopAirflowCommandResponse + * @property {boolean|null} [isDone] StopAirflowCommandResponse isDone + * @property {Array.|null} [output] StopAirflowCommandResponse output + */ + + /** + * Constructs a new StopAirflowCommandResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a StopAirflowCommandResponse. + * @implements IStopAirflowCommandResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse=} [properties] Properties to set + */ + function StopAirflowCommandResponse(properties) { + this.output = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StopAirflowCommandResponse isDone. + * @member {boolean} isDone + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @instance + */ + StopAirflowCommandResponse.prototype.isDone = false; + + /** + * StopAirflowCommandResponse output. + * @member {Array.} output + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @instance + */ + StopAirflowCommandResponse.prototype.output = $util.emptyArray; + + /** + * Creates a new StopAirflowCommandResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse instance + */ + StopAirflowCommandResponse.create = function create(properties) { + return new StopAirflowCommandResponse(properties); + }; + + /** + * Encodes the specified StopAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse} message StopAirflowCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopAirflowCommandResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.isDone != null && Object.hasOwnProperty.call(message, "isDone")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isDone); + if (message.output != null && message.output.length) + for (var i = 0; i < message.output.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.output[i]); + return writer; + }; + + /** + * Encodes the specified StopAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse} message StopAirflowCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopAirflowCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopAirflowCommandResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopAirflowCommandResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.isDone = reader.bool(); + break; + } + case 2: { + if (!(message.output && message.output.length)) + message.output = []; + message.output.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StopAirflowCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopAirflowCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopAirflowCommandResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopAirflowCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.isDone != null && message.hasOwnProperty("isDone")) + if (typeof message.isDone !== "boolean") + return "isDone: boolean expected"; + if (message.output != null && message.hasOwnProperty("output")) { + if (!Array.isArray(message.output)) + return "output: array expected"; + for (var i = 0; i < message.output.length; ++i) + if (!$util.isString(message.output[i])) + return "output: string[] expected"; + } + return null; + }; + + /** + * Creates a StopAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse + */ + StopAirflowCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse(); + if (object.isDone != null) + message.isDone = Boolean(object.isDone); + if (object.output) { + if (!Array.isArray(object.output)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.output: array expected"); + message.output = []; + for (var i = 0; i < object.output.length; ++i) + message.output[i] = String(object.output[i]); + } + return message; + }; + + /** + * Creates a plain object from a StopAirflowCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} message StopAirflowCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopAirflowCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.output = []; + if (options.defaults) + object.isDone = false; + if (message.isDone != null && message.hasOwnProperty("isDone")) + object.isDone = message.isDone; + if (message.output && message.output.length) { + object.output = []; + for (var j = 0; j < message.output.length; ++j) + object.output[j] = message.output[j]; + } + return object; + }; + + /** + * Converts this StopAirflowCommandResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @instance + * @returns {Object.} JSON object + */ + StopAirflowCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StopAirflowCommandResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StopAirflowCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse"; + }; + + return StopAirflowCommandResponse; + })(); + + v1beta1.PollAirflowCommandRequest = (function() { + + /** + * Properties of a PollAirflowCommandRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IPollAirflowCommandRequest + * @property {string|null} [environment] PollAirflowCommandRequest environment + * @property {string|null} [executionId] PollAirflowCommandRequest executionId + * @property {string|null} [pod] PollAirflowCommandRequest pod + * @property {string|null} [podNamespace] PollAirflowCommandRequest podNamespace + * @property {number|null} [nextLineNumber] PollAirflowCommandRequest nextLineNumber + */ + + /** + * Constructs a new PollAirflowCommandRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a PollAirflowCommandRequest. + * @implements IPollAirflowCommandRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest=} [properties] Properties to set + */ + function PollAirflowCommandRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PollAirflowCommandRequest environment. + * @member {string} environment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @instance + */ + PollAirflowCommandRequest.prototype.environment = ""; + + /** + * PollAirflowCommandRequest executionId. + * @member {string} executionId + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @instance + */ + PollAirflowCommandRequest.prototype.executionId = ""; + + /** + * PollAirflowCommandRequest pod. + * @member {string} pod + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @instance + */ + PollAirflowCommandRequest.prototype.pod = ""; + + /** + * PollAirflowCommandRequest podNamespace. + * @member {string} podNamespace + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @instance + */ + PollAirflowCommandRequest.prototype.podNamespace = ""; + + /** + * PollAirflowCommandRequest nextLineNumber. + * @member {number} nextLineNumber + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @instance + */ + PollAirflowCommandRequest.prototype.nextLineNumber = 0; + + /** + * Creates a new PollAirflowCommandRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest instance + */ + PollAirflowCommandRequest.create = function create(properties) { + return new PollAirflowCommandRequest(properties); + }; + + /** + * Encodes the specified PollAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} message PollAirflowCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PollAirflowCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.executionId); + if (message.pod != null && Object.hasOwnProperty.call(message, "pod")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pod); + if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.podNamespace); + if (message.nextLineNumber != null && Object.hasOwnProperty.call(message, "nextLineNumber")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nextLineNumber); + return writer; + }; + + /** + * Encodes the specified PollAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} message PollAirflowCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PollAirflowCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PollAirflowCommandRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PollAirflowCommandRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.environment = reader.string(); + break; + } + case 2: { + message.executionId = reader.string(); + break; + } + case 3: { + message.pod = reader.string(); + break; + } + case 4: { + message.podNamespace = reader.string(); + break; + } + case 5: { + message.nextLineNumber = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PollAirflowCommandRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PollAirflowCommandRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PollAirflowCommandRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PollAirflowCommandRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; + if (message.pod != null && message.hasOwnProperty("pod")) + if (!$util.isString(message.pod)) + return "pod: string expected"; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + if (!$util.isString(message.podNamespace)) + return "podNamespace: string expected"; + if (message.nextLineNumber != null && message.hasOwnProperty("nextLineNumber")) + if (!$util.isInteger(message.nextLineNumber)) + return "nextLineNumber: integer expected"; + return null; + }; + + /** + * Creates a PollAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest + */ + PollAirflowCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.executionId != null) + message.executionId = String(object.executionId); + if (object.pod != null) + message.pod = String(object.pod); + if (object.podNamespace != null) + message.podNamespace = String(object.podNamespace); + if (object.nextLineNumber != null) + message.nextLineNumber = object.nextLineNumber | 0; + return message; + }; + + /** + * Creates a plain object from a PollAirflowCommandRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} message PollAirflowCommandRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PollAirflowCommandRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.environment = ""; + object.executionId = ""; + object.pod = ""; + object.podNamespace = ""; + object.nextLineNumber = 0; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; + if (message.pod != null && message.hasOwnProperty("pod")) + object.pod = message.pod; + if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) + object.podNamespace = message.podNamespace; + if (message.nextLineNumber != null && message.hasOwnProperty("nextLineNumber")) + object.nextLineNumber = message.nextLineNumber; + return object; + }; + + /** + * Converts this PollAirflowCommandRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @instance + * @returns {Object.} JSON object + */ + PollAirflowCommandRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PollAirflowCommandRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PollAirflowCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest"; + }; + + return PollAirflowCommandRequest; + })(); + + v1beta1.PollAirflowCommandResponse = (function() { + + /** + * Properties of a PollAirflowCommandResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IPollAirflowCommandResponse + * @property {Array.|null} [output] PollAirflowCommandResponse output + * @property {boolean|null} [outputEnd] PollAirflowCommandResponse outputEnd + * @property {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null} [exitInfo] PollAirflowCommandResponse exitInfo + */ + + /** + * Constructs a new PollAirflowCommandResponse. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a PollAirflowCommandResponse. + * @implements IPollAirflowCommandResponse + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse=} [properties] Properties to set + */ + function PollAirflowCommandResponse(properties) { + this.output = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PollAirflowCommandResponse output. + * @member {Array.} output + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @instance + */ + PollAirflowCommandResponse.prototype.output = $util.emptyArray; + + /** + * PollAirflowCommandResponse outputEnd. + * @member {boolean} outputEnd + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @instance + */ + PollAirflowCommandResponse.prototype.outputEnd = false; + + /** + * PollAirflowCommandResponse exitInfo. + * @member {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null|undefined} exitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @instance + */ + PollAirflowCommandResponse.prototype.exitInfo = null; + + /** + * Creates a new PollAirflowCommandResponse instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse instance + */ + PollAirflowCommandResponse.create = function create(properties) { + return new PollAirflowCommandResponse(properties); + }; + + /** + * Encodes the specified PollAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse} message PollAirflowCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PollAirflowCommandResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.output != null && message.output.length) + for (var i = 0; i < message.output.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.encode(message.output[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputEnd != null && Object.hasOwnProperty.call(message, "outputEnd")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.outputEnd); + if (message.exitInfo != null && Object.hasOwnProperty.call(message, "exitInfo")) + $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.encode(message.exitInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PollAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse} message PollAirflowCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PollAirflowCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PollAirflowCommandResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PollAirflowCommandResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.output && message.output.length)) + message.output = []; + message.output.push($root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.decode(reader, reader.uint32())); + break; + } + case 2: { + message.outputEnd = reader.bool(); + break; + } + case 3: { + message.exitInfo = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PollAirflowCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PollAirflowCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PollAirflowCommandResponse message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PollAirflowCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.output != null && message.hasOwnProperty("output")) { + if (!Array.isArray(message.output)) + return "output: array expected"; + for (var i = 0; i < message.output.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify(message.output[i]); + if (error) + return "output." + error; + } + } + if (message.outputEnd != null && message.hasOwnProperty("outputEnd")) + if (typeof message.outputEnd !== "boolean") + return "outputEnd: boolean expected"; + if (message.exitInfo != null && message.hasOwnProperty("exitInfo")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify(message.exitInfo); + if (error) + return "exitInfo." + error; + } + return null; + }; + + /** + * Creates a PollAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse + */ + PollAirflowCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse(); + if (object.output) { + if (!Array.isArray(object.output)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.output: array expected"); + message.output = []; + for (var i = 0; i < object.output.length; ++i) { + if (typeof object.output[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.output: object expected"); + message.output[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.fromObject(object.output[i]); + } + } + if (object.outputEnd != null) + message.outputEnd = Boolean(object.outputEnd); + if (object.exitInfo != null) { + if (typeof object.exitInfo !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.exitInfo: object expected"); + message.exitInfo = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.fromObject(object.exitInfo); + } + return message; + }; + + /** + * Creates a plain object from a PollAirflowCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} message PollAirflowCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PollAirflowCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.output = []; + if (options.defaults) { + object.outputEnd = false; + object.exitInfo = null; + } + if (message.output && message.output.length) { + object.output = []; + for (var j = 0; j < message.output.length; ++j) + object.output[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.toObject(message.output[j], options); + } + if (message.outputEnd != null && message.hasOwnProperty("outputEnd")) + object.outputEnd = message.outputEnd; + if (message.exitInfo != null && message.hasOwnProperty("exitInfo")) + object.exitInfo = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.toObject(message.exitInfo, options); + return object; + }; + + /** + * Converts this PollAirflowCommandResponse to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @instance + * @returns {Object.} JSON object + */ + PollAirflowCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PollAirflowCommandResponse + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PollAirflowCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse"; + }; + + PollAirflowCommandResponse.Line = (function() { + + /** + * Properties of a Line. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @interface ILine + * @property {number|null} [lineNumber] Line lineNumber + * @property {string|null} [content] Line content + */ + + /** + * Constructs a new Line. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @classdesc Represents a Line. + * @implements ILine + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine=} [properties] Properties to set + */ + function Line(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Line lineNumber. + * @member {number} lineNumber + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @instance + */ + Line.prototype.lineNumber = 0; + + /** + * Line content. + * @member {string} content + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @instance + */ + Line.prototype.content = ""; + + /** + * Creates a new Line instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line instance + */ + Line.create = function create(properties) { + return new Line(properties); + }; + + /** + * Encodes the specified Line message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine} message Line message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Line.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.lineNumber); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); + return writer; + }; + + /** + * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine} message Line message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Line.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Line message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Line.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.lineNumber = reader.int32(); + break; + } + case 2: { + message.content = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Line message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Line.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Line message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Line.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) + if (!$util.isInteger(message.lineNumber)) + return "lineNumber: integer expected"; + if (message.content != null && message.hasOwnProperty("content")) + if (!$util.isString(message.content)) + return "content: string expected"; + return null; + }; + + /** + * Creates a Line message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line + */ + Line.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line(); + if (object.lineNumber != null) + message.lineNumber = object.lineNumber | 0; + if (object.content != null) + message.content = String(object.content); + return message; + }; + + /** + * Creates a plain object from a Line message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} message Line + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Line.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.lineNumber = 0; + object.content = ""; + } + if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) + object.lineNumber = message.lineNumber; + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + return object; + }; + + /** + * Converts this Line to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @instance + * @returns {Object.} JSON object + */ + Line.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Line + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Line.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line"; + }; + + return Line; + })(); + + PollAirflowCommandResponse.ExitInfo = (function() { + + /** + * Properties of an ExitInfo. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @interface IExitInfo + * @property {number|null} [exitCode] ExitInfo exitCode + * @property {string|null} [error] ExitInfo error + */ + + /** + * Constructs a new ExitInfo. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @classdesc Represents an ExitInfo. + * @implements IExitInfo + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo=} [properties] Properties to set + */ + function ExitInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExitInfo exitCode. + * @member {number} exitCode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @instance + */ + ExitInfo.prototype.exitCode = 0; + + /** + * ExitInfo error. + * @member {string} error + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @instance + */ + ExitInfo.prototype.error = ""; + + /** + * Creates a new ExitInfo instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo instance + */ + ExitInfo.create = function create(properties) { + return new ExitInfo(properties); + }; + + /** + * Encodes the specified ExitInfo message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo} message ExitInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExitInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exitCode != null && Object.hasOwnProperty.call(message, "exitCode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.exitCode); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); + return writer; + }; + + /** + * Encodes the specified ExitInfo message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo} message ExitInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExitInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExitInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExitInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.exitCode = reader.int32(); + break; + } + case 2: { + message.error = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExitInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExitInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for ImageVersion - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ImageVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ImageVersion"; - }; + /** + * Verifies an ExitInfo message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExitInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exitCode != null && message.hasOwnProperty("exitCode")) + if (!$util.isInteger(message.exitCode)) + return "exitCode: integer expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + return null; + }; - return ImageVersion; - })(); + /** + * Creates an ExitInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo + */ + ExitInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo(); + if (object.exitCode != null) + message.exitCode = object.exitCode | 0; + if (object.error != null) + message.error = String(object.error); + return message; + }; - return v1; - })(); + /** + * Creates a plain object from an ExitInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} message ExitInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExitInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.exitCode = 0; + object.error = ""; + } + if (message.exitCode != null && message.hasOwnProperty("exitCode")) + object.exitCode = message.exitCode; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + return object; + }; - service.v1beta1 = (function() { + /** + * Converts this ExitInfo to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @instance + * @returns {Object.} JSON object + */ + ExitInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace v1beta1. - * @memberof google.cloud.orchestration.airflow.service - * @namespace - */ - var v1beta1 = {}; + /** + * Gets the default type url for ExitInfo + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExitInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo"; + }; - v1beta1.Environments = (function() { + return ExitInfo; + })(); - /** - * Constructs a new Environments service. - * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents an Environments - * @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 Environments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + return PollAirflowCommandResponse; + })(); - (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; + v1beta1.CreateUserWorkloadsSecretRequest = (function() { /** - * Creates new Environments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @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 {Environments} RPC service. Useful where requests and/or responses are streamed. + * Properties of a CreateUserWorkloadsSecretRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface ICreateUserWorkloadsSecretRequest + * @property {string|null} [parent] CreateUserWorkloadsSecretRequest parent + * @property {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null} [userWorkloadsSecret] CreateUserWorkloadsSecretRequest userWorkloadsSecret */ - Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createEnvironment}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef CreateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new CreateUserWorkloadsSecretRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a CreateUserWorkloadsSecretRequest. + * @implements ICreateUserWorkloadsSecretRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest=} [properties] Properties to set */ + function CreateUserWorkloadsSecretRequest(properties) { + if (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 CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * CreateUserWorkloadsSecretRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { - return this.rpcCall(createEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEnvironment" }); + CreateUserWorkloadsSecretRequest.prototype.parent = ""; /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * CreateUserWorkloadsSecretRequest userWorkloadsSecret. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null|undefined} userWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getEnvironment}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef GetEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} [response] Environment */ + CreateUserWorkloadsSecretRequest.prototype.userWorkloadsSecret = null; /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment - * @returns {undefined} - * @variation 1 + * Creates a new CreateUserWorkloadsSecretRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest instance */ - Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { - return this.rpcCall(getEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.Environment, request, callback); - }, "name", { value: "GetEnvironment" }); + CreateUserWorkloadsSecretRequest.create = function create(properties) { + return new CreateUserWorkloadsSecretRequest(properties); + }; /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest} message CreateUserWorkloadsSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateUserWorkloadsSecretRequest.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.userWorkloadsSecret != null && Object.hasOwnProperty.call(message, "userWorkloadsSecret")) + $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.encode(message.userWorkloadsSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listEnvironments}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef ListEnvironmentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse + * Encodes the specified CreateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest} message CreateUserWorkloadsSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - * @returns {undefined} - * @variation 1 + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { - return this.rpcCall(listEnvironments, $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse, request, callback); - }, "name", { value: "ListEnvironments" }); + CreateUserWorkloadsSecretRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CreateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateEnvironment}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef UpdateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Verifies a CreateUserWorkloadsSecretRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateUserWorkloadsSecretRequest.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.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify(message.userWorkloadsSecret); + if (error) + return "userWorkloadsSecret." + error; + } + return null; + }; /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a CreateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest} CreateUserWorkloadsSecretRequest */ - Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { - return this.rpcCall(updateEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateEnvironment" }); + CreateUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.userWorkloadsSecret != null) { + if (typeof object.userWorkloadsSecret !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest.userWorkloadsSecret: object expected"); + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.fromObject(object.userWorkloadsSecret); + } + return message; + }; /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a plain object from a CreateUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest} message CreateUserWorkloadsSecretRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CreateUserWorkloadsSecretRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.userWorkloadsSecret = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) + object.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.toObject(message.userWorkloadsSecret, options); + return object; + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteEnvironment}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef DeleteEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Converts this CreateUserWorkloadsSecretRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @instance + * @returns {Object.} JSON object */ + CreateUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Gets the default type url for CreateUserWorkloadsSecretRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { - return this.rpcCall(deleteEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteEnvironment" }); + CreateUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest"; + }; + + return CreateUserWorkloadsSecretRequest; + })(); + + v1beta1.GetUserWorkloadsSecretRequest = (function() { /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GetUserWorkloadsSecretRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IGetUserWorkloadsSecretRequest + * @property {string|null} [name] GetUserWorkloadsSecretRequest name */ /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|restartWebServer}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef RestartWebServerCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new GetUserWorkloadsSecretRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a GetUserWorkloadsSecretRequest. + * @implements IGetUserWorkloadsSecretRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest=} [properties] Properties to set */ + function GetUserWorkloadsSecretRequest(properties) { + if (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 RestartWebServer. - * @function restartWebServer - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * GetUserWorkloadsSecretRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} request RestartWebServerRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServerCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Environments.prototype.restartWebServer = function restartWebServer(request, callback) { - return this.rpcCall(restartWebServer, $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RestartWebServer" }); + GetUserWorkloadsSecretRequest.prototype.name = ""; /** - * Calls RestartWebServer. - * @function restartWebServer - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} request RestartWebServerRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new GetUserWorkloadsSecretRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest instance */ + GetUserWorkloadsSecretRequest.create = function create(properties) { + return new GetUserWorkloadsSecretRequest(properties); + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|checkUpgrade}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef CheckUpgradeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified GetUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest} message GetUserWorkloadsSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetUserWorkloadsSecretRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CheckUpgrade. - * @function checkUpgrade - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest} request CheckUpgradeRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgradeCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified GetUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest} message GetUserWorkloadsSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Environments.prototype.checkUpgrade = function checkUpgrade(request, callback) { - return this.rpcCall(checkUpgrade, $root.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CheckUpgrade" }); + GetUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CheckUpgrade. - * @function checkUpgrade - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest} request CheckUpgradeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetUserWorkloadsSecretRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|executeAirflowCommand}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef ExecuteAirflowCommandCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} [response] ExecuteAirflowCommandResponse + * Decodes a GetUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ExecuteAirflowCommand. - * @function executeAirflowCommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} request ExecuteAirflowCommandRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ExecuteAirflowCommandCallback} callback Node-style callback called with the error, if any, and ExecuteAirflowCommandResponse - * @returns {undefined} - * @variation 1 + * Verifies a GetUserWorkloadsSecretRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Environments.prototype.executeAirflowCommand = function executeAirflowCommand(request, callback) { - return this.rpcCall(executeAirflowCommand, $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse, request, callback); - }, "name", { value: "ExecuteAirflowCommand" }); + GetUserWorkloadsSecretRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls ExecuteAirflowCommand. - * @function executeAirflowCommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} request ExecuteAirflowCommandRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a GetUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest} GetUserWorkloadsSecretRequest */ + GetUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|stopAirflowCommand}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef StopAirflowCommandCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} [response] StopAirflowCommandResponse + * Creates a plain object from a GetUserWorkloadsSecretRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest} message GetUserWorkloadsSecretRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + GetUserWorkloadsSecretRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls StopAirflowCommand. - * @function stopAirflowCommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * Converts this GetUserWorkloadsSecretRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} request StopAirflowCommandRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.StopAirflowCommandCallback} callback Node-style callback called with the error, if any, and StopAirflowCommandResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Environments.prototype.stopAirflowCommand = function stopAirflowCommand(request, callback) { - return this.rpcCall(stopAirflowCommand, $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse, request, callback); - }, "name", { value: "StopAirflowCommand" }); + GetUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls StopAirflowCommand. - * @function stopAirflowCommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} request StopAirflowCommandRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for GetUserWorkloadsSecretRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest"; + }; + + return GetUserWorkloadsSecretRequest; + })(); + + v1beta1.ListUserWorkloadsSecretsRequest = (function() { /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|pollAirflowCommand}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef PollAirflowCommandCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} [response] PollAirflowCommandResponse + * Properties of a ListUserWorkloadsSecretsRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IListUserWorkloadsSecretsRequest + * @property {string|null} [parent] ListUserWorkloadsSecretsRequest parent + * @property {number|null} [pageSize] ListUserWorkloadsSecretsRequest pageSize + * @property {string|null} [pageToken] ListUserWorkloadsSecretsRequest pageToken */ /** - * Calls PollAirflowCommand. - * @function pollAirflowCommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} request PollAirflowCommandRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.PollAirflowCommandCallback} callback Node-style callback called with the error, if any, and PollAirflowCommandResponse - * @returns {undefined} - * @variation 1 + * Constructs a new ListUserWorkloadsSecretsRequest. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a ListUserWorkloadsSecretsRequest. + * @implements IListUserWorkloadsSecretsRequest + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest=} [properties] Properties to set */ - Object.defineProperty(Environments.prototype.pollAirflowCommand = function pollAirflowCommand(request, callback) { - return this.rpcCall(pollAirflowCommand, $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse, request, callback); - }, "name", { value: "PollAirflowCommand" }); + function ListUserWorkloadsSecretsRequest(properties) { + if (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 PollAirflowCommand. - * @function pollAirflowCommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * ListUserWorkloadsSecretsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} request PollAirflowCommandRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListUserWorkloadsSecretsRequest.prototype.parent = ""; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|saveSnapshot}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef SaveSnapshotCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * ListUserWorkloadsSecretsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @instance */ + ListUserWorkloadsSecretsRequest.prototype.pageSize = 0; /** - * Calls SaveSnapshot. - * @function saveSnapshot - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * ListUserWorkloadsSecretsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest} request SaveSnapshotRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.SaveSnapshotCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Environments.prototype.saveSnapshot = function saveSnapshot(request, callback) { - return this.rpcCall(saveSnapshot, $root.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "SaveSnapshot" }); + ListUserWorkloadsSecretsRequest.prototype.pageToken = ""; /** - * Calls SaveSnapshot. - * @function saveSnapshot - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest} request SaveSnapshotRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new ListUserWorkloadsSecretsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest instance */ + ListUserWorkloadsSecretsRequest.create = function create(properties) { + return new ListUserWorkloadsSecretsRequest(properties); + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|loadSnapshot}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef LoadSnapshotCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified ListUserWorkloadsSecretsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest} message ListUserWorkloadsSecretsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListUserWorkloadsSecretsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; /** - * Calls LoadSnapshot. - * @function loadSnapshot - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest} request LoadSnapshotRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.LoadSnapshotCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified ListUserWorkloadsSecretsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest} message ListUserWorkloadsSecretsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Environments.prototype.loadSnapshot = function loadSnapshot(request, callback) { - return this.rpcCall(loadSnapshot, $root.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "LoadSnapshot" }); + ListUserWorkloadsSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls LoadSnapshot. - * @function loadSnapshot - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest} request LoadSnapshotRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListUserWorkloadsSecretsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|databaseFailover}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef DatabaseFailoverCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a ListUserWorkloadsSecretsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListUserWorkloadsSecretsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DatabaseFailover. - * @function databaseFailover - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest} request DatabaseFailoverRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DatabaseFailoverCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a ListUserWorkloadsSecretsRequest message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Environments.prototype.databaseFailover = function databaseFailover(request, callback) { - return this.rpcCall(databaseFailover, $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DatabaseFailover" }); + ListUserWorkloadsSecretsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; /** - * Calls DatabaseFailover. - * @function databaseFailover - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest} request DatabaseFailoverRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListUserWorkloadsSecretsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest} ListUserWorkloadsSecretsRequest */ + ListUserWorkloadsSecretsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; /** - * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|fetchDatabaseProperties}. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @typedef FetchDatabasePropertiesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse} [response] FetchDatabasePropertiesResponse + * Creates a plain object from a ListUserWorkloadsSecretsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest} message ListUserWorkloadsSecretsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListUserWorkloadsSecretsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; /** - * Calls FetchDatabaseProperties. - * @function fetchDatabaseProperties - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments + * Converts this ListUserWorkloadsSecretsRequest to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest} request FetchDatabasePropertiesRequest message or plain object - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.FetchDatabasePropertiesCallback} callback Node-style callback called with the error, if any, and FetchDatabasePropertiesResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Environments.prototype.fetchDatabaseProperties = function fetchDatabaseProperties(request, callback) { - return this.rpcCall(fetchDatabaseProperties, $root.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse, request, callback); - }, "name", { value: "FetchDatabaseProperties" }); + ListUserWorkloadsSecretsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls FetchDatabaseProperties. - * @function fetchDatabaseProperties - * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments - * @instance - * @param {google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest} request FetchDatabasePropertiesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ListUserWorkloadsSecretsRequest + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListUserWorkloadsSecretsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest"; + }; - return Environments; + return ListUserWorkloadsSecretsRequest; })(); - v1beta1.CreateEnvironmentRequest = (function() { + v1beta1.UpdateUserWorkloadsSecretRequest = (function() { /** - * Properties of a CreateEnvironmentRequest. + * Properties of an UpdateUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface ICreateEnvironmentRequest - * @property {string|null} [parent] CreateEnvironmentRequest parent - * @property {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment + * @interface IUpdateUserWorkloadsSecretRequest + * @property {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null} [userWorkloadsSecret] UpdateUserWorkloadsSecretRequest userWorkloadsSecret */ /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new UpdateUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a CreateEnvironmentRequest. - * @implements ICreateEnvironmentRequest + * @classdesc Represents an UpdateUserWorkloadsSecretRequest. + * @implements IUpdateUserWorkloadsSecretRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest=} [properties] Properties to set */ - function CreateEnvironmentRequest(properties) { + function UpdateUserWorkloadsSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14770,89 +25995,75 @@ } /** - * CreateEnvironmentRequest parent. - * @member {string} parent - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest - * @instance - */ - CreateEnvironmentRequest.prototype.parent = ""; - - /** - * CreateEnvironmentRequest environment. - * @member {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * UpdateUserWorkloadsSecretRequest userWorkloadsSecret. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret|null|undefined} userWorkloadsSecret + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @instance */ - CreateEnvironmentRequest.prototype.environment = null; + UpdateUserWorkloadsSecretRequest.prototype.userWorkloadsSecret = null; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new UpdateUserWorkloadsSecretRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest instance */ - CreateEnvironmentRequest.create = function create(properties) { - return new CreateEnvironmentRequest(properties); + UpdateUserWorkloadsSecretRequest.create = function create(properties) { + return new UpdateUserWorkloadsSecretRequest(properties); }; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest} message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encode = function encode(message, writer) { + UpdateUserWorkloadsSecretRequest.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.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.userWorkloadsSecret != null && Object.hasOwnProperty.call(message, "userWorkloadsSecret")) + $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.encode(message.userWorkloadsSecret, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest} message UpdateUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decode = function decode(reader, length) { + UpdateUserWorkloadsSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32()); + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.decode(reader, reader.uint32()); break; } default: @@ -14864,136 +26075,127 @@ }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies an UpdateUserWorkloadsSecretRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEnvironmentRequest.verify = function verify(message) { + UpdateUserWorkloadsSecretRequest.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.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environment); + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify(message.userWorkloadsSecret); if (error) - return "environment." + error; + return "userWorkloadsSecret." + error; } return null; }; /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest} UpdateUserWorkloadsSecretRequest */ - CreateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest) + UpdateUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environment); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest(); + if (object.userWorkloadsSecret != null) { + if (typeof object.userWorkloadsSecret !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest.userWorkloadsSecret: object expected"); + message.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.fromObject(object.userWorkloadsSecret); } return message; }; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateUserWorkloadsSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest} message UpdateUserWorkloadsSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEnvironmentRequest.toObject = function toObject(message, options) { + UpdateUserWorkloadsSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.environment = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environment, options); + if (options.defaults) + object.userWorkloadsSecret = null; + if (message.userWorkloadsSecret != null && message.hasOwnProperty("userWorkloadsSecret")) + object.userWorkloadsSecret = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.toObject(message.userWorkloadsSecret, options); return object; }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this UpdateUserWorkloadsSecretRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @instance * @returns {Object.} JSON object */ - CreateEnvironmentRequest.prototype.toJSON = function toJSON() { + UpdateUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateEnvironmentRequest + * Gets the default type url for UpdateUserWorkloadsSecretRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest"; }; - return CreateEnvironmentRequest; + return UpdateUserWorkloadsSecretRequest; })(); - v1beta1.GetEnvironmentRequest = (function() { + v1beta1.DeleteUserWorkloadsSecretRequest = (function() { /** - * Properties of a GetEnvironmentRequest. + * Properties of a DeleteUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IGetEnvironmentRequest - * @property {string|null} [name] GetEnvironmentRequest name + * @interface IDeleteUserWorkloadsSecretRequest + * @property {string|null} [name] DeleteUserWorkloadsSecretRequest name */ /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new DeleteUserWorkloadsSecretRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a GetEnvironmentRequest. - * @implements IGetEnvironmentRequest + * @classdesc Represents a DeleteUserWorkloadsSecretRequest. + * @implements IDeleteUserWorkloadsSecretRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest=} [properties] Properties to set */ - function GetEnvironmentRequest(properties) { + function DeleteUserWorkloadsSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15001,35 +26203,35 @@ } /** - * GetEnvironmentRequest name. + * DeleteUserWorkloadsSecretRequest name. * @member {string} name - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @instance */ - GetEnvironmentRequest.prototype.name = ""; + DeleteUserWorkloadsSecretRequest.prototype.name = ""; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new DeleteUserWorkloadsSecretRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest instance */ - GetEnvironmentRequest.create = function create(properties) { - return new GetEnvironmentRequest(properties); + DeleteUserWorkloadsSecretRequest.create = function create(properties) { + return new DeleteUserWorkloadsSecretRequest(properties); }; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsSecretRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest} message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encode = function encode(message, writer) { + DeleteUserWorkloadsSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -15038,33 +26240,33 @@ }; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsSecretRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest} message DeleteUserWorkloadsSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteUserWorkloadsSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decode = function decode(reader, length) { + DeleteUserWorkloadsSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15081,30 +26283,30 @@ }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteUserWorkloadsSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a DeleteUserWorkloadsSecretRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnvironmentRequest.verify = function verify(message) { + DeleteUserWorkloadsSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -15114,32 +26316,32 @@ }; /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest} DeleteUserWorkloadsSecretRequest */ - GetEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest) + DeleteUserWorkloadsSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest(); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteUserWorkloadsSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest} message DeleteUserWorkloadsSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnvironmentRequest.toObject = function toObject(message, options) { + DeleteUserWorkloadsSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -15151,54 +26353,53 @@ }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this DeleteUserWorkloadsSecretRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @instance * @returns {Object.} JSON object */ - GetEnvironmentRequest.prototype.toJSON = function toJSON() { + DeleteUserWorkloadsSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetEnvironmentRequest + * Gets the default type url for DeleteUserWorkloadsSecretRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteUserWorkloadsSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest"; }; - return GetEnvironmentRequest; + return DeleteUserWorkloadsSecretRequest; })(); - v1beta1.ListEnvironmentsRequest = (function() { + v1beta1.CreateUserWorkloadsConfigMapRequest = (function() { /** - * Properties of a ListEnvironmentsRequest. + * Properties of a CreateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IListEnvironmentsRequest - * @property {string|null} [parent] ListEnvironmentsRequest parent - * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize - * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken + * @interface ICreateUserWorkloadsConfigMapRequest + * @property {string|null} [parent] CreateUserWorkloadsConfigMapRequest parent + * @property {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null} [userWorkloadsConfigMap] CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new CreateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a ListEnvironmentsRequest. - * @implements IListEnvironmentsRequest + * @classdesc Represents a CreateUserWorkloadsConfigMapRequest. + * @implements ICreateUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function ListEnvironmentsRequest(properties) { + function CreateUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15206,90 +26407,80 @@ } /** - * ListEnvironmentsRequest parent. + * CreateUserWorkloadsConfigMapRequest parent. * @member {string} parent - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest - * @instance - */ - ListEnvironmentsRequest.prototype.parent = ""; - - /** - * ListEnvironmentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @instance */ - ListEnvironmentsRequest.prototype.pageSize = 0; + CreateUserWorkloadsConfigMapRequest.prototype.parent = ""; /** - * ListEnvironmentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * CreateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null|undefined} userWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @instance */ - ListEnvironmentsRequest.prototype.pageToken = ""; + CreateUserWorkloadsConfigMapRequest.prototype.userWorkloadsConfigMap = null; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new CreateUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest instance */ - ListEnvironmentsRequest.create = function create(properties) { - return new ListEnvironmentsRequest(properties); + CreateUserWorkloadsConfigMapRequest.create = function create(properties) { + return new CreateUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified CreateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest} message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encode = function encode(message, writer) { + CreateUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.userWorkloadsConfigMap != null && Object.hasOwnProperty.call(message, "userWorkloadsConfigMap")) + $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.encode(message.userWorkloadsConfigMap, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified CreateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest} message CreateUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decode = function decode(reader, length) { + CreateUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15298,11 +26489,7 @@ break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.decode(reader, reader.uint32()); break; } default: @@ -15314,141 +26501,136 @@ }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a CreateUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsRequest.verify = function verify(message) { + CreateUserWorkloadsConfigMapRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify(message.userWorkloadsConfigMap); + if (error) + return "userWorkloadsConfigMap." + error; + } return null; }; /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest} CreateUserWorkloadsConfigMapRequest */ - ListEnvironmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest) + CreateUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest(); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.userWorkloadsConfigMap != null) { + if (typeof object.userWorkloadsConfigMap !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest.userWorkloadsConfigMap: object expected"); + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.fromObject(object.userWorkloadsConfigMap); + } return message; }; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest} message CreateUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsRequest.toObject = function toObject(message, options) { + CreateUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.userWorkloadsConfigMap = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) + object.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.toObject(message.userWorkloadsConfigMap, options); return object; }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this CreateUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - ListEnvironmentsRequest.prototype.toJSON = function toJSON() { + CreateUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListEnvironmentsRequest + * Gets the default type url for CreateUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListEnvironmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest"; }; - return ListEnvironmentsRequest; + return CreateUserWorkloadsConfigMapRequest; })(); - v1beta1.ListEnvironmentsResponse = (function() { + v1beta1.GetUserWorkloadsConfigMapRequest = (function() { /** - * Properties of a ListEnvironmentsResponse. + * Properties of a GetUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IListEnvironmentsResponse - * @property {Array.|null} [environments] ListEnvironmentsResponse environments - * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + * @interface IGetUserWorkloadsConfigMapRequest + * @property {string|null} [name] GetUserWorkloadsConfigMapRequest name */ /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new GetUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a ListEnvironmentsResponse. - * @implements IListEnvironmentsResponse + * @classdesc Represents a GetUserWorkloadsConfigMapRequest. + * @implements IGetUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function ListEnvironmentsResponse(properties) { - this.environments = []; + function GetUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15456,92 +26638,75 @@ } /** - * ListEnvironmentsResponse environments. - * @member {Array.} environments - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse - * @instance - */ - ListEnvironmentsResponse.prototype.environments = $util.emptyArray; - - /** - * ListEnvironmentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * GetUserWorkloadsConfigMapRequest name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @instance */ - ListEnvironmentsResponse.prototype.nextPageToken = ""; + GetUserWorkloadsConfigMapRequest.prototype.name = ""; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new GetUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest instance */ - ListEnvironmentsResponse.create = function create(properties) { - return new ListEnvironmentsResponse(properties); + GetUserWorkloadsConfigMapRequest.create = function create(properties) { + return new GetUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified GetUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest} message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encode = function encode(message, writer) { + GetUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified GetUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest} message GetUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decode = function decode(reader, length) { + GetUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -15553,148 +26718,124 @@ }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { + GetUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a GetUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsResponse.verify = function verify(message) { + GetUserWorkloadsConfigMapRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environments[i]); - if (error) - return "environments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest} GetUserWorkloadsConfigMapRequest */ - ListEnvironmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse) + GetUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environments[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest} message GetUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsResponse.toObject = function toObject(message, options) { + GetUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.environments = []; if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this GetUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + GetUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListEnvironmentsResponse + * Gets the default type url for GetUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListEnvironmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest"; }; - return ListEnvironmentsResponse; + return GetUserWorkloadsConfigMapRequest; })(); - v1beta1.DeleteEnvironmentRequest = (function() { + v1beta1.ListUserWorkloadsConfigMapsRequest = (function() { /** - * Properties of a DeleteEnvironmentRequest. + * Properties of a ListUserWorkloadsConfigMapsRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IDeleteEnvironmentRequest - * @property {string|null} [name] DeleteEnvironmentRequest name + * @interface IListUserWorkloadsConfigMapsRequest + * @property {string|null} [parent] ListUserWorkloadsConfigMapsRequest parent + * @property {number|null} [pageSize] ListUserWorkloadsConfigMapsRequest pageSize + * @property {string|null} [pageToken] ListUserWorkloadsConfigMapsRequest pageToken */ /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new ListUserWorkloadsConfigMapsRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a DeleteEnvironmentRequest. - * @implements IDeleteEnvironmentRequest + * @classdesc Represents a ListUserWorkloadsConfigMapsRequest. + * @implements IListUserWorkloadsConfigMapsRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest=} [properties] Properties to set */ - function DeleteEnvironmentRequest(properties) { + function ListUserWorkloadsConfigMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15702,75 +26843,103 @@ } /** - * DeleteEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * ListUserWorkloadsConfigMapsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @instance */ - DeleteEnvironmentRequest.prototype.name = ""; + ListUserWorkloadsConfigMapsRequest.prototype.parent = ""; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * ListUserWorkloadsConfigMapsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest + * @instance + */ + ListUserWorkloadsConfigMapsRequest.prototype.pageSize = 0; + + /** + * ListUserWorkloadsConfigMapsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest + * @instance + */ + ListUserWorkloadsConfigMapsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListUserWorkloadsConfigMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest instance */ - DeleteEnvironmentRequest.create = function create(properties) { - return new DeleteEnvironmentRequest(properties); + ListUserWorkloadsConfigMapsRequest.create = function create(properties) { + return new ListUserWorkloadsConfigMapsRequest(properties); }; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest} message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encode = function encode(message, writer) { + ListUserWorkloadsConfigMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest} message ListUserWorkloadsConfigMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUserWorkloadsConfigMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decode = function decode(reader, length) { + ListUserWorkloadsConfigMapsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -15782,124 +26951,139 @@ }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + ListUserWorkloadsConfigMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a ListUserWorkloadsConfigMapsRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnvironmentRequest.verify = function verify(message) { + ListUserWorkloadsConfigMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest} ListUserWorkloadsConfigMapsRequest */ - DeleteEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest) + ListUserWorkloadsConfigMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUserWorkloadsConfigMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest} message ListUserWorkloadsConfigMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnvironmentRequest.toObject = function toObject(message, options) { + ListUserWorkloadsConfigMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this ListUserWorkloadsConfigMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @instance * @returns {Object.} JSON object */ - DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + ListUserWorkloadsConfigMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteEnvironmentRequest + * Gets the default type url for ListUserWorkloadsConfigMapsRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUserWorkloadsConfigMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest"; }; - return DeleteEnvironmentRequest; + return ListUserWorkloadsConfigMapsRequest; })(); - v1beta1.UpdateEnvironmentRequest = (function() { + v1beta1.UpdateUserWorkloadsConfigMapRequest = (function() { /** - * Properties of an UpdateEnvironmentRequest. + * Properties of an UpdateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IUpdateEnvironmentRequest - * @property {string|null} [name] UpdateEnvironmentRequest name - * @property {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask + * @interface IUpdateUserWorkloadsConfigMapRequest + * @property {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null} [userWorkloadsConfigMap] UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap */ /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new UpdateUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents an UpdateEnvironmentRequest. - * @implements IUpdateEnvironmentRequest + * @classdesc Represents an UpdateUserWorkloadsConfigMapRequest. + * @implements IUpdateUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function UpdateEnvironmentRequest(properties) { + function UpdateUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15907,103 +27091,75 @@ } /** - * UpdateEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest - * @instance - */ - UpdateEnvironmentRequest.prototype.name = ""; - - /** - * UpdateEnvironmentRequest environment. - * @member {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest - * @instance - */ - UpdateEnvironmentRequest.prototype.environment = null; - - /** - * UpdateEnvironmentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * UpdateUserWorkloadsConfigMapRequest userWorkloadsConfigMap. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap|null|undefined} userWorkloadsConfigMap + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @instance */ - UpdateEnvironmentRequest.prototype.updateMask = null; + UpdateUserWorkloadsConfigMapRequest.prototype.userWorkloadsConfigMap = null; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new UpdateUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest instance */ - UpdateEnvironmentRequest.create = function create(properties) { - return new UpdateEnvironmentRequest(properties); + UpdateUserWorkloadsConfigMapRequest.create = function create(properties) { + return new UpdateUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest} message UpdateUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encode = function encode(message, writer) { + UpdateUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.userWorkloadsConfigMap != null && Object.hasOwnProperty.call(message, "userWorkloadsConfigMap")) + $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.encode(message.userWorkloadsConfigMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest} message UpdateUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decode = function decode(reader, length) { + UpdateUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.name = reader.string(); - break; - } case 1: { - message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32()); - break; - } - case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.decode(reader, reader.uint32()); break; } default: @@ -16015,149 +27171,127 @@ }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies an UpdateUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEnvironmentRequest.verify = function verify(message) { + UpdateUserWorkloadsConfigMapRequest.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.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify(message.userWorkloadsConfigMap); if (error) - return "updateMask." + error; + return "userWorkloadsConfigMap." + error; } return null; }; /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest} UpdateUserWorkloadsConfigMapRequest */ - UpdateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest) + UpdateUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest(); + if (object.userWorkloadsConfigMap != null) { + if (typeof object.userWorkloadsConfigMap !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest.userWorkloadsConfigMap: object expected"); + message.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.fromObject(object.userWorkloadsConfigMap); } return message; }; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest} message UpdateUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnvironmentRequest.toObject = function toObject(message, options) { + UpdateUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.environment = null; - object.name = ""; - object.updateMask = null; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environment, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.userWorkloadsConfigMap = null; + if (message.userWorkloadsConfigMap != null && message.hasOwnProperty("userWorkloadsConfigMap")) + object.userWorkloadsConfigMap = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.toObject(message.userWorkloadsConfigMap, options); return object; }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this UpdateUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + UpdateUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateEnvironmentRequest + * Gets the default type url for UpdateUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest"; }; - return UpdateEnvironmentRequest; + return UpdateUserWorkloadsConfigMapRequest; })(); - v1beta1.RestartWebServerRequest = (function() { + v1beta1.DeleteUserWorkloadsConfigMapRequest = (function() { /** - * Properties of a RestartWebServerRequest. + * Properties of a DeleteUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IRestartWebServerRequest - * @property {string|null} [name] RestartWebServerRequest name + * @interface IDeleteUserWorkloadsConfigMapRequest + * @property {string|null} [name] DeleteUserWorkloadsConfigMapRequest name */ /** - * Constructs a new RestartWebServerRequest. + * Constructs a new DeleteUserWorkloadsConfigMapRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a RestartWebServerRequest. - * @implements IRestartWebServerRequest + * @classdesc Represents a DeleteUserWorkloadsConfigMapRequest. + * @implements IDeleteUserWorkloadsConfigMapRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest=} [properties] Properties to set */ - function RestartWebServerRequest(properties) { + function DeleteUserWorkloadsConfigMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16165,35 +27299,35 @@ } /** - * RestartWebServerRequest name. + * DeleteUserWorkloadsConfigMapRequest name. * @member {string} name - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @instance */ - RestartWebServerRequest.prototype.name = ""; + DeleteUserWorkloadsConfigMapRequest.prototype.name = ""; /** - * Creates a new RestartWebServerRequest instance using the specified properties. + * Creates a new DeleteUserWorkloadsConfigMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest instance */ - RestartWebServerRequest.create = function create(properties) { - return new RestartWebServerRequest(properties); + DeleteUserWorkloadsConfigMapRequest.create = function create(properties) { + return new DeleteUserWorkloadsConfigMapRequest(properties); }; /** - * Encodes the specified RestartWebServerRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} message RestartWebServerRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest} message DeleteUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestartWebServerRequest.encode = function encode(message, writer) { + DeleteUserWorkloadsConfigMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -16202,33 +27336,33 @@ }; /** - * Encodes the specified RestartWebServerRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages. + * Encodes the specified DeleteUserWorkloadsConfigMapRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} message RestartWebServerRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest} message DeleteUserWorkloadsConfigMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestartWebServerRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteUserWorkloadsConfigMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestartWebServerRequest message from the specified reader or buffer. + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestartWebServerRequest.decode = function decode(reader, length) { + DeleteUserWorkloadsConfigMapRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16245,30 +27379,30 @@ }; /** - * Decodes a RestartWebServerRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserWorkloadsConfigMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestartWebServerRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteUserWorkloadsConfigMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestartWebServerRequest message. + * Verifies a DeleteUserWorkloadsConfigMapRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestartWebServerRequest.verify = function verify(message) { + DeleteUserWorkloadsConfigMapRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -16278,32 +27412,32 @@ }; /** - * Creates a RestartWebServerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserWorkloadsConfigMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest} DeleteUserWorkloadsConfigMapRequest */ - RestartWebServerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest) + DeleteUserWorkloadsConfigMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest(); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a RestartWebServerRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteUserWorkloadsConfigMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} message RestartWebServerRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest} message DeleteUserWorkloadsConfigMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestartWebServerRequest.toObject = function toObject(message, options) { + DeleteUserWorkloadsConfigMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -16315,56 +27449,54 @@ }; /** - * Converts this RestartWebServerRequest to JSON. + * Converts this DeleteUserWorkloadsConfigMapRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @instance * @returns {Object.} JSON object */ - RestartWebServerRequest.prototype.toJSON = function toJSON() { + DeleteUserWorkloadsConfigMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestartWebServerRequest + * Gets the default type url for DeleteUserWorkloadsConfigMapRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestartWebServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteUserWorkloadsConfigMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest"; }; - return RestartWebServerRequest; + return DeleteUserWorkloadsConfigMapRequest; })(); - v1beta1.ExecuteAirflowCommandRequest = (function() { + v1beta1.UserWorkloadsSecret = (function() { /** - * Properties of an ExecuteAirflowCommandRequest. + * Properties of a UserWorkloadsSecret. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IExecuteAirflowCommandRequest - * @property {string|null} [environment] ExecuteAirflowCommandRequest environment - * @property {string|null} [command] ExecuteAirflowCommandRequest command - * @property {string|null} [subcommand] ExecuteAirflowCommandRequest subcommand - * @property {Array.|null} [parameters] ExecuteAirflowCommandRequest parameters + * @interface IUserWorkloadsSecret + * @property {string|null} [name] UserWorkloadsSecret name + * @property {Object.|null} [data] UserWorkloadsSecret data */ /** - * Constructs a new ExecuteAirflowCommandRequest. + * Constructs a new UserWorkloadsSecret. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents an ExecuteAirflowCommandRequest. - * @implements IExecuteAirflowCommandRequest + * @classdesc Represents a UserWorkloadsSecret. + * @implements IUserWorkloadsSecret * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret=} [properties] Properties to set */ - function ExecuteAirflowCommandRequest(properties) { - this.parameters = []; + function UserWorkloadsSecret(properties) { + this.data = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16372,120 +27504,109 @@ } /** - * ExecuteAirflowCommandRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest - * @instance - */ - ExecuteAirflowCommandRequest.prototype.environment = ""; - - /** - * ExecuteAirflowCommandRequest command. - * @member {string} command - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest - * @instance - */ - ExecuteAirflowCommandRequest.prototype.command = ""; - - /** - * ExecuteAirflowCommandRequest subcommand. - * @member {string} subcommand - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * UserWorkloadsSecret name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @instance */ - ExecuteAirflowCommandRequest.prototype.subcommand = ""; + UserWorkloadsSecret.prototype.name = ""; /** - * ExecuteAirflowCommandRequest parameters. - * @member {Array.} parameters - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * UserWorkloadsSecret data. + * @member {Object.} data + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @instance */ - ExecuteAirflowCommandRequest.prototype.parameters = $util.emptyArray; + UserWorkloadsSecret.prototype.data = $util.emptyObject; /** - * Creates a new ExecuteAirflowCommandRequest instance using the specified properties. + * Creates a new UserWorkloadsSecret instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} UserWorkloadsSecret instance */ - ExecuteAirflowCommandRequest.create = function create(properties) { - return new ExecuteAirflowCommandRequest(properties); + UserWorkloadsSecret.create = function create(properties) { + return new UserWorkloadsSecret(properties); }; /** - * Encodes the specified ExecuteAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. + * Encodes the specified UserWorkloadsSecret message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} message ExecuteAirflowCommandRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret} message UserWorkloadsSecret message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteAirflowCommandRequest.encode = function encode(message, writer) { + UserWorkloadsSecret.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.command != null && Object.hasOwnProperty.call(message, "command")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.command); - if (message.subcommand != null && Object.hasOwnProperty.call(message, "subcommand")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcommand); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parameters[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + for (var keys = Object.keys(message.data), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.data[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ExecuteAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.verify|verify} messages. + * Encodes the specified UserWorkloadsSecret message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandRequest} message ExecuteAirflowCommandRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret} message UserWorkloadsSecret message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteAirflowCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + UserWorkloadsSecret.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteAirflowCommandRequest.decode = function decode(reader, length) { + UserWorkloadsSecret.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.name = reader.string(); break; } case 2: { - message.command = reader.string(); - break; - } - case 3: { - message.subcommand = reader.string(); - break; - } - case 4: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push(reader.string()); + if (message.data === $util.emptyObject) + message.data = {}; + 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.data[key] = value; break; } default: @@ -16497,163 +27618,147 @@ }; /** - * Decodes an ExecuteAirflowCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsSecret message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} UserWorkloadsSecret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteAirflowCommandRequest.decodeDelimited = function decodeDelimited(reader) { + UserWorkloadsSecret.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteAirflowCommandRequest message. + * Verifies a UserWorkloadsSecret message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteAirflowCommandRequest.verify = function verify(message) { + UserWorkloadsSecret.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.command != null && message.hasOwnProperty("command")) - if (!$util.isString(message.command)) - return "command: string expected"; - if (message.subcommand != null && message.hasOwnProperty("subcommand")) - if (!$util.isString(message.subcommand)) - return "subcommand: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) - if (!$util.isString(message.parameters[i])) - return "parameters: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + if (!$util.isObject(message.data)) + return "data: object expected"; + var key = Object.keys(message.data); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.data[key[i]])) + return "data: string{k:string} expected"; } return null; }; /** - * Creates an ExecuteAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsSecret message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} ExecuteAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} UserWorkloadsSecret */ - ExecuteAirflowCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest) + UserWorkloadsSecret.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.command != null) - message.command = String(object.command); - if (object.subcommand != null) - message.subcommand = String(object.subcommand); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) - message.parameters[i] = String(object.parameters[i]); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret(); + if (object.name != null) + message.name = String(object.name); + if (object.data) { + if (typeof object.data !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.data: object expected"); + message.data = {}; + for (var keys = Object.keys(object.data), i = 0; i < keys.length; ++i) + message.data[keys[i]] = String(object.data[keys[i]]); } return message; }; /** - * Creates a plain object from an ExecuteAirflowCommandRequest message. Also converts values to other types if specified. + * Creates a plain object from a UserWorkloadsSecret message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest} message ExecuteAirflowCommandRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} message UserWorkloadsSecret * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteAirflowCommandRequest.toObject = function toObject(message, options) { + UserWorkloadsSecret.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - if (options.defaults) { - object.environment = ""; - object.command = ""; - object.subcommand = ""; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.command != null && message.hasOwnProperty("command")) - object.command = message.command; - if (message.subcommand != null && message.hasOwnProperty("subcommand")) - object.subcommand = message.subcommand; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = message.parameters[j]; + if (options.objects || options.defaults) + object.data = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.data && (keys2 = Object.keys(message.data)).length) { + object.data = {}; + for (var j = 0; j < keys2.length; ++j) + object.data[keys2[j]] = message.data[keys2[j]]; } return object; }; /** - * Converts this ExecuteAirflowCommandRequest to JSON. + * Converts this UserWorkloadsSecret to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @instance * @returns {Object.} JSON object */ - ExecuteAirflowCommandRequest.prototype.toJSON = function toJSON() { + UserWorkloadsSecret.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteAirflowCommandRequest + * Gets the default type url for UserWorkloadsSecret * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteAirflowCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserWorkloadsSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret"; }; - return ExecuteAirflowCommandRequest; + return UserWorkloadsSecret; })(); - v1beta1.ExecuteAirflowCommandResponse = (function() { + v1beta1.ListUserWorkloadsSecretsResponse = (function() { /** - * Properties of an ExecuteAirflowCommandResponse. + * Properties of a ListUserWorkloadsSecretsResponse. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IExecuteAirflowCommandResponse - * @property {string|null} [executionId] ExecuteAirflowCommandResponse executionId - * @property {string|null} [pod] ExecuteAirflowCommandResponse pod - * @property {string|null} [podNamespace] ExecuteAirflowCommandResponse podNamespace - * @property {string|null} [error] ExecuteAirflowCommandResponse error + * @interface IListUserWorkloadsSecretsResponse + * @property {Array.|null} [userWorkloadsSecrets] ListUserWorkloadsSecretsResponse userWorkloadsSecrets + * @property {string|null} [nextPageToken] ListUserWorkloadsSecretsResponse nextPageToken */ /** - * Constructs a new ExecuteAirflowCommandResponse. + * Constructs a new ListUserWorkloadsSecretsResponse. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents an ExecuteAirflowCommandResponse. - * @implements IExecuteAirflowCommandResponse + * @classdesc Represents a ListUserWorkloadsSecretsResponse. + * @implements IListUserWorkloadsSecretsResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse=} [properties] Properties to set */ - function ExecuteAirflowCommandResponse(properties) { + function ListUserWorkloadsSecretsResponse(properties) { + this.userWorkloadsSecrets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16661,117 +27766,92 @@ } /** - * ExecuteAirflowCommandResponse executionId. - * @member {string} executionId - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse - * @instance - */ - ExecuteAirflowCommandResponse.prototype.executionId = ""; - - /** - * ExecuteAirflowCommandResponse pod. - * @member {string} pod - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse - * @instance - */ - ExecuteAirflowCommandResponse.prototype.pod = ""; - - /** - * ExecuteAirflowCommandResponse podNamespace. - * @member {string} podNamespace - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * ListUserWorkloadsSecretsResponse userWorkloadsSecrets. + * @member {Array.} userWorkloadsSecrets + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @instance */ - ExecuteAirflowCommandResponse.prototype.podNamespace = ""; + ListUserWorkloadsSecretsResponse.prototype.userWorkloadsSecrets = $util.emptyArray; /** - * ExecuteAirflowCommandResponse error. - * @member {string} error - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * ListUserWorkloadsSecretsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @instance */ - ExecuteAirflowCommandResponse.prototype.error = ""; + ListUserWorkloadsSecretsResponse.prototype.nextPageToken = ""; /** - * Creates a new ExecuteAirflowCommandResponse instance using the specified properties. + * Creates a new ListUserWorkloadsSecretsResponse instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse instance */ - ExecuteAirflowCommandResponse.create = function create(properties) { - return new ExecuteAirflowCommandResponse(properties); + ListUserWorkloadsSecretsResponse.create = function create(properties) { + return new ListUserWorkloadsSecretsResponse(properties); }; /** - * Encodes the specified ExecuteAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. + * Encodes the specified ListUserWorkloadsSecretsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse} message ExecuteAirflowCommandResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse} message ListUserWorkloadsSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteAirflowCommandResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionId); - if (message.pod != null && Object.hasOwnProperty.call(message, "pod")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pod); - if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.podNamespace); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.error); + * @returns {$protobuf.Writer} Writer + */ + ListUserWorkloadsSecretsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userWorkloadsSecrets != null && message.userWorkloadsSecrets.length) + for (var i = 0; i < message.userWorkloadsSecrets.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.encode(message.userWorkloadsSecrets[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 ExecuteAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse.verify|verify} messages. + * Encodes the specified ListUserWorkloadsSecretsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IExecuteAirflowCommandResponse} message ExecuteAirflowCommandResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse} message ListUserWorkloadsSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteAirflowCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListUserWorkloadsSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer. + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteAirflowCommandResponse.decode = function decode(reader, length) { + ListUserWorkloadsSecretsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.executionId = reader.string(); + if (!(message.userWorkloadsSecrets && message.userWorkloadsSecrets.length)) + message.userWorkloadsSecrets = []; + message.userWorkloadsSecrets.push($root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.decode(reader, reader.uint32())); break; } case 2: { - message.pod = reader.string(); - break; - } - case 3: { - message.podNamespace = reader.string(); - break; - } - case 4: { - message.error = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -16783,151 +27863,150 @@ }; /** - * Decodes an ExecuteAirflowCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsSecretsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteAirflowCommandResponse.decodeDelimited = function decodeDelimited(reader) { + ListUserWorkloadsSecretsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteAirflowCommandResponse message. + * Verifies a ListUserWorkloadsSecretsResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteAirflowCommandResponse.verify = function verify(message) { + ListUserWorkloadsSecretsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: string expected"; - if (message.pod != null && message.hasOwnProperty("pod")) - if (!$util.isString(message.pod)) - return "pod: string expected"; - if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) - if (!$util.isString(message.podNamespace)) - return "podNamespace: string expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; + if (message.userWorkloadsSecrets != null && message.hasOwnProperty("userWorkloadsSecrets")) { + if (!Array.isArray(message.userWorkloadsSecrets)) + return "userWorkloadsSecrets: array expected"; + for (var i = 0; i < message.userWorkloadsSecrets.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.verify(message.userWorkloadsSecrets[i]); + if (error) + return "userWorkloadsSecrets." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExecuteAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsSecretsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} ExecuteAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse} ListUserWorkloadsSecretsResponse */ - ExecuteAirflowCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse) + ListUserWorkloadsSecretsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse(); - if (object.executionId != null) - message.executionId = String(object.executionId); - if (object.pod != null) - message.pod = String(object.pod); - if (object.podNamespace != null) - message.podNamespace = String(object.podNamespace); - if (object.error != null) - message.error = String(object.error); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse(); + if (object.userWorkloadsSecrets) { + if (!Array.isArray(object.userWorkloadsSecrets)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse.userWorkloadsSecrets: array expected"); + message.userWorkloadsSecrets = []; + for (var i = 0; i < object.userWorkloadsSecrets.length; ++i) { + if (typeof object.userWorkloadsSecrets[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse.userWorkloadsSecrets: object expected"); + message.userWorkloadsSecrets[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.fromObject(object.userWorkloadsSecrets[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExecuteAirflowCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListUserWorkloadsSecretsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse} message ExecuteAirflowCommandResponse + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse} message ListUserWorkloadsSecretsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteAirflowCommandResponse.toObject = function toObject(message, options) { + ListUserWorkloadsSecretsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.executionId = ""; - object.pod = ""; - object.podNamespace = ""; - object.error = ""; + if (options.arrays || options.defaults) + object.userWorkloadsSecrets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userWorkloadsSecrets && message.userWorkloadsSecrets.length) { + object.userWorkloadsSecrets = []; + for (var j = 0; j < message.userWorkloadsSecrets.length; ++j) + object.userWorkloadsSecrets[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret.toObject(message.userWorkloadsSecrets[j], options); } - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; - if (message.pod != null && message.hasOwnProperty("pod")) - object.pod = message.pod; - if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) - object.podNamespace = message.podNamespace; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExecuteAirflowCommandResponse to JSON. + * Converts this ListUserWorkloadsSecretsResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @instance * @returns {Object.} JSON object */ - ExecuteAirflowCommandResponse.prototype.toJSON = function toJSON() { + ListUserWorkloadsSecretsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteAirflowCommandResponse + * Gets the default type url for ListUserWorkloadsSecretsResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteAirflowCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUserWorkloadsSecretsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse"; }; - return ExecuteAirflowCommandResponse; + return ListUserWorkloadsSecretsResponse; })(); - v1beta1.StopAirflowCommandRequest = (function() { + v1beta1.UserWorkloadsConfigMap = (function() { /** - * Properties of a StopAirflowCommandRequest. + * Properties of a UserWorkloadsConfigMap. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IStopAirflowCommandRequest - * @property {string|null} [environment] StopAirflowCommandRequest environment - * @property {string|null} [executionId] StopAirflowCommandRequest executionId - * @property {string|null} [pod] StopAirflowCommandRequest pod - * @property {string|null} [podNamespace] StopAirflowCommandRequest podNamespace - * @property {boolean|null} [force] StopAirflowCommandRequest force + * @interface IUserWorkloadsConfigMap + * @property {string|null} [name] UserWorkloadsConfigMap name + * @property {Object.|null} [data] UserWorkloadsConfigMap data */ /** - * Constructs a new StopAirflowCommandRequest. + * Constructs a new UserWorkloadsConfigMap. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a StopAirflowCommandRequest. - * @implements IStopAirflowCommandRequest + * @classdesc Represents a UserWorkloadsConfigMap. + * @implements IUserWorkloadsConfigMap * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap=} [properties] Properties to set */ - function StopAirflowCommandRequest(properties) { + function UserWorkloadsConfigMap(properties) { + this.data = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16935,131 +28014,109 @@ } /** - * StopAirflowCommandRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest - * @instance - */ - StopAirflowCommandRequest.prototype.environment = ""; - - /** - * StopAirflowCommandRequest executionId. - * @member {string} executionId - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest - * @instance - */ - StopAirflowCommandRequest.prototype.executionId = ""; - - /** - * StopAirflowCommandRequest pod. - * @member {string} pod - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest - * @instance - */ - StopAirflowCommandRequest.prototype.pod = ""; - - /** - * StopAirflowCommandRequest podNamespace. - * @member {string} podNamespace - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * UserWorkloadsConfigMap name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @instance */ - StopAirflowCommandRequest.prototype.podNamespace = ""; + UserWorkloadsConfigMap.prototype.name = ""; /** - * StopAirflowCommandRequest force. - * @member {boolean} force - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * UserWorkloadsConfigMap data. + * @member {Object.} data + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @instance */ - StopAirflowCommandRequest.prototype.force = false; + UserWorkloadsConfigMap.prototype.data = $util.emptyObject; /** - * Creates a new StopAirflowCommandRequest instance using the specified properties. + * Creates a new UserWorkloadsConfigMap instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} UserWorkloadsConfigMap instance */ - StopAirflowCommandRequest.create = function create(properties) { - return new StopAirflowCommandRequest(properties); + UserWorkloadsConfigMap.create = function create(properties) { + return new UserWorkloadsConfigMap(properties); }; /** - * Encodes the specified StopAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. + * Encodes the specified UserWorkloadsConfigMap message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} message StopAirflowCommandRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap} message UserWorkloadsConfigMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopAirflowCommandRequest.encode = function encode(message, writer) { + UserWorkloadsConfigMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.executionId); - if (message.pod != null && Object.hasOwnProperty.call(message, "pod")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pod); - if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.podNamespace); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.force); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + for (var keys = Object.keys(message.data), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.data[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified StopAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest.verify|verify} messages. + * Encodes the specified UserWorkloadsConfigMap message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandRequest} message StopAirflowCommandRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap} message UserWorkloadsConfigMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopAirflowCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + UserWorkloadsConfigMap.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopAirflowCommandRequest message from the specified reader or buffer. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopAirflowCommandRequest.decode = function decode(reader, length) { + UserWorkloadsConfigMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.name = reader.string(); break; } case 2: { - message.executionId = reader.string(); - break; - } - case 3: { - message.pod = reader.string(); - break; - } - case 4: { - message.podNamespace = reader.string(); - break; - } - case 5: { - message.force = reader.bool(); + if (message.data === $util.emptyObject) + message.data = {}; + 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.data[key] = value; break; } default: @@ -17071,157 +28128,147 @@ }; /** - * Decodes a StopAirflowCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a UserWorkloadsConfigMap message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} UserWorkloadsConfigMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopAirflowCommandRequest.decodeDelimited = function decodeDelimited(reader) { + UserWorkloadsConfigMap.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopAirflowCommandRequest message. + * Verifies a UserWorkloadsConfigMap message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopAirflowCommandRequest.verify = function verify(message) { + UserWorkloadsConfigMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: string expected"; - if (message.pod != null && message.hasOwnProperty("pod")) - if (!$util.isString(message.pod)) - return "pod: string expected"; - if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) - if (!$util.isString(message.podNamespace)) - return "podNamespace: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + if (!$util.isObject(message.data)) + return "data: object expected"; + var key = Object.keys(message.data); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.data[key[i]])) + return "data: string{k:string} expected"; + } return null; }; /** - * Creates a StopAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserWorkloadsConfigMap message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} StopAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} UserWorkloadsConfigMap */ - StopAirflowCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest) + UserWorkloadsConfigMap.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.executionId != null) - message.executionId = String(object.executionId); - if (object.pod != null) - message.pod = String(object.pod); - if (object.podNamespace != null) - message.podNamespace = String(object.podNamespace); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap(); + if (object.name != null) + message.name = String(object.name); + if (object.data) { + if (typeof object.data !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.data: object expected"); + message.data = {}; + for (var keys = Object.keys(object.data), i = 0; i < keys.length; ++i) + message.data[keys[i]] = String(object.data[keys[i]]); + } return message; }; /** - * Creates a plain object from a StopAirflowCommandRequest message. Also converts values to other types if specified. + * Creates a plain object from a UserWorkloadsConfigMap message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest} message StopAirflowCommandRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} message UserWorkloadsConfigMap * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopAirflowCommandRequest.toObject = function toObject(message, options) { + UserWorkloadsConfigMap.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.environment = ""; - object.executionId = ""; - object.pod = ""; - object.podNamespace = ""; - object.force = false; + if (options.objects || options.defaults) + object.data = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.data && (keys2 = Object.keys(message.data)).length) { + object.data = {}; + for (var j = 0; j < keys2.length; ++j) + object.data[keys2[j]] = message.data[keys2[j]]; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; - if (message.pod != null && message.hasOwnProperty("pod")) - object.pod = message.pod; - if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) - object.podNamespace = message.podNamespace; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this StopAirflowCommandRequest to JSON. + * Converts this UserWorkloadsConfigMap to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @instance * @returns {Object.} JSON object */ - StopAirflowCommandRequest.prototype.toJSON = function toJSON() { + UserWorkloadsConfigMap.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopAirflowCommandRequest + * Gets the default type url for UserWorkloadsConfigMap * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopAirflowCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserWorkloadsConfigMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap"; }; - return StopAirflowCommandRequest; + return UserWorkloadsConfigMap; })(); - v1beta1.StopAirflowCommandResponse = (function() { + v1beta1.ListUserWorkloadsConfigMapsResponse = (function() { /** - * Properties of a StopAirflowCommandResponse. + * Properties of a ListUserWorkloadsConfigMapsResponse. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IStopAirflowCommandResponse - * @property {boolean|null} [isDone] StopAirflowCommandResponse isDone - * @property {Array.|null} [output] StopAirflowCommandResponse output + * @interface IListUserWorkloadsConfigMapsResponse + * @property {Array.|null} [userWorkloadsConfigMaps] ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps + * @property {string|null} [nextPageToken] ListUserWorkloadsConfigMapsResponse nextPageToken */ /** - * Constructs a new StopAirflowCommandResponse. + * Constructs a new ListUserWorkloadsConfigMapsResponse. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a StopAirflowCommandResponse. - * @implements IStopAirflowCommandResponse + * @classdesc Represents a ListUserWorkloadsConfigMapsResponse. + * @implements IListUserWorkloadsConfigMapsResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse=} [properties] Properties to set */ - function StopAirflowCommandResponse(properties) { - this.output = []; + function ListUserWorkloadsConfigMapsResponse(properties) { + this.userWorkloadsConfigMaps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17229,92 +28276,92 @@ } /** - * StopAirflowCommandResponse isDone. - * @member {boolean} isDone - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * ListUserWorkloadsConfigMapsResponse userWorkloadsConfigMaps. + * @member {Array.} userWorkloadsConfigMaps + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @instance */ - StopAirflowCommandResponse.prototype.isDone = false; + ListUserWorkloadsConfigMapsResponse.prototype.userWorkloadsConfigMaps = $util.emptyArray; /** - * StopAirflowCommandResponse output. - * @member {Array.} output - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * ListUserWorkloadsConfigMapsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @instance */ - StopAirflowCommandResponse.prototype.output = $util.emptyArray; + ListUserWorkloadsConfigMapsResponse.prototype.nextPageToken = ""; /** - * Creates a new StopAirflowCommandResponse instance using the specified properties. + * Creates a new ListUserWorkloadsConfigMapsResponse instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse instance */ - StopAirflowCommandResponse.create = function create(properties) { - return new StopAirflowCommandResponse(properties); + ListUserWorkloadsConfigMapsResponse.create = function create(properties) { + return new ListUserWorkloadsConfigMapsResponse(properties); }; /** - * Encodes the specified StopAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse} message StopAirflowCommandResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse} message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopAirflowCommandResponse.encode = function encode(message, writer) { + ListUserWorkloadsConfigMapsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.isDone != null && Object.hasOwnProperty.call(message, "isDone")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isDone); - if (message.output != null && message.output.length) - for (var i = 0; i < message.output.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.output[i]); + if (message.userWorkloadsConfigMaps != null && message.userWorkloadsConfigMaps.length) + for (var i = 0; i < message.userWorkloadsConfigMaps.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.encode(message.userWorkloadsConfigMaps[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 StopAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.verify|verify} messages. + * Encodes the specified ListUserWorkloadsConfigMapsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IStopAirflowCommandResponse} message StopAirflowCommandResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse} message ListUserWorkloadsConfigMapsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopAirflowCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListUserWorkloadsConfigMapsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopAirflowCommandResponse message from the specified reader or buffer. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopAirflowCommandResponse.decode = function decode(reader, length) { + ListUserWorkloadsConfigMapsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.isDone = reader.bool(); + if (!(message.userWorkloadsConfigMaps && message.userWorkloadsConfigMaps.length)) + message.userWorkloadsConfigMaps = []; + message.userWorkloadsConfigMaps.push($root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.output && message.output.length)) - message.output = []; - message.output.push(reader.string()); + message.nextPageToken = reader.string(); break; } default: @@ -17326,147 +28373,151 @@ }; /** - * Decodes a StopAirflowCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserWorkloadsConfigMapsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopAirflowCommandResponse.decodeDelimited = function decodeDelimited(reader) { + ListUserWorkloadsConfigMapsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopAirflowCommandResponse message. + * Verifies a ListUserWorkloadsConfigMapsResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopAirflowCommandResponse.verify = function verify(message) { + ListUserWorkloadsConfigMapsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.isDone != null && message.hasOwnProperty("isDone")) - if (typeof message.isDone !== "boolean") - return "isDone: boolean expected"; - if (message.output != null && message.hasOwnProperty("output")) { - if (!Array.isArray(message.output)) - return "output: array expected"; - for (var i = 0; i < message.output.length; ++i) - if (!$util.isString(message.output[i])) - return "output: string[] expected"; + if (message.userWorkloadsConfigMaps != null && message.hasOwnProperty("userWorkloadsConfigMaps")) { + if (!Array.isArray(message.userWorkloadsConfigMaps)) + return "userWorkloadsConfigMaps: array expected"; + for (var i = 0; i < message.userWorkloadsConfigMaps.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.verify(message.userWorkloadsConfigMaps[i]); + if (error) + return "userWorkloadsConfigMaps." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a StopAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserWorkloadsConfigMapsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} StopAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse} ListUserWorkloadsConfigMapsResponse */ - StopAirflowCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse) + ListUserWorkloadsConfigMapsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse(); - if (object.isDone != null) - message.isDone = Boolean(object.isDone); - if (object.output) { - if (!Array.isArray(object.output)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse.output: array expected"); - message.output = []; - for (var i = 0; i < object.output.length; ++i) - message.output[i] = String(object.output[i]); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse(); + if (object.userWorkloadsConfigMaps) { + if (!Array.isArray(object.userWorkloadsConfigMaps)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse.userWorkloadsConfigMaps: array expected"); + message.userWorkloadsConfigMaps = []; + for (var i = 0; i < object.userWorkloadsConfigMaps.length; ++i) { + if (typeof object.userWorkloadsConfigMaps[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse.userWorkloadsConfigMaps: object expected"); + message.userWorkloadsConfigMaps[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.fromObject(object.userWorkloadsConfigMaps[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a StopAirflowCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListUserWorkloadsConfigMapsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse} message StopAirflowCommandResponse + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse} message ListUserWorkloadsConfigMapsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopAirflowCommandResponse.toObject = function toObject(message, options) { + ListUserWorkloadsConfigMapsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.output = []; + object.userWorkloadsConfigMaps = []; if (options.defaults) - object.isDone = false; - if (message.isDone != null && message.hasOwnProperty("isDone")) - object.isDone = message.isDone; - if (message.output && message.output.length) { - object.output = []; - for (var j = 0; j < message.output.length; ++j) - object.output[j] = message.output[j]; + object.nextPageToken = ""; + if (message.userWorkloadsConfigMaps && message.userWorkloadsConfigMaps.length) { + object.userWorkloadsConfigMaps = []; + for (var j = 0; j < message.userWorkloadsConfigMaps.length; ++j) + object.userWorkloadsConfigMaps[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.toObject(message.userWorkloadsConfigMaps[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this StopAirflowCommandResponse to JSON. + * Converts this ListUserWorkloadsConfigMapsResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @instance * @returns {Object.} JSON object */ - StopAirflowCommandResponse.prototype.toJSON = function toJSON() { + ListUserWorkloadsConfigMapsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopAirflowCommandResponse + * Gets the default type url for ListUserWorkloadsConfigMapsResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopAirflowCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUserWorkloadsConfigMapsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse"; }; - return StopAirflowCommandResponse; + return ListUserWorkloadsConfigMapsResponse; })(); - v1beta1.PollAirflowCommandRequest = (function() { + v1beta1.ListWorkloadsRequest = (function() { /** - * Properties of a PollAirflowCommandRequest. + * Properties of a ListWorkloadsRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IPollAirflowCommandRequest - * @property {string|null} [environment] PollAirflowCommandRequest environment - * @property {string|null} [executionId] PollAirflowCommandRequest executionId - * @property {string|null} [pod] PollAirflowCommandRequest pod - * @property {string|null} [podNamespace] PollAirflowCommandRequest podNamespace - * @property {number|null} [nextLineNumber] PollAirflowCommandRequest nextLineNumber + * @interface IListWorkloadsRequest + * @property {string|null} [parent] ListWorkloadsRequest parent + * @property {number|null} [pageSize] ListWorkloadsRequest pageSize + * @property {string|null} [pageToken] ListWorkloadsRequest pageToken + * @property {string|null} [filter] ListWorkloadsRequest filter */ /** - * Constructs a new PollAirflowCommandRequest. + * Constructs a new ListWorkloadsRequest. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a PollAirflowCommandRequest. - * @implements IPollAirflowCommandRequest + * @classdesc Represents a ListWorkloadsRequest. + * @implements IListWorkloadsRequest * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest=} [properties] Properties to set */ - function PollAirflowCommandRequest(properties) { + function ListWorkloadsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17474,131 +28525,117 @@ } /** - * PollAirflowCommandRequest environment. - * @member {string} environment - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest - * @instance - */ - PollAirflowCommandRequest.prototype.environment = ""; - - /** - * PollAirflowCommandRequest executionId. - * @member {string} executionId - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * ListWorkloadsRequest parent. + * @member {string} parent + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @instance */ - PollAirflowCommandRequest.prototype.executionId = ""; + ListWorkloadsRequest.prototype.parent = ""; /** - * PollAirflowCommandRequest pod. - * @member {string} pod - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * ListWorkloadsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @instance */ - PollAirflowCommandRequest.prototype.pod = ""; + ListWorkloadsRequest.prototype.pageSize = 0; /** - * PollAirflowCommandRequest podNamespace. - * @member {string} podNamespace - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * ListWorkloadsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @instance */ - PollAirflowCommandRequest.prototype.podNamespace = ""; + ListWorkloadsRequest.prototype.pageToken = ""; /** - * PollAirflowCommandRequest nextLineNumber. - * @member {number} nextLineNumber - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * ListWorkloadsRequest filter. + * @member {string} filter + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @instance */ - PollAirflowCommandRequest.prototype.nextLineNumber = 0; + ListWorkloadsRequest.prototype.filter = ""; /** - * Creates a new PollAirflowCommandRequest instance using the specified properties. + * Creates a new ListWorkloadsRequest instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest} ListWorkloadsRequest instance */ - PollAirflowCommandRequest.create = function create(properties) { - return new PollAirflowCommandRequest(properties); + ListWorkloadsRequest.create = function create(properties) { + return new ListWorkloadsRequest(properties); }; /** - * Encodes the specified PollAirflowCommandRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. + * Encodes the specified ListWorkloadsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} message PollAirflowCommandRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest} message ListWorkloadsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PollAirflowCommandRequest.encode = function encode(message, writer) { + ListWorkloadsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.executionId); - if (message.pod != null && Object.hasOwnProperty.call(message, "pod")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pod); - if (message.podNamespace != null && Object.hasOwnProperty.call(message, "podNamespace")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.podNamespace); - if (message.nextLineNumber != null && Object.hasOwnProperty.call(message, "nextLineNumber")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nextLineNumber); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified PollAirflowCommandRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest.verify|verify} messages. + * Encodes the specified ListWorkloadsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandRequest} message PollAirflowCommandRequest message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest} message ListWorkloadsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PollAirflowCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWorkloadsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PollAirflowCommandRequest message from the specified reader or buffer. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest} ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PollAirflowCommandRequest.decode = function decode(reader, length) { + ListWorkloadsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.executionId = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.pod = reader.string(); + message.pageToken = reader.string(); break; } case 4: { - message.podNamespace = reader.string(); - break; - } - case 5: { - message.nextLineNumber = reader.int32(); + message.filter = reader.string(); break; } default: @@ -17610,158 +28647,149 @@ }; /** - * Decodes a PollAirflowCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest} ListWorkloadsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PollAirflowCommandRequest.decodeDelimited = function decodeDelimited(reader) { + ListWorkloadsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PollAirflowCommandRequest message. + * Verifies a ListWorkloadsRequest message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PollAirflowCommandRequest.verify = function verify(message) { + ListWorkloadsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: string expected"; - if (message.pod != null && message.hasOwnProperty("pod")) - if (!$util.isString(message.pod)) - return "pod: string expected"; - if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) - if (!$util.isString(message.podNamespace)) - return "podNamespace: string expected"; - if (message.nextLineNumber != null && message.hasOwnProperty("nextLineNumber")) - if (!$util.isInteger(message.nextLineNumber)) - return "nextLineNumber: integer expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a PollAirflowCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} PollAirflowCommandRequest + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest} ListWorkloadsRequest */ - PollAirflowCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest) + ListWorkloadsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.executionId != null) - message.executionId = String(object.executionId); - if (object.pod != null) - message.pod = String(object.pod); - if (object.podNamespace != null) - message.podNamespace = String(object.podNamespace); - if (object.nextLineNumber != null) - message.nextLineNumber = object.nextLineNumber | 0; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a PollAirflowCommandRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWorkloadsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest} message PollAirflowCommandRequest + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest} message ListWorkloadsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PollAirflowCommandRequest.toObject = function toObject(message, options) { + ListWorkloadsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = ""; - object.executionId = ""; - object.pod = ""; - object.podNamespace = ""; - object.nextLineNumber = 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; - if (message.pod != null && message.hasOwnProperty("pod")) - object.pod = message.pod; - if (message.podNamespace != null && message.hasOwnProperty("podNamespace")) - object.podNamespace = message.podNamespace; - if (message.nextLineNumber != null && message.hasOwnProperty("nextLineNumber")) - object.nextLineNumber = message.nextLineNumber; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this PollAirflowCommandRequest to JSON. + * Converts this ListWorkloadsRequest to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @instance * @returns {Object.} JSON object */ - PollAirflowCommandRequest.prototype.toJSON = function toJSON() { + ListWorkloadsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PollAirflowCommandRequest + * Gets the default type url for ListWorkloadsRequest * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PollAirflowCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWorkloadsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest"; }; - return PollAirflowCommandRequest; + return ListWorkloadsRequest; })(); - v1beta1.PollAirflowCommandResponse = (function() { + v1beta1.ListWorkloadsResponse = (function() { /** - * Properties of a PollAirflowCommandResponse. + * Properties of a ListWorkloadsResponse. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IPollAirflowCommandResponse - * @property {Array.|null} [output] PollAirflowCommandResponse output - * @property {boolean|null} [outputEnd] PollAirflowCommandResponse outputEnd - * @property {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null} [exitInfo] PollAirflowCommandResponse exitInfo + * @interface IListWorkloadsResponse + * @property {Array.|null} [workloads] ListWorkloadsResponse workloads + * @property {string|null} [nextPageToken] ListWorkloadsResponse nextPageToken */ /** - * Constructs a new PollAirflowCommandResponse. + * Constructs a new ListWorkloadsResponse. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a PollAirflowCommandResponse. - * @implements IPollAirflowCommandResponse + * @classdesc Represents a ListWorkloadsResponse. + * @implements IListWorkloadsResponse * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse=} [properties] Properties to set */ - function PollAirflowCommandResponse(properties) { - this.output = []; + function ListWorkloadsResponse(properties) { + this.workloads = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17769,106 +28797,92 @@ } /** - * PollAirflowCommandResponse output. - * @member {Array.} output - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse - * @instance - */ - PollAirflowCommandResponse.prototype.output = $util.emptyArray; - - /** - * PollAirflowCommandResponse outputEnd. - * @member {boolean} outputEnd - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * ListWorkloadsResponse workloads. + * @member {Array.} workloads + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @instance */ - PollAirflowCommandResponse.prototype.outputEnd = false; + ListWorkloadsResponse.prototype.workloads = $util.emptyArray; /** - * PollAirflowCommandResponse exitInfo. - * @member {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo|null|undefined} exitInfo - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * ListWorkloadsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @instance */ - PollAirflowCommandResponse.prototype.exitInfo = null; + ListWorkloadsResponse.prototype.nextPageToken = ""; /** - * Creates a new PollAirflowCommandResponse instance using the specified properties. + * Creates a new ListWorkloadsResponse instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse} ListWorkloadsResponse instance */ - PollAirflowCommandResponse.create = function create(properties) { - return new PollAirflowCommandResponse(properties); + ListWorkloadsResponse.create = function create(properties) { + return new ListWorkloadsResponse(properties); }; /** - * Encodes the specified PollAirflowCommandResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. + * Encodes the specified ListWorkloadsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse} message PollAirflowCommandResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse} message ListWorkloadsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PollAirflowCommandResponse.encode = function encode(message, writer) { + ListWorkloadsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.output != null && message.output.length) - for (var i = 0; i < message.output.length; ++i) - $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.encode(message.output[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputEnd != null && Object.hasOwnProperty.call(message, "outputEnd")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.outputEnd); - if (message.exitInfo != null && Object.hasOwnProperty.call(message, "exitInfo")) - $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.encode(message.exitInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.workloads != null && message.workloads.length) + for (var i = 0; i < message.workloads.length; ++i) + $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.encode(message.workloads[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 PollAirflowCommandResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.verify|verify} messages. + * Encodes the specified ListWorkloadsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IPollAirflowCommandResponse} message PollAirflowCommandResponse message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse} message ListWorkloadsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PollAirflowCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListWorkloadsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PollAirflowCommandResponse message from the specified reader or buffer. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse} ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PollAirflowCommandResponse.decode = function decode(reader, length) { + ListWorkloadsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.output && message.output.length)) - message.output = []; - message.output.push($root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.decode(reader, reader.uint32())); + if (!(message.workloads && message.workloads.length)) + message.workloads = []; + message.workloads.push($root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.decode(reader, reader.uint32())); break; } case 2: { - message.outputEnd = reader.bool(); - break; - } - case 3: { - message.exitInfo = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -17880,160 +28894,147 @@ }; /** - * Decodes a PollAirflowCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ListWorkloadsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse} ListWorkloadsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PollAirflowCommandResponse.decodeDelimited = function decodeDelimited(reader) { + ListWorkloadsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PollAirflowCommandResponse message. + * Verifies a ListWorkloadsResponse message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PollAirflowCommandResponse.verify = function verify(message) { + ListWorkloadsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.output != null && message.hasOwnProperty("output")) { - if (!Array.isArray(message.output)) - return "output: array expected"; - for (var i = 0; i < message.output.length; ++i) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify(message.output[i]); + if (message.workloads != null && message.hasOwnProperty("workloads")) { + if (!Array.isArray(message.workloads)) + return "workloads: array expected"; + for (var i = 0; i < message.workloads.length; ++i) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.verify(message.workloads[i]); if (error) - return "output." + error; + return "workloads." + error; } } - if (message.outputEnd != null && message.hasOwnProperty("outputEnd")) - if (typeof message.outputEnd !== "boolean") - return "outputEnd: boolean expected"; - if (message.exitInfo != null && message.hasOwnProperty("exitInfo")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify(message.exitInfo); - if (error) - return "exitInfo." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PollAirflowCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListWorkloadsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} PollAirflowCommandResponse + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse} ListWorkloadsResponse */ - PollAirflowCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse) + ListWorkloadsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse(); - if (object.output) { - if (!Array.isArray(object.output)) - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.output: array expected"); - message.output = []; - for (var i = 0; i < object.output.length; ++i) { - if (typeof object.output[i] !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.output: object expected"); - message.output[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.fromObject(object.output[i]); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse(); + if (object.workloads) { + if (!Array.isArray(object.workloads)) + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.workloads: array expected"); + message.workloads = []; + for (var i = 0; i < object.workloads.length; ++i) { + if (typeof object.workloads[i] !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.workloads: object expected"); + message.workloads[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.fromObject(object.workloads[i]); } } - if (object.outputEnd != null) - message.outputEnd = Boolean(object.outputEnd); - if (object.exitInfo != null) { - if (typeof object.exitInfo !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.exitInfo: object expected"); - message.exitInfo = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.fromObject(object.exitInfo); - } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PollAirflowCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListWorkloadsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse} message PollAirflowCommandResponse + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse} message ListWorkloadsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PollAirflowCommandResponse.toObject = function toObject(message, options) { + ListWorkloadsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.output = []; - if (options.defaults) { - object.outputEnd = false; - object.exitInfo = null; - } - if (message.output && message.output.length) { - object.output = []; - for (var j = 0; j < message.output.length; ++j) - object.output[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.toObject(message.output[j], options); + object.workloads = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.workloads && message.workloads.length) { + object.workloads = []; + for (var j = 0; j < message.workloads.length; ++j) + object.workloads[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.toObject(message.workloads[j], options); } - if (message.outputEnd != null && message.hasOwnProperty("outputEnd")) - object.outputEnd = message.outputEnd; - if (message.exitInfo != null && message.hasOwnProperty("exitInfo")) - object.exitInfo = $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.toObject(message.exitInfo, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PollAirflowCommandResponse to JSON. + * Converts this ListWorkloadsResponse to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @instance * @returns {Object.} JSON object */ - PollAirflowCommandResponse.prototype.toJSON = function toJSON() { + ListWorkloadsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PollAirflowCommandResponse + * Gets the default type url for ListWorkloadsResponse * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PollAirflowCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWorkloadsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse"; }; - PollAirflowCommandResponse.Line = (function() { + ListWorkloadsResponse.ComposerWorkload = (function() { /** - * Properties of a Line. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse - * @interface ILine - * @property {number|null} [lineNumber] Line lineNumber - * @property {string|null} [content] Line content + * Properties of a ComposerWorkload. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse + * @interface IComposerWorkload + * @property {string|null} [name] ComposerWorkload name + * @property {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType|null} [type] ComposerWorkload type + * @property {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus|null} [status] ComposerWorkload status */ /** - * Constructs a new Line. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse - * @classdesc Represents a Line. - * @implements ILine + * Constructs a new ComposerWorkload. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse + * @classdesc Represents a ComposerWorkload. + * @implements IComposerWorkload * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload=} [properties] Properties to set */ - function Line(properties) { + function ComposerWorkload(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18041,89 +29042,103 @@ } /** - * Line lineNumber. - * @member {number} lineNumber - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * ComposerWorkload name. + * @member {string} name + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @instance */ - Line.prototype.lineNumber = 0; + ComposerWorkload.prototype.name = ""; /** - * Line content. - * @member {string} content - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * ComposerWorkload type. + * @member {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType} type + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @instance */ - Line.prototype.content = ""; + ComposerWorkload.prototype.type = 0; /** - * Creates a new Line instance using the specified properties. + * ComposerWorkload status. + * @member {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus|null|undefined} status + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload + * @instance + */ + ComposerWorkload.prototype.status = null; + + /** + * Creates a new ComposerWorkload instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload instance */ - Line.create = function create(properties) { - return new Line(properties); + ComposerWorkload.create = function create(properties) { + return new ComposerWorkload(properties); }; /** - * Encodes the specified Line message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. + * Encodes the specified ComposerWorkload message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine} message Line message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload} message ComposerWorkload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Line.encode = function encode(message, writer) { + ComposerWorkload.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.lineNumber); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.encode(message.status, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Line message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line.verify|verify} messages. + * Encodes the specified ComposerWorkload message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ILine} message Line message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload} message ComposerWorkload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Line.encodeDelimited = function encodeDelimited(message, writer) { + ComposerWorkload.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Line message from the specified reader or buffer. + * Decodes a ComposerWorkload message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Line.decode = function decode(reader, length) { + ComposerWorkload.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.lineNumber = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.content = reader.string(); + message.type = reader.int32(); + break; + } + case 3: { + message.status = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.decode(reader, reader.uint32()); break; } default: @@ -18135,132 +29150,228 @@ }; /** - * Decodes a Line message from the specified reader or buffer, length delimited. + * Decodes a ComposerWorkload message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Line.decodeDelimited = function decodeDelimited(reader) { + ComposerWorkload.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Line message. + * Verifies a ComposerWorkload message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Line.verify = function verify(message) { + ComposerWorkload.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - if (!$util.isInteger(message.lineNumber)) - return "lineNumber: integer expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!$util.isString(message.content)) - return "content: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string 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: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.verify(message.status); + if (error) + return "status." + error; + } return null; }; /** - * Creates a Line message from a plain object. Also converts values to their respective internal types. + * Creates a ComposerWorkload message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} Line + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload} ComposerWorkload */ - Line.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line) + ComposerWorkload.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line(); - if (object.lineNumber != null) - message.lineNumber = object.lineNumber | 0; - if (object.content != null) - message.content = String(object.content); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CELERY_WORKER": + case 1: + message.type = 1; + break; + case "KUBERNETES_WORKER": + case 2: + message.type = 2; + break; + case "KUBERNETES_OPERATOR_POD": + case 3: + message.type = 3; + break; + case "SCHEDULER": + case 4: + message.type = 4; + break; + case "DAG_PROCESSOR": + case 5: + message.type = 5; + break; + case "TRIGGERER": + case 6: + message.type = 6; + break; + case "WEB_SERVER": + case 7: + message.type = 7; + break; + case "REDIS": + case 8: + message.type = 8; + break; + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload.status: object expected"); + message.status = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.fromObject(object.status); + } return message; }; /** - * Creates a plain object from a Line message. Also converts values to other types if specified. + * Creates a plain object from a ComposerWorkload message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line} message Line + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload} message ComposerWorkload * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Line.toObject = function toObject(message, options) { + ComposerWorkload.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.lineNumber = 0; - object.content = ""; + object.name = ""; + object.type = options.enums === String ? "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED" : 0; + object.status = null; } - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - object.lineNumber = message.lineNumber; - if (message.content != null && message.hasOwnProperty("content")) - object.content = message.content; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType[message.type] === undefined ? message.type : $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType[message.type] : message.type; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.toObject(message.status, options); return object; }; /** - * Converts this Line to JSON. + * Converts this ComposerWorkload to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @instance * @returns {Object.} JSON object */ - Line.prototype.toJSON = function toJSON() { + ComposerWorkload.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Line + * Gets the default type url for ComposerWorkload * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Line.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComposerWorkload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.Line"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload"; }; - return Line; + return ComposerWorkload; })(); - PollAirflowCommandResponse.ExitInfo = (function() { + /** + * ComposerWorkloadType enum. + * @name google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadType + * @enum {number} + * @property {number} COMPOSER_WORKLOAD_TYPE_UNSPECIFIED=0 COMPOSER_WORKLOAD_TYPE_UNSPECIFIED value + * @property {number} CELERY_WORKER=1 CELERY_WORKER value + * @property {number} KUBERNETES_WORKER=2 KUBERNETES_WORKER value + * @property {number} KUBERNETES_OPERATOR_POD=3 KUBERNETES_OPERATOR_POD value + * @property {number} SCHEDULER=4 SCHEDULER value + * @property {number} DAG_PROCESSOR=5 DAG_PROCESSOR value + * @property {number} TRIGGERER=6 TRIGGERER value + * @property {number} WEB_SERVER=7 WEB_SERVER value + * @property {number} REDIS=8 REDIS value + */ + ListWorkloadsResponse.ComposerWorkloadType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CELERY_WORKER"] = 1; + values[valuesById[2] = "KUBERNETES_WORKER"] = 2; + values[valuesById[3] = "KUBERNETES_OPERATOR_POD"] = 3; + values[valuesById[4] = "SCHEDULER"] = 4; + values[valuesById[5] = "DAG_PROCESSOR"] = 5; + values[valuesById[6] = "TRIGGERER"] = 6; + values[valuesById[7] = "WEB_SERVER"] = 7; + values[valuesById[8] = "REDIS"] = 8; + return values; + })(); + + ListWorkloadsResponse.ComposerWorkloadStatus = (function() { /** - * Properties of an ExitInfo. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse - * @interface IExitInfo - * @property {number|null} [exitCode] ExitInfo exitCode - * @property {string|null} [error] ExitInfo error + * Properties of a ComposerWorkloadStatus. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse + * @interface IComposerWorkloadStatus + * @property {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState|null} [state] ComposerWorkloadStatus state + * @property {string|null} [statusMessage] ComposerWorkloadStatus statusMessage + * @property {string|null} [detailedStatusMessage] ComposerWorkloadStatus detailedStatusMessage */ /** - * Constructs a new ExitInfo. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse - * @classdesc Represents an ExitInfo. - * @implements IExitInfo + * Constructs a new ComposerWorkloadStatus. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse + * @classdesc Represents a ComposerWorkloadStatus. + * @implements IComposerWorkloadStatus * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus=} [properties] Properties to set */ - function ExitInfo(properties) { + function ComposerWorkloadStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18268,89 +29379,103 @@ } /** - * ExitInfo exitCode. - * @member {number} exitCode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * ComposerWorkloadStatus state. + * @member {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState} state + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @instance */ - ExitInfo.prototype.exitCode = 0; + ComposerWorkloadStatus.prototype.state = 0; /** - * ExitInfo error. - * @member {string} error - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * ComposerWorkloadStatus statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @instance */ - ExitInfo.prototype.error = ""; + ComposerWorkloadStatus.prototype.statusMessage = ""; /** - * Creates a new ExitInfo instance using the specified properties. + * ComposerWorkloadStatus detailedStatusMessage. + * @member {string} detailedStatusMessage + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus + * @instance + */ + ComposerWorkloadStatus.prototype.detailedStatusMessage = ""; + + /** + * Creates a new ComposerWorkloadStatus instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus instance */ - ExitInfo.create = function create(properties) { - return new ExitInfo(properties); + ComposerWorkloadStatus.create = function create(properties) { + return new ComposerWorkloadStatus(properties); }; /** - * Encodes the specified ExitInfo message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. + * Encodes the specified ComposerWorkloadStatus message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo} message ExitInfo message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus} message ComposerWorkloadStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExitInfo.encode = function encode(message, writer) { + ComposerWorkloadStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.exitCode != null && Object.hasOwnProperty.call(message, "exitCode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.exitCode); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.statusMessage); + if (message.detailedStatusMessage != null && Object.hasOwnProperty.call(message, "detailedStatusMessage")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.detailedStatusMessage); return writer; }; /** - * Encodes the specified ExitInfo message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo.verify|verify} messages. + * Encodes the specified ComposerWorkloadStatus message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.IExitInfo} message ExitInfo message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkloadStatus} message ComposerWorkloadStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExitInfo.encodeDelimited = function encodeDelimited(message, writer) { + ComposerWorkloadStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExitInfo message from the specified reader or buffer. + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExitInfo.decode = function decode(reader, length) { + ComposerWorkloadStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.exitCode = reader.int32(); + message.state = reader.int32(); break; } case 2: { - message.error = reader.string(); + message.statusMessage = reader.string(); + break; + } + case 3: { + message.detailedStatusMessage = reader.string(); break; } default: @@ -18362,114 +29487,190 @@ }; /** - * Decodes an ExitInfo message from the specified reader or buffer, length delimited. + * Decodes a ComposerWorkloadStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExitInfo.decodeDelimited = function decodeDelimited(reader) { + ComposerWorkloadStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExitInfo message. + * Verifies a ComposerWorkloadStatus message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExitInfo.verify = function verify(message) { + ComposerWorkloadStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.exitCode != null && message.hasOwnProperty("exitCode")) - if (!$util.isInteger(message.exitCode)) - return "exitCode: integer expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.detailedStatusMessage != null && message.hasOwnProperty("detailedStatusMessage")) + if (!$util.isString(message.detailedStatusMessage)) + return "detailedStatusMessage: string expected"; return null; }; /** - * Creates an ExitInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ComposerWorkloadStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} ExitInfo + * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus} ComposerWorkloadStatus */ - ExitInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo) + ComposerWorkloadStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo(); - if (object.exitCode != null) - message.exitCode = object.exitCode | 0; - if (object.error != null) - message.error = String(object.error); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "COMPOSER_WORKLOAD_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "OK": + case 2: + message.state = 2; + break; + case "WARNING": + case 3: + message.state = 3; + break; + case "ERROR": + case 4: + message.state = 4; + break; + case "SUCCEEDED": + case 5: + message.state = 5; + break; + case "FAILED": + case 6: + message.state = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.detailedStatusMessage != null) + message.detailedStatusMessage = String(object.detailedStatusMessage); return message; }; /** - * Creates a plain object from an ExitInfo message. Also converts values to other types if specified. + * Creates a plain object from a ComposerWorkloadStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo} message ExitInfo + * @param {google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus} message ComposerWorkloadStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExitInfo.toObject = function toObject(message, options) { + ComposerWorkloadStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.exitCode = 0; - object.error = ""; + object.state = options.enums === String ? "COMPOSER_WORKLOAD_STATE_UNSPECIFIED" : 0; + object.statusMessage = ""; + object.detailedStatusMessage = ""; } - if (message.exitCode != null && message.hasOwnProperty("exitCode")) - object.exitCode = message.exitCode; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState[message.state] : message.state; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.detailedStatusMessage != null && message.hasOwnProperty("detailedStatusMessage")) + object.detailedStatusMessage = message.detailedStatusMessage; return object; }; /** - * Converts this ExitInfo to JSON. + * Converts this ComposerWorkloadStatus to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @instance * @returns {Object.} JSON object */ - ExitInfo.prototype.toJSON = function toJSON() { + ComposerWorkloadStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExitInfo + * Gets the default type url for ComposerWorkloadStatus * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo + * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExitInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComposerWorkloadStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse.ExitInfo"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadStatus"; }; - return ExitInfo; + return ComposerWorkloadStatus; })(); - return PollAirflowCommandResponse; + /** + * ComposerWorkloadState enum. + * @name google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkloadState + * @enum {number} + * @property {number} COMPOSER_WORKLOAD_STATE_UNSPECIFIED=0 COMPOSER_WORKLOAD_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OK=2 OK value + * @property {number} WARNING=3 WARNING value + * @property {number} ERROR=4 ERROR value + * @property {number} SUCCEEDED=5 SUCCEEDED value + * @property {number} FAILED=6 FAILED value + */ + ListWorkloadsResponse.ComposerWorkloadState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPOSER_WORKLOAD_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OK"] = 2; + values[valuesById[3] = "WARNING"] = 3; + values[valuesById[4] = "ERROR"] = 4; + values[valuesById[5] = "SUCCEEDED"] = 5; + values[valuesById[6] = "FAILED"] = 6; + return values; + })(); + + return ListWorkloadsResponse; })(); v1beta1.SaveSnapshotRequest = (function() { @@ -20250,6 +31451,7 @@ * @property {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize|null} [environmentSize] EnvironmentConfig environmentSize * @property {google.cloud.orchestration.airflow.service.v1beta1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] EnvironmentConfig masterAuthorizedNetworksConfig * @property {google.cloud.orchestration.airflow.service.v1beta1.IRecoveryConfig|null} [recoveryConfig] EnvironmentConfig recoveryConfig + * @property {google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig|null} [dataRetentionConfig] EnvironmentConfig dataRetentionConfig * @property {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode|null} [resilienceMode] EnvironmentConfig resilienceMode */ @@ -20404,6 +31606,14 @@ */ EnvironmentConfig.prototype.recoveryConfig = null; + /** + * EnvironmentConfig dataRetentionConfig. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig|null|undefined} dataRetentionConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig + * @instance + */ + EnvironmentConfig.prototype.dataRetentionConfig = null; + /** * EnvironmentConfig resilienceMode. * @member {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode} resilienceMode @@ -20468,6 +31678,8 @@ $root.google.cloud.orchestration.airflow.service.v1beta1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); if (message.recoveryConfig != null && Object.hasOwnProperty.call(message, "recoveryConfig")) $root.google.cloud.orchestration.airflow.service.v1beta1.RecoveryConfig.encode(message.recoveryConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.dataRetentionConfig != null && Object.hasOwnProperty.call(message, "dataRetentionConfig")) + $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.encode(message.dataRetentionConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.resilienceMode != null && Object.hasOwnProperty.call(message, "resilienceMode")) writer.uint32(/* id 20, wireType 0 =*/160).int32(message.resilienceMode); if (message.airflowByoidUri != null && Object.hasOwnProperty.call(message, "airflowByoidUri")) @@ -20574,6 +31786,10 @@ message.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.RecoveryConfig.decode(reader, reader.uint32()); break; } + case 19: { + message.dataRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.decode(reader, reader.uint32()); + break; + } case 20: { message.resilienceMode = reader.int32(); break; @@ -20693,6 +31909,11 @@ if (error) return "recoveryConfig." + error; } + if (message.dataRetentionConfig != null && message.hasOwnProperty("dataRetentionConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.verify(message.dataRetentionConfig); + if (error) + return "dataRetentionConfig." + error; + } if (message.resilienceMode != null && message.hasOwnProperty("resilienceMode")) switch (message.resilienceMode) { default: @@ -20805,6 +32026,11 @@ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.recoveryConfig: object expected"); message.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.RecoveryConfig.fromObject(object.recoveryConfig); } + if (object.dataRetentionConfig != null) { + if (typeof object.dataRetentionConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.dataRetentionConfig: object expected"); + message.dataRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.fromObject(object.dataRetentionConfig); + } switch (object.resilienceMode) { default: if (typeof object.resilienceMode === "number") { @@ -20854,6 +32080,7 @@ object.environmentSize = options.enums === String ? "ENVIRONMENT_SIZE_UNSPECIFIED" : 0; object.masterAuthorizedNetworksConfig = null; object.recoveryConfig = null; + object.dataRetentionConfig = null; object.resilienceMode = options.enums === String ? "RESILIENCE_MODE_UNSPECIFIED" : 0; object.airflowByoidUri = ""; } @@ -20889,6 +32116,8 @@ object.masterAuthorizedNetworksConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options); if (message.recoveryConfig != null && message.hasOwnProperty("recoveryConfig")) object.recoveryConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.RecoveryConfig.toObject(message.recoveryConfig, options); + if (message.dataRetentionConfig != null && message.hasOwnProperty("dataRetentionConfig")) + object.dataRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.toObject(message.dataRetentionConfig, options); if (message.resilienceMode != null && message.hasOwnProperty("resilienceMode")) object.resilienceMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode[message.resilienceMode] === undefined ? message.resilienceMode : $root.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.ResilienceMode[message.resilienceMode] : message.resilienceMode; if (message.airflowByoidUri != null && message.hasOwnProperty("airflowByoidUri")) @@ -21421,6 +32650,7 @@ * @property {string|null} [pythonVersion] SoftwareConfig pythonVersion * @property {number|null} [schedulerCount] SoftwareConfig schedulerCount * @property {google.cloud.orchestration.airflow.service.v1beta1.ICloudDataLineageIntegration|null} [cloudDataLineageIntegration] SoftwareConfig cloudDataLineageIntegration + * @property {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode|null} [webServerPluginsMode] SoftwareConfig webServerPluginsMode */ /** @@ -21497,6 +32727,14 @@ */ SoftwareConfig.prototype.cloudDataLineageIntegration = null; + /** + * SoftwareConfig webServerPluginsMode. + * @member {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode} webServerPluginsMode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig + * @instance + */ + SoftwareConfig.prototype.webServerPluginsMode = 0; + /** * Creates a new SoftwareConfig instance using the specified properties. * @function create @@ -21538,6 +32776,8 @@ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.schedulerCount); if (message.cloudDataLineageIntegration != null && Object.hasOwnProperty.call(message, "cloudDataLineageIntegration")) $root.google.cloud.orchestration.airflow.service.v1beta1.CloudDataLineageIntegration.encode(message.cloudDataLineageIntegration, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.webServerPluginsMode != null && Object.hasOwnProperty.call(message, "webServerPluginsMode")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.webServerPluginsMode); return writer; }; @@ -21657,6 +32897,10 @@ message.cloudDataLineageIntegration = $root.google.cloud.orchestration.airflow.service.v1beta1.CloudDataLineageIntegration.decode(reader, reader.uint32()); break; } + case 10: { + message.webServerPluginsMode = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -21730,6 +32974,15 @@ if (error) return "cloudDataLineageIntegration." + error; } + if (message.webServerPluginsMode != null && message.hasOwnProperty("webServerPluginsMode")) + switch (message.webServerPluginsMode) { + default: + return "webServerPluginsMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -21777,6 +33030,26 @@ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.cloudDataLineageIntegration: object expected"); message.cloudDataLineageIntegration = $root.google.cloud.orchestration.airflow.service.v1beta1.CloudDataLineageIntegration.fromObject(object.cloudDataLineageIntegration); } + switch (object.webServerPluginsMode) { + default: + if (typeof object.webServerPluginsMode === "number") { + message.webServerPluginsMode = object.webServerPluginsMode; + break; + } + break; + case "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED": + case 0: + message.webServerPluginsMode = 0; + break; + case "PLUGINS_DISABLED": + case 1: + message.webServerPluginsMode = 1; + break; + case "PLUGINS_ENABLED": + case 2: + message.webServerPluginsMode = 2; + break; + } return message; }; @@ -21803,6 +33076,7 @@ object.pythonVersion = ""; object.schedulerCount = 0; object.cloudDataLineageIntegration = null; + object.webServerPluginsMode = options.enums === String ? "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED" : 0; } if (message.imageVersion != null && message.hasOwnProperty("imageVersion")) object.imageVersion = message.imageVersion; @@ -21828,6 +33102,8 @@ object.schedulerCount = message.schedulerCount; if (message.cloudDataLineageIntegration != null && message.hasOwnProperty("cloudDataLineageIntegration")) object.cloudDataLineageIntegration = $root.google.cloud.orchestration.airflow.service.v1beta1.CloudDataLineageIntegration.toObject(message.cloudDataLineageIntegration, options); + if (message.webServerPluginsMode != null && message.hasOwnProperty("webServerPluginsMode")) + object.webServerPluginsMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode[message.webServerPluginsMode] === undefined ? message.webServerPluginsMode : $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode[message.webServerPluginsMode] : message.webServerPluginsMode; return object; }; @@ -21857,6 +33133,22 @@ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig"; }; + /** + * WebServerPluginsMode enum. + * @name google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.WebServerPluginsMode + * @enum {number} + * @property {number} WEB_SERVER_PLUGINS_MODE_UNSPECIFIED=0 WEB_SERVER_PLUGINS_MODE_UNSPECIFIED value + * @property {number} PLUGINS_DISABLED=1 PLUGINS_DISABLED value + * @property {number} PLUGINS_ENABLED=2 PLUGINS_ENABLED value + */ + SoftwareConfig.WebServerPluginsMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PLUGINS_DISABLED"] = 1; + values[valuesById[2] = "PLUGINS_ENABLED"] = 2; + return values; + })(); + return SoftwareConfig; })(); @@ -22173,6 +33465,8 @@ * @property {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy|null} [ipAllocationPolicy] NodeConfig ipAllocationPolicy * @property {number|null} [maxPodsPerNode] NodeConfig maxPodsPerNode * @property {boolean|null} [enableIpMasqAgent] NodeConfig enableIpMasqAgent + * @property {string|null} [composerNetworkAttachment] NodeConfig composerNetworkAttachment + * @property {string|null} [composerInternalIpv4CidrBlock] NodeConfig composerInternalIpv4CidrBlock */ /** @@ -22280,6 +33574,22 @@ */ NodeConfig.prototype.enableIpMasqAgent = false; + /** + * NodeConfig composerNetworkAttachment. + * @member {string} composerNetworkAttachment + * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig + * @instance + */ + NodeConfig.prototype.composerNetworkAttachment = ""; + + /** + * NodeConfig composerInternalIpv4CidrBlock. + * @member {string} composerInternalIpv4CidrBlock + * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig + * @instance + */ + NodeConfig.prototype.composerInternalIpv4CidrBlock = ""; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -22328,6 +33638,10 @@ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.maxPodsPerNode); if (message.enableIpMasqAgent != null && Object.hasOwnProperty.call(message, "enableIpMasqAgent")) writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enableIpMasqAgent); + if (message.composerNetworkAttachment != null && Object.hasOwnProperty.call(message, "composerNetworkAttachment")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.composerNetworkAttachment); + if (message.composerInternalIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "composerInternalIpv4CidrBlock")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.composerInternalIpv4CidrBlock); return writer; }; @@ -22406,8 +33720,16 @@ message.maxPodsPerNode = reader.int32(); break; } - case 11: { - message.enableIpMasqAgent = reader.bool(); + case 11: { + message.enableIpMasqAgent = reader.bool(); + break; + } + case 12: { + message.composerNetworkAttachment = reader.string(); + break; + } + case 13: { + message.composerInternalIpv4CidrBlock = reader.string(); break; } default: @@ -22488,6 +33810,12 @@ if (message.enableIpMasqAgent != null && message.hasOwnProperty("enableIpMasqAgent")) if (typeof message.enableIpMasqAgent !== "boolean") return "enableIpMasqAgent: boolean expected"; + if (message.composerNetworkAttachment != null && message.hasOwnProperty("composerNetworkAttachment")) + if (!$util.isString(message.composerNetworkAttachment)) + return "composerNetworkAttachment: string expected"; + if (message.composerInternalIpv4CidrBlock != null && message.hasOwnProperty("composerInternalIpv4CidrBlock")) + if (!$util.isString(message.composerInternalIpv4CidrBlock)) + return "composerInternalIpv4CidrBlock: string expected"; return null; }; @@ -22538,6 +33866,10 @@ message.maxPodsPerNode = object.maxPodsPerNode | 0; if (object.enableIpMasqAgent != null) message.enableIpMasqAgent = Boolean(object.enableIpMasqAgent); + if (object.composerNetworkAttachment != null) + message.composerNetworkAttachment = String(object.composerNetworkAttachment); + if (object.composerInternalIpv4CidrBlock != null) + message.composerInternalIpv4CidrBlock = String(object.composerInternalIpv4CidrBlock); return message; }; @@ -22568,6 +33900,8 @@ object.ipAllocationPolicy = null; object.maxPodsPerNode = 0; object.enableIpMasqAgent = false; + object.composerNetworkAttachment = ""; + object.composerInternalIpv4CidrBlock = ""; } if (message.location != null && message.hasOwnProperty("location")) object.location = message.location; @@ -22597,6 +33931,10 @@ object.maxPodsPerNode = message.maxPodsPerNode; if (message.enableIpMasqAgent != null && message.hasOwnProperty("enableIpMasqAgent")) object.enableIpMasqAgent = message.enableIpMasqAgent; + if (message.composerNetworkAttachment != null && message.hasOwnProperty("composerNetworkAttachment")) + object.composerNetworkAttachment = message.composerNetworkAttachment; + if (message.composerInternalIpv4CidrBlock != null && message.hasOwnProperty("composerInternalIpv4CidrBlock")) + object.composerInternalIpv4CidrBlock = message.composerInternalIpv4CidrBlock; return object; }; @@ -23129,6 +34467,7 @@ * @memberof google.cloud.orchestration.airflow.service.v1beta1 * @interface IPrivateEnvironmentConfig * @property {boolean|null} [enablePrivateEnvironment] PrivateEnvironmentConfig enablePrivateEnvironment + * @property {boolean|null} [enablePrivateBuildsOnly] PrivateEnvironmentConfig enablePrivateBuildsOnly * @property {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null} [privateClusterConfig] PrivateEnvironmentConfig privateClusterConfig * @property {string|null} [webServerIpv4CidrBlock] PrivateEnvironmentConfig webServerIpv4CidrBlock * @property {string|null} [cloudSqlIpv4CidrBlock] PrivateEnvironmentConfig cloudSqlIpv4CidrBlock @@ -23163,6 +34502,14 @@ */ PrivateEnvironmentConfig.prototype.enablePrivateEnvironment = false; + /** + * PrivateEnvironmentConfig enablePrivateBuildsOnly. + * @member {boolean} enablePrivateBuildsOnly + * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig + * @instance + */ + PrivateEnvironmentConfig.prototype.enablePrivateBuildsOnly = false; + /** * PrivateEnvironmentConfig privateClusterConfig. * @member {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null|undefined} privateClusterConfig @@ -23279,6 +34626,8 @@ writer.uint32(/* id 9, wireType 2 =*/74).string(message.cloudComposerConnectionSubnetwork); if (message.networkingConfig != null && Object.hasOwnProperty.call(message, "networkingConfig")) $root.google.cloud.orchestration.airflow.service.v1beta1.NetworkingConfig.encode(message.networkingConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.enablePrivateBuildsOnly != null && Object.hasOwnProperty.call(message, "enablePrivateBuildsOnly")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enablePrivateBuildsOnly); return writer; }; @@ -23317,6 +34666,10 @@ message.enablePrivateEnvironment = reader.bool(); break; } + case 11: { + message.enablePrivateBuildsOnly = reader.bool(); + break; + } case 2: { message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.decode(reader, reader.uint32()); break; @@ -23391,6 +34744,9 @@ if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment")) if (typeof message.enablePrivateEnvironment !== "boolean") return "enablePrivateEnvironment: boolean expected"; + if (message.enablePrivateBuildsOnly != null && message.hasOwnProperty("enablePrivateBuildsOnly")) + if (typeof message.enablePrivateBuildsOnly !== "boolean") + return "enablePrivateBuildsOnly: boolean expected"; if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) { var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.verify(message.privateClusterConfig); if (error) @@ -23439,6 +34795,8 @@ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig(); if (object.enablePrivateEnvironment != null) message.enablePrivateEnvironment = Boolean(object.enablePrivateEnvironment); + if (object.enablePrivateBuildsOnly != null) + message.enablePrivateBuildsOnly = Boolean(object.enablePrivateBuildsOnly); if (object.privateClusterConfig != null) { if (typeof object.privateClusterConfig !== "object") throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.privateClusterConfig: object expected"); @@ -23490,6 +34848,7 @@ object.cloudComposerNetworkIpv4ReservedRange = ""; object.cloudComposerConnectionSubnetwork = ""; object.networkingConfig = null; + object.enablePrivateBuildsOnly = false; } if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment")) object.enablePrivateEnvironment = message.enablePrivateEnvironment; @@ -23511,6 +34870,8 @@ object.cloudComposerConnectionSubnetwork = message.cloudComposerConnectionSubnetwork; if (message.networkingConfig != null && message.hasOwnProperty("networkingConfig")) object.networkingConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.NetworkingConfig.toObject(message.networkingConfig, options); + if (message.enablePrivateBuildsOnly != null && message.hasOwnProperty("enablePrivateBuildsOnly")) + object.enablePrivateBuildsOnly = message.enablePrivateBuildsOnly; return object; }; @@ -23550,6 +34911,7 @@ * @memberof google.cloud.orchestration.airflow.service.v1beta1 * @interface IDatabaseConfig * @property {string|null} [machineType] DatabaseConfig machineType + * @property {string|null} [zone] DatabaseConfig zone */ /** @@ -23575,6 +34937,14 @@ */ DatabaseConfig.prototype.machineType = ""; + /** + * DatabaseConfig zone. + * @member {string} zone + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig + * @instance + */ + DatabaseConfig.prototype.zone = ""; + /** * Creates a new DatabaseConfig instance using the specified properties. * @function create @@ -23601,6 +34971,8 @@ writer = $Writer.create(); if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); return writer; }; @@ -23639,6 +35011,10 @@ message.machineType = reader.string(); break; } + case 2: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23677,6 +35053,9 @@ if (message.machineType != null && message.hasOwnProperty("machineType")) if (!$util.isString(message.machineType)) return "machineType: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; @@ -23694,6 +35073,8 @@ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig(); if (object.machineType != null) message.machineType = String(object.machineType); + if (object.zone != null) + message.zone = String(object.zone); return message; }; @@ -23710,10 +35091,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.machineType = ""; + object.zone = ""; + } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; return object; }; @@ -24087,91 +35472,353 @@ }; /** - * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} EncryptionConfig + */ + EncryptionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} message EncryptionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EncryptionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.kmsKeyName = ""; + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) + object.kmsKeyName = message.kmsKeyName; + return object; + }; + + /** + * Converts this EncryptionConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @instance + * @returns {Object.} JSON object + */ + EncryptionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EncryptionConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig"; + }; + + return EncryptionConfig; + })(); + + v1beta1.MaintenanceWindow = (function() { + + /** + * Properties of a MaintenanceWindow. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IMaintenanceWindow + * @property {google.protobuf.ITimestamp|null} [startTime] MaintenanceWindow startTime + * @property {google.protobuf.ITimestamp|null} [endTime] MaintenanceWindow endTime + * @property {string|null} [recurrence] MaintenanceWindow recurrence + */ + + /** + * Constructs a new MaintenanceWindow. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a MaintenanceWindow. + * @implements IMaintenanceWindow + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow=} [properties] Properties to set + */ + function MaintenanceWindow(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MaintenanceWindow startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @instance + */ + MaintenanceWindow.prototype.startTime = null; + + /** + * MaintenanceWindow endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @instance + */ + MaintenanceWindow.prototype.endTime = null; + + /** + * MaintenanceWindow recurrence. + * @member {string} recurrence + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @instance + */ + MaintenanceWindow.prototype.recurrence = ""; + + /** + * Creates a new MaintenanceWindow instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow instance + */ + MaintenanceWindow.create = function create(properties) { + return new MaintenanceWindow(properties); + }; + + /** + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenanceWindow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.recurrence); + return writer; + }; + + /** + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaintenanceWindow message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenanceWindow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.recurrence = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaintenanceWindow message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaintenanceWindow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (!$util.isString(message.recurrence)) + return "recurrence: string expected"; + return null; + }; + + /** + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} EncryptionConfig + * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow */ - EncryptionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig) + MaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig(); - if (object.kmsKeyName != null) - message.kmsKeyName = String(object.kmsKeyName); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.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.orchestration.airflow.service.v1beta1.MaintenanceWindow.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.recurrence != null) + message.recurrence = String(object.recurrence); return message; }; /** - * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} message EncryptionConfig + * @param {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} message MaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EncryptionConfig.toObject = function toObject(message, options) { + MaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.kmsKeyName = ""; - if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) - object.kmsKeyName = message.kmsKeyName; + if (options.defaults) { + object.startTime = null; + object.endTime = null; + object.recurrence = ""; + } + 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.recurrence != null && message.hasOwnProperty("recurrence")) + object.recurrence = message.recurrence; return object; }; /** - * Converts this EncryptionConfig to JSON. + * Converts this MaintenanceWindow to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow * @instance * @returns {Object.} JSON object */ - EncryptionConfig.prototype.toJSON = function toJSON() { + MaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EncryptionConfig + * Gets the default type url for MaintenanceWindow * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow"; }; - return EncryptionConfig; + return MaintenanceWindow; })(); - v1beta1.MaintenanceWindow = (function() { + v1beta1.WorkloadsConfig = (function() { /** - * Properties of a MaintenanceWindow. + * Properties of a WorkloadsConfig. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IMaintenanceWindow - * @property {google.protobuf.ITimestamp|null} [startTime] MaintenanceWindow startTime - * @property {google.protobuf.ITimestamp|null} [endTime] MaintenanceWindow endTime - * @property {string|null} [recurrence] MaintenanceWindow recurrence + * @interface IWorkloadsConfig + * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null} [scheduler] WorkloadsConfig scheduler + * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null} [webServer] WorkloadsConfig webServer + * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null} [worker] WorkloadsConfig worker + * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource|null} [triggerer] WorkloadsConfig triggerer + * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource|null} [dagProcessor] WorkloadsConfig dagProcessor */ /** - * Constructs a new MaintenanceWindow. + * Constructs a new WorkloadsConfig. * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a MaintenanceWindow. - * @implements IMaintenanceWindow + * @classdesc Represents a WorkloadsConfig. + * @implements IWorkloadsConfig * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig=} [properties] Properties to set */ - function MaintenanceWindow(properties) { + function WorkloadsConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24179,103 +35826,131 @@ } /** - * MaintenanceWindow startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * WorkloadsConfig scheduler. + * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null|undefined} scheduler + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @instance */ - MaintenanceWindow.prototype.startTime = null; + WorkloadsConfig.prototype.scheduler = null; /** - * MaintenanceWindow endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * WorkloadsConfig webServer. + * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null|undefined} webServer + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @instance */ - MaintenanceWindow.prototype.endTime = null; + WorkloadsConfig.prototype.webServer = null; /** - * MaintenanceWindow recurrence. - * @member {string} recurrence - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * WorkloadsConfig worker. + * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null|undefined} worker + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @instance */ - MaintenanceWindow.prototype.recurrence = ""; + WorkloadsConfig.prototype.worker = null; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * WorkloadsConfig triggerer. + * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource|null|undefined} triggerer + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.triggerer = null; + + /** + * WorkloadsConfig dagProcessor. + * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource|null|undefined} dagProcessor + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @instance + */ + WorkloadsConfig.prototype.dagProcessor = null; + + /** + * Creates a new WorkloadsConfig instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig instance */ - MaintenanceWindow.create = function create(properties) { - return new MaintenanceWindow(properties); + WorkloadsConfig.create = function create(properties) { + return new WorkloadsConfig(properties); }; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encode = function encode(message, writer) { + WorkloadsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.recurrence); + if (message.scheduler != null && Object.hasOwnProperty.call(message, "scheduler")) + $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.encode(message.scheduler, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.webServer != null && Object.hasOwnProperty.call(message, "webServer")) + $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.encode(message.webServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.worker != null && Object.hasOwnProperty.call(message, "worker")) + $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.encode(message.worker, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.triggerer != null && Object.hasOwnProperty.call(message, "triggerer")) + $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.encode(message.triggerer, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.dagProcessor != null && Object.hasOwnProperty.call(message, "dagProcessor")) + $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.encode(message.dagProcessor, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + WorkloadsConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a WorkloadsConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decode = function decode(reader, length) { + WorkloadsConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.decode(reader, reader.uint32()); break; } case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.decode(reader, reader.uint32()); break; } case 3: { - message.recurrence = reader.string(); + message.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.decode(reader, reader.uint32()); + break; + } + case 4: { + message.triggerer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.dagProcessor = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.decode(reader, reader.uint32()); break; } default: @@ -24287,442 +35962,704 @@ }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + WorkloadsConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenanceWindow message. + * Verifies a WorkloadsConfig message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenanceWindow.verify = function verify(message) { + WorkloadsConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.scheduler != null && message.hasOwnProperty("scheduler")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify(message.scheduler); if (error) - return "startTime." + error; + return "scheduler." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.webServer != null && message.hasOwnProperty("webServer")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify(message.webServer); if (error) - return "endTime." + error; + return "webServer." + error; + } + if (message.worker != null && message.hasOwnProperty("worker")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify(message.worker); + if (error) + return "worker." + error; + } + if (message.triggerer != null && message.hasOwnProperty("triggerer")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify(message.triggerer); + if (error) + return "triggerer." + error; + } + if (message.dagProcessor != null && message.hasOwnProperty("dagProcessor")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.verify(message.dagProcessor); + if (error) + return "dagProcessor." + error; } - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - if (!$util.isString(message.recurrence)) - return "recurrence: string expected"; return null; }; /** - * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig */ - MaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow) + WorkloadsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow(); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig(); + if (object.scheduler != null) { + if (typeof object.scheduler !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.scheduler: object expected"); + message.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.fromObject(object.scheduler); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.webServer != null) { + if (typeof object.webServer !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.webServer: object expected"); + message.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.fromObject(object.webServer); + } + if (object.worker != null) { + if (typeof object.worker !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.worker: object expected"); + message.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.fromObject(object.worker); + } + if (object.triggerer != null) { + if (typeof object.triggerer !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.triggerer: object expected"); + message.triggerer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.fromObject(object.triggerer); + } + if (object.dagProcessor != null) { + if (typeof object.dagProcessor !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.dagProcessor: object expected"); + message.dagProcessor = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.fromObject(object.dagProcessor); } - if (object.recurrence != null) - message.recurrence = String(object.recurrence); return message; }; /** - * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} message MaintenanceWindow + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} message WorkloadsConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenanceWindow.toObject = function toObject(message, options) { + WorkloadsConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startTime = null; - object.endTime = null; - object.recurrence = ""; + object.scheduler = null; + object.webServer = null; + object.worker = null; + object.triggerer = null; + object.dagProcessor = null; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - object.recurrence = message.recurrence; + if (message.scheduler != null && message.hasOwnProperty("scheduler")) + object.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.toObject(message.scheduler, options); + if (message.webServer != null && message.hasOwnProperty("webServer")) + object.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.toObject(message.webServer, options); + if (message.worker != null && message.hasOwnProperty("worker")) + object.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.toObject(message.worker, options); + if (message.triggerer != null && message.hasOwnProperty("triggerer")) + object.triggerer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.toObject(message.triggerer, options); + if (message.dagProcessor != null && message.hasOwnProperty("dagProcessor")) + object.dagProcessor = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.toObject(message.dagProcessor, options); return object; }; - /** - * Converts this MaintenanceWindow to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow - * @instance - * @returns {Object.} JSON object - */ - MaintenanceWindow.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this WorkloadsConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @instance + * @returns {Object.} JSON object + */ + WorkloadsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkloadsConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkloadsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig"; + }; + + WorkloadsConfig.SchedulerResource = (function() { + + /** + * Properties of a SchedulerResource. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @interface ISchedulerResource + * @property {number|null} [cpu] SchedulerResource cpu + * @property {number|null} [memoryGb] SchedulerResource memoryGb + * @property {number|null} [storageGb] SchedulerResource storageGb + * @property {number|null} [count] SchedulerResource count + */ + + /** + * Constructs a new SchedulerResource. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @classdesc Represents a SchedulerResource. + * @implements ISchedulerResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set + */ + function SchedulerResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchedulerResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.cpu = 0; + + /** + * SchedulerResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.memoryGb = 0; + + /** + * SchedulerResource storageGb. + * @member {number} storageGb + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.storageGb = 0; + + /** + * SchedulerResource count. + * @member {number} count + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @instance + */ + SchedulerResource.prototype.count = 0; + + /** + * Creates a new SchedulerResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource instance + */ + SchedulerResource.create = function create(properties) { + return new SchedulerResource(properties); + }; + + /** + * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchedulerResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); + if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count); + return writer; + }; + + /** + * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchedulerResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SchedulerResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchedulerResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpu = reader.float(); + break; + } + case 2: { + message.memoryGb = reader.float(); + break; + } + case 3: { + message.storageGb = reader.float(); + break; + } + case 4: { + message.count = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SchedulerResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchedulerResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SchedulerResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchedulerResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + if (typeof message.storageGb !== "number") + return "storageGb: number expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; + return null; + }; + + /** + * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource + */ + SchedulerResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource(); + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + if (object.storageGb != null) + message.storageGb = Number(object.storageGb); + if (object.count != null) + message.count = object.count | 0; + return message; + }; - /** - * Gets the default type url for MaintenanceWindow - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow"; - }; + /** + * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} message SchedulerResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SchedulerResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpu = 0; + object.memoryGb = 0; + object.storageGb = 0; + object.count = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + return object; + }; - return MaintenanceWindow; - })(); + /** + * Converts this SchedulerResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @instance + * @returns {Object.} JSON object + */ + SchedulerResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1beta1.WorkloadsConfig = (function() { + /** + * Gets the default type url for SchedulerResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SchedulerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource"; + }; - /** - * Properties of a WorkloadsConfig. - * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @interface IWorkloadsConfig - * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null} [scheduler] WorkloadsConfig scheduler - * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null} [webServer] WorkloadsConfig webServer - * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null} [worker] WorkloadsConfig worker - * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource|null} [triggerer] WorkloadsConfig triggerer - */ + return SchedulerResource; + })(); - /** - * Constructs a new WorkloadsConfig. - * @memberof google.cloud.orchestration.airflow.service.v1beta1 - * @classdesc Represents a WorkloadsConfig. - * @implements IWorkloadsConfig - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig=} [properties] Properties to set - */ - function WorkloadsConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + WorkloadsConfig.WebServerResource = (function() { - /** - * WorkloadsConfig scheduler. - * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null|undefined} scheduler - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @instance - */ - WorkloadsConfig.prototype.scheduler = null; + /** + * Properties of a WebServerResource. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @interface IWebServerResource + * @property {number|null} [cpu] WebServerResource cpu + * @property {number|null} [memoryGb] WebServerResource memoryGb + * @property {number|null} [storageGb] WebServerResource storageGb + */ - /** - * WorkloadsConfig webServer. - * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null|undefined} webServer - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @instance - */ - WorkloadsConfig.prototype.webServer = null; + /** + * Constructs a new WebServerResource. + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig + * @classdesc Represents a WebServerResource. + * @implements IWebServerResource + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set + */ + function WebServerResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * WorkloadsConfig worker. - * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null|undefined} worker - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @instance - */ - WorkloadsConfig.prototype.worker = null; + /** + * WebServerResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @instance + */ + WebServerResource.prototype.cpu = 0; - /** - * WorkloadsConfig triggerer. - * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource|null|undefined} triggerer - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @instance - */ - WorkloadsConfig.prototype.triggerer = null; + /** + * WebServerResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @instance + */ + WebServerResource.prototype.memoryGb = 0; - /** - * Creates a new WorkloadsConfig instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig instance - */ - WorkloadsConfig.create = function create(properties) { - return new WorkloadsConfig(properties); - }; + /** + * WebServerResource storageGb. + * @member {number} storageGb + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @instance + */ + WebServerResource.prototype.storageGb = 0; - /** - * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkloadsConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scheduler != null && Object.hasOwnProperty.call(message, "scheduler")) - $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.encode(message.scheduler, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.webServer != null && Object.hasOwnProperty.call(message, "webServer")) - $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.encode(message.webServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.worker != null && Object.hasOwnProperty.call(message, "worker")) - $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.encode(message.worker, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.triggerer != null && Object.hasOwnProperty.call(message, "triggerer")) - $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.encode(message.triggerer, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Creates a new WebServerResource instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource instance + */ + WebServerResource.create = function create(properties) { + return new WebServerResource(properties); + }; - /** - * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkloadsConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebServerResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); + if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + return writer; + }; - /** - * Decodes a WorkloadsConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkloadsConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.decode(reader, reader.uint32()); - break; - } - case 2: { - message.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.decode(reader, reader.uint32()); - break; - } - case 3: { - message.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.decode(reader, reader.uint32()); - break; - } - case 4: { - message.triggerer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.decode(reader, reader.uint32()); + /** + * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebServerResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebServerResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebServerResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpu = reader.float(); + break; + } + case 2: { + message.memoryGb = reader.float(); + break; + } + case 3: { + message.storageGb = reader.float(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkloadsConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a WebServerResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebServerResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a WorkloadsConfig message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkloadsConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scheduler != null && message.hasOwnProperty("scheduler")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify(message.scheduler); - if (error) - return "scheduler." + error; - } - if (message.webServer != null && message.hasOwnProperty("webServer")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify(message.webServer); - if (error) - return "webServer." + error; - } - if (message.worker != null && message.hasOwnProperty("worker")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify(message.worker); - if (error) - return "worker." + error; - } - if (message.triggerer != null && message.hasOwnProperty("triggerer")) { - var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify(message.triggerer); - if (error) - return "triggerer." + error; - } - return null; - }; + /** + * Verifies a WebServerResource message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebServerResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (typeof message.cpu !== "number") + return "cpu: number expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (typeof message.memoryGb !== "number") + return "memoryGb: number expected"; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + if (typeof message.storageGb !== "number") + return "storageGb: number expected"; + return null; + }; - /** - * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig - */ - WorkloadsConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig) + /** + * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource + */ + WebServerResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource(); + if (object.cpu != null) + message.cpu = Number(object.cpu); + if (object.memoryGb != null) + message.memoryGb = Number(object.memoryGb); + if (object.storageGb != null) + message.storageGb = Number(object.storageGb); + return message; + }; + + /** + * Creates a plain object from a WebServerResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} message WebServerResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebServerResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpu = 0; + object.memoryGb = 0; + object.storageGb = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig(); - if (object.scheduler != null) { - if (typeof object.scheduler !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.scheduler: object expected"); - message.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.fromObject(object.scheduler); - } - if (object.webServer != null) { - if (typeof object.webServer !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.webServer: object expected"); - message.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.fromObject(object.webServer); - } - if (object.worker != null) { - if (typeof object.worker !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.worker: object expected"); - message.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.fromObject(object.worker); - } - if (object.triggerer != null) { - if (typeof object.triggerer !== "object") - throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.triggerer: object expected"); - message.triggerer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.fromObject(object.triggerer); - } - return message; - }; + }; - /** - * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} message WorkloadsConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WorkloadsConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.scheduler = null; - object.webServer = null; - object.worker = null; - object.triggerer = null; - } - if (message.scheduler != null && message.hasOwnProperty("scheduler")) - object.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.toObject(message.scheduler, options); - if (message.webServer != null && message.hasOwnProperty("webServer")) - object.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.toObject(message.webServer, options); - if (message.worker != null && message.hasOwnProperty("worker")) - object.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.toObject(message.worker, options); - if (message.triggerer != null && message.hasOwnProperty("triggerer")) - object.triggerer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.toObject(message.triggerer, options); - return object; - }; + /** + * Converts this WebServerResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @instance + * @returns {Object.} JSON object + */ + WebServerResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this WorkloadsConfig to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @instance - * @returns {Object.} JSON object - */ - WorkloadsConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for WebServerResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WebServerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource"; + }; - /** - * Gets the default type url for WorkloadsConfig - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - WorkloadsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig"; - }; + return WebServerResource; + })(); - WorkloadsConfig.SchedulerResource = (function() { + WorkloadsConfig.WorkerResource = (function() { /** - * Properties of a SchedulerResource. + * Properties of a WorkerResource. * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @interface ISchedulerResource - * @property {number|null} [cpu] SchedulerResource cpu - * @property {number|null} [memoryGb] SchedulerResource memoryGb - * @property {number|null} [storageGb] SchedulerResource storageGb - * @property {number|null} [count] SchedulerResource count + * @interface IWorkerResource + * @property {number|null} [cpu] WorkerResource cpu + * @property {number|null} [memoryGb] WorkerResource memoryGb + * @property {number|null} [storageGb] WorkerResource storageGb + * @property {number|null} [minCount] WorkerResource minCount + * @property {number|null} [maxCount] WorkerResource maxCount */ /** - * Constructs a new SchedulerResource. + * Constructs a new WorkerResource. * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @classdesc Represents a SchedulerResource. - * @implements ISchedulerResource + * @classdesc Represents a WorkerResource. + * @implements IWorkerResource * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set */ - function SchedulerResource(properties) { + function WorkerResource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24730,59 +36667,67 @@ } /** - * SchedulerResource cpu. + * WorkerResource cpu. * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @instance */ - SchedulerResource.prototype.cpu = 0; + WorkerResource.prototype.cpu = 0; /** - * SchedulerResource memoryGb. + * WorkerResource memoryGb. * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @instance */ - SchedulerResource.prototype.memoryGb = 0; + WorkerResource.prototype.memoryGb = 0; /** - * SchedulerResource storageGb. + * WorkerResource storageGb. * @member {number} storageGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @instance */ - SchedulerResource.prototype.storageGb = 0; + WorkerResource.prototype.storageGb = 0; /** - * SchedulerResource count. - * @member {number} count - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * WorkerResource minCount. + * @member {number} minCount + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @instance */ - SchedulerResource.prototype.count = 0; + WorkerResource.prototype.minCount = 0; /** - * Creates a new SchedulerResource instance using the specified properties. + * WorkerResource maxCount. + * @member {number} maxCount + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @instance + */ + WorkerResource.prototype.maxCount = 0; + + /** + * Creates a new WorkerResource instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource instance */ - SchedulerResource.create = function create(properties) { - return new SchedulerResource(properties); + WorkerResource.create = function create(properties) { + return new WorkerResource(properties); }; /** - * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchedulerResource.encode = function encode(message, writer) { + WorkerResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) @@ -24791,39 +36736,41 @@ writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count); + if (message.minCount != null && Object.hasOwnProperty.call(message, "minCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minCount); + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxCount); return writer; }; /** - * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages. + * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchedulerResource.encodeDelimited = function encodeDelimited(message, writer) { + WorkerResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SchedulerResource message from the specified reader or buffer. + * Decodes a WorkerResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchedulerResource.decode = function decode(reader, length) { + WorkerResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24840,7 +36787,11 @@ break; } case 4: { - message.count = reader.int32(); + message.minCount = reader.int32(); + break; + } + case 5: { + message.maxCount = reader.int32(); break; } default: @@ -24852,30 +36803,30 @@ }; /** - * Decodes a SchedulerResource message from the specified reader or buffer, length delimited. + * Decodes a WorkerResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchedulerResource.decodeDelimited = function decodeDelimited(reader) { + WorkerResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SchedulerResource message. + * Verifies a WorkerResource message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchedulerResource.verify = function verify(message) { + WorkerResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cpu != null && message.hasOwnProperty("cpu")) @@ -24887,45 +36838,50 @@ if (message.storageGb != null && message.hasOwnProperty("storageGb")) if (typeof message.storageGb !== "number") return "storageGb: number expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; + if (message.minCount != null && message.hasOwnProperty("minCount")) + if (!$util.isInteger(message.minCount)) + return "minCount: integer expected"; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) + if (!$util.isInteger(message.maxCount)) + return "maxCount: integer expected"; return null; }; /** - * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types. + * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource */ - SchedulerResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource) + WorkerResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource(); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource(); if (object.cpu != null) message.cpu = Number(object.cpu); if (object.memoryGb != null) message.memoryGb = Number(object.memoryGb); if (object.storageGb != null) message.storageGb = Number(object.storageGb); - if (object.count != null) - message.count = object.count | 0; + if (object.minCount != null) + message.minCount = object.minCount | 0; + if (object.maxCount != null) + message.maxCount = object.maxCount | 0; return message; }; /** - * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified. + * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} message SchedulerResource + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} message WorkerResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SchedulerResource.toObject = function toObject(message, options) { + WorkerResource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24933,7 +36889,8 @@ object.cpu = 0; object.memoryGb = 0; object.storageGb = 0; - object.count = 0; + object.minCount = 0; + object.maxCount = 0; } if (message.cpu != null && message.hasOwnProperty("cpu")) object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; @@ -24941,60 +36898,62 @@ object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; if (message.storageGb != null && message.hasOwnProperty("storageGb")) object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; + if (message.minCount != null && message.hasOwnProperty("minCount")) + object.minCount = message.minCount; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) + object.maxCount = message.maxCount; return object; }; /** - * Converts this SchedulerResource to JSON. + * Converts this WorkerResource to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @instance * @returns {Object.} JSON object */ - SchedulerResource.prototype.toJSON = function toJSON() { + WorkerResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SchedulerResource + * Gets the default type url for WorkerResource * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SchedulerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WorkerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource"; }; - return SchedulerResource; + return WorkerResource; })(); - WorkloadsConfig.WebServerResource = (function() { + WorkloadsConfig.TriggererResource = (function() { /** - * Properties of a WebServerResource. + * Properties of a TriggererResource. * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @interface IWebServerResource - * @property {number|null} [cpu] WebServerResource cpu - * @property {number|null} [memoryGb] WebServerResource memoryGb - * @property {number|null} [storageGb] WebServerResource storageGb + * @interface ITriggererResource + * @property {number|null} [count] TriggererResource count + * @property {number|null} [cpu] TriggererResource cpu + * @property {number|null} [memoryGb] TriggererResource memoryGb */ /** - * Constructs a new WebServerResource. + * Constructs a new TriggererResource. * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @classdesc Represents a WebServerResource. - * @implements IWebServerResource + * @classdesc Represents a TriggererResource. + * @implements ITriggererResource * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource=} [properties] Properties to set */ - function WebServerResource(properties) { + function TriggererResource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25002,103 +36961,103 @@ } /** - * WebServerResource cpu. - * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * TriggererResource count. + * @member {number} count + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @instance */ - WebServerResource.prototype.cpu = 0; + TriggererResource.prototype.count = 0; /** - * WebServerResource memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * TriggererResource cpu. + * @member {number} cpu + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @instance */ - WebServerResource.prototype.memoryGb = 0; + TriggererResource.prototype.cpu = 0; /** - * WebServerResource storageGb. - * @member {number} storageGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * TriggererResource memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @instance */ - WebServerResource.prototype.storageGb = 0; + TriggererResource.prototype.memoryGb = 0; /** - * Creates a new WebServerResource instance using the specified properties. + * Creates a new TriggererResource instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource instance */ - WebServerResource.create = function create(properties) { - return new WebServerResource(properties); + TriggererResource.create = function create(properties) { + return new TriggererResource(properties); }; /** - * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * Encodes the specified TriggererResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource} message TriggererResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebServerResource.encode = function encode(message, writer) { + TriggererResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu); + writer.uint32(/* id 2, wireType 5 =*/21).float(message.cpu); if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); - if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); + writer.uint32(/* id 3, wireType 5 =*/29).float(message.memoryGb); return writer; }; /** - * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages. + * Encodes the specified TriggererResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource} message TriggererResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebServerResource.encodeDelimited = function encodeDelimited(message, writer) { + TriggererResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebServerResource message from the specified reader or buffer. + * Decodes a TriggererResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebServerResource.decode = function decode(reader, length) { + TriggererResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cpu = reader.float(); + message.count = reader.int32(); break; } case 2: { - message.memoryGb = reader.float(); + message.cpu = reader.float(); break; } case 3: { - message.storageGb = reader.float(); + message.memoryGb = reader.float(); break; } default: @@ -25110,143 +37069,142 @@ }; /** - * Decodes a WebServerResource message from the specified reader or buffer, length delimited. + * Decodes a TriggererResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebServerResource.decodeDelimited = function decodeDelimited(reader) { + TriggererResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebServerResource message. + * Verifies a TriggererResource message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebServerResource.verify = function verify(message) { + TriggererResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; if (message.cpu != null && message.hasOwnProperty("cpu")) if (typeof message.cpu !== "number") return "cpu: number expected"; if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) if (typeof message.memoryGb !== "number") return "memoryGb: number expected"; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - if (typeof message.storageGb !== "number") - return "storageGb: number expected"; return null; }; /** - * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types. + * Creates a TriggererResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource */ - WebServerResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource) + TriggererResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource(); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource(); + if (object.count != null) + message.count = object.count | 0; if (object.cpu != null) message.cpu = Number(object.cpu); if (object.memoryGb != null) message.memoryGb = Number(object.memoryGb); - if (object.storageGb != null) - message.storageGb = Number(object.storageGb); return message; }; /** - * Creates a plain object from a WebServerResource message. Also converts values to other types if specified. + * Creates a plain object from a TriggererResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} message WebServerResource + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} message TriggererResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebServerResource.toObject = function toObject(message, options) { + TriggererResource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.count = 0; object.cpu = 0; object.memoryGb = 0; - object.storageGb = 0; } + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; if (message.cpu != null && message.hasOwnProperty("cpu")) object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; return object; }; /** - * Converts this WebServerResource to JSON. + * Converts this TriggererResource to JSON. * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @instance * @returns {Object.} JSON object */ - WebServerResource.prototype.toJSON = function toJSON() { + TriggererResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WebServerResource + * Gets the default type url for TriggererResource * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WebServerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TriggererResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource"; + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource"; }; - return WebServerResource; + return TriggererResource; })(); - WorkloadsConfig.WorkerResource = (function() { + WorkloadsConfig.DagProcessorResource = (function() { /** - * Properties of a WorkerResource. + * Properties of a DagProcessorResource. * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @interface IWorkerResource - * @property {number|null} [cpu] WorkerResource cpu - * @property {number|null} [memoryGb] WorkerResource memoryGb - * @property {number|null} [storageGb] WorkerResource storageGb - * @property {number|null} [minCount] WorkerResource minCount - * @property {number|null} [maxCount] WorkerResource maxCount + * @interface IDagProcessorResource + * @property {number|null} [cpu] DagProcessorResource cpu + * @property {number|null} [memoryGb] DagProcessorResource memoryGb + * @property {number|null} [storageGb] DagProcessorResource storageGb + * @property {number|null} [count] DagProcessorResource count */ /** - * Constructs a new WorkerResource. + * Constructs a new DagProcessorResource. * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @classdesc Represents a WorkerResource. - * @implements IWorkerResource + * @classdesc Represents a DagProcessorResource. + * @implements IDagProcessorResource * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource=} [properties] Properties to set */ - function WorkerResource(properties) { + function DagProcessorResource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25254,67 +37212,59 @@ } /** - * WorkerResource cpu. + * DagProcessorResource cpu. * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @instance */ - WorkerResource.prototype.cpu = 0; + DagProcessorResource.prototype.cpu = 0; /** - * WorkerResource memoryGb. + * DagProcessorResource memoryGb. * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @instance */ - WorkerResource.prototype.memoryGb = 0; + DagProcessorResource.prototype.memoryGb = 0; /** - * WorkerResource storageGb. + * DagProcessorResource storageGb. * @member {number} storageGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource - * @instance - */ - WorkerResource.prototype.storageGb = 0; - - /** - * WorkerResource minCount. - * @member {number} minCount - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @instance */ - WorkerResource.prototype.minCount = 0; + DagProcessorResource.prototype.storageGb = 0; /** - * WorkerResource maxCount. - * @member {number} maxCount - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * DagProcessorResource count. + * @member {number} count + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @instance */ - WorkerResource.prototype.maxCount = 0; + DagProcessorResource.prototype.count = 0; /** - * Creates a new WorkerResource instance using the specified properties. + * Creates a new DagProcessorResource instance using the specified properties. * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource instance + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource} DagProcessorResource instance */ - WorkerResource.create = function create(properties) { - return new WorkerResource(properties); + DagProcessorResource.create = function create(properties) { + return new DagProcessorResource(properties); }; /** - * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify|verify} messages. + * Encodes the specified DagProcessorResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource} message DagProcessorResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkerResource.encode = function encode(message, writer) { + DagProcessorResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) @@ -25323,41 +37273,39 @@ writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb); if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb); - if (message.minCount != null && Object.hasOwnProperty.call(message, "minCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minCount); - if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxCount); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count); return writer; }; /** - * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify|verify} messages. + * Encodes the specified DagProcessorResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource} message WorkerResource message or plain object to encode + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IDagProcessorResource} message DagProcessorResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkerResource.encodeDelimited = function encodeDelimited(message, writer) { + DagProcessorResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WorkerResource message from the specified reader or buffer. + * Decodes a DagProcessorResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource} DagProcessorResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkerResource.decode = function decode(reader, length) { + DagProcessorResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25374,11 +37322,7 @@ break; } case 4: { - message.minCount = reader.int32(); - break; - } - case 5: { - message.maxCount = reader.int32(); + message.count = reader.int32(); break; } default: @@ -25390,30 +37334,30 @@ }; /** - * Decodes a WorkerResource message from the specified reader or buffer, length delimited. + * Decodes a DagProcessorResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource} DagProcessorResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkerResource.decodeDelimited = function decodeDelimited(reader) { + DagProcessorResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WorkerResource message. + * Verifies a DagProcessorResource message. * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkerResource.verify = function verify(message) { + DagProcessorResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cpu != null && message.hasOwnProperty("cpu")) @@ -25425,50 +37369,45 @@ if (message.storageGb != null && message.hasOwnProperty("storageGb")) if (typeof message.storageGb !== "number") return "storageGb: number expected"; - if (message.minCount != null && message.hasOwnProperty("minCount")) - if (!$util.isInteger(message.minCount)) - return "minCount: integer expected"; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - if (!$util.isInteger(message.maxCount)) - return "maxCount: integer expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; return null; }; /** - * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types. + * Creates a DagProcessorResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} WorkerResource + * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource} DagProcessorResource */ - WorkerResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource) + DagProcessorResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource) return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource(); + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource(); if (object.cpu != null) message.cpu = Number(object.cpu); if (object.memoryGb != null) message.memoryGb = Number(object.memoryGb); if (object.storageGb != null) message.storageGb = Number(object.storageGb); - if (object.minCount != null) - message.minCount = object.minCount | 0; - if (object.maxCount != null) - message.maxCount = object.maxCount | 0; + if (object.count != null) + message.count = object.count | 0; return message; }; /** - * Creates a plain object from a WorkerResource message. Also converts values to other types if specified. + * Creates a plain object from a DagProcessorResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource} message WorkerResource + * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource} message DagProcessorResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WorkerResource.toObject = function toObject(message, options) { + DagProcessorResource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25476,302 +37415,703 @@ object.cpu = 0; object.memoryGb = 0; object.storageGb = 0; - object.minCount = 0; - object.maxCount = 0; + object.count = 0; + } + if (message.cpu != null && message.hasOwnProperty("cpu")) + object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + if (message.storageGb != null && message.hasOwnProperty("storageGb")) + object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + return object; + }; + + /** + * Converts this DagProcessorResource to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource + * @instance + * @returns {Object.} JSON object + */ + DagProcessorResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DagProcessorResource + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DagProcessorResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.DagProcessorResource"; + }; + + return DagProcessorResource; + })(); + + return WorkloadsConfig; + })(); + + v1beta1.DataRetentionConfig = (function() { + + /** + * Properties of a DataRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IDataRetentionConfig + * @property {google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig|null} [taskLogsRetentionConfig] DataRetentionConfig taskLogsRetentionConfig + */ + + /** + * Constructs a new DataRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a DataRetentionConfig. + * @implements IDataRetentionConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig=} [properties] Properties to set + */ + function DataRetentionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataRetentionConfig taskLogsRetentionConfig. + * @member {google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig|null|undefined} taskLogsRetentionConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @instance + */ + DataRetentionConfig.prototype.taskLogsRetentionConfig = null; + + /** + * Creates a new DataRetentionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig} DataRetentionConfig instance + */ + DataRetentionConfig.create = function create(properties) { + return new DataRetentionConfig(properties); + }; + + /** + * Encodes the specified DataRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig} message DataRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskLogsRetentionConfig != null && Object.hasOwnProperty.call(message, "taskLogsRetentionConfig")) + $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.encode(message.taskLogsRetentionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IDataRetentionConfig} message DataRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig} DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.taskLogsRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataRetentionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig} DataRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataRetentionConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataRetentionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskLogsRetentionConfig != null && message.hasOwnProperty("taskLogsRetentionConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.verify(message.taskLogsRetentionConfig); + if (error) + return "taskLogsRetentionConfig." + error; + } + return null; + }; + + /** + * Creates a DataRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig} DataRetentionConfig + */ + DataRetentionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig(); + if (object.taskLogsRetentionConfig != null) { + if (typeof object.taskLogsRetentionConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.taskLogsRetentionConfig: object expected"); + message.taskLogsRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.fromObject(object.taskLogsRetentionConfig); + } + return message; + }; + + /** + * Creates a plain object from a DataRetentionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig} message DataRetentionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataRetentionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.taskLogsRetentionConfig = null; + if (message.taskLogsRetentionConfig != null && message.hasOwnProperty("taskLogsRetentionConfig")) + object.taskLogsRetentionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.toObject(message.taskLogsRetentionConfig, options); + return object; + }; + + /** + * Converts this DataRetentionConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @instance + * @returns {Object.} JSON object + */ + DataRetentionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataRetentionConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataRetentionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig"; + }; + + return DataRetentionConfig; + })(); + + v1beta1.TaskLogsRetentionConfig = (function() { + + /** + * Properties of a TaskLogsRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface ITaskLogsRetentionConfig + * @property {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode|null} [storageMode] TaskLogsRetentionConfig storageMode + */ + + /** + * Constructs a new TaskLogsRetentionConfig. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a TaskLogsRetentionConfig. + * @implements ITaskLogsRetentionConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig=} [properties] Properties to set + */ + function TaskLogsRetentionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskLogsRetentionConfig storageMode. + * @member {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode} storageMode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @instance + */ + TaskLogsRetentionConfig.prototype.storageMode = 0; + + /** + * Creates a new TaskLogsRetentionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig} TaskLogsRetentionConfig instance + */ + TaskLogsRetentionConfig.create = function create(properties) { + return new TaskLogsRetentionConfig(properties); + }; + + /** + * Encodes the specified TaskLogsRetentionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig} message TaskLogsRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLogsRetentionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.storageMode != null && Object.hasOwnProperty.call(message, "storageMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.storageMode); + return writer; + }; + + /** + * Encodes the specified TaskLogsRetentionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.ITaskLogsRetentionConfig} message TaskLogsRetentionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLogsRetentionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig} TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLogsRetentionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.storageMode = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.cpu != null && message.hasOwnProperty("cpu")) - object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; - if (message.storageGb != null && message.hasOwnProperty("storageGb")) - object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb; - if (message.minCount != null && message.hasOwnProperty("minCount")) - object.minCount = message.minCount; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - object.maxCount = message.maxCount; - return object; - }; + } + return message; + }; - /** - * Converts this WorkerResource to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource - * @instance - * @returns {Object.} JSON object - */ - WorkerResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a TaskLogsRetentionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig} TaskLogsRetentionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLogsRetentionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for WorkerResource - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - WorkerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Verifies a TaskLogsRetentionConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskLogsRetentionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.storageMode != null && message.hasOwnProperty("storageMode")) + switch (message.storageMode) { + default: + return "storageMode: enum value expected"; + case 0: + case 1: + case 2: + break; } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource"; - }; + return null; + }; - return WorkerResource; - })(); + /** + * Creates a TaskLogsRetentionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig} TaskLogsRetentionConfig + */ + TaskLogsRetentionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig) + return object; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig(); + switch (object.storageMode) { + default: + if (typeof object.storageMode === "number") { + message.storageMode = object.storageMode; + break; + } + break; + case "TASK_LOGS_STORAGE_MODE_UNSPECIFIED": + case 0: + message.storageMode = 0; + break; + case "CLOUD_LOGGING_AND_CLOUD_STORAGE": + case 1: + message.storageMode = 1; + break; + case "CLOUD_LOGGING_ONLY": + case 2: + message.storageMode = 2; + break; + } + return message; + }; - WorkloadsConfig.TriggererResource = (function() { + /** + * Creates a plain object from a TaskLogsRetentionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig} message TaskLogsRetentionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TaskLogsRetentionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.storageMode = options.enums === String ? "TASK_LOGS_STORAGE_MODE_UNSPECIFIED" : 0; + if (message.storageMode != null && message.hasOwnProperty("storageMode")) + object.storageMode = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode[message.storageMode] === undefined ? message.storageMode : $root.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode[message.storageMode] : message.storageMode; + return object; + }; - /** - * Properties of a TriggererResource. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @interface ITriggererResource - * @property {number|null} [count] TriggererResource count - * @property {number|null} [cpu] TriggererResource cpu - * @property {number|null} [memoryGb] TriggererResource memoryGb - */ + /** + * Converts this TaskLogsRetentionConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @instance + * @returns {Object.} JSON object + */ + TaskLogsRetentionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new TriggererResource. - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig - * @classdesc Represents a TriggererResource. - * @implements ITriggererResource - * @constructor - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource=} [properties] Properties to set - */ - function TriggererResource(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Gets the default type url for TaskLogsRetentionConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TaskLogsRetentionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig"; + }; - /** - * TriggererResource count. - * @member {number} count - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @instance - */ - TriggererResource.prototype.count = 0; + /** + * TaskLogsStorageMode enum. + * @name google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.TaskLogsStorageMode + * @enum {number} + * @property {number} TASK_LOGS_STORAGE_MODE_UNSPECIFIED=0 TASK_LOGS_STORAGE_MODE_UNSPECIFIED value + * @property {number} CLOUD_LOGGING_AND_CLOUD_STORAGE=1 CLOUD_LOGGING_AND_CLOUD_STORAGE value + * @property {number} CLOUD_LOGGING_ONLY=2 CLOUD_LOGGING_ONLY value + */ + TaskLogsRetentionConfig.TaskLogsStorageMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TASK_LOGS_STORAGE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD_LOGGING_AND_CLOUD_STORAGE"] = 1; + values[valuesById[2] = "CLOUD_LOGGING_ONLY"] = 2; + return values; + })(); - /** - * TriggererResource cpu. - * @member {number} cpu - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @instance - */ - TriggererResource.prototype.cpu = 0; + return TaskLogsRetentionConfig; + })(); - /** - * TriggererResource memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @instance - */ - TriggererResource.prototype.memoryGb = 0; + v1beta1.StorageConfig = (function() { - /** - * Creates a new TriggererResource instance using the specified properties. - * @function create - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource=} [properties] Properties to set - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource instance - */ - TriggererResource.create = function create(properties) { - return new TriggererResource(properties); - }; + /** + * Properties of a StorageConfig. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @interface IStorageConfig + * @property {string|null} [bucket] StorageConfig bucket + */ - /** - * Encodes the specified TriggererResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. - * @function encode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource} message TriggererResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TriggererResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); - if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.cpu); - if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.memoryGb); - return writer; - }; + /** + * Constructs a new StorageConfig. + * @memberof google.cloud.orchestration.airflow.service.v1beta1 + * @classdesc Represents a StorageConfig. + * @implements IStorageConfig + * @constructor + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig=} [properties] Properties to set + */ + function StorageConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified TriggererResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ITriggererResource} message TriggererResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TriggererResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * StorageConfig bucket. + * @member {string} bucket + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @instance + */ + StorageConfig.prototype.bucket = ""; + + /** + * Creates a new StorageConfig instance using the specified properties. + * @function create + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig=} [properties] Properties to set + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StorageConfig} StorageConfig instance + */ + StorageConfig.create = function create(properties) { + return new StorageConfig(properties); + }; + + /** + * Encodes the specified StorageConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig} message StorageConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StorageConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket); + return writer; + }; - /** - * Decodes a TriggererResource message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TriggererResource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.count = reader.int32(); - break; - } - case 2: { - message.cpu = reader.float(); - break; - } - case 3: { - message.memoryGb = reader.float(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified StorageConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig} message StorageConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StorageConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StorageConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StorageConfig} StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StorageConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.bucket = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a TriggererResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TriggererResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a TriggererResource message. - * @function verify - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TriggererResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; - if (message.cpu != null && message.hasOwnProperty("cpu")) - if (typeof message.cpu !== "number") - return "cpu: number expected"; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - if (typeof message.memoryGb !== "number") - return "memoryGb: number expected"; - return null; - }; + /** + * Decodes a StorageConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StorageConfig} StorageConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StorageConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a TriggererResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} TriggererResource - */ - TriggererResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource) - return object; - var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource(); - if (object.count != null) - message.count = object.count | 0; - if (object.cpu != null) - message.cpu = Number(object.cpu); - if (object.memoryGb != null) - message.memoryGb = Number(object.memoryGb); - return message; - }; + /** + * Verifies a StorageConfig message. + * @function verify + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StorageConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bucket != null && message.hasOwnProperty("bucket")) + if (!$util.isString(message.bucket)) + return "bucket: string expected"; + return null; + }; - /** - * Creates a plain object from a TriggererResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource} message TriggererResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TriggererResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.count = 0; - object.cpu = 0; - object.memoryGb = 0; - } - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; - if (message.cpu != null && message.hasOwnProperty("cpu")) - object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb; + /** + * Creates a StorageConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.orchestration.airflow.service.v1beta1.StorageConfig} StorageConfig + */ + StorageConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig) return object; - }; + var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig(); + if (object.bucket != null) + message.bucket = String(object.bucket); + return message; + }; - /** - * Converts this TriggererResource to JSON. - * @function toJSON - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @instance - * @returns {Object.} JSON object - */ - TriggererResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a StorageConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {google.cloud.orchestration.airflow.service.v1beta1.StorageConfig} message StorageConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StorageConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.bucket = ""; + if (message.bucket != null && message.hasOwnProperty("bucket")) + object.bucket = message.bucket; + return object; + }; - /** - * Gets the default type url for TriggererResource - * @function getTypeUrl - * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TriggererResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.TriggererResource"; - }; + /** + * Converts this StorageConfig to JSON. + * @function toJSON + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @instance + * @returns {Object.} JSON object + */ + StorageConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TriggererResource; - })(); + /** + * Gets the default type url for StorageConfig + * @function getTypeUrl + * @memberof google.cloud.orchestration.airflow.service.v1beta1.StorageConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StorageConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.StorageConfig"; + }; - return WorkloadsConfig; + return StorageConfig; })(); v1beta1.RecoveryConfig = (function() { @@ -26946,6 +39286,8 @@ * @property {google.protobuf.ITimestamp|null} [createTime] Environment createTime * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime * @property {Object.|null} [labels] Environment labels + * @property {boolean|null} [satisfiesPzs] Environment satisfiesPzs + * @property {google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig|null} [storageConfig] Environment storageConfig */ /** @@ -27020,6 +39362,22 @@ */ Environment.prototype.labels = $util.emptyObject; + /** + * Environment satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environment + * @instance + */ + Environment.prototype.satisfiesPzs = false; + + /** + * Environment storageConfig. + * @member {google.cloud.orchestration.airflow.service.v1beta1.IStorageConfig|null|undefined} storageConfig + * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environment + * @instance + */ + Environment.prototype.storageConfig = null; + /** * Creates a new Environment instance using the specified properties. * @function create @@ -27059,6 +39417,10 @@ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.satisfiesPzs); + if (message.storageConfig != null && Object.hasOwnProperty.call(message, "storageConfig")) + $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.encode(message.storageConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -27140,6 +39502,14 @@ message.labels[key] = value; break; } + case 8: { + message.satisfiesPzs = reader.bool(); + break; + } + case 9: { + message.storageConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -27216,6 +39586,14 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.storageConfig != null && message.hasOwnProperty("storageConfig")) { + var error = $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.verify(message.storageConfig); + if (error) + return "storageConfig." + error; + } return null; }; @@ -27289,6 +39667,13 @@ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.storageConfig != null) { + if (typeof object.storageConfig !== "object") + throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.Environment.storageConfig: object expected"); + message.storageConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.fromObject(object.storageConfig); + } return message; }; @@ -27314,6 +39699,8 @@ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.createTime = null; object.updateTime = null; + object.satisfiesPzs = false; + object.storageConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -27333,6 +39720,10 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.storageConfig != null && message.hasOwnProperty("storageConfig")) + object.storageConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.StorageConfig.toObject(message.storageConfig, options); return object; }; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/protos.json b/packages/google-cloud-orchestration-airflow-service/protos/protos.json index 0e58abf7cdff..3a04a6d7dbd7 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/protos.json +++ b/packages/google-cloud-orchestration-airflow-service/protos/protos.json @@ -190,6 +190,212 @@ } ] }, + "ListWorkloads": { + "requestType": "ListWorkloadsRequest", + "responseType": "ListWorkloadsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/environments/*}/workloads", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/environments/*}/workloads" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateUserWorkloadsSecret": { + "requestType": "CreateUserWorkloadsSecretRequest", + "responseType": "UserWorkloadsSecret", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets", + "(google.api.http).body": "user_workloads_secret", + "(google.api.method_signature)": "parent,user_workloads_secret" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets", + "body": "user_workloads_secret" + } + }, + { + "(google.api.method_signature)": "parent,user_workloads_secret" + } + ] + }, + "GetUserWorkloadsSecret": { + "requestType": "GetUserWorkloadsSecretRequest", + "responseType": "UserWorkloadsSecret", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListUserWorkloadsSecrets": { + "requestType": "ListUserWorkloadsSecretsRequest", + "responseType": "ListUserWorkloadsSecretsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateUserWorkloadsSecret": { + "requestType": "UpdateUserWorkloadsSecretRequest", + "responseType": "UserWorkloadsSecret", + "options": { + "(google.api.http).put": "/v1/{user_workloads_secret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "(google.api.http).body": "user_workloads_secret", + "(google.api.method_signature)": "user_workloads_secret" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{user_workloads_secret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "body": "user_workloads_secret" + } + }, + { + "(google.api.method_signature)": "user_workloads_secret" + } + ] + }, + "DeleteUserWorkloadsSecret": { + "requestType": "DeleteUserWorkloadsSecretRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateUserWorkloadsConfigMap": { + "requestType": "CreateUserWorkloadsConfigMapRequest", + "responseType": "UserWorkloadsConfigMap", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps", + "(google.api.http).body": "user_workloads_config_map", + "(google.api.method_signature)": "parent,user_workloads_config_map" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps", + "body": "user_workloads_config_map" + } + }, + { + "(google.api.method_signature)": "parent,user_workloads_config_map" + } + ] + }, + "GetUserWorkloadsConfigMap": { + "requestType": "GetUserWorkloadsConfigMapRequest", + "responseType": "UserWorkloadsConfigMap", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListUserWorkloadsConfigMaps": { + "requestType": "ListUserWorkloadsConfigMapsRequest", + "responseType": "ListUserWorkloadsConfigMapsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateUserWorkloadsConfigMap": { + "requestType": "UpdateUserWorkloadsConfigMapRequest", + "responseType": "UserWorkloadsConfigMap", + "options": { + "(google.api.http).put": "/v1/{user_workloads_config_map.name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "(google.api.http).body": "user_workloads_config_map", + "(google.api.method_signature)": "user_workloads_config_map" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{user_workloads_config_map.name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "body": "user_workloads_config_map" + } + }, + { + "(google.api.method_signature)": "user_workloads_config_map" + } + ] + }, + "DeleteUserWorkloadsConfigMap": { + "requestType": "DeleteUserWorkloadsConfigMapRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "SaveSnapshot": { "requestType": "SaveSnapshotRequest", "responseType": "google.longrunning.Operation", @@ -496,561 +702,982 @@ } } }, - "SaveSnapshotRequest": { + "CreateUserWorkloadsSecretRequest": { "fields": { - "environment": { + "parent": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "snapshotLocation": { - "type": "string", - "id": 2 + "userWorkloadsSecret": { + "type": "UserWorkloadsSecret", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "SaveSnapshotResponse": { + "GetUserWorkloadsSecretRequest": { "fields": { - "snapshotPath": { + "name": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsSecret" + } } } }, - "LoadSnapshotRequest": { + "ListUserWorkloadsSecretsRequest": { "fields": { - "environment": { - "type": "string", - "id": 1 - }, - "snapshotPath": { + "parent": { "type": "string", - "id": 2 - }, - "skipPypiPackagesInstallation": { - "type": "bool", - "id": 3 - }, - "skipEnvironmentVariablesSetting": { - "type": "bool", - "id": 4 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "skipAirflowOverridesSetting": { - "type": "bool", - "id": 5 + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "skipGcsDataCopying": { - "type": "bool", - "id": 6 + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "LoadSnapshotResponse": { - "fields": {} + "UpdateUserWorkloadsSecretRequest": { + "fields": { + "userWorkloadsSecret": { + "type": "UserWorkloadsSecret", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } }, - "DatabaseFailoverRequest": { + "DeleteUserWorkloadsSecretRequest": { "fields": { - "environment": { + "name": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsSecret" + } } } }, - "DatabaseFailoverResponse": { - "fields": {} - }, - "FetchDatabasePropertiesRequest": { + "CreateUserWorkloadsConfigMapRequest": { "fields": { - "environment": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "composer.googleapis.com/Environment" } + }, + "userWorkloadsConfigMap": { + "type": "UserWorkloadsConfigMap", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "FetchDatabasePropertiesResponse": { + "GetUserWorkloadsConfigMapRequest": { "fields": { - "primaryGceZone": { - "type": "string", - "id": 1 - }, - "secondaryGceZone": { + "name": { "type": "string", - "id": 2 - }, - "isFailoverReplicaAvailable": { - "type": "bool", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsConfigMap" + } } } }, - "EnvironmentConfig": { + "ListUserWorkloadsConfigMapsRequest": { "fields": { - "gkeCluster": { - "type": "string", - "id": 1 - }, - "dagGcsPrefix": { + "parent": { "type": "string", - "id": 2 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "nodeCount": { + "pageSize": { "type": "int32", - "id": 3 - }, - "softwareConfig": { - "type": "SoftwareConfig", - "id": 4 - }, - "nodeConfig": { - "type": "NodeConfig", - "id": 5 - }, - "privateEnvironmentConfig": { - "type": "PrivateEnvironmentConfig", - "id": 7 - }, - "webServerNetworkAccessControl": { - "type": "WebServerNetworkAccessControl", - "id": 8, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "databaseConfig": { - "type": "DatabaseConfig", - "id": 9, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "webServerConfig": { - "type": "WebServerConfig", - "id": 10, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "encryptionConfig": { - "type": "EncryptionConfig", - "id": 11, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "maintenanceWindow": { - "type": "MaintenanceWindow", - "id": 12, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "workloadsConfig": { - "type": "WorkloadsConfig", - "id": 15, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "environmentSize": { - "type": "EnvironmentSize", - "id": 16, + "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "airflowUri": { - "type": "string", - "id": 6 - }, - "airflowByoidUri": { + "pageToken": { "type": "string", - "id": 20, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "masterAuthorizedNetworksConfig": { - "type": "MasterAuthorizedNetworksConfig", - "id": 17, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "recoveryConfig": { - "type": "RecoveryConfig", - "id": 18, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "resilienceMode": { - "type": "ResilienceMode", - "id": 19, + "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } - }, - "nested": { - "EnvironmentSize": { - "values": { - "ENVIRONMENT_SIZE_UNSPECIFIED": 0, - "ENVIRONMENT_SIZE_SMALL": 1, - "ENVIRONMENT_SIZE_MEDIUM": 2, - "ENVIRONMENT_SIZE_LARGE": 3 - } - }, - "ResilienceMode": { - "values": { - "RESILIENCE_MODE_UNSPECIFIED": 0, - "HIGH_RESILIENCE": 1 - } - } } }, - "WebServerNetworkAccessControl": { + "UpdateUserWorkloadsConfigMapRequest": { "fields": { - "allowedIpRanges": { - "rule": "repeated", - "type": "AllowedIpRange", - "id": 1 - } - }, - "nested": { - "AllowedIpRange": { - "fields": { - "value": { - "type": "string", - "id": 1 - }, - "description": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } + "userWorkloadsConfigMap": { + "type": "UserWorkloadsConfigMap", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "DatabaseConfig": { + "DeleteUserWorkloadsConfigMapRequest": { "fields": { - "machineType": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsConfigMap" } } } }, - "WebServerConfig": { + "UserWorkloadsSecret": { + "options": { + "(google.api.resource).type": "composer.googleapis.com/UserWorkloadsSecret", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}", + "(google.api.resource).plural": "userWorkloadsSecrets", + "(google.api.resource).singular": "userWorkloadsSecret" + }, "fields": { - "machineType": { + "name": { "type": "string", "id": 1, + "options": { + "(google.api.field_behavior)": "IDENTIFIER" + } + }, + "data": { + "keyType": "string", + "type": "string", + "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, - "EncryptionConfig": { + "ListUserWorkloadsSecretsResponse": { "fields": { - "kmsKeyName": { + "userWorkloadsSecrets": { + "rule": "repeated", + "type": "UserWorkloadsSecret", + "id": 1 + }, + "nextPageToken": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 2 } } }, - "MaintenanceWindow": { + "UserWorkloadsConfigMap": { + "options": { + "(google.api.resource).type": "composer.googleapis.com/UserWorkloadsConfigMap", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}", + "(google.api.resource).plural": "userWorkloadsConfigMaps", + "(google.api.resource).singular": "userWorkloadsConfigMap" + }, "fields": { - "startTime": { - "type": "google.protobuf.Timestamp", + "name": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "IDENTIFIER" } }, - "recurrence": { + "data": { + "keyType": "string", "type": "string", - "id": 3, + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "SoftwareConfig": { + "ListUserWorkloadsConfigMapsResponse": { "fields": { - "imageVersion": { - "type": "string", + "userWorkloadsConfigMaps": { + "rule": "repeated", + "type": "UserWorkloadsConfigMap", "id": 1 }, - "airflowConfigOverrides": { - "keyType": "string", + "nextPageToken": { "type": "string", "id": 2 - }, - "pypiPackages": { - "keyType": "string", - "type": "string", - "id": 3 - }, - "envVariables": { - "keyType": "string", - "type": "string", - "id": 4 - }, - "pythonVersion": { - "type": "string", - "id": 6 - }, - "schedulerCount": { - "type": "int32", - "id": 7, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } } }, - "IPAllocationPolicy": { - "oneofs": { - "clusterIpAllocation": { - "oneof": [ - "clusterSecondaryRangeName", - "clusterIpv4CidrBlock" - ] - }, - "servicesIpAllocation": { - "oneof": [ - "servicesSecondaryRangeName", - "servicesIpv4CidrBlock" - ] - } - }, + "ListWorkloadsRequest": { "fields": { - "useIpAliases": { - "type": "bool", + "parent": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" } }, - "clusterSecondaryRangeName": { - "type": "string", + "pageSize": { + "type": "int32", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "clusterIpv4CidrBlock": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "servicesSecondaryRangeName": { + "pageToken": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "servicesIpv4CidrBlock": { + "filter": { "type": "string", - "id": 5, + "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, - "NodeConfig": { + "ListWorkloadsResponse": { "fields": { - "location": { - "type": "string", + "workloads": { + "rule": "repeated", + "type": "ComposerWorkload", "id": 1 }, - "machineType": { + "nextPageToken": { "type": "string", "id": 2 + } + }, + "nested": { + "ComposerWorkload": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "type": { + "type": "ComposerWorkloadType", + "id": 2 + }, + "status": { + "type": "ComposerWorkloadStatus", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } }, - "network": { - "type": "string", - "id": 3 - }, - "subnetwork": { - "type": "string", - "id": 4 - }, - "diskSizeGb": { - "type": "int32", - "id": 5 + "ComposerWorkloadType": { + "values": { + "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED": 0, + "CELERY_WORKER": 1, + "KUBERNETES_WORKER": 2, + "KUBERNETES_OPERATOR_POD": 3, + "SCHEDULER": 4, + "DAG_PROCESSOR": 5, + "TRIGGERER": 6, + "WEB_SERVER": 7, + "REDIS": 8 + } + }, + "ComposerWorkloadStatus": { + "fields": { + "state": { + "type": "ComposerWorkloadState", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "statusMessage": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "detailedStatusMessage": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } }, - "oauthScopes": { - "rule": "repeated", + "ComposerWorkloadState": { + "values": { + "COMPOSER_WORKLOAD_STATE_UNSPECIFIED": 0, + "PENDING": 1, + "OK": 2, + "WARNING": 3, + "ERROR": 4, + "SUCCEEDED": 5, + "FAILED": 6 + } + } + } + }, + "SaveSnapshotRequest": { + "fields": { + "environment": { "type": "string", - "id": 6 + "id": 1 }, - "serviceAccount": { + "snapshotLocation": { "type": "string", - "id": 7 + "id": 2 + } + } + }, + "SaveSnapshotResponse": { + "fields": { + "snapshotPath": { + "type": "string", + "id": 1 + } + } + }, + "LoadSnapshotRequest": { + "fields": { + "environment": { + "type": "string", + "id": 1 }, - "tags": { - "rule": "repeated", + "snapshotPath": { "type": "string", - "id": 8 + "id": 2 }, - "ipAllocationPolicy": { - "type": "IPAllocationPolicy", - "id": 9, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "skipPypiPackagesInstallation": { + "type": "bool", + "id": 3 }, - "enableIpMasqAgent": { + "skipEnvironmentVariablesSetting": { "type": "bool", - "id": 11, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 4 + }, + "skipAirflowOverridesSetting": { + "type": "bool", + "id": 5 + }, + "skipGcsDataCopying": { + "type": "bool", + "id": 6 } } }, - "PrivateClusterConfig": { + "LoadSnapshotResponse": { + "fields": {} + }, + "DatabaseFailoverRequest": { "fields": { - "enablePrivateEndpoint": { - "type": "bool", + "environment": { + "type": "string", + "id": 1 + } + } + }, + "DatabaseFailoverResponse": { + "fields": {} + }, + "FetchDatabasePropertiesRequest": { + "fields": { + "environment": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" } - }, - "masterIpv4CidrBlock": { + } + } + }, + "FetchDatabasePropertiesResponse": { + "fields": { + "primaryGceZone": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 1 }, - "masterIpv4ReservedRange": { + "secondaryGceZone": { "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "id": 2 + }, + "isFailoverReplicaAvailable": { + "type": "bool", + "id": 3 } } }, - "NetworkingConfig": { + "StorageConfig": { "fields": { - "connectionType": { - "type": "ConnectionType", + "bucket": { + "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } } - }, - "nested": { - "ConnectionType": { - "values": { - "CONNECTION_TYPE_UNSPECIFIED": 0, - "VPC_PEERING": 1, - "PRIVATE_SERVICE_CONNECT": 2 - } - } } }, - "PrivateEnvironmentConfig": { + "EnvironmentConfig": { "fields": { - "enablePrivateEnvironment": { - "type": "bool", - "id": 1, + "gkeCluster": { + "type": "string", + "id": 1 + }, + "dagGcsPrefix": { + "type": "string", + "id": 2 + }, + "nodeCount": { + "type": "int32", + "id": 3 + }, + "softwareConfig": { + "type": "SoftwareConfig", + "id": 4 + }, + "nodeConfig": { + "type": "NodeConfig", + "id": 5 + }, + "privateEnvironmentConfig": { + "type": "PrivateEnvironmentConfig", + "id": 7 + }, + "webServerNetworkAccessControl": { + "type": "WebServerNetworkAccessControl", + "id": 8, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "privateClusterConfig": { - "type": "PrivateClusterConfig", - "id": 2, + "databaseConfig": { + "type": "DatabaseConfig", + "id": 9, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "webServerIpv4CidrBlock": { - "type": "string", - "id": 3, + "webServerConfig": { + "type": "WebServerConfig", + "id": 10, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "cloudSqlIpv4CidrBlock": { - "type": "string", - "id": 4, + "encryptionConfig": { + "type": "EncryptionConfig", + "id": 11, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "webServerIpv4ReservedRange": { - "type": "string", - "id": 5, + "maintenanceWindow": { + "type": "MaintenanceWindow", + "id": 12, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "cloudComposerNetworkIpv4CidrBlock": { - "type": "string", - "id": 7, + "workloadsConfig": { + "type": "WorkloadsConfig", + "id": 15, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "cloudComposerNetworkIpv4ReservedRange": { + "environmentSize": { + "type": "EnvironmentSize", + "id": 16, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "airflowUri": { "type": "string", - "id": 8, + "id": 6 + }, + "airflowByoidUri": { + "type": "string", + "id": 20, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "enablePrivatelyUsedPublicIps": { - "type": "bool", - "id": 6, + "masterAuthorizedNetworksConfig": { + "type": "MasterAuthorizedNetworksConfig", + "id": 17, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "cloudComposerConnectionSubnetwork": { - "type": "string", - "id": 9, + "recoveryConfig": { + "type": "RecoveryConfig", + "id": 18, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "networkingConfig": { - "type": "NetworkingConfig", - "id": 10, + "resilienceMode": { + "type": "ResilienceMode", + "id": 19, "options": { "(google.api.field_behavior)": "OPTIONAL" } - } + }, + "dataRetentionConfig": { + "type": "DataRetentionConfig", + "id": 21, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "EnvironmentSize": { + "values": { + "ENVIRONMENT_SIZE_UNSPECIFIED": 0, + "ENVIRONMENT_SIZE_SMALL": 1, + "ENVIRONMENT_SIZE_MEDIUM": 2, + "ENVIRONMENT_SIZE_LARGE": 3 + } + }, + "ResilienceMode": { + "values": { + "RESILIENCE_MODE_UNSPECIFIED": 0, + "HIGH_RESILIENCE": 1 + } + } + } + }, + "WebServerNetworkAccessControl": { + "fields": { + "allowedIpRanges": { + "rule": "repeated", + "type": "AllowedIpRange", + "id": 1 + } + }, + "nested": { + "AllowedIpRange": { + "fields": { + "value": { + "type": "string", + "id": 1 + }, + "description": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + } + } + }, + "DatabaseConfig": { + "fields": { + "machineType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "WebServerConfig": { + "fields": { + "machineType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "EncryptionConfig": { + "fields": { + "kmsKeyName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "MaintenanceWindow": { + "fields": { + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "recurrence": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SoftwareConfig": { + "fields": { + "imageVersion": { + "type": "string", + "id": 1 + }, + "airflowConfigOverrides": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "pypiPackages": { + "keyType": "string", + "type": "string", + "id": 3 + }, + "envVariables": { + "keyType": "string", + "type": "string", + "id": 4 + }, + "pythonVersion": { + "type": "string", + "id": 6 + }, + "schedulerCount": { + "type": "int32", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cloudDataLineageIntegration": { + "type": "CloudDataLineageIntegration", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "webServerPluginsMode": { + "type": "WebServerPluginsMode", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "WebServerPluginsMode": { + "values": { + "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED": 0, + "PLUGINS_DISABLED": 1, + "PLUGINS_ENABLED": 2 + } + } + } + }, + "IPAllocationPolicy": { + "oneofs": { + "clusterIpAllocation": { + "oneof": [ + "clusterSecondaryRangeName", + "clusterIpv4CidrBlock" + ] + }, + "servicesIpAllocation": { + "oneof": [ + "servicesSecondaryRangeName", + "servicesIpv4CidrBlock" + ] + } + }, + "fields": { + "useIpAliases": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "clusterSecondaryRangeName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "clusterIpv4CidrBlock": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "servicesSecondaryRangeName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "servicesIpv4CidrBlock": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "NodeConfig": { + "fields": { + "location": { + "type": "string", + "id": 1 + }, + "machineType": { + "type": "string", + "id": 2 + }, + "network": { + "type": "string", + "id": 3 + }, + "subnetwork": { + "type": "string", + "id": 4 + }, + "diskSizeGb": { + "type": "int32", + "id": 5 + }, + "oauthScopes": { + "rule": "repeated", + "type": "string", + "id": 6 + }, + "serviceAccount": { + "type": "string", + "id": 7 + }, + "tags": { + "rule": "repeated", + "type": "string", + "id": 8 + }, + "ipAllocationPolicy": { + "type": "IPAllocationPolicy", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "enableIpMasqAgent": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "composerNetworkAttachment": { + "type": "string", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "composerInternalIpv4CidrBlock": { + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "PrivateClusterConfig": { + "fields": { + "enablePrivateEndpoint": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "masterIpv4CidrBlock": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "masterIpv4ReservedRange": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "NetworkingConfig": { + "fields": { + "connectionType": { + "type": "ConnectionType", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "ConnectionType": { + "values": { + "CONNECTION_TYPE_UNSPECIFIED": 0, + "VPC_PEERING": 1, + "PRIVATE_SERVICE_CONNECT": 2 + } + } + } + }, + "PrivateEnvironmentConfig": { + "fields": { + "enablePrivateEnvironment": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "enablePrivateBuildsOnly": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "privateClusterConfig": { + "type": "PrivateClusterConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "webServerIpv4CidrBlock": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cloudSqlIpv4CidrBlock": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "webServerIpv4ReservedRange": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "cloudComposerNetworkIpv4CidrBlock": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cloudComposerNetworkIpv4ReservedRange": { + "type": "string", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "enablePrivatelyUsedPublicIps": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cloudComposerConnectionSubnetwork": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "networkingConfig": { + "type": "NetworkingConfig", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } } }, "WorkloadsConfig": { @@ -1075,6 +1702,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "triggerer": { + "type": "TriggererResource", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "dagProcessor": { + "type": "DagProcessorResource", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -1173,6 +1814,63 @@ } } } + }, + "TriggererResource": { + "fields": { + "count": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "cpu": { + "type": "float", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "memoryGb": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DagProcessorResource": { + "fields": { + "cpu": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "memoryGb": { + "type": "float", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "storageGb": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "count": { + "type": "int32", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, @@ -1246,6 +1944,17 @@ } } }, + "CloudDataLineageIntegration": { + "fields": { + "enabled": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "Environment": { "options": { "(google.api.resource).type": "composer.googleapis.com/Environment", @@ -1280,6 +1989,20 @@ "keyType": "string", "type": "string", "id": 7 + }, + "satisfiesPzs": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "storageConfig": { + "type": "StorageConfig", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -1338,6 +2061,37 @@ } } }, + "DataRetentionConfig": { + "fields": { + "taskLogsRetentionConfig": { + "type": "TaskLogsRetentionConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "TaskLogsRetentionConfig": { + "fields": { + "storageMode": { + "type": "TaskLogsStorageMode", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "TaskLogsStorageMode": { + "values": { + "TASK_LOGS_STORAGE_MODE_UNSPECIFIED": 0, + "CLOUD_LOGGING_AND_CLOUD_STORAGE": 1, + "CLOUD_LOGGING_ONLY": 2 + } + } + } + }, "OperationMetadata": { "fields": { "state": { @@ -1711,6 +2465,212 @@ } ] }, + "ListWorkloads": { + "requestType": "ListWorkloadsRequest", + "responseType": "ListWorkloadsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/environments/*}/workloads", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/environments/*}/workloads" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateUserWorkloadsSecret": { + "requestType": "CreateUserWorkloadsSecretRequest", + "responseType": "UserWorkloadsSecret", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets", + "(google.api.http).body": "user_workloads_secret", + "(google.api.method_signature)": "parent,user_workloads_secret" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets", + "body": "user_workloads_secret" + } + }, + { + "(google.api.method_signature)": "parent,user_workloads_secret" + } + ] + }, + "GetUserWorkloadsSecret": { + "requestType": "GetUserWorkloadsSecretRequest", + "responseType": "UserWorkloadsSecret", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListUserWorkloadsSecrets": { + "requestType": "ListUserWorkloadsSecretsRequest", + "responseType": "ListUserWorkloadsSecretsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsSecrets" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateUserWorkloadsSecret": { + "requestType": "UpdateUserWorkloadsSecretRequest", + "responseType": "UserWorkloadsSecret", + "options": { + "(google.api.http).put": "/v1beta1/{user_workloads_secret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "(google.api.http).body": "user_workloads_secret", + "(google.api.method_signature)": "user_workloads_secret" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1beta1/{user_workloads_secret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "body": "user_workloads_secret" + } + }, + { + "(google.api.method_signature)": "user_workloads_secret" + } + ] + }, + "DeleteUserWorkloadsSecret": { + "requestType": "DeleteUserWorkloadsSecretRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateUserWorkloadsConfigMap": { + "requestType": "CreateUserWorkloadsConfigMapRequest", + "responseType": "UserWorkloadsConfigMap", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps", + "(google.api.http).body": "user_workloads_config_map", + "(google.api.method_signature)": "parent,user_workloads_config_map" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps", + "body": "user_workloads_config_map" + } + }, + { + "(google.api.method_signature)": "parent,user_workloads_config_map" + } + ] + }, + "GetUserWorkloadsConfigMap": { + "requestType": "GetUserWorkloadsConfigMapRequest", + "responseType": "UserWorkloadsConfigMap", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListUserWorkloadsConfigMaps": { + "requestType": "ListUserWorkloadsConfigMapsRequest", + "responseType": "ListUserWorkloadsConfigMapsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/environments/*}/userWorkloadsConfigMaps" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateUserWorkloadsConfigMap": { + "requestType": "UpdateUserWorkloadsConfigMapRequest", + "responseType": "UserWorkloadsConfigMap", + "options": { + "(google.api.http).put": "/v1beta1/{user_workloads_config_map.name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "(google.api.http).body": "user_workloads_config_map", + "(google.api.method_signature)": "user_workloads_config_map" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1beta1/{user_workloads_config_map.name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "body": "user_workloads_config_map" + } + }, + { + "(google.api.method_signature)": "user_workloads_config_map" + } + ] + }, + "DeleteUserWorkloadsConfigMap": { + "requestType": "DeleteUserWorkloadsConfigMapRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/environments/*/userWorkloadsConfigMaps/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "SaveSnapshot": { "requestType": "SaveSnapshotRequest", "responseType": "google.longrunning.Operation", @@ -1799,232 +2759,584 @@ } } }, - "CreateEnvironmentRequest": { + "CreateEnvironmentRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + }, + "environment": { + "type": "Environment", + "id": 2 + } + } + }, + "GetEnvironmentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "ListEnvironmentsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListEnvironmentsResponse": { + "fields": { + "environments": { + "rule": "repeated", + "type": "Environment", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteEnvironmentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "UpdateEnvironmentRequest": { + "fields": { + "name": { + "type": "string", + "id": 2 + }, + "environment": { + "type": "Environment", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "RestartWebServerRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "ExecuteAirflowCommandRequest": { "fields": { - "parent": { + "environment": { "type": "string", "id": 1 }, - "environment": { - "type": "Environment", + "command": { + "type": "string", "id": 2 + }, + "subcommand": { + "type": "string", + "id": 3 + }, + "parameters": { + "rule": "repeated", + "type": "string", + "id": 4 } } }, - "GetEnvironmentRequest": { + "ExecuteAirflowCommandResponse": { "fields": { - "name": { + "executionId": { "type": "string", "id": 1 + }, + "pod": { + "type": "string", + "id": 2 + }, + "podNamespace": { + "type": "string", + "id": 3 + }, + "error": { + "type": "string", + "id": 4 } } }, - "ListEnvironmentsRequest": { + "StopAirflowCommandRequest": { "fields": { - "parent": { + "environment": { "type": "string", "id": 1 }, - "pageSize": { - "type": "int32", + "executionId": { + "type": "string", "id": 2 }, - "pageToken": { + "pod": { "type": "string", "id": 3 + }, + "podNamespace": { + "type": "string", + "id": 4 + }, + "force": { + "type": "bool", + "id": 5 } } }, - "ListEnvironmentsResponse": { + "StopAirflowCommandResponse": { "fields": { - "environments": { - "rule": "repeated", - "type": "Environment", + "isDone": { + "type": "bool", "id": 1 }, - "nextPageToken": { + "output": { + "rule": "repeated", "type": "string", "id": 2 } } }, - "DeleteEnvironmentRequest": { + "PollAirflowCommandRequest": { "fields": { - "name": { + "environment": { "type": "string", "id": 1 + }, + "executionId": { + "type": "string", + "id": 2 + }, + "pod": { + "type": "string", + "id": 3 + }, + "podNamespace": { + "type": "string", + "id": 4 + }, + "nextLineNumber": { + "type": "int32", + "id": 5 } } }, - "UpdateEnvironmentRequest": { + "PollAirflowCommandResponse": { "fields": { - "name": { - "type": "string", + "output": { + "rule": "repeated", + "type": "Line", + "id": 1 + }, + "outputEnd": { + "type": "bool", "id": 2 }, - "environment": { - "type": "Environment", - "id": 1 + "exitInfo": { + "type": "ExitInfo", + "id": 3 + } + }, + "nested": { + "Line": { + "fields": { + "lineNumber": { + "type": "int32", + "id": 1 + }, + "content": { + "type": "string", + "id": 2 + } + } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 3, + "ExitInfo": { + "fields": { + "exitCode": { + "type": "int32", + "id": 1 + }, + "error": { + "type": "string", + "id": 2 + } + } + } + } + }, + "CreateUserWorkloadsSecretRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } + }, + "userWorkloadsSecret": { + "type": "UserWorkloadsSecret", + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "RestartWebServerRequest": { + "GetUserWorkloadsSecretRequest": { "fields": { "name": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsSecret" + } } } }, - "ExecuteAirflowCommandRequest": { + "ListUserWorkloadsSecretsRequest": { "fields": { - "environment": { + "parent": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "command": { + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { "type": "string", - "id": 2 + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateUserWorkloadsSecretRequest": { + "fields": { + "userWorkloadsSecret": { + "type": "UserWorkloadsSecret", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteUserWorkloadsSecretRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsSecret" + } + } + } + }, + "CreateUserWorkloadsConfigMapRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "subcommand": { + "userWorkloadsConfigMap": { + "type": "UserWorkloadsConfigMap", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetUserWorkloadsConfigMapRequest": { + "fields": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsConfigMap" + } + } + } + }, + "ListUserWorkloadsConfigMapsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "parameters": { - "rule": "repeated", + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { "type": "string", - "id": 4 + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateUserWorkloadsConfigMapRequest": { + "fields": { + "userWorkloadsConfigMap": { + "type": "UserWorkloadsConfigMap", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteUserWorkloadsConfigMapRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/UserWorkloadsConfigMap" + } } } }, - "ExecuteAirflowCommandResponse": { + "UserWorkloadsSecret": { + "options": { + "(google.api.resource).type": "composer.googleapis.com/UserWorkloadsSecret", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}", + "(google.api.resource).plural": "userWorkloadsSecrets", + "(google.api.resource).singular": "userWorkloadsSecret" + }, "fields": { - "executionId": { - "type": "string", - "id": 1 - }, - "pod": { - "type": "string", - "id": 2 - }, - "podNamespace": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "IDENTIFIER" + } }, - "error": { + "data": { + "keyType": "string", "type": "string", - "id": 4 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "StopAirflowCommandRequest": { + "ListUserWorkloadsSecretsResponse": { "fields": { - "environment": { - "type": "string", + "userWorkloadsSecrets": { + "rule": "repeated", + "type": "UserWorkloadsSecret", "id": 1 }, - "executionId": { + "nextPageToken": { "type": "string", "id": 2 - }, - "pod": { + } + } + }, + "UserWorkloadsConfigMap": { + "options": { + "(google.api.resource).type": "composer.googleapis.com/UserWorkloadsConfigMap", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}", + "(google.api.resource).plural": "userWorkloadsConfigMaps", + "(google.api.resource).singular": "userWorkloadsConfigMap" + }, + "fields": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "IDENTIFIER" + } }, - "podNamespace": { + "data": { + "keyType": "string", "type": "string", - "id": 4 - }, - "force": { - "type": "bool", - "id": 5 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "StopAirflowCommandResponse": { + "ListUserWorkloadsConfigMapsResponse": { "fields": { - "isDone": { - "type": "bool", + "userWorkloadsConfigMaps": { + "rule": "repeated", + "type": "UserWorkloadsConfigMap", "id": 1 }, - "output": { - "rule": "repeated", + "nextPageToken": { "type": "string", "id": 2 } } }, - "PollAirflowCommandRequest": { + "ListWorkloadsRequest": { "fields": { - "environment": { + "parent": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "composer.googleapis.com/Environment" + } }, - "executionId": { - "type": "string", - "id": 2 + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "pod": { + "pageToken": { "type": "string", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "podNamespace": { + "filter": { "type": "string", - "id": 4 - }, - "nextLineNumber": { - "type": "int32", - "id": 5 + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "PollAirflowCommandResponse": { + "ListWorkloadsResponse": { "fields": { - "output": { + "workloads": { "rule": "repeated", - "type": "Line", + "type": "ComposerWorkload", "id": 1 }, - "outputEnd": { - "type": "bool", + "nextPageToken": { + "type": "string", "id": 2 - }, - "exitInfo": { - "type": "ExitInfo", - "id": 3 } }, "nested": { - "Line": { + "ComposerWorkload": { "fields": { - "lineNumber": { - "type": "int32", + "name": { + "type": "string", "id": 1 }, - "content": { - "type": "string", + "type": { + "type": "ComposerWorkloadType", "id": 2 + }, + "status": { + "type": "ComposerWorkloadStatus", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, - "ExitInfo": { + "ComposerWorkloadType": { + "values": { + "COMPOSER_WORKLOAD_TYPE_UNSPECIFIED": 0, + "CELERY_WORKER": 1, + "KUBERNETES_WORKER": 2, + "KUBERNETES_OPERATOR_POD": 3, + "SCHEDULER": 4, + "DAG_PROCESSOR": 5, + "TRIGGERER": 6, + "WEB_SERVER": 7, + "REDIS": 8 + } + }, + "ComposerWorkloadStatus": { "fields": { - "exitCode": { - "type": "int32", - "id": 1 + "state": { + "type": "ComposerWorkloadState", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "error": { + "statusMessage": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "detailedStatusMessage": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } + }, + "ComposerWorkloadState": { + "values": { + "COMPOSER_WORKLOAD_STATE_UNSPECIFIED": 0, + "PENDING": 1, + "OK": 2, + "WARNING": 3, + "ERROR": 4, + "SUCCEEDED": 5, + "FAILED": 6 + } } } }, @@ -2227,6 +3539,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "dataRetentionConfig": { + "type": "DataRetentionConfig", + "id": 19, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "resilienceMode": { "type": "ResilienceMode", "id": 20, @@ -2328,6 +3647,22 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "webServerPluginsMode": { + "type": "WebServerPluginsMode", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "WebServerPluginsMode": { + "values": { + "WEB_SERVER_PLUGINS_MODE_UNSPECIFIED": 0, + "PLUGINS_DISABLED": 1, + "PLUGINS_ENABLED": 2 + } } } }, @@ -2450,6 +3785,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "composerNetworkAttachment": { + "type": "string", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "composerInternalIpv4CidrBlock": { + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2507,6 +3856,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "enablePrivateBuildsOnly": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "privateClusterConfig": { "type": "PrivateClusterConfig", "id": 2, @@ -2580,6 +3936,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2659,6 +4022,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "dagProcessor": { + "type": "DagProcessorResource", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -2782,6 +4152,80 @@ } } } + }, + "DagProcessorResource": { + "fields": { + "cpu": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "memoryGb": { + "type": "float", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "storageGb": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "count": { + "type": "int32", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + } + } + }, + "DataRetentionConfig": { + "fields": { + "taskLogsRetentionConfig": { + "type": "TaskLogsRetentionConfig", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "TaskLogsRetentionConfig": { + "fields": { + "storageMode": { + "type": "TaskLogsStorageMode", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "TaskLogsStorageMode": { + "values": { + "TASK_LOGS_STORAGE_MODE_UNSPECIFIED": 0, + "CLOUD_LOGGING_AND_CLOUD_STORAGE": 1, + "CLOUD_LOGGING_ONLY": 2 + } + } + } + }, + "StorageConfig": { + "fields": { + "bucket": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2912,6 +4356,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "storageConfig": { + "type": "StorageConfig", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { diff --git a/packages/google-cloud-orchestration-airflow-service/samples/README.md b/packages/google-cloud-orchestration-airflow-service/samples/README.md index e6d1f0d95fee..5ebefedb4688 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/README.md +++ b/packages/google-cloud-orchestration-airflow-service/samples/README.md @@ -13,32 +13,54 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Environments.create_environment](#environments.create_environment) + * [Environments.create_user_workloads_config_map](#environments.create_user_workloads_config_map) + * [Environments.create_user_workloads_secret](#environments.create_user_workloads_secret) * [Environments.database_failover](#environments.database_failover) * [Environments.delete_environment](#environments.delete_environment) + * [Environments.delete_user_workloads_config_map](#environments.delete_user_workloads_config_map) + * [Environments.delete_user_workloads_secret](#environments.delete_user_workloads_secret) * [Environments.execute_airflow_command](#environments.execute_airflow_command) * [Environments.fetch_database_properties](#environments.fetch_database_properties) * [Environments.get_environment](#environments.get_environment) + * [Environments.get_user_workloads_config_map](#environments.get_user_workloads_config_map) + * [Environments.get_user_workloads_secret](#environments.get_user_workloads_secret) * [Environments.list_environments](#environments.list_environments) + * [Environments.list_user_workloads_config_maps](#environments.list_user_workloads_config_maps) + * [Environments.list_user_workloads_secrets](#environments.list_user_workloads_secrets) + * [Environments.list_workloads](#environments.list_workloads) * [Environments.load_snapshot](#environments.load_snapshot) * [Environments.poll_airflow_command](#environments.poll_airflow_command) * [Environments.save_snapshot](#environments.save_snapshot) * [Environments.stop_airflow_command](#environments.stop_airflow_command) * [Environments.update_environment](#environments.update_environment) + * [Environments.update_user_workloads_config_map](#environments.update_user_workloads_config_map) + * [Environments.update_user_workloads_secret](#environments.update_user_workloads_secret) * [Image_versions.list_image_versions](#image_versions.list_image_versions) * [Environments.check_upgrade](#environments.check_upgrade) * [Environments.create_environment](#environments.create_environment) + * [Environments.create_user_workloads_config_map](#environments.create_user_workloads_config_map) + * [Environments.create_user_workloads_secret](#environments.create_user_workloads_secret) * [Environments.database_failover](#environments.database_failover) * [Environments.delete_environment](#environments.delete_environment) + * [Environments.delete_user_workloads_config_map](#environments.delete_user_workloads_config_map) + * [Environments.delete_user_workloads_secret](#environments.delete_user_workloads_secret) * [Environments.execute_airflow_command](#environments.execute_airflow_command) * [Environments.fetch_database_properties](#environments.fetch_database_properties) * [Environments.get_environment](#environments.get_environment) + * [Environments.get_user_workloads_config_map](#environments.get_user_workloads_config_map) + * [Environments.get_user_workloads_secret](#environments.get_user_workloads_secret) * [Environments.list_environments](#environments.list_environments) + * [Environments.list_user_workloads_config_maps](#environments.list_user_workloads_config_maps) + * [Environments.list_user_workloads_secrets](#environments.list_user_workloads_secrets) + * [Environments.list_workloads](#environments.list_workloads) * [Environments.load_snapshot](#environments.load_snapshot) * [Environments.poll_airflow_command](#environments.poll_airflow_command) * [Environments.restart_web_server](#environments.restart_web_server) * [Environments.save_snapshot](#environments.save_snapshot) * [Environments.stop_airflow_command](#environments.stop_airflow_command) * [Environments.update_environment](#environments.update_environment) + * [Environments.update_user_workloads_config_map](#environments.update_user_workloads_config_map) + * [Environments.update_user_workloads_secret](#environments.update_user_workloads_secret) * [Image_versions.list_image_versions](#image_versions.list_image_versions) * [Quickstart](#quickstart) @@ -74,6 +96,40 @@ __Usage:__ +### Environments.create_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js` + + +----- + + + + +### Environments.create_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js` + + +----- + + + + ### Environments.database_failover View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.database_failover.js). @@ -108,6 +164,40 @@ __Usage:__ +### Environments.delete_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js` + + +----- + + + + +### Environments.delete_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js` + + +----- + + + + ### Environments.execute_airflow_command View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.execute_airflow_command.js). @@ -159,6 +249,40 @@ __Usage:__ +### Environments.get_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js` + + +----- + + + + +### Environments.get_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js` + + +----- + + + + ### Environments.list_environments View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js). @@ -176,6 +300,57 @@ __Usage:__ +### Environments.list_user_workloads_config_maps + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js` + + +----- + + + + +### Environments.list_user_workloads_secrets + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js` + + +----- + + + + +### Environments.list_workloads + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js` + + +----- + + + + ### Environments.load_snapshot View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.load_snapshot.js). @@ -261,6 +436,40 @@ __Usage:__ +### Environments.update_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js` + + +----- + + + + +### Environments.update_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js` + + +----- + + + + ### Image_versions.list_image_versions View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js). @@ -312,6 +521,40 @@ __Usage:__ +### Environments.create_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js` + + +----- + + + + +### Environments.create_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js` + + +----- + + + + ### Environments.database_failover View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.database_failover.js). @@ -346,6 +589,40 @@ __Usage:__ +### Environments.delete_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js` + + +----- + + + + +### Environments.delete_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js` + + +----- + + + + ### Environments.execute_airflow_command View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.execute_airflow_command.js). @@ -397,6 +674,40 @@ __Usage:__ +### Environments.get_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js` + + +----- + + + + +### Environments.get_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js` + + +----- + + + + ### Environments.list_environments View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js). @@ -414,6 +725,57 @@ __Usage:__ +### Environments.list_user_workloads_config_maps + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js` + + +----- + + + + +### Environments.list_user_workloads_secrets + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js` + + +----- + + + + +### Environments.list_workloads + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js` + + +----- + + + + ### Environments.load_snapshot View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.load_snapshot.js). @@ -516,6 +878,40 @@ __Usage:__ +### Environments.update_user_workloads_config_map + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js` + + +----- + + + + +### Environments.update_user_workloads_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js` + + +----- + + + + ### Image_versions.list_image_versions View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js). diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js new file mode 100644 index 000000000000..4c20921479af --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_config_map.js @@ -0,0 +1,67 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, userWorkloadsConfigMap) { + // [START composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_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 environment name to create a ConfigMap for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Required. User workloads ConfigMap to create. + */ + // const userWorkloadsConfigMap = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callCreateUserWorkloadsConfigMap() { + // Construct request + const request = { + parent, + userWorkloadsConfigMap, + }; + + // Run request + const response = await serviceClient.createUserWorkloadsConfigMap(request); + console.log(response); + } + + callCreateUserWorkloadsConfigMap(); + // [END composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js new file mode 100644 index 000000000000..75852c31d7fa --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_user_workloads_secret.js @@ -0,0 +1,67 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, userWorkloadsSecret) { + // [START composer_v1_generated_Environments_CreateUserWorkloadsSecret_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 environment name to create a Secret for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Required. User workloads Secret to create. + */ + // const userWorkloadsSecret = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callCreateUserWorkloadsSecret() { + // Construct request + const request = { + parent, + userWorkloadsSecret, + }; + + // Run request + const response = await serviceClient.createUserWorkloadsSecret(request); + console.log(response); + } + + callCreateUserWorkloadsSecret(); + // [END composer_v1_generated_Environments_CreateUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js new file mode 100644 index 000000000000..8f28c3790292 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_config_map.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_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 ConfigMap to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callDeleteUserWorkloadsConfigMap() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.deleteUserWorkloadsConfigMap(request); + console.log(response); + } + + callDeleteUserWorkloadsConfigMap(); + // [END composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js new file mode 100644 index 000000000000..9ac2ee563667 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_user_workloads_secret.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1_generated_Environments_DeleteUserWorkloadsSecret_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 Secret to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callDeleteUserWorkloadsSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.deleteUserWorkloadsSecret(request); + console.log(response); + } + + callDeleteUserWorkloadsSecret(); + // [END composer_v1_generated_Environments_DeleteUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js new file mode 100644 index 000000000000..c9fbf65a785c --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_config_map.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1_generated_Environments_GetUserWorkloadsConfigMap_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the ConfigMap to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callGetUserWorkloadsConfigMap() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.getUserWorkloadsConfigMap(request); + console.log(response); + } + + callGetUserWorkloadsConfigMap(); + // [END composer_v1_generated_Environments_GetUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js new file mode 100644 index 000000000000..e81364b058f8 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_user_workloads_secret.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1_generated_Environments_GetUserWorkloadsSecret_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Secret to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callGetUserWorkloadsSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.getUserWorkloadsSecret(request); + console.log(response); + } + + callGetUserWorkloadsSecret(); + // [END composer_v1_generated_Environments_GetUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js new file mode 100644 index 000000000000..47e7653c6b32 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_config_maps.js @@ -0,0 +1,73 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START composer_v1_generated_Environments_ListUserWorkloadsConfigMaps_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. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of ConfigMaps to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callListUserWorkloadsConfigMaps() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = serviceClient.listUserWorkloadsConfigMapsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUserWorkloadsConfigMaps(); + // [END composer_v1_generated_Environments_ListUserWorkloadsConfigMaps_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js new file mode 100644 index 000000000000..ce912dca0617 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_user_workloads_secrets.js @@ -0,0 +1,73 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START composer_v1_generated_Environments_ListUserWorkloadsSecrets_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. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of Secrets to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callListUserWorkloadsSecrets() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = serviceClient.listUserWorkloadsSecretsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUserWorkloadsSecrets(); + // [END composer_v1_generated_Environments_ListUserWorkloadsSecrets_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js new file mode 100644 index 000000000000..3999b121fe94 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_workloads.js @@ -0,0 +1,82 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START composer_v1_generated_Environments_ListWorkloads_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 environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of environments to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + */ + // const filter = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callListWorkloads() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = serviceClient.listWorkloadsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListWorkloads(); + // [END composer_v1_generated_Environments_ListWorkloads_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js new file mode 100644 index 000000000000..99cfd1b4a3e2 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_config_map.js @@ -0,0 +1,60 @@ +// Copyright 2024 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() { + // [START composer_v1_generated_Environments_UpdateUserWorkloadsConfigMap_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. + */ + /** + * Optional. User workloads ConfigMap to override. + */ + // const userWorkloadsConfigMap = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callUpdateUserWorkloadsConfigMap() { + // Construct request + const request = { + }; + + // Run request + const response = await serviceClient.updateUserWorkloadsConfigMap(request); + console.log(response); + } + + callUpdateUserWorkloadsConfigMap(); + // [END composer_v1_generated_Environments_UpdateUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js new file mode 100644 index 000000000000..3f12fb0b7db9 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_user_workloads_secret.js @@ -0,0 +1,60 @@ +// Copyright 2024 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() { + // [START composer_v1_generated_Environments_UpdateUserWorkloadsSecret_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. + */ + /** + * Optional. User workloads Secret to override. + */ + // const userWorkloadsSecret = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callUpdateUserWorkloadsSecret() { + // Construct request + const request = { + }; + + // Run request + const response = await serviceClient.updateUserWorkloadsSecret(request); + console.log(response); + } + + callUpdateUserWorkloadsSecret(); + // [END composer_v1_generated_Environments_UpdateUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json index 0938ee9b1d7c..2c2fb6a888f4 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json @@ -395,6 +395,482 @@ } } }, + { + "regionTag": "composer_v1_generated_Environments_ListWorkloads_async", + "title": "Environments listWorkloads Sample", + "origin": "API_DEFINITION", + "description": " Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.list_workloads.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListWorkloads", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListWorkloads", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "ListWorkloads", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListWorkloads", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_CreateUserWorkloadsSecret_async", + "title": "Environments createUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Creates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.create_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "user_workloads_secret", + "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "CreateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_GetUserWorkloadsSecret_async", + "title": "Environments getUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Gets an existing user workloads Secret. Values of the \"data\" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.get_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "GetUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_ListUserWorkloadsSecrets_async", + "title": "Environments listUserWorkloadsSecrets Sample", + "origin": "API_DEFINITION", + "description": " Lists user workloads Secrets. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.list_user_workloads_secrets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUserWorkloadsSecrets", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsSecrets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "ListUserWorkloadsSecrets", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsSecrets", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_UpdateUserWorkloadsSecret_async", + "title": "Environments updateUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Updates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.update_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "user_workloads_secret", + "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "UpdateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_DeleteUserWorkloadsSecret_async", + "title": "Environments deleteUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Deletes a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.delete_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "DeleteUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_async", + "title": "Environments createUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.create_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "user_workloads_config_map", + "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "CreateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_GetUserWorkloadsConfigMap_async", + "title": "Environments getUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.get_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "GetUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_ListUserWorkloadsConfigMaps_async", + "title": "Environments listUserWorkloadsConfigMaps Sample", + "origin": "API_DEFINITION", + "description": " Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.list_user_workloads_config_maps.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUserWorkloadsConfigMaps", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsConfigMaps", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "ListUserWorkloadsConfigMaps", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsConfigMaps", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_UpdateUserWorkloadsConfigMap_async", + "title": "Environments updateUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.update_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "user_workloads_config_map", + "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "UpdateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_async", + "title": "Environments deleteUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.delete_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "DeleteUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + } + }, { "regionTag": "composer_v1_generated_Environments_SaveSnapshot_async", "title": "Environments saveSnapshot Sample", diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js new file mode 100644 index 000000000000..b2475252bccf --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_config_map.js @@ -0,0 +1,67 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, userWorkloadsConfigMap) { + // [START composer_v1beta1_generated_Environments_CreateUserWorkloadsConfigMap_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 environment name to create a ConfigMap for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Required. User workloads ConfigMap to create. + */ + // const userWorkloadsConfigMap = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callCreateUserWorkloadsConfigMap() { + // Construct request + const request = { + parent, + userWorkloadsConfigMap, + }; + + // Run request + const response = await serviceClient.createUserWorkloadsConfigMap(request); + console.log(response); + } + + callCreateUserWorkloadsConfigMap(); + // [END composer_v1beta1_generated_Environments_CreateUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js new file mode 100644 index 000000000000..6ad9272ff55b --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_user_workloads_secret.js @@ -0,0 +1,67 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, userWorkloadsSecret) { + // [START composer_v1beta1_generated_Environments_CreateUserWorkloadsSecret_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 environment name to create a Secret for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Required. User workloads Secret to create. + */ + // const userWorkloadsSecret = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callCreateUserWorkloadsSecret() { + // Construct request + const request = { + parent, + userWorkloadsSecret, + }; + + // Run request + const response = await serviceClient.createUserWorkloadsSecret(request); + console.log(response); + } + + callCreateUserWorkloadsSecret(); + // [END composer_v1beta1_generated_Environments_CreateUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js new file mode 100644 index 000000000000..947aeb36d329 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_config_map.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1beta1_generated_Environments_DeleteUserWorkloadsConfigMap_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 ConfigMap to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callDeleteUserWorkloadsConfigMap() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.deleteUserWorkloadsConfigMap(request); + console.log(response); + } + + callDeleteUserWorkloadsConfigMap(); + // [END composer_v1beta1_generated_Environments_DeleteUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js new file mode 100644 index 000000000000..fa74d4dc74dd --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_user_workloads_secret.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1beta1_generated_Environments_DeleteUserWorkloadsSecret_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 Secret to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callDeleteUserWorkloadsSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.deleteUserWorkloadsSecret(request); + console.log(response); + } + + callDeleteUserWorkloadsSecret(); + // [END composer_v1beta1_generated_Environments_DeleteUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js new file mode 100644 index 000000000000..45fe12cea1a7 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_config_map.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1beta1_generated_Environments_GetUserWorkloadsConfigMap_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the ConfigMap to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callGetUserWorkloadsConfigMap() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.getUserWorkloadsConfigMap(request); + console.log(response); + } + + callGetUserWorkloadsConfigMap(); + // [END composer_v1beta1_generated_Environments_GetUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js new file mode 100644 index 000000000000..8fb5b46d6db7 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_user_workloads_secret.js @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START composer_v1beta1_generated_Environments_GetUserWorkloadsSecret_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Secret to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" + */ + // const name = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callGetUserWorkloadsSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await serviceClient.getUserWorkloadsSecret(request); + console.log(response); + } + + callGetUserWorkloadsSecret(); + // [END composer_v1beta1_generated_Environments_GetUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js new file mode 100644 index 000000000000..82d1c180107a --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_config_maps.js @@ -0,0 +1,73 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START composer_v1beta1_generated_Environments_ListUserWorkloadsConfigMaps_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. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of ConfigMaps to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callListUserWorkloadsConfigMaps() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = serviceClient.listUserWorkloadsConfigMapsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUserWorkloadsConfigMaps(); + // [END composer_v1beta1_generated_Environments_ListUserWorkloadsConfigMaps_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js new file mode 100644 index 000000000000..f29069976e54 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_user_workloads_secrets.js @@ -0,0 +1,73 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START composer_v1beta1_generated_Environments_ListUserWorkloadsSecrets_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. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of Secrets to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callListUserWorkloadsSecrets() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = serviceClient.listUserWorkloadsSecretsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUserWorkloadsSecrets(); + // [END composer_v1beta1_generated_Environments_ListUserWorkloadsSecrets_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js new file mode 100644 index 000000000000..d6c5f0f91f9b --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_workloads.js @@ -0,0 +1,82 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START composer_v1beta1_generated_Environments_ListWorkloads_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 environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of environments to return. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + */ + // const filter = 'abc123' + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callListWorkloads() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = serviceClient.listWorkloadsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListWorkloads(); + // [END composer_v1beta1_generated_Environments_ListWorkloads_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js new file mode 100644 index 000000000000..b5968329a05e --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_config_map.js @@ -0,0 +1,60 @@ +// Copyright 2024 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() { + // [START composer_v1beta1_generated_Environments_UpdateUserWorkloadsConfigMap_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. + */ + /** + * Optional. User workloads ConfigMap to override. + */ + // const userWorkloadsConfigMap = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callUpdateUserWorkloadsConfigMap() { + // Construct request + const request = { + }; + + // Run request + const response = await serviceClient.updateUserWorkloadsConfigMap(request); + console.log(response); + } + + callUpdateUserWorkloadsConfigMap(); + // [END composer_v1beta1_generated_Environments_UpdateUserWorkloadsConfigMap_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js new file mode 100644 index 000000000000..f63bdabba133 --- /dev/null +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_user_workloads_secret.js @@ -0,0 +1,60 @@ +// Copyright 2024 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() { + // [START composer_v1beta1_generated_Environments_UpdateUserWorkloadsSecret_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. + */ + /** + * Optional. User workloads Secret to override. + */ + // const userWorkloadsSecret = {} + + // Imports the Service library + const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1beta1; + + // Instantiates a client + const serviceClient = new EnvironmentsClient(); + + async function callUpdateUserWorkloadsSecret() { + // Construct request + const request = { + }; + + // Run request + const response = await serviceClient.updateUserWorkloadsSecret(request); + console.log(response); + } + + callUpdateUserWorkloadsSecret(); + // [END composer_v1beta1_generated_Environments_UpdateUserWorkloadsSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json index e139f6272e5b..b88a9ddcf602 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json @@ -479,6 +479,482 @@ } } }, + { + "regionTag": "composer_v1beta1_generated_Environments_ListWorkloads_async", + "title": "Environments listWorkloads Sample", + "origin": "API_DEFINITION", + "description": " Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.list_workloads.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListWorkloads", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListWorkloads", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "ListWorkloads", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListWorkloads", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_CreateUserWorkloadsSecret_async", + "title": "Environments createUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Creates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.create_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "user_workloads_secret", + "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "CreateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_GetUserWorkloadsSecret_async", + "title": "Environments getUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Gets an existing user workloads Secret. Values of the \"data\" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.get_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "GetUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_ListUserWorkloadsSecrets_async", + "title": "Environments listUserWorkloadsSecrets Sample", + "origin": "API_DEFINITION", + "description": " Lists user workloads Secrets. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.list_user_workloads_secrets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUserWorkloadsSecrets", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsSecrets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "ListUserWorkloadsSecrets", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsSecrets", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_UpdateUserWorkloadsSecret_async", + "title": "Environments updateUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Updates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.update_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "user_workloads_secret", + "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "UpdateUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_DeleteUserWorkloadsSecret_async", + "title": "Environments deleteUserWorkloadsSecret Sample", + "origin": "API_DEFINITION", + "description": " Deletes a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.delete_user_workloads_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "DeleteUserWorkloadsSecret", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsSecret", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_CreateUserWorkloadsConfigMap_async", + "title": "Environments createUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.create_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "user_workloads_config_map", + "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "CreateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_GetUserWorkloadsConfigMap_async", + "title": "Environments getUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.get_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "GetUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_ListUserWorkloadsConfigMaps_async", + "title": "Environments listUserWorkloadsConfigMaps Sample", + "origin": "API_DEFINITION", + "description": " Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.list_user_workloads_config_maps.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUserWorkloadsConfigMaps", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsConfigMaps", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "ListUserWorkloadsConfigMaps", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsConfigMaps", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_UpdateUserWorkloadsConfigMap_async", + "title": "Environments updateUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.update_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "user_workloads_config_map", + "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap" + } + ], + "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "UpdateUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, + { + "regionTag": "composer_v1beta1_generated_Environments_DeleteUserWorkloadsConfigMap_async", + "title": "Environments deleteUserWorkloadsConfigMap Sample", + "origin": "API_DEFINITION", + "description": " Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.", + "canonical": true, + "file": "environments.delete_user_workloads_config_map.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsConfigMap", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" + }, + "method": { + "shortName": "DeleteUserWorkloadsConfigMap", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsConfigMap", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" + } + } + } + }, { "regionTag": "composer_v1beta1_generated_Environments_SaveSnapshot_async", "title": "Environments saveSnapshot Sample", diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client.ts b/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client.ts index f2f7f96ac1e9..ec6f9a8d65b6 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client.ts +++ b/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client.ts @@ -198,6 +198,12 @@ export class EnvironmentsClient { environmentPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/environments/{environment}' ), + userWorkloadsConfigMapPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}' + ), + userWorkloadsSecretPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}' + ), }; // Some of the methods on this service return "paged" results, @@ -209,6 +215,21 @@ export class EnvironmentsClient { 'nextPageToken', 'environments' ), + listWorkloads: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'workloads' + ), + listUserWorkloadsSecrets: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'userWorkloadsSecrets' + ), + listUserWorkloadsConfigMaps: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'userWorkloadsConfigMaps' + ), }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); @@ -368,6 +389,17 @@ export class EnvironmentsClient { 'executeAirflowCommand', 'stopAirflowCommand', 'pollAirflowCommand', + 'listWorkloads', + 'createUserWorkloadsSecret', + 'getUserWorkloadsSecret', + 'listUserWorkloadsSecrets', + 'updateUserWorkloadsSecret', + 'deleteUserWorkloadsSecret', + 'createUserWorkloadsConfigMap', + 'getUserWorkloadsConfigMap', + 'listUserWorkloadsConfigMaps', + 'updateUserWorkloadsConfigMap', + 'deleteUserWorkloadsConfigMap', 'saveSnapshot', 'loadSnapshot', 'databaseFailover', @@ -904,79 +936,84 @@ export class EnvironmentsClient { return this.innerApiCalls.pollAirflowCommand(request, options, callback); } /** - * Fetches database properties. + * Creates a user workloads Secret. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * Required. The resource name of the environment, in the form: + * @param {string} request.parent + * Required. The environment name to create a Secret for, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} request.userWorkloadsSecret + * Required. User workloads Secret to create. * @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 {@link protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse|FetchDatabasePropertiesResponse}. + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret|UserWorkloadsSecret}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.fetch_database_properties.js - * region_tag:composer_v1_generated_Environments_FetchDatabaseProperties_async + * @example include:samples/generated/v1/environments.create_user_workloads_secret.js + * region_tag:composer_v1_generated_Environments_CreateUserWorkloadsSecret_async */ - fetchDatabaseProperties( - request?: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, ( - | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest | undefined ), {} | undefined, ] >; - fetchDatabaseProperties( - request: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, options: CallOptions, callback: Callback< - protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined > ): void; - fetchDatabaseProperties( - request: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, callback: Callback< - protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined > ): void; - fetchDatabaseProperties( - request?: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, ( - | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsSecretRequest | undefined ), {} | undefined, @@ -995,100 +1032,95 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.fetchDatabaseProperties( + return this.innerApiCalls.createUserWorkloadsSecret( request, options, callback ); } - /** - * Create a new environment. + * Gets an existing user workloads Secret. + * Values of the "data" field in the response are cleared. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * The parent must be of the form - * "projects/{projectId}/locations/{locationId}". - * @param {google.cloud.orchestration.airflow.service.v1.Environment} request.environment - * The environment to create. + * @param {string} request.name + * Required. The resource name of the Secret to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret|UserWorkloadsSecret}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.create_environment.js - * region_tag:composer_v1_generated_Environments_CreateEnvironment_async + * @example include:samples/generated/v1/environments.get_user_workloads_secret.js + * region_tag:composer_v1_generated_Environments_GetUserWorkloadsSecret_async */ - createEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] >; - createEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - createEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - createEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] > | void { @@ -1105,254 +1137,197 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createEnvironment(request, options, callback); + return this.innerApiCalls.getUserWorkloadsSecret( + request, + options, + callback + ); } /** - * Check the status of the long running operation returned by `createEnvironment()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * Updates a user workloads Secret. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret} [request.userWorkloadsSecret] + * Optional. User workloads Secret to override. + * @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 {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret|UserWorkloadsSecret}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.create_environment.js - * region_tag:composer_v1_generated_Environments_CreateEnvironment_async + * @example include:samples/generated/v1/environments.update_user_workloads_secret.js + * region_tag:composer_v1_generated_Environments_UpdateUserWorkloadsSecret_async */ - async checkCreateEnvironmentProgress( - name: string + updateUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, + options?: CallOptions ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.Environment, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + [ + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest + | undefined + ), + {} | undefined, + ] + >; + updateUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.createEnvironment, - this._gaxModule.createDefaultBackoffSettings() + ): void; + updateUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsSecretRequest + | 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({ + 'user_workloads_secret.name': request.userWorkloadsSecret!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateUserWorkloadsSecret( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.Environment, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - >; } /** - * Update an environment. + * Deletes a user workloads Secret. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * The relative resource name of the environment to update, in the form: - * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {google.cloud.orchestration.airflow.service.v1.Environment} request.environment - * A patch environment. Fields specified by the `updateMask` will be copied - * from the patch environment into the environment under update. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A comma-separated list of paths, relative to `Environment`, of - * fields to update. - * For example, to set the version of scikit-learn to install in the - * environment to 0.19.0 and to remove an existing installation of - * numpy, the `updateMask` parameter would include the following two - * `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and - * "config.softwareConfig.pypiPackages.numpy". The included patch - * environment would specify the scikit-learn version as follows: - * - * { - * "config":{ - * "softwareConfig":{ - * "pypiPackages":{ - * "scikit-learn":"==0.19.0" - * } - * } - * } - * } - * - * Note that in the above example, any existing PyPI packages - * other than scikit-learn and numpy will be unaffected. - * - * Only one update type may be included in a single request's `updateMask`. - * For example, one cannot update both the PyPI packages and - * labels in the same request. However, it is possible to update multiple - * members of a map field simultaneously in the same request. For example, - * to set the labels "label1" and "label2" while clearing "label3" (assuming - * it already exists), one can - * provide the paths "labels.label1", "labels.label2", and "labels.label3" - * and populate the patch environment as follows: - * - * { - * "labels":{ - * "label1":"new-label1-value" - * "label2":"new-label2-value" - * } - * } - * - * Note that in the above example, any existing labels that are not - * included in the `updateMask` will be unaffected. - * - * It is also possible to replace an entire map field by providing the - * map field's path in the `updateMask`. The new value of the field will - * be that which is provided in the patch environment. For example, to - * delete all pre-existing user-specified PyPI packages and - * install botocore at version 1.7.14, the `updateMask` would contain - * the path "config.softwareConfig.pypiPackages", and - * the patch environment would be the following: - * - * { - * "config":{ - * "softwareConfig":{ - * "pypiPackages":{ - * "botocore":"==1.7.14" - * } - * } - * } - * } - * - * **Note:** Only the following fields can be updated: - * - * * `config.softwareConfig.pypiPackages` - * * Replace all custom custom PyPI packages. If a replacement - * package map is not included in `environment`, all custom - * PyPI packages are cleared. It is an error to provide both - * this mask and a mask specifying an individual package. - * * `config.softwareConfig.pypiPackages.`packagename - * * Update the custom PyPI package *packagename*, - * preserving other packages. To delete the package, include it in - * `updateMask`, and omit the mapping for it in - * `environment.config.softwareConfig.pypiPackages`. It is an error - * to provide both a mask of this form and the - * `config.softwareConfig.pypiPackages` mask. - * * `labels` - * * Replace all environment labels. If a replacement labels map is not - * included in `environment`, all labels are cleared. It is an error to - * provide both this mask and a mask specifying one or more individual - * labels. - * * `labels.`labelName - * * Set the label named *labelName*, while preserving other - * labels. To delete the label, include it in `updateMask` and omit its - * mapping in `environment.labels`. It is an error to provide both a - * mask of this form and the `labels` mask. - * * `config.nodeCount` - * * Horizontally scale the number of nodes in the environment. An integer - * greater than or equal to 3 must be provided in the `config.nodeCount` - * field. Supported for Cloud Composer environments in versions - * composer-1.*.*-airflow-*.*.*. - * * `config.webServerNetworkAccessControl` - * * Replace the environment's current `WebServerNetworkAccessControl`. - * * `config.softwareConfig.airflowConfigOverrides` - * * Replace all Apache Airflow config overrides. If a replacement config - * overrides map is not included in `environment`, all config overrides - * are cleared. - * It is an error to provide both this mask and a mask specifying one or - * more individual config overrides. - * * `config.softwareConfig.airflowConfigOverrides.`section-name - * * Override the Apache Airflow config property *name* in the - * section named *section*, preserving other properties. To - * delete the property override, include it in `updateMask` and omit its - * mapping in - * `environment.config.softwareConfig.airflowConfigOverrides`. - * It is an error to provide both a mask of this form and the - * `config.softwareConfig.airflowConfigOverrides` mask. - * * `config.softwareConfig.envVariables` - * * Replace all environment variables. If a replacement environment - * variable map is not included in `environment`, all custom environment - * variables are cleared. - * * `config.softwareConfig.schedulerCount` - * * Horizontally scale the number of schedulers in Airflow. A positive - * integer not greater than the number of nodes must be provided in the - * `config.softwareConfig.schedulerCount` field. Supported for Cloud - * Composer environments in versions composer-1.*.*-airflow-2.*.*. - * * `config.databaseConfig.machineType` - * * Cloud SQL machine type used by Airflow database. - * It has to be one of: db-n1-standard-2, db-n1-standard-4, - * db-n1-standard-8 or db-n1-standard-16. Supported for Cloud Composer - * environments in versions composer-1.*.*-airflow-*.*.*. - * * `config.webServerConfig.machineType` - * * Machine type on which Airflow web server is running. - * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 - * or composer-n1-webserver-8. Supported for Cloud Composer environments - * in versions composer-1.*.*-airflow-*.*.*. + * Required. The Secret to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.update_environment.js - * region_tag:composer_v1_generated_Environments_UpdateEnvironment_async + * @example include:samples/generated/v1/environments.delete_user_workloads_secret.js + * region_tag:composer_v1_generated_Environments_DeleteUserWorkloadsSecret_async */ - updateEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] >; - updateEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - updateEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - updateEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] > | void { @@ -1372,124 +1347,93 @@ export class EnvironmentsClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateEnvironment(request, options, callback); - } - /** - * Check the status of the long running operation returned by `updateEnvironment()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/environments.update_environment.js - * region_tag:composer_v1_generated_Environments_UpdateEnvironment_async - */ - async checkUpdateEnvironmentProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.Environment, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.updateEnvironment, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.deleteUserWorkloadsSecret( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.Environment, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - >; } /** - * Delete an environment. + * Creates a user workloads ConfigMap. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * The environment to delete, in the form: + * @param {string} request.parent + * Required. The environment name to create a ConfigMap for, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} request.userWorkloadsConfigMap + * Required. User workloads ConfigMap to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.delete_environment.js - * region_tag:composer_v1_generated_Environments_DeleteEnvironment_async + * @example include:samples/generated/v1/environments.create_user_workloads_config_map.js + * region_tag:composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_async */ - deleteEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] >; - deleteEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - deleteEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - deleteEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1.ICreateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] > | void { @@ -1506,133 +1450,94 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.deleteEnvironment(request, options, callback); + return this.innerApiCalls.createUserWorkloadsConfigMap( + request, + options, + callback + ); } /** - * Check the status of the long running operation returned by `deleteEnvironment()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/environments.delete_environment.js - * region_tag:composer_v1_generated_Environments_DeleteEnvironment_async - */ - async checkDeleteEnvironmentProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteEnvironment, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - >; - } - /** - * Creates a snapshots of a Cloud Composer environment. + * Gets an existing user workloads ConfigMap. * - * As a result of this operation, snapshot of environment's state is stored - * in a location specified in the SaveSnapshotRequest. + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * The resource name of the source environment in the form: - * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {string} request.snapshotLocation - * Location in a Cloud Storage where the snapshot is going to be stored, e.g.: - * "gs://my-bucket/snapshots". + * @param {string} request.name + * Required. The resource name of the ConfigMap to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.save_snapshot.js - * region_tag:composer_v1_generated_Environments_SaveSnapshot_async + * @example include:samples/generated/v1/environments.get_user_workloads_config_map.js + * region_tag:composer_v1_generated_Environments_GetUserWorkloadsConfigMap_async */ - saveSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + getUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] >; - saveSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + getUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - saveSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + getUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - saveSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + getUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IGetUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] > | void { @@ -1649,145 +1554,93 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.saveSnapshot(request, options, callback); - } - /** - * Check the status of the long running operation returned by `saveSnapshot()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1/environments.save_snapshot.js - * region_tag:composer_v1_generated_Environments_SaveSnapshot_async - */ - async checkSaveSnapshotProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.saveSnapshot, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getUserWorkloadsConfigMap( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - >; } /** - * Loads a snapshot of a Cloud Composer environment. + * Updates a user workloads ConfigMap. * - * As a result of this operation, a snapshot of environment's specified in - * LoadSnapshotRequest is loaded into the environment. + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * The resource name of the target environment in the form: - * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {string} request.snapshotPath - * A Cloud Storage path to a snapshot to load, e.g.: - * "gs://my-bucket/snapshots/project_location_environment_timestamp". - * @param {boolean} request.skipPypiPackagesInstallation - * Whether or not to skip installing Pypi packages when loading the - * environment's state. - * @param {boolean} request.skipEnvironmentVariablesSetting - * Whether or not to skip setting environment variables when loading the - * environment's state. - * @param {boolean} request.skipAirflowOverridesSetting - * Whether or not to skip setting Airflow overrides when loading the - * environment's state. - * @param {boolean} request.skipGcsDataCopying - * Whether or not to skip copying Cloud Storage data when loading the - * environment's state. + * @param {google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap} [request.userWorkloadsConfigMap] + * Optional. User workloads ConfigMap to override. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.load_snapshot.js - * region_tag:composer_v1_generated_Environments_LoadSnapshot_async + * @example include:samples/generated/v1/environments.update_user_workloads_config_map.js + * region_tag:composer_v1_generated_Environments_UpdateUserWorkloadsConfigMap_async */ - loadSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + updateUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] >; - loadSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + updateUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - loadSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + updateUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - loadSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + updateUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IUpdateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] > | void { @@ -1804,107 +1657,286 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + 'user_workloads_config_map.name': + request.userWorkloadsConfigMap!.name ?? '', }); this.initialize(); - return this.innerApiCalls.loadSnapshot(request, options, callback); + return this.innerApiCalls.updateUserWorkloadsConfigMap( + request, + options, + callback + ); } /** - * Check the status of the long running operation returned by `loadSnapshot()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * Deletes a user workloads ConfigMap. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The ConfigMap to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + * @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 {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.load_snapshot.js - * region_tag:composer_v1_generated_Environments_LoadSnapshot_async + * @example include:samples/generated/v1/environments.delete_user_workloads_config_map.js + * region_tag:composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_async */ - async checkLoadSnapshotProgress( - name: string + deleteUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, + options?: CallOptions ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.loadSnapshot, - this._gaxModule.createDefaultBackoffSettings() + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest + | undefined + ), + {} | undefined, + ] + >; + deleteUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IDeleteUserWorkloadsConfigMapRequest + | 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteUserWorkloadsConfigMap( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - >; } /** - * Triggers database failover (only for highly resilient environments). + * Fetches database properties. * * @param {Object} request * The request object that will be sent. * @param {string} request.environment - * Target environment: + * Required. The resource name of the environment, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @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 {@link protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse|FetchDatabasePropertiesResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.fetch_database_properties.js + * region_tag:composer_v1_generated_Environments_FetchDatabaseProperties_async + */ + fetchDatabaseProperties( + request?: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | undefined + ), + {} | undefined, + ] + >; + fetchDatabaseProperties( + request: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchDatabaseProperties( + request: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchDatabaseProperties( + request?: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse, + ( + | protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesRequest + | 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({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.fetchDatabaseProperties( + request, + options, + callback + ); + } + + /** + * Create a new environment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The parent must be of the form + * "projects/{projectId}/locations/{locationId}". + * @param {google.cloud.orchestration.airflow.service.v1.Environment} request.environment + * The environment to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing * a long running operation. Its `promise()` method returns a promise * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.database_failover.js - * region_tag:composer_v1_generated_Environments_DatabaseFailover_async + * @example include:samples/generated/v1/environments.create_environment.js + * region_tag:composer_v1_generated_Environments_CreateEnvironment_async */ - databaseFailover( - request?: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + createEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - databaseFailover( - request: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + createEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - databaseFailover( - request: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + createEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - databaseFailover( - request?: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + createEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -1912,7 +1944,7 @@ export class EnvironmentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -1920,12 +1952,1390 @@ export class EnvironmentsClient { > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, - {} | undefined, + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createEnvironment(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createEnvironment()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.create_environment.js + * region_tag:composer_v1_generated_Environments_CreateEnvironment_async + */ + async checkCreateEnvironmentProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.Environment, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createEnvironment, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.Environment, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + >; + } + /** + * Update an environment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The relative resource name of the environment to update, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {google.cloud.orchestration.airflow.service.v1.Environment} request.environment + * A patch environment. Fields specified by the `updateMask` will be copied + * from the patch environment into the environment under update. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. A comma-separated list of paths, relative to `Environment`, of + * fields to update. + * For example, to set the version of scikit-learn to install in the + * environment to 0.19.0 and to remove an existing installation of + * numpy, the `updateMask` parameter would include the following two + * `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and + * "config.softwareConfig.pypiPackages.numpy". The included patch + * environment would specify the scikit-learn version as follows: + * + * { + * "config":{ + * "softwareConfig":{ + * "pypiPackages":{ + * "scikit-learn":"==0.19.0" + * } + * } + * } + * } + * + * Note that in the above example, any existing PyPI packages + * other than scikit-learn and numpy will be unaffected. + * + * Only one update type may be included in a single request's `updateMask`. + * For example, one cannot update both the PyPI packages and + * labels in the same request. However, it is possible to update multiple + * members of a map field simultaneously in the same request. For example, + * to set the labels "label1" and "label2" while clearing "label3" (assuming + * it already exists), one can + * provide the paths "labels.label1", "labels.label2", and "labels.label3" + * and populate the patch environment as follows: + * + * { + * "labels":{ + * "label1":"new-label1-value" + * "label2":"new-label2-value" + * } + * } + * + * Note that in the above example, any existing labels that are not + * included in the `updateMask` will be unaffected. + * + * It is also possible to replace an entire map field by providing the + * map field's path in the `updateMask`. The new value of the field will + * be that which is provided in the patch environment. For example, to + * delete all pre-existing user-specified PyPI packages and + * install botocore at version 1.7.14, the `updateMask` would contain + * the path "config.softwareConfig.pypiPackages", and + * the patch environment would be the following: + * + * { + * "config":{ + * "softwareConfig":{ + * "pypiPackages":{ + * "botocore":"==1.7.14" + * } + * } + * } + * } + * + * **Note:** Only the following fields can be updated: + * + * * `config.softwareConfig.pypiPackages` + * * Replace all custom custom PyPI packages. If a replacement + * package map is not included in `environment`, all custom + * PyPI packages are cleared. It is an error to provide both + * this mask and a mask specifying an individual package. + * * `config.softwareConfig.pypiPackages.`packagename + * * Update the custom PyPI package *packagename*, + * preserving other packages. To delete the package, include it in + * `updateMask`, and omit the mapping for it in + * `environment.config.softwareConfig.pypiPackages`. It is an error + * to provide both a mask of this form and the + * `config.softwareConfig.pypiPackages` mask. + * * `labels` + * * Replace all environment labels. If a replacement labels map is not + * included in `environment`, all labels are cleared. It is an error to + * provide both this mask and a mask specifying one or more individual + * labels. + * * `labels.`labelName + * * Set the label named *labelName*, while preserving other + * labels. To delete the label, include it in `updateMask` and omit its + * mapping in `environment.labels`. It is an error to provide both a + * mask of this form and the `labels` mask. + * * `config.nodeCount` + * * Horizontally scale the number of nodes in the environment. An integer + * greater than or equal to 3 must be provided in the `config.nodeCount` + * field. Supported for Cloud Composer environments in versions + * composer-1.*.*-airflow-*.*.*. + * * `config.webServerNetworkAccessControl` + * * Replace the environment's current `WebServerNetworkAccessControl`. + * * `config.softwareConfig.airflowConfigOverrides` + * * Replace all Apache Airflow config overrides. If a replacement config + * overrides map is not included in `environment`, all config overrides + * are cleared. + * It is an error to provide both this mask and a mask specifying one or + * more individual config overrides. + * * `config.softwareConfig.airflowConfigOverrides.`section-name + * * Override the Apache Airflow config property *name* in the + * section named *section*, preserving other properties. To + * delete the property override, include it in `updateMask` and omit its + * mapping in + * `environment.config.softwareConfig.airflowConfigOverrides`. + * It is an error to provide both a mask of this form and the + * `config.softwareConfig.airflowConfigOverrides` mask. + * * `config.softwareConfig.envVariables` + * * Replace all environment variables. If a replacement environment + * variable map is not included in `environment`, all custom environment + * variables are cleared. + * * `config.softwareConfig.schedulerCount` + * * Horizontally scale the number of schedulers in Airflow. A positive + * integer not greater than the number of nodes must be provided in the + * `config.softwareConfig.schedulerCount` field. Supported for Cloud + * Composer environments in versions composer-1.*.*-airflow-2.*.*. + * * `config.databaseConfig.machineType` + * * Cloud SQL machine type used by Airflow database. + * It has to be one of: db-n1-standard-2, db-n1-standard-4, + * db-n1-standard-8 or db-n1-standard-16. Supported for Cloud Composer + * environments in versions composer-1.*.*-airflow-*.*.*. + * * `config.webServerConfig.machineType` + * * Machine type on which Airflow web server is running. + * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 + * or composer-n1-webserver-8. Supported for Cloud Composer environments + * in versions composer-1.*.*-airflow-*.*.*. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.update_environment.js + * region_tag:composer_v1_generated_Environments_UpdateEnvironment_async + */ + updateEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateEnvironment(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateEnvironment()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.update_environment.js + * region_tag:composer_v1_generated_Environments_UpdateEnvironment_async + */ + async checkUpdateEnvironmentProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.Environment, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateEnvironment, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.Environment, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + >; + } + /** + * Delete an environment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The environment to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.delete_environment.js + * region_tag:composer_v1_generated_Environments_DeleteEnvironment_async + */ + deleteEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteEnvironment(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteEnvironment()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.delete_environment.js + * region_tag:composer_v1_generated_Environments_DeleteEnvironment_async + */ + async checkDeleteEnvironmentProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteEnvironment, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + >; + } + /** + * Creates a snapshots of a Cloud Composer environment. + * + * As a result of this operation, snapshot of environment's state is stored + * in a location specified in the SaveSnapshotRequest. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * The resource name of the source environment in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {string} request.snapshotLocation + * Location in a Cloud Storage where the snapshot is going to be stored, e.g.: + * "gs://my-bucket/snapshots". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.save_snapshot.js + * region_tag:composer_v1_generated_Environments_SaveSnapshot_async + */ + saveSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + saveSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + saveSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + saveSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.saveSnapshot(request, options, callback); + } + /** + * Check the status of the long running operation returned by `saveSnapshot()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.save_snapshot.js + * region_tag:composer_v1_generated_Environments_SaveSnapshot_async + */ + async checkSaveSnapshotProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.saveSnapshot, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + >; + } + /** + * Loads a snapshot of a Cloud Composer environment. + * + * As a result of this operation, a snapshot of environment's specified in + * LoadSnapshotRequest is loaded into the environment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * The resource name of the target environment in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {string} request.snapshotPath + * A Cloud Storage path to a snapshot to load, e.g.: + * "gs://my-bucket/snapshots/project_location_environment_timestamp". + * @param {boolean} request.skipPypiPackagesInstallation + * Whether or not to skip installing Pypi packages when loading the + * environment's state. + * @param {boolean} request.skipEnvironmentVariablesSetting + * Whether or not to skip setting environment variables when loading the + * environment's state. + * @param {boolean} request.skipAirflowOverridesSetting + * Whether or not to skip setting Airflow overrides when loading the + * environment's state. + * @param {boolean} request.skipGcsDataCopying + * Whether or not to skip copying Cloud Storage data when loading the + * environment's state. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.load_snapshot.js + * region_tag:composer_v1_generated_Environments_LoadSnapshot_async + */ + loadSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + loadSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + loadSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + loadSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.loadSnapshot(request, options, callback); + } + /** + * Check the status of the long running operation returned by `loadSnapshot()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.load_snapshot.js + * region_tag:composer_v1_generated_Environments_LoadSnapshot_async + */ + async checkLoadSnapshotProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.loadSnapshot, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + >; + } + /** + * Triggers database failover (only for highly resilient environments). + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * Target environment: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.database_failover.js + * region_tag:composer_v1_generated_Environments_DatabaseFailover_async + */ + databaseFailover( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + databaseFailover( + request: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + databaseFailover( + request: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + databaseFailover( + request?: protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.databaseFailover(request, options, callback); + } + /** + * Check the status of the long running operation returned by `databaseFailover()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.database_failover.js + * region_tag:composer_v1_generated_Environments_DatabaseFailover_async + */ + async checkDatabaseFailoverProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.databaseFailover, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata + >; + } + /** + * List environments. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * List environments in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + * @param {number} request.pageSize + * The maximum number of environments to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous List request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1.Environment|Environment}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listEnvironmentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listEnvironments( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[], + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse, + ] + >; + listEnvironments( + request: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + > + ): void; + listEnvironments( + request: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + > + ): void; + listEnvironments( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + >, + callback?: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[], + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse, + ] + > | 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listEnvironments(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * List environments in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + * @param {number} request.pageSize + * The maximum number of environments to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous List request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.Environment|Environment} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listEnvironmentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listEnvironmentsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listEnvironments']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listEnvironments.createStream( + this.innerApiCalls.listEnvironments as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listEnvironments`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * List environments in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + * @param {number} request.pageSize + * The maximum number of environments to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous List request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.orchestration.airflow.service.v1.Environment|Environment}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.list_environments.js + * region_tag:composer_v1_generated_Environments_ListEnvironments_async + */ + listEnvironmentsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listEnvironments']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listEnvironments.asyncIterate( + this.innerApiCalls['listEnvironments'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists workloads in a Cloud Composer environment. Workload is a unit that + * runs a single Composer component. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of environments to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload|ComposerWorkload}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listWorkloadsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listWorkloads( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[], + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse, + ] + >; + listWorkloads( + request: protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload + > + ): void; + listWorkloads( + request: protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload + > + ): void; + listWorkloads( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload + >, + callback?: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[], + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsResponse, + ] + > | 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listWorkloads(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of environments to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload|ComposerWorkload} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listWorkloadsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listWorkloadsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listWorkloads']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listWorkloads.createStream( + this.innerApiCalls.listWorkloads as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listWorkloads`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of environments to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload|ComposerWorkload}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.list_workloads.js + * region_tag:composer_v1_generated_Environments_ListWorkloads_async + */ + listWorkloadsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListWorkloadsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listWorkloads']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listWorkloads.asyncIterate( + this.innerApiCalls['listWorkloads'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists user workloads Secrets. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of Secrets to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret|UserWorkloadsSecret}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listUserWorkloadsSecretsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listUserWorkloadsSecrets( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[], + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse, + ] + >; + listUserWorkloadsSecrets( + request: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret + > + ): void; + listUserWorkloadsSecrets( + request: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret + > + ): void; + listUserWorkloadsSecrets( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret + >, + callback?: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[], + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsResponse, ] > | void { request = request || {}; @@ -1941,123 +3351,190 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.databaseFailover(request, options, callback); + return this.innerApiCalls.listUserWorkloadsSecrets( + request, + options, + callback + ); } + /** - * Check the status of the long running operation returned by `databaseFailover()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of Secrets to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret|UserWorkloadsSecret} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listUserWorkloadsSecretsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.database_failover.js - * region_tag:composer_v1_generated_Environments_DatabaseFailover_async */ - async checkDatabaseFailoverProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.databaseFailover, - this._gaxModule.createDefaultBackoffSettings() + listUserWorkloadsSecretsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserWorkloadsSecrets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listUserWorkloadsSecrets.createStream( + this.innerApiCalls.listUserWorkloadsSecrets as GaxCall, + request, + callSettings ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1.OperationMetadata - >; } + /** - * List environments. + * Equivalent to `listUserWorkloadsSecrets`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * List environments in the given project and location, in the form: - * "projects/{projectId}/locations/{locationId}" - * @param {number} request.pageSize - * The maximum number of environments to return. - * @param {string} request.pageToken - * The next_page_token value returned from a previous List request, if any. + * Required. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of Secrets to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret|UserWorkloadsSecret}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/environments.list_user_workloads_secrets.js + * region_tag:composer_v1_generated_Environments_ListUserWorkloadsSecrets_async + */ + listUserWorkloadsSecretsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsSecretsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserWorkloadsSecrets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listUserWorkloadsSecrets.asyncIterate( + this.innerApiCalls['listUserWorkloadsSecrets'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists user workloads ConfigMaps. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of ConfigMaps to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1.Environment|Environment}. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listEnvironmentsAsync()` + * We recommend using `listUserWorkloadsConfigMapsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listEnvironments( - request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[], - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest | null, - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[], + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse, ] >; - listEnvironments( - request: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap > ): void; - listEnvironments( - request: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, callback: PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap > ): void; - listEnvironments( - request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap >, callback?: PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap > ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[], - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest | null, - protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse, + protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[], + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsResponse, ] > | void { request = request || {}; @@ -2076,7 +3553,11 @@ export class EnvironmentsClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listEnvironments(request, options, callback); + return this.innerApiCalls.listUserWorkloadsConfigMaps( + request, + options, + callback + ); } /** @@ -2084,25 +3565,26 @@ export class EnvironmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * List environments in the given project and location, in the form: - * "projects/{projectId}/locations/{locationId}" - * @param {number} request.pageSize - * The maximum number of environments to return. - * @param {string} request.pageToken - * The next_page_token value returned from a previous List request, if any. + * Required. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of ConfigMaps to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.Environment|Environment} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap|UserWorkloadsConfigMap} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listEnvironmentsAsync()` + * We recommend using `listUserWorkloadsConfigMapsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listEnvironmentsStream( - request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + listUserWorkloadsConfigMapsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -2113,45 +3595,46 @@ export class EnvironmentsClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listEnvironments']; + const defaultCallSettings = this._defaults['listUserWorkloadsConfigMaps']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listEnvironments.createStream( - this.innerApiCalls.listEnvironments as GaxCall, + return this.descriptors.page.listUserWorkloadsConfigMaps.createStream( + this.innerApiCalls.listUserWorkloadsConfigMaps as GaxCall, request, callSettings ); } /** - * Equivalent to `listEnvironments`, but returns an iterable object. + * Equivalent to `listUserWorkloadsConfigMaps`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * List environments in the given project and location, in the form: - * "projects/{projectId}/locations/{locationId}" - * @param {number} request.pageSize - * The maximum number of environments to return. - * @param {string} request.pageToken - * The next_page_token value returned from a previous List request, if any. + * Required. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of ConfigMaps to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.orchestration.airflow.service.v1.Environment|Environment}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1/environments.list_environments.js - * region_tag:composer_v1_generated_Environments_ListEnvironments_async + * @example include:samples/generated/v1/environments.list_user_workloads_config_maps.js + * region_tag:composer_v1_generated_Environments_ListUserWorkloadsConfigMaps_async */ - listEnvironmentsAsync( - request?: protos.google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, + listUserWorkloadsConfigMapsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1.IListUserWorkloadsConfigMapsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2160,14 +3643,14 @@ export class EnvironmentsClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listEnvironments']; + const defaultCallSettings = this._defaults['listUserWorkloadsConfigMaps']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listEnvironments.asyncIterate( - this.innerApiCalls['listEnvironments'] as GaxCall, + return this.descriptors.page.listUserWorkloadsConfigMaps.asyncIterate( + this.innerApiCalls['listUserWorkloadsConfigMaps'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Gets the latest state of a long-running operation. Clients can use this @@ -2400,6 +3883,166 @@ export class EnvironmentsClient { .environment; } + /** + * Return a fully-qualified userWorkloadsConfigMap resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_config_map + * @returns {string} Resource name string. + */ + userWorkloadsConfigMapPath( + project: string, + location: string, + environment: string, + userWorkloadsConfigMap: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_config_map: userWorkloadsConfigMap, + }); + } + + /** + * Parse the project from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).project; + } + + /** + * Parse the location from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).location; + } + + /** + * Parse the environment from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).environment; + } + + /** + * Parse the user_workloads_config_map from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the user_workloads_config_map. + */ + matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).user_workloads_config_map; + } + + /** + * Return a fully-qualified userWorkloadsSecret resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_secret + * @returns {string} Resource name string. + */ + userWorkloadsSecretPath( + project: string, + location: string, + environment: string, + userWorkloadsSecret: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_secret: userWorkloadsSecret, + }); + } + + /** + * Parse the project from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).project; + } + + /** + * Parse the location from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).location; + } + + /** + * Parse the environment from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).environment; + } + + /** + * Parse the user_workloads_secret from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the user_workloads_secret. + */ + matchUserWorkloadsSecretFromUserWorkloadsSecretName( + userWorkloadsSecretName: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).user_workloads_secret; + } + /** * Terminate the gRPC channel and close the client. * diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client_config.json b/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client_config.json index f6e68e307179..7672180747b4 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client_config.json +++ b/packages/google-cloud-orchestration-airflow-service/src/v1/environments_client_config.json @@ -52,6 +52,50 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListWorkloads": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListUserWorkloadsSecrets": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListUserWorkloadsConfigMaps": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SaveSnapshot": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1/gapic_metadata.json b/packages/google-cloud-orchestration-airflow-service/src/v1/gapic_metadata.json index 0ab43de4e608..48706a651b35 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1/gapic_metadata.json +++ b/packages/google-cloud-orchestration-airflow-service/src/v1/gapic_metadata.json @@ -30,6 +30,46 @@ "pollAirflowCommand" ] }, + "CreateUserWorkloadsSecret": { + "methods": [ + "createUserWorkloadsSecret" + ] + }, + "GetUserWorkloadsSecret": { + "methods": [ + "getUserWorkloadsSecret" + ] + }, + "UpdateUserWorkloadsSecret": { + "methods": [ + "updateUserWorkloadsSecret" + ] + }, + "DeleteUserWorkloadsSecret": { + "methods": [ + "deleteUserWorkloadsSecret" + ] + }, + "CreateUserWorkloadsConfigMap": { + "methods": [ + "createUserWorkloadsConfigMap" + ] + }, + "GetUserWorkloadsConfigMap": { + "methods": [ + "getUserWorkloadsConfigMap" + ] + }, + "UpdateUserWorkloadsConfigMap": { + "methods": [ + "updateUserWorkloadsConfigMap" + ] + }, + "DeleteUserWorkloadsConfigMap": { + "methods": [ + "deleteUserWorkloadsConfigMap" + ] + }, "FetchDatabaseProperties": { "methods": [ "fetchDatabaseProperties" @@ -71,6 +111,27 @@ "listEnvironmentsStream", "listEnvironmentsAsync" ] + }, + "ListWorkloads": { + "methods": [ + "listWorkloads", + "listWorkloadsStream", + "listWorkloadsAsync" + ] + }, + "ListUserWorkloadsSecrets": { + "methods": [ + "listUserWorkloadsSecrets", + "listUserWorkloadsSecretsStream", + "listUserWorkloadsSecretsAsync" + ] + }, + "ListUserWorkloadsConfigMaps": { + "methods": [ + "listUserWorkloadsConfigMaps", + "listUserWorkloadsConfigMapsStream", + "listUserWorkloadsConfigMapsAsync" + ] } } }, @@ -97,6 +158,46 @@ "pollAirflowCommand" ] }, + "CreateUserWorkloadsSecret": { + "methods": [ + "createUserWorkloadsSecret" + ] + }, + "GetUserWorkloadsSecret": { + "methods": [ + "getUserWorkloadsSecret" + ] + }, + "UpdateUserWorkloadsSecret": { + "methods": [ + "updateUserWorkloadsSecret" + ] + }, + "DeleteUserWorkloadsSecret": { + "methods": [ + "deleteUserWorkloadsSecret" + ] + }, + "CreateUserWorkloadsConfigMap": { + "methods": [ + "createUserWorkloadsConfigMap" + ] + }, + "GetUserWorkloadsConfigMap": { + "methods": [ + "getUserWorkloadsConfigMap" + ] + }, + "UpdateUserWorkloadsConfigMap": { + "methods": [ + "updateUserWorkloadsConfigMap" + ] + }, + "DeleteUserWorkloadsConfigMap": { + "methods": [ + "deleteUserWorkloadsConfigMap" + ] + }, "FetchDatabaseProperties": { "methods": [ "fetchDatabaseProperties" @@ -138,6 +239,27 @@ "listEnvironmentsStream", "listEnvironmentsAsync" ] + }, + "ListWorkloads": { + "methods": [ + "listWorkloads", + "listWorkloadsStream", + "listWorkloadsAsync" + ] + }, + "ListUserWorkloadsSecrets": { + "methods": [ + "listUserWorkloadsSecrets", + "listUserWorkloadsSecretsStream", + "listUserWorkloadsSecretsAsync" + ] + }, + "ListUserWorkloadsConfigMaps": { + "methods": [ + "listUserWorkloadsConfigMaps", + "listUserWorkloadsConfigMapsStream", + "listUserWorkloadsConfigMapsAsync" + ] } } } diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1/image_versions_client.ts b/packages/google-cloud-orchestration-airflow-service/src/v1/image_versions_client.ts index cf442bb46d2e..6e4a2f3b79c9 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1/image_versions_client.ts +++ b/packages/google-cloud-orchestration-airflow-service/src/v1/image_versions_client.ts @@ -195,6 +195,12 @@ export class ImageVersionsClient { environmentPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/environments/{environment}' ), + userWorkloadsConfigMapPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}' + ), + userWorkloadsSecretPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}' + ), }; // Some of the methods on this service return "paged" results, @@ -624,6 +630,166 @@ export class ImageVersionsClient { .environment; } + /** + * Return a fully-qualified userWorkloadsConfigMap resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_config_map + * @returns {string} Resource name string. + */ + userWorkloadsConfigMapPath( + project: string, + location: string, + environment: string, + userWorkloadsConfigMap: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_config_map: userWorkloadsConfigMap, + }); + } + + /** + * Parse the project from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).project; + } + + /** + * Parse the location from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).location; + } + + /** + * Parse the environment from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).environment; + } + + /** + * Parse the user_workloads_config_map from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the user_workloads_config_map. + */ + matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).user_workloads_config_map; + } + + /** + * Return a fully-qualified userWorkloadsSecret resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_secret + * @returns {string} Resource name string. + */ + userWorkloadsSecretPath( + project: string, + location: string, + environment: string, + userWorkloadsSecret: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_secret: userWorkloadsSecret, + }); + } + + /** + * Parse the project from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).project; + } + + /** + * Parse the location from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).location; + } + + /** + * Parse the environment from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).environment; + } + + /** + * Parse the user_workloads_secret from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the user_workloads_secret. + */ + matchUserWorkloadsSecretFromUserWorkloadsSecretName( + userWorkloadsSecretName: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).user_workloads_secret; + } + /** * Terminate the gRPC channel and close the client. * diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client.ts b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client.ts index ca17d4f2d1a2..2fcb94039069 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client.ts +++ b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client.ts @@ -198,6 +198,12 @@ export class EnvironmentsClient { environmentPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/environments/{environment}' ), + userWorkloadsConfigMapPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}' + ), + userWorkloadsSecretPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}' + ), }; // Some of the methods on this service return "paged" results, @@ -209,6 +215,21 @@ export class EnvironmentsClient { 'nextPageToken', 'environments' ), + listWorkloads: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'workloads' + ), + listUserWorkloadsSecrets: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'userWorkloadsSecrets' + ), + listUserWorkloadsConfigMaps: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'userWorkloadsConfigMaps' + ), }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); @@ -392,6 +413,17 @@ export class EnvironmentsClient { 'executeAirflowCommand', 'stopAirflowCommand', 'pollAirflowCommand', + 'listWorkloads', + 'createUserWorkloadsSecret', + 'getUserWorkloadsSecret', + 'listUserWorkloadsSecrets', + 'updateUserWorkloadsSecret', + 'deleteUserWorkloadsSecret', + 'createUserWorkloadsConfigMap', + 'getUserWorkloadsConfigMap', + 'listUserWorkloadsConfigMaps', + 'updateUserWorkloadsConfigMap', + 'deleteUserWorkloadsConfigMap', 'saveSnapshot', 'loadSnapshot', 'databaseFailover', @@ -928,79 +960,84 @@ export class EnvironmentsClient { return this.innerApiCalls.pollAirflowCommand(request, options, callback); } /** - * Fetches database properties. + * Creates a user workloads Secret. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * Required. The resource name of the environment, in the form: + * @param {string} request.parent + * Required. The environment name to create a Secret for, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} request.userWorkloadsSecret + * Required. User workloads Secret to create. * @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 {@link protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse|FetchDatabasePropertiesResponse}. + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret|UserWorkloadsSecret}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.fetch_database_properties.js - * region_tag:composer_v1beta1_generated_Environments_FetchDatabaseProperties_async + * @example include:samples/generated/v1beta1/environments.create_user_workloads_secret.js + * region_tag:composer_v1beta1_generated_Environments_CreateUserWorkloadsSecret_async */ - fetchDatabaseProperties( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, ( - | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest | undefined ), {} | undefined, ] >; - fetchDatabaseProperties( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, options: CallOptions, callback: Callback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined > ): void; - fetchDatabaseProperties( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, callback: Callback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined > ): void; - fetchDatabaseProperties( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + createUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, ( - | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsSecretRequest | undefined ), {} | undefined, @@ -1019,100 +1056,95 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.fetchDatabaseProperties( + return this.innerApiCalls.createUserWorkloadsSecret( request, options, callback ); } - /** - * Create a new environment. + * Gets an existing user workloads Secret. + * Values of the "data" field in the response are cleared. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * The parent must be of the form - * "projects/{projectId}/locations/{locationId}". - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} request.environment - * The environment to create. + * @param {string} request.name + * Required. The resource name of the Secret to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret|UserWorkloadsSecret}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.create_environment.js - * region_tag:composer_v1beta1_generated_Environments_CreateEnvironment_async + * @example include:samples/generated/v1beta1/environments.get_user_workloads_secret.js + * region_tag:composer_v1beta1_generated_Environments_GetUserWorkloadsSecret_async */ - createEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] >; - createEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - createEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - createEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, + getUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] > | void { @@ -1129,275 +1161,197 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createEnvironment(request, options, callback); + return this.innerApiCalls.getUserWorkloadsSecret( + request, + options, + callback + ); } /** - * Check the status of the long running operation returned by `createEnvironment()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * Updates a user workloads Secret. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret} [request.userWorkloadsSecret] + * Optional. User workloads Secret to override. + * @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 {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret|UserWorkloadsSecret}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.create_environment.js - * region_tag:composer_v1beta1_generated_Environments_CreateEnvironment_async + * @example include:samples/generated/v1beta1/environments.update_user_workloads_secret.js + * region_tag:composer_v1beta1_generated_Environments_UpdateUserWorkloadsSecret_async */ - async checkCreateEnvironmentProgress( - name: string + updateUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, + options?: CallOptions ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest + | undefined + ), + {} | undefined, + ] + >; + updateUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.createEnvironment, - this._gaxModule.createDefaultBackoffSettings() + ): void; + updateUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsSecretRequest + | 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({ + 'user_workloads_secret.name': request.userWorkloadsSecret!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateUserWorkloadsSecret( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - >; } /** - * Update an environment. + * Deletes a user workloads Secret. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * The relative resource name of the environment to update, in the form: - * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} request.environment - * A patch environment. Fields specified by the `updateMask` will be copied - * from the patch environment into the environment under update. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A comma-separated list of paths, relative to `Environment`, of - * fields to update. - * For example, to set the version of scikit-learn to install in the - * environment to 0.19.0 and to remove an existing installation of - * argparse, the `updateMask` parameter would include the following two - * `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and - * "config.softwareConfig.pypiPackages.argparse". The included patch - * environment would specify the scikit-learn version as follows: - * - * { - * "config":{ - * "softwareConfig":{ - * "pypiPackages":{ - * "scikit-learn":"==0.19.0" - * } - * } - * } - * } - * - * Note that in the above example, any existing PyPI packages - * other than scikit-learn and argparse will be unaffected. - * - * Only one update type may be included in a single request's `updateMask`. - * For example, one cannot update both the PyPI packages and - * labels in the same request. However, it is possible to update multiple - * members of a map field simultaneously in the same request. For example, - * to set the labels "label1" and "label2" while clearing "label3" (assuming - * it already exists), one can - * provide the paths "labels.label1", "labels.label2", and "labels.label3" - * and populate the patch environment as follows: - * - * { - * "labels":{ - * "label1":"new-label1-value" - * "label2":"new-label2-value" - * } - * } - * - * Note that in the above example, any existing labels that are not - * included in the `updateMask` will be unaffected. - * - * It is also possible to replace an entire map field by providing the - * map field's path in the `updateMask`. The new value of the field will - * be that which is provided in the patch environment. For example, to - * delete all pre-existing user-specified PyPI packages and - * install botocore at version 1.7.14, the `updateMask` would contain - * the path "config.softwareConfig.pypiPackages", and - * the patch environment would be the following: - * - * { - * "config":{ - * "softwareConfig":{ - * "pypiPackages":{ - * "botocore":"==1.7.14" - * } - * } - * } - * } - * - * **Note:** Only the following fields can be updated: - * - * * `config.softwareConfig.pypiPackages` - * * Replace all custom custom PyPI packages. If a replacement - * package map is not included in `environment`, all custom - * PyPI packages are cleared. It is an error to provide both - * this mask and a mask specifying an individual package. - * * `config.softwareConfig.pypiPackages.`packagename - * * Update the custom PyPI package *packagename*, - * preserving other packages. To delete the package, include it in - * `updateMask`, and omit the mapping for it in - * `environment.config.softwareConfig.pypiPackages`. It is an error - * to provide both a mask of this form and the - * `config.softwareConfig.pypiPackages` mask. - * * `labels` - * * Replace all environment labels. If a replacement labels map is not - * included in `environment`, all labels are cleared. It is an error to - * provide both this mask and a mask specifying one or more individual - * labels. - * * `labels.`labelName - * * Set the label named *labelName*, while preserving other - * labels. To delete the label, include it in `updateMask` and omit its - * mapping in `environment.labels`. It is an error to provide both a - * mask of this form and the `labels` mask. - * * `config.nodeCount` - * * Horizontally scale the number of nodes in the environment. An integer - * greater than or equal to 3 must be provided in the `config.nodeCount` - * field. Supported for Cloud Composer environments in versions - * composer-1.*.*-airflow-*.*.*. - * * `config.webServerNetworkAccessControl` - * * Replace the environment's current WebServerNetworkAccessControl. - * * `config.softwareConfig.airflowConfigOverrides` - * * Replace all Apache Airflow config overrides. If a replacement config - * overrides map is not included in `environment`, all config overrides - * are cleared. - * It is an error to provide both this mask and a mask specifying one or - * more individual config overrides. - * * `config.softwareConfig.airflowConfigOverrides.`section-name - * * Override the Apache Airflow config property *name* in the - * section named *section*, preserving other properties. To - * delete the property override, include it in `updateMask` and omit its - * mapping in - * `environment.config.softwareConfig.airflowConfigOverrides`. - * It is an error to provide both a mask of this form and the - * `config.softwareConfig.airflowConfigOverrides` mask. - * * `config.softwareConfig.envVariables` - * * Replace all environment variables. If a replacement environment - * variable map is not included in `environment`, all custom environment - * variables are cleared. - * * `config.softwareConfig.imageVersion` - * * Upgrade the version of the environment in-place. Refer to - * `SoftwareConfig.image_version` for information on how to format the - * new image version. Additionally, the new image version cannot effect - * a version downgrade, and must match the current image version's - * Composer and Airflow major versions. Consult the [Cloud Composer - * version list](/composer/docs/concepts/versioning/composer-versions) - * for valid values. - * * `config.softwareConfig.schedulerCount` - * * Horizontally scale the number of schedulers in Airflow. A positive - * integer not greater than the number of nodes must be provided in the - * `config.softwareConfig.schedulerCount` field. Supported for Cloud - * Composer environments in versions composer-1.*.*-airflow-2.*.*. - * * `config.softwareConfig.cloudDataLineageIntegration` - * * Configuration for Cloud Data Lineage integration. - * * `config.databaseConfig.machineType` - * * Cloud SQL machine type used by Airflow database. - * It has to be one of: db-n1-standard-2, db-n1-standard-4, - * db-n1-standard-8 or db-n1-standard-16. Supported for Cloud Composer - * environments in versions composer-1.*.*-airflow-*.*.*. - * * `config.webServerConfig.machineType` - * * Machine type on which Airflow web server is running. - * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 - * or composer-n1-webserver-8. Supported for Cloud Composer environments - * in versions composer-1.*.*-airflow-*.*.*. - * * `config.maintenanceWindow` - * * Maintenance window during which Cloud Composer components may be - * under maintenance. - * * `config.workloadsConfig` - * * The workloads configuration settings for the GKE cluster associated - * with the Cloud Composer environment. Supported for Cloud Composer - * environments in versions composer-2.*.*-airflow-*.*.* and newer. - * * `config.environmentSize` - * * The size of the Cloud Composer environment. Supported for Cloud - * Composer environments in versions composer-2.*.*-airflow-*.*.* and - * newer. + * Required. The Secret to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.update_environment.js - * region_tag:composer_v1beta1_generated_Environments_UpdateEnvironment_async + * @example include:samples/generated/v1beta1/environments.delete_user_workloads_secret.js + * region_tag:composer_v1beta1_generated_Environments_DeleteUserWorkloadsSecret_async */ - updateEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] >; - updateEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - updateEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): void; - updateEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, + deleteUserWorkloadsSecret( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsSecretRequest + | undefined + ), {} | undefined, ] > | void { @@ -1417,124 +1371,93 @@ export class EnvironmentsClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateEnvironment(request, options, callback); - } - /** - * Check the status of the long running operation returned by `updateEnvironment()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1beta1/environments.update_environment.js - * region_tag:composer_v1beta1_generated_Environments_UpdateEnvironment_async - */ - async checkUpdateEnvironmentProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.updateEnvironment, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.deleteUserWorkloadsSecret( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - >; } /** - * Delete an environment. + * Creates a user workloads ConfigMap. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * The environment to delete, in the form: + * @param {string} request.parent + * Required. The environment name to create a ConfigMap for, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} request.userWorkloadsConfigMap + * Required. User workloads ConfigMap to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.delete_environment.js - * region_tag:composer_v1beta1_generated_Environments_DeleteEnvironment_async + * @example include:samples/generated/v1beta1/environments.create_user_workloads_config_map.js + * region_tag:composer_v1beta1_generated_Environments_CreateUserWorkloadsConfigMap_async */ - deleteEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] >; - deleteEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - deleteEnvironment( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - deleteEnvironment( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, + createUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] > | void { @@ -1551,128 +1474,94 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.deleteEnvironment(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteEnvironment()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1beta1/environments.delete_environment.js - * region_tag:composer_v1beta1_generated_Environments_DeleteEnvironment_async - */ - async checkDeleteEnvironmentProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteEnvironment, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.createUserWorkloadsConfigMap( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - >; } /** - * Restart Airflow web server. + * Gets an existing user workloads ConfigMap. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * The resource name of the environment to restart the web server for, in the - * form: - * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * Required. The resource name of the ConfigMap to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.restart_web_server.js - * region_tag:composer_v1beta1_generated_Environments_RestartWebServer_async + * @example include:samples/generated/v1beta1/environments.get_user_workloads_config_map.js + * region_tag:composer_v1beta1_generated_Environments_GetUserWorkloadsConfigMap_async */ - restartWebServer( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + getUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] >; - restartWebServer( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + getUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - restartWebServer( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + getUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - restartWebServer( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + getUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IGetUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] > | void { @@ -1692,152 +1581,90 @@ export class EnvironmentsClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.restartWebServer(request, options, callback); - } - /** - * Check the status of the long running operation returned by `restartWebServer()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1beta1/environments.restart_web_server.js - * region_tag:composer_v1beta1_generated_Environments_RestartWebServer_async - */ - async checkRestartWebServerProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.restartWebServer, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getUserWorkloadsConfigMap( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - >; } /** - * Check if an upgrade operation on the environment will succeed. + * Updates a user workloads ConfigMap. * - * In case of problems detailed info can be found in the returned Operation. + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * The resource name of the environment to check upgrade for, in the - * form: - * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {string} request.imageVersion - * The version of the software running in the environment. - * This encapsulates both the version of Cloud Composer functionality and the - * version of Apache Airflow. It must match the regular expression - * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. - * When used as input, the server also checks if the provided version is - * supported and denies the request for an unsupported version. - * - * The Cloud Composer portion of the image version is a full - * [semantic version](https://semver.org), or an alias in the form of major - * version number or `latest`. When an alias is provided, the server replaces - * it with the current Cloud Composer version that satisfies the alias. - * - * The Apache Airflow portion of the image version is a full semantic version - * that points to one of the supported Apache Airflow versions, or an alias in - * the form of only major or major.minor versions specified. When an alias is - * provided, the server replaces it with the latest Apache Airflow version - * that satisfies the alias and is supported in the given Cloud Composer - * version. - * - * In all cases, the resolved image version is stored in the same field. - * - * See also [version - * list](/composer/docs/concepts/versioning/composer-versions) and [versioning - * overview](/composer/docs/concepts/versioning/composer-versioning-overview). + * @param {google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap} [request.userWorkloadsConfigMap] + * Optional. User workloads ConfigMap to override. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * The first element of the array is an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.check_upgrade.js - * region_tag:composer_v1beta1_generated_Environments_CheckUpgrade_async + * @example include:samples/generated/v1beta1/environments.update_user_workloads_config_map.js + * region_tag:composer_v1beta1_generated_Environments_UpdateUserWorkloadsConfigMap_async */ - checkUpgrade( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + updateUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] >; - checkUpgrade( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + updateUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - checkUpgrade( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + updateUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, callback: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): void; - checkUpgrade( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + updateUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateUserWorkloadsConfigMapRequest + | undefined + ), {} | undefined, ] > | void { @@ -1854,59 +1681,232 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + 'user_workloads_config_map.name': + request.userWorkloadsConfigMap!.name ?? '', }); this.initialize(); - return this.innerApiCalls.checkUpgrade(request, options, callback); + return this.innerApiCalls.updateUserWorkloadsConfigMap( + request, + options, + callback + ); } /** - * Check the status of the long running operation returned by `checkUpgrade()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } - * for more details and examples. - * @example include:samples/generated/v1beta1/environments.check_upgrade.js - * region_tag:composer_v1beta1_generated_Environments_CheckUpgrade_async - */ - async checkCheckUpgradeProgress( - name: string + * Deletes a user workloads ConfigMap. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The ConfigMap to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" + * @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 {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.delete_user_workloads_config_map.js + * region_tag:composer_v1beta1_generated_Environments_DeleteUserWorkloadsConfigMap_async + */ + deleteUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, + options?: CallOptions ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest + | undefined + ), + {} | undefined, + ] + >; + deleteUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.checkUpgrade, - this._gaxModule.createDefaultBackoffSettings() + ): void; + deleteUserWorkloadsConfigMap( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteUserWorkloadsConfigMap( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteUserWorkloadsConfigMapRequest + | 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteUserWorkloadsConfigMap( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - >; } /** - * Creates a snapshots of a Cloud Composer environment. - * - * As a result of this operation, snapshot of environment's state is stored - * in a location specified in the SaveSnapshotRequest. + * Fetches database properties. * * @param {Object} request * The request object that will be sent. * @param {string} request.environment - * The resource name of the source environment in the form: + * Required. The resource name of the environment, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {string} request.snapshotLocation - * Location in a Cloud Storage where the snapshot is going to be stored, e.g.: - * "gs://my-bucket/snapshots". + * @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 {@link protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse|FetchDatabasePropertiesResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.fetch_database_properties.js + * region_tag:composer_v1beta1_generated_Environments_FetchDatabaseProperties_async + */ + fetchDatabaseProperties( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | undefined + ), + {} | undefined, + ] + >; + fetchDatabaseProperties( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchDatabaseProperties( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + callback: Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchDatabaseProperties( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse, + ( + | protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesRequest + | 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({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.fetchDatabaseProperties( + request, + options, + callback + ); + } + + /** + * Create a new environment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The parent must be of the form + * "projects/{projectId}/locations/{locationId}". + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} request.environment + * The environment to create. * @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. @@ -1915,52 +1915,52 @@ export class EnvironmentsClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.save_snapshot.js - * region_tag:composer_v1beta1_generated_Environments_SaveSnapshot_async + * @example include:samples/generated/v1beta1/environments.create_environment.js + * region_tag:composer_v1beta1_generated_Environments_CreateEnvironment_async */ - saveSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + createEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - saveSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + createEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - saveSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + createEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - saveSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + createEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -1968,7 +1968,7 @@ export class EnvironmentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -1977,7 +1977,7 @@ export class EnvironmentsClient { ): Promise< [ LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -1997,27 +1997,27 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.saveSnapshot(request, options, callback); + return this.innerApiCalls.createEnvironment(request, options, callback); } /** - * Check the status of the long running operation returned by `saveSnapshot()`. + * Check the status of the long running operation returned by `createEnvironment()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.save_snapshot.js - * region_tag:composer_v1beta1_generated_Environments_SaveSnapshot_async + * @example include:samples/generated/v1beta1/environments.create_environment.js + * region_tag:composer_v1beta1_generated_Environments_CreateEnvironment_async */ - async checkSaveSnapshotProgress( + async checkCreateEnvironmentProgress( name: string ): Promise< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata > > { @@ -2028,40 +2028,170 @@ export class EnvironmentsClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.saveSnapshot, + this.descriptors.longrunning.createEnvironment, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata >; } /** - * Loads a snapshot of a Cloud Composer environment. - * - * As a result of this operation, a snapshot of environment's specified in - * LoadSnapshotRequest is loaded into the environment. + * Update an environment. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * The resource name of the target environment in the form: + * @param {string} request.name + * The relative resource name of the environment to update, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" - * @param {string} request.snapshotPath - * A Cloud Storage path to a snapshot to load, e.g.: - * "gs://my-bucket/snapshots/project_location_environment_timestamp". - * @param {boolean} request.skipPypiPackagesInstallation - * Whether or not to skip installing Pypi packages when loading the - * environment's state. - * @param {boolean} request.skipEnvironmentVariablesSetting - * Whether or not to skip setting environment variables when loading the - * environment's state. - * @param {boolean} request.skipAirflowOverridesSetting - * Whether or not to skip setting Airflow overrides when loading the - * environment's state. - * @param {boolean} request.skipGcsDataCopying - * Whether or not to skip copying Cloud Storage data when loading the - * environment's state. + * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} request.environment + * A patch environment. Fields specified by the `updateMask` will be copied + * from the patch environment into the environment under update. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. A comma-separated list of paths, relative to `Environment`, of + * fields to update. + * For example, to set the version of scikit-learn to install in the + * environment to 0.19.0 and to remove an existing installation of + * argparse, the `updateMask` parameter would include the following two + * `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and + * "config.softwareConfig.pypiPackages.argparse". The included patch + * environment would specify the scikit-learn version as follows: + * + * { + * "config":{ + * "softwareConfig":{ + * "pypiPackages":{ + * "scikit-learn":"==0.19.0" + * } + * } + * } + * } + * + * Note that in the above example, any existing PyPI packages + * other than scikit-learn and argparse will be unaffected. + * + * Only one update type may be included in a single request's `updateMask`. + * For example, one cannot update both the PyPI packages and + * labels in the same request. However, it is possible to update multiple + * members of a map field simultaneously in the same request. For example, + * to set the labels "label1" and "label2" while clearing "label3" (assuming + * it already exists), one can + * provide the paths "labels.label1", "labels.label2", and "labels.label3" + * and populate the patch environment as follows: + * + * { + * "labels":{ + * "label1":"new-label1-value" + * "label2":"new-label2-value" + * } + * } + * + * Note that in the above example, any existing labels that are not + * included in the `updateMask` will be unaffected. + * + * It is also possible to replace an entire map field by providing the + * map field's path in the `updateMask`. The new value of the field will + * be that which is provided in the patch environment. For example, to + * delete all pre-existing user-specified PyPI packages and + * install botocore at version 1.7.14, the `updateMask` would contain + * the path "config.softwareConfig.pypiPackages", and + * the patch environment would be the following: + * + * { + * "config":{ + * "softwareConfig":{ + * "pypiPackages":{ + * "botocore":"==1.7.14" + * } + * } + * } + * } + * + * **Note:** Only the following fields can be updated: + * + * * `config.softwareConfig.pypiPackages` + * * Replace all custom custom PyPI packages. If a replacement + * package map is not included in `environment`, all custom + * PyPI packages are cleared. It is an error to provide both + * this mask and a mask specifying an individual package. + * * `config.softwareConfig.pypiPackages.`packagename + * * Update the custom PyPI package *packagename*, + * preserving other packages. To delete the package, include it in + * `updateMask`, and omit the mapping for it in + * `environment.config.softwareConfig.pypiPackages`. It is an error + * to provide both a mask of this form and the + * `config.softwareConfig.pypiPackages` mask. + * * `labels` + * * Replace all environment labels. If a replacement labels map is not + * included in `environment`, all labels are cleared. It is an error to + * provide both this mask and a mask specifying one or more individual + * labels. + * * `labels.`labelName + * * Set the label named *labelName*, while preserving other + * labels. To delete the label, include it in `updateMask` and omit its + * mapping in `environment.labels`. It is an error to provide both a + * mask of this form and the `labels` mask. + * * `config.nodeCount` + * * Horizontally scale the number of nodes in the environment. An integer + * greater than or equal to 3 must be provided in the `config.nodeCount` + * field. Supported for Cloud Composer environments in versions + * composer-1.*.*-airflow-*.*.*. + * * `config.webServerNetworkAccessControl` + * * Replace the environment's current WebServerNetworkAccessControl. + * * `config.softwareConfig.airflowConfigOverrides` + * * Replace all Apache Airflow config overrides. If a replacement config + * overrides map is not included in `environment`, all config overrides + * are cleared. + * It is an error to provide both this mask and a mask specifying one or + * more individual config overrides. + * * `config.softwareConfig.airflowConfigOverrides.`section-name + * * Override the Apache Airflow config property *name* in the + * section named *section*, preserving other properties. To + * delete the property override, include it in `updateMask` and omit its + * mapping in + * `environment.config.softwareConfig.airflowConfigOverrides`. + * It is an error to provide both a mask of this form and the + * `config.softwareConfig.airflowConfigOverrides` mask. + * * `config.softwareConfig.envVariables` + * * Replace all environment variables. If a replacement environment + * variable map is not included in `environment`, all custom environment + * variables are cleared. + * * `config.softwareConfig.imageVersion` + * * Upgrade the version of the environment in-place. Refer to + * `SoftwareConfig.image_version` for information on how to format the + * new image version. Additionally, the new image version cannot effect + * a version downgrade, and must match the current image version's + * Composer and Airflow major versions. Consult the [Cloud Composer + * version list](/composer/docs/concepts/versioning/composer-versions) + * for valid values. + * * `config.softwareConfig.schedulerCount` + * * Horizontally scale the number of schedulers in Airflow. A positive + * integer not greater than the number of nodes must be provided in the + * `config.softwareConfig.schedulerCount` field. Supported for Cloud + * Composer environments in versions composer-1.*.*-airflow-2.*.*. + * * `config.softwareConfig.cloudDataLineageIntegration` + * * Configuration for Cloud Data Lineage integration. + * * `config.databaseConfig.machineType` + * * Cloud SQL machine type used by Airflow database. + * It has to be one of: db-n1-standard-2, db-n1-standard-4, + * db-n1-standard-8 or db-n1-standard-16. Supported for Cloud Composer + * environments in versions composer-1.*.*-airflow-*.*.*. + * * `config.webServerConfig.machineType` + * * Machine type on which Airflow web server is running. + * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 + * or composer-n1-webserver-8. Supported for Cloud Composer environments + * in versions composer-1.*.*-airflow-*.*.*. + * * `config.maintenanceWindow` + * * Maintenance window during which Cloud Composer components may be + * under maintenance. + * * `config.workloadsConfig` + * * The workloads configuration settings for the GKE cluster associated + * with the Cloud Composer environment. Supported for Cloud Composer + * environments in versions composer-2.*.*-airflow-*.*.* and newer. + * * `config.environmentSize` + * * The size of the Cloud Composer environment. Supported for Cloud + * Composer environments in versions composer-2.*.*-airflow-*.*.* and + * newer. * @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. @@ -2070,52 +2200,52 @@ export class EnvironmentsClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.load_snapshot.js - * region_tag:composer_v1beta1_generated_Environments_LoadSnapshot_async + * @example include:samples/generated/v1beta1/environments.update_environment.js + * region_tag:composer_v1beta1_generated_Environments_UpdateEnvironment_async */ - loadSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + updateEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - loadSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + updateEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - loadSnapshot( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + updateEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - loadSnapshot( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + updateEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -2123,7 +2253,7 @@ export class EnvironmentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -2132,7 +2262,7 @@ export class EnvironmentsClient { ): Promise< [ LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, @@ -2152,27 +2282,27 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.loadSnapshot(request, options, callback); + return this.innerApiCalls.updateEnvironment(request, options, callback); } /** - * Check the status of the long running operation returned by `loadSnapshot()`. + * Check the status of the long running operation returned by `updateEnvironment()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. * The decoded operation object has result and metadata field to get information from. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.load_snapshot.js - * region_tag:composer_v1beta1_generated_Environments_LoadSnapshot_async + * @example include:samples/generated/v1beta1/environments.update_environment.js + * region_tag:composer_v1beta1_generated_Environments_UpdateEnvironment_async */ - async checkLoadSnapshotProgress( + async checkUpdateEnvironmentProgress( name: string ): Promise< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata > > { @@ -2183,21 +2313,21 @@ export class EnvironmentsClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.loadSnapshot, + this.descriptors.longrunning.updateEnvironment, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata >; } /** - * Triggers database failover (only for highly resilient environments). + * Delete an environment. * * @param {Object} request * The request object that will be sent. - * @param {string} request.environment - * Target environment: + * @param {string} request.name + * The environment to delete, in the form: * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2207,52 +2337,52 @@ export class EnvironmentsClient { * you can `await` for. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.database_failover.js - * region_tag:composer_v1beta1_generated_Environments_DatabaseFailover_async + * @example include:samples/generated/v1beta1/environments.delete_environment.js + * region_tag:composer_v1beta1_generated_Environments_DeleteEnvironment_async */ - databaseFailover( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + deleteEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.protobuf.IEmpty, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined, ] >; - databaseFailover( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + deleteEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.protobuf.IEmpty, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - databaseFailover( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + deleteEnvironment( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, callback: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.protobuf.IEmpty, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - databaseFailover( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + deleteEnvironment( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.protobuf.IEmpty, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -2260,7 +2390,7 @@ export class EnvironmentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.protobuf.IEmpty, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, @@ -2268,12 +2398,1292 @@ export class EnvironmentsClient { > ): Promise< [ - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, - {} | undefined, + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteEnvironment(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteEnvironment()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.delete_environment.js + * region_tag:composer_v1beta1_generated_Environments_DeleteEnvironment_async + */ + async checkDeleteEnvironmentProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteEnvironment, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + >; + } + /** + * Restart Airflow web server. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource name of the environment to restart the web server for, in the + * form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.restart_web_server.js + * region_tag:composer_v1beta1_generated_Environments_RestartWebServer_async + */ + restartWebServer( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + restartWebServer( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + restartWebServer( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + restartWebServer( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.restartWebServer(request, options, callback); + } + /** + * Check the status of the long running operation returned by `restartWebServer()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.restart_web_server.js + * region_tag:composer_v1beta1_generated_Environments_RestartWebServer_async + */ + async checkRestartWebServerProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.restartWebServer, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.Environment, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + >; + } + /** + * Check if an upgrade operation on the environment will succeed. + * + * In case of problems detailed info can be found in the returned Operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * The resource name of the environment to check upgrade for, in the + * form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {string} request.imageVersion + * The version of the software running in the environment. + * This encapsulates both the version of Cloud Composer functionality and the + * version of Apache Airflow. It must match the regular expression + * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. + * When used as input, the server also checks if the provided version is + * supported and denies the request for an unsupported version. + * + * The Cloud Composer portion of the image version is a full + * [semantic version](https://semver.org), or an alias in the form of major + * version number or `latest`. When an alias is provided, the server replaces + * it with the current Cloud Composer version that satisfies the alias. + * + * The Apache Airflow portion of the image version is a full semantic version + * that points to one of the supported Apache Airflow versions, or an alias in + * the form of only major or major.minor versions specified. When an alias is + * provided, the server replaces it with the latest Apache Airflow version + * that satisfies the alias and is supported in the given Cloud Composer + * version. + * + * In all cases, the resolved image version is stored in the same field. + * + * See also [version + * list](/composer/docs/concepts/versioning/composer-versions) and [versioning + * overview](/composer/docs/concepts/versioning/composer-versioning-overview). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.check_upgrade.js + * region_tag:composer_v1beta1_generated_Environments_CheckUpgrade_async + */ + checkUpgrade( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + checkUpgrade( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + checkUpgrade( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + checkUpgrade( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.checkUpgrade(request, options, callback); + } + /** + * Check the status of the long running operation returned by `checkUpgrade()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.check_upgrade.js + * region_tag:composer_v1beta1_generated_Environments_CheckUpgrade_async + */ + async checkCheckUpgradeProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.checkUpgrade, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + >; + } + /** + * Creates a snapshots of a Cloud Composer environment. + * + * As a result of this operation, snapshot of environment's state is stored + * in a location specified in the SaveSnapshotRequest. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * The resource name of the source environment in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {string} request.snapshotLocation + * Location in a Cloud Storage where the snapshot is going to be stored, e.g.: + * "gs://my-bucket/snapshots". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.save_snapshot.js + * region_tag:composer_v1beta1_generated_Environments_SaveSnapshot_async + */ + saveSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + saveSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + saveSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + saveSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.saveSnapshot(request, options, callback); + } + /** + * Check the status of the long running operation returned by `saveSnapshot()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.save_snapshot.js + * region_tag:composer_v1beta1_generated_Environments_SaveSnapshot_async + */ + async checkSaveSnapshotProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.saveSnapshot, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + >; + } + /** + * Loads a snapshot of a Cloud Composer environment. + * + * As a result of this operation, a snapshot of environment's specified in + * LoadSnapshotRequest is loaded into the environment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * The resource name of the target environment in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {string} request.snapshotPath + * A Cloud Storage path to a snapshot to load, e.g.: + * "gs://my-bucket/snapshots/project_location_environment_timestamp". + * @param {boolean} request.skipPypiPackagesInstallation + * Whether or not to skip installing Pypi packages when loading the + * environment's state. + * @param {boolean} request.skipEnvironmentVariablesSetting + * Whether or not to skip setting environment variables when loading the + * environment's state. + * @param {boolean} request.skipAirflowOverridesSetting + * Whether or not to skip setting Airflow overrides when loading the + * environment's state. + * @param {boolean} request.skipGcsDataCopying + * Whether or not to skip copying Cloud Storage data when loading the + * environment's state. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.load_snapshot.js + * region_tag:composer_v1beta1_generated_Environments_LoadSnapshot_async + */ + loadSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + loadSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + loadSnapshot( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + loadSnapshot( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.loadSnapshot(request, options, callback); + } + /** + * Check the status of the long running operation returned by `loadSnapshot()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.load_snapshot.js + * region_tag:composer_v1beta1_generated_Environments_LoadSnapshot_async + */ + async checkLoadSnapshotProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.loadSnapshot, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + >; + } + /** + * Triggers database failover (only for highly resilient environments). + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.environment + * Target environment: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.database_failover.js + * region_tag:composer_v1beta1_generated_Environments_DatabaseFailover_async + */ + databaseFailover( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + databaseFailover( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + databaseFailover( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + callback: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + databaseFailover( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + environment: request.environment ?? '', + }); + this.initialize(); + return this.innerApiCalls.databaseFailover(request, options, callback); + } + /** + * Check the status of the long running operation returned by `databaseFailover()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.database_failover.js + * region_tag:composer_v1beta1_generated_Environments_DatabaseFailover_async + */ + async checkDatabaseFailoverProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.databaseFailover, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata + >; + } + /** + * List environments. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * List environments in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + * @param {number} request.pageSize + * The maximum number of environments to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous List request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1beta1.Environment|Environment}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listEnvironmentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listEnvironments( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, + ] + >; + listEnvironments( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + > + ): void; + listEnvironments( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + > + ): void; + listEnvironments( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + >, + callback?: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, + ] + > | 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listEnvironments(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * List environments in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + * @param {number} request.pageSize + * The maximum number of environments to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous List request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.Environment|Environment} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listEnvironmentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listEnvironmentsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listEnvironments']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listEnvironments.createStream( + this.innerApiCalls.listEnvironments as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listEnvironments`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * List environments in the given project and location, in the form: + * "projects/{projectId}/locations/{locationId}" + * @param {number} request.pageSize + * The maximum number of environments to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous List request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.orchestration.airflow.service.v1beta1.Environment|Environment}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.list_environments.js + * region_tag:composer_v1beta1_generated_Environments_ListEnvironments_async + */ + listEnvironmentsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listEnvironments']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listEnvironments.asyncIterate( + this.innerApiCalls['listEnvironments'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists workloads in a Cloud Composer environment. Workload is a unit that + * runs a single Composer component. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of environments to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload|ComposerWorkload}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listWorkloadsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listWorkloads( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse, + ] + >; + listWorkloads( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload + > + ): void; + listWorkloads( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload + > + ): void; + listWorkloads( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload + >, + callback?: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsResponse, + ] + > | 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listWorkloads(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of environments to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload|ComposerWorkload} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listWorkloadsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listWorkloadsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listWorkloads']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listWorkloads.createStream( + this.innerApiCalls.listWorkloads as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listWorkloads`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The environment name to get workloads for, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of environments to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {string} [request.filter] + * Optional. The list filter. + * Currently only supports equality on the type field. The value of a field + * specified in the filter expression must be one ComposerWorkloadType enum + * option. It's possible to get multiple types using "OR" operator, e.g.: + * "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are + * returned. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload|ComposerWorkload}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.list_workloads.js + * region_tag:composer_v1beta1_generated_Environments_ListWorkloads_async + */ + listWorkloadsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListWorkloadsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listWorkloads']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listWorkloads.asyncIterate( + this.innerApiCalls['listWorkloads'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists user workloads Secrets. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of Secrets to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret|UserWorkloadsSecret}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listUserWorkloadsSecretsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listUserWorkloadsSecrets( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse, + ] + >; + listUserWorkloadsSecrets( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret + > + ): void; + listUserWorkloadsSecrets( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + callback: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret + > + ): void; + listUserWorkloadsSecrets( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret + >, + callback?: PaginationCallback< + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse + | null + | undefined, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret + > + ): Promise< + [ + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsResponse, ] > | void { request = request || {}; @@ -2289,123 +3699,190 @@ export class EnvironmentsClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - environment: request.environment ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.databaseFailover(request, options, callback); + return this.innerApiCalls.listUserWorkloadsSecrets( + request, + options, + callback + ); } + /** - * Check the status of the long running operation returned by `databaseFailover()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of Secrets to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret|UserWorkloadsSecret} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listUserWorkloadsSecretsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.database_failover.js - * region_tag:composer_v1beta1_generated_Environments_DatabaseFailover_async */ - async checkDatabaseFailoverProgress( - name: string - ): Promise< - LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.databaseFailover, - this._gaxModule.createDefaultBackoffSettings() + listUserWorkloadsSecretsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserWorkloadsSecrets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listUserWorkloadsSecrets.createStream( + this.innerApiCalls.listUserWorkloadsSecrets as GaxCall, + request, + callSettings ); - return decodeOperation as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata - >; } + /** - * List environments. + * Equivalent to `listUserWorkloadsSecrets`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * List environments in the given project and location, in the form: - * "projects/{projectId}/locations/{locationId}" - * @param {number} request.pageSize - * The maximum number of environments to return. - * @param {string} request.pageToken - * The next_page_token value returned from a previous List request, if any. + * Required. List Secrets in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of Secrets to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret|UserWorkloadsSecret}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/environments.list_user_workloads_secrets.js + * region_tag:composer_v1beta1_generated_Environments_ListUserWorkloadsSecrets_async + */ + listUserWorkloadsSecretsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsSecretsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserWorkloadsSecrets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listUserWorkloadsSecrets.asyncIterate( + this.innerApiCalls['listUserWorkloadsSecrets'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists user workloads ConfigMaps. + * + * This method is supported for Cloud Composer environments in versions + * composer-3.*.*-airflow-*.*.* and newer. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of ConfigMaps to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1beta1.Environment|Environment}. + * The first element of the array is Array of {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listEnvironmentsAsync()` + * We recommend using `listUserWorkloadsConfigMapsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listEnvironments( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[], - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest | null, - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse, ] >; - listEnvironments( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap > ): void; - listEnvironments( - request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, callback: PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap > ): void; - listEnvironments( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + listUserWorkloadsConfigMaps( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap >, callback?: PaginationCallback< - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, - | protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, + | protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse | null | undefined, - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap > ): Promise< [ - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[], - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest | null, - protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[], + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest | null, + protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsResponse, ] > | void { request = request || {}; @@ -2424,7 +3901,11 @@ export class EnvironmentsClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listEnvironments(request, options, callback); + return this.innerApiCalls.listUserWorkloadsConfigMaps( + request, + options, + callback + ); } /** @@ -2432,25 +3913,26 @@ export class EnvironmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * List environments in the given project and location, in the form: - * "projects/{projectId}/locations/{locationId}" - * @param {number} request.pageSize - * The maximum number of environments to return. - * @param {string} request.pageToken - * The next_page_token value returned from a previous List request, if any. + * Required. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of ConfigMaps to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.Environment|Environment} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap|UserWorkloadsConfigMap} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listEnvironmentsAsync()` + * We recommend using `listUserWorkloadsConfigMapsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listEnvironmentsStream( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + listUserWorkloadsConfigMapsStream( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -2461,45 +3943,46 @@ export class EnvironmentsClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listEnvironments']; + const defaultCallSettings = this._defaults['listUserWorkloadsConfigMaps']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listEnvironments.createStream( - this.innerApiCalls.listEnvironments as GaxCall, + return this.descriptors.page.listUserWorkloadsConfigMaps.createStream( + this.innerApiCalls.listUserWorkloadsConfigMaps as GaxCall, request, callSettings ); } /** - * Equivalent to `listEnvironments`, but returns an iterable object. + * Equivalent to `listUserWorkloadsConfigMaps`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * List environments in the given project and location, in the form: - * "projects/{projectId}/locations/{locationId}" - * @param {number} request.pageSize - * The maximum number of environments to return. - * @param {string} request.pageToken - * The next_page_token value returned from a previous List request, if any. + * Required. List ConfigMaps in the given environment, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param {number} [request.pageSize] + * Optional. The maximum number of ConfigMaps to return. + * @param {string} [request.pageToken] + * Optional. The next_page_token value returned from a previous List request, + * if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.orchestration.airflow.service.v1beta1.Environment|Environment}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap|UserWorkloadsConfigMap}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/environments.list_environments.js - * region_tag:composer_v1beta1_generated_Environments_ListEnvironments_async + * @example include:samples/generated/v1beta1/environments.list_user_workloads_config_maps.js + * region_tag:composer_v1beta1_generated_Environments_ListUserWorkloadsConfigMaps_async */ - listEnvironmentsAsync( - request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, + listUserWorkloadsConfigMapsAsync( + request?: protos.google.cloud.orchestration.airflow.service.v1beta1.IListUserWorkloadsConfigMapsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2508,14 +3991,14 @@ export class EnvironmentsClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listEnvironments']; + const defaultCallSettings = this._defaults['listUserWorkloadsConfigMaps']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listEnvironments.asyncIterate( - this.innerApiCalls['listEnvironments'] as GaxCall, + return this.descriptors.page.listUserWorkloadsConfigMaps.asyncIterate( + this.innerApiCalls['listUserWorkloadsConfigMaps'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Gets the latest state of a long-running operation. Clients can use this @@ -2748,6 +4231,166 @@ export class EnvironmentsClient { .environment; } + /** + * Return a fully-qualified userWorkloadsConfigMap resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_config_map + * @returns {string} Resource name string. + */ + userWorkloadsConfigMapPath( + project: string, + location: string, + environment: string, + userWorkloadsConfigMap: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_config_map: userWorkloadsConfigMap, + }); + } + + /** + * Parse the project from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).project; + } + + /** + * Parse the location from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).location; + } + + /** + * Parse the environment from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).environment; + } + + /** + * Parse the user_workloads_config_map from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the user_workloads_config_map. + */ + matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).user_workloads_config_map; + } + + /** + * Return a fully-qualified userWorkloadsSecret resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_secret + * @returns {string} Resource name string. + */ + userWorkloadsSecretPath( + project: string, + location: string, + environment: string, + userWorkloadsSecret: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_secret: userWorkloadsSecret, + }); + } + + /** + * Parse the project from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).project; + } + + /** + * Parse the location from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).location; + } + + /** + * Parse the environment from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).environment; + } + + /** + * Parse the user_workloads_secret from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the user_workloads_secret. + */ + matchUserWorkloadsSecretFromUserWorkloadsSecretName( + userWorkloadsSecretName: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).user_workloads_secret; + } + /** * Terminate the gRPC channel and close the client. * diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client_config.json b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client_config.json index 2e42d5f60013..22c8786ee752 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client_config.json +++ b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/environments_client_config.json @@ -60,6 +60,50 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListWorkloads": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListUserWorkloadsSecrets": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteUserWorkloadsSecret": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListUserWorkloadsConfigMaps": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteUserWorkloadsConfigMap": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SaveSnapshot": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/gapic_metadata.json b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/gapic_metadata.json index 2271ff732a2e..bd6361e33086 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/gapic_metadata.json @@ -30,6 +30,46 @@ "pollAirflowCommand" ] }, + "CreateUserWorkloadsSecret": { + "methods": [ + "createUserWorkloadsSecret" + ] + }, + "GetUserWorkloadsSecret": { + "methods": [ + "getUserWorkloadsSecret" + ] + }, + "UpdateUserWorkloadsSecret": { + "methods": [ + "updateUserWorkloadsSecret" + ] + }, + "DeleteUserWorkloadsSecret": { + "methods": [ + "deleteUserWorkloadsSecret" + ] + }, + "CreateUserWorkloadsConfigMap": { + "methods": [ + "createUserWorkloadsConfigMap" + ] + }, + "GetUserWorkloadsConfigMap": { + "methods": [ + "getUserWorkloadsConfigMap" + ] + }, + "UpdateUserWorkloadsConfigMap": { + "methods": [ + "updateUserWorkloadsConfigMap" + ] + }, + "DeleteUserWorkloadsConfigMap": { + "methods": [ + "deleteUserWorkloadsConfigMap" + ] + }, "FetchDatabaseProperties": { "methods": [ "fetchDatabaseProperties" @@ -81,6 +121,27 @@ "listEnvironmentsStream", "listEnvironmentsAsync" ] + }, + "ListWorkloads": { + "methods": [ + "listWorkloads", + "listWorkloadsStream", + "listWorkloadsAsync" + ] + }, + "ListUserWorkloadsSecrets": { + "methods": [ + "listUserWorkloadsSecrets", + "listUserWorkloadsSecretsStream", + "listUserWorkloadsSecretsAsync" + ] + }, + "ListUserWorkloadsConfigMaps": { + "methods": [ + "listUserWorkloadsConfigMaps", + "listUserWorkloadsConfigMapsStream", + "listUserWorkloadsConfigMapsAsync" + ] } } }, @@ -107,6 +168,46 @@ "pollAirflowCommand" ] }, + "CreateUserWorkloadsSecret": { + "methods": [ + "createUserWorkloadsSecret" + ] + }, + "GetUserWorkloadsSecret": { + "methods": [ + "getUserWorkloadsSecret" + ] + }, + "UpdateUserWorkloadsSecret": { + "methods": [ + "updateUserWorkloadsSecret" + ] + }, + "DeleteUserWorkloadsSecret": { + "methods": [ + "deleteUserWorkloadsSecret" + ] + }, + "CreateUserWorkloadsConfigMap": { + "methods": [ + "createUserWorkloadsConfigMap" + ] + }, + "GetUserWorkloadsConfigMap": { + "methods": [ + "getUserWorkloadsConfigMap" + ] + }, + "UpdateUserWorkloadsConfigMap": { + "methods": [ + "updateUserWorkloadsConfigMap" + ] + }, + "DeleteUserWorkloadsConfigMap": { + "methods": [ + "deleteUserWorkloadsConfigMap" + ] + }, "FetchDatabaseProperties": { "methods": [ "fetchDatabaseProperties" @@ -158,6 +259,27 @@ "listEnvironmentsStream", "listEnvironmentsAsync" ] + }, + "ListWorkloads": { + "methods": [ + "listWorkloads", + "listWorkloadsStream", + "listWorkloadsAsync" + ] + }, + "ListUserWorkloadsSecrets": { + "methods": [ + "listUserWorkloadsSecrets", + "listUserWorkloadsSecretsStream", + "listUserWorkloadsSecretsAsync" + ] + }, + "ListUserWorkloadsConfigMaps": { + "methods": [ + "listUserWorkloadsConfigMaps", + "listUserWorkloadsConfigMapsStream", + "listUserWorkloadsConfigMapsAsync" + ] } } } diff --git a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/image_versions_client.ts b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/image_versions_client.ts index 1c71a7d48902..8f1088b607fe 100644 --- a/packages/google-cloud-orchestration-airflow-service/src/v1beta1/image_versions_client.ts +++ b/packages/google-cloud-orchestration-airflow-service/src/v1beta1/image_versions_client.ts @@ -195,6 +195,12 @@ export class ImageVersionsClient { environmentPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/environments/{environment}' ), + userWorkloadsConfigMapPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}' + ), + userWorkloadsSecretPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}' + ), }; // Some of the methods on this service return "paged" results, @@ -624,6 +630,166 @@ export class ImageVersionsClient { .environment; } + /** + * Return a fully-qualified userWorkloadsConfigMap resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_config_map + * @returns {string} Resource name string. + */ + userWorkloadsConfigMapPath( + project: string, + location: string, + environment: string, + userWorkloadsConfigMap: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_config_map: userWorkloadsConfigMap, + }); + } + + /** + * Parse the project from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).project; + } + + /** + * Parse the location from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).location; + } + + /** + * Parse the environment from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).environment; + } + + /** + * Parse the user_workloads_config_map from UserWorkloadsConfigMap resource. + * + * @param {string} userWorkloadsConfigMapName + * A fully-qualified path representing UserWorkloadsConfigMap resource. + * @returns {string} A string representing the user_workloads_config_map. + */ + matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + userWorkloadsConfigMapName: string + ) { + return this.pathTemplates.userWorkloadsConfigMapPathTemplate.match( + userWorkloadsConfigMapName + ).user_workloads_config_map; + } + + /** + * Return a fully-qualified userWorkloadsSecret resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} environment + * @param {string} user_workloads_secret + * @returns {string} Resource name string. + */ + userWorkloadsSecretPath( + project: string, + location: string, + environment: string, + userWorkloadsSecret: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.render({ + project: project, + location: location, + environment: environment, + user_workloads_secret: userWorkloadsSecret, + }); + } + + /** + * Parse the project from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the project. + */ + matchProjectFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).project; + } + + /** + * Parse the location from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the location. + */ + matchLocationFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).location; + } + + /** + * Parse the environment from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromUserWorkloadsSecretName(userWorkloadsSecretName: string) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).environment; + } + + /** + * Parse the user_workloads_secret from UserWorkloadsSecret resource. + * + * @param {string} userWorkloadsSecretName + * A fully-qualified path representing UserWorkloadsSecret resource. + * @returns {string} A string representing the user_workloads_secret. + */ + matchUserWorkloadsSecretFromUserWorkloadsSecretName( + userWorkloadsSecretName: string + ) { + return this.pathTemplates.userWorkloadsSecretPathTemplate.match( + userWorkloadsSecretName + ).user_workloads_secret; + } + /** * Terminate the gRPC channel and close the client. * diff --git a/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1.ts b/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1.ts index ce9f51e06873..25051fdd1253 100644 --- a/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1.ts +++ b/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1.ts @@ -834,65 +834,65 @@ describe('v1.EnvironmentsClient', () => { }); }); - describe('fetchDatabaseProperties', () => { - it('invokes fetchDatabaseProperties without error', async () => { + describe('createUserWorkloadsSecret', () => { + it('invokes createUserWorkloadsSecret without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() ); - client.innerApiCalls.fetchDatabaseProperties = + client.innerApiCalls.createUserWorkloadsSecret = stubSimpleCall(expectedResponse); - const [response] = await client.fetchDatabaseProperties(request); + const [response] = await client.createUserWorkloadsSecret(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchDatabaseProperties without error using callback', async () => { + it('invokes createUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() ); - client.innerApiCalls.fetchDatabaseProperties = + client.innerApiCalls.createUserWorkloadsSecret = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.fetchDatabaseProperties( + client.createUserWorkloadsSecret( request, ( err?: Error | null, - result?: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse | null + result?: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret | null ) => { if (err) { reject(err); @@ -905,135 +905,131 @@ describe('v1.EnvironmentsClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchDatabaseProperties with error', async () => { + it('invokes createUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.fetchDatabaseProperties = stubSimpleCall( + client.innerApiCalls.createUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.fetchDatabaseProperties(request), + client.createUserWorkloadsSecret(request), expectedError ); const actualRequest = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchDatabaseProperties with closed client', async () => { + it('invokes createUserWorkloadsSecret with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.fetchDatabaseProperties(request), + client.createUserWorkloadsSecret(request), expectedError ); }); }); - describe('createEnvironment', () => { - it('invokes createEnvironment without error', async () => { + describe('getUserWorkloadsSecret', () => { + it('invokes getUserWorkloadsSecret without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() ); - client.innerApiCalls.createEnvironment = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createEnvironment(request); - const [response] = await operation.promise(); + client.innerApiCalls.getUserWorkloadsSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.getUserWorkloadsSecret(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createEnvironment without error using callback', async () => { + it('invokes getUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() ); - client.innerApiCalls.createEnvironment = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getUserWorkloadsSecret = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createEnvironment( + client.getUserWorkloadsSecret( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret | null ) => { if (err) { reject(err); @@ -1043,191 +1039,275 @@ describe('v1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createEnvironment with call error', async () => { + it('invokes getUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createEnvironment = stubLongRunningCall( + client.innerApiCalls.getUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createEnvironment(request), expectedError); + await assert.rejects( + client.getUserWorkloadsSecret(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createEnvironment with LRO error', async () => { + it('invokes getUserWorkloadsSecret with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createEnvironment = stubLongRunningCall( - undefined, - undefined, + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getUserWorkloadsSecret(request), expectedError ); - const [operation] = await client.createEnvironment(request); - await assert.rejects(operation.promise(), expectedError); + }); + }); + + describe('updateUserWorkloadsSecret', () => { + it('invokes updateUserWorkloadsSecret without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest() + ); + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] + ); + request.userWorkloadsSecret.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_secret.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ); + client.innerApiCalls.updateUserWorkloadsSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.updateUserWorkloadsSecret(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateEnvironmentProgress without error', async () => { + it('invokes updateUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateEnvironmentProgress( - expectedResponse.name + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.userWorkloadsSecret.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_secret.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ); + client.innerApiCalls.updateUserWorkloadsSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateUserWorkloadsSecret( + request, + ( + err?: Error | null, + result?: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateEnvironmentProgress with error', async () => { + it('invokes updateUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest() + ); + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] + ); + request.userWorkloadsSecret.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_secret.name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.updateUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkCreateEnvironmentProgress(''), + client.updateUserWorkloadsSecret(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateUserWorkloadsSecret with closed client', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest() + ); + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] + ); + request.userWorkloadsSecret.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateUserWorkloadsSecret(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateEnvironment', () => { - it('invokes updateEnvironment without error', async () => { + describe('deleteUserWorkloadsSecret', () => { + it('invokes deleteUserWorkloadsSecret without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateEnvironment = - stubLongRunningCall(expectedResponse); - const [operation] = await client.updateEnvironment(request); - const [response] = await operation.promise(); + client.innerApiCalls.deleteUserWorkloadsSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteUserWorkloadsSecret(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateEnvironment without error using callback', async () => { + it('invokes deleteUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateEnvironment = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.deleteUserWorkloadsSecret = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateEnvironment( + client.deleteUserWorkloadsSecret( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -1237,191 +1317,271 @@ describe('v1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateEnvironment with call error', async () => { + it('invokes deleteUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateEnvironment = stubLongRunningCall( + client.innerApiCalls.deleteUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateEnvironment(request), expectedError); - const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + await assert.rejects( + client.deleteUserWorkloadsSecret(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateEnvironment with LRO error', async () => { + it('invokes deleteUserWorkloadsSecret with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.updateEnvironment = stubLongRunningCall( - undefined, - undefined, + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteUserWorkloadsSecret(request), expectedError ); - const [operation] = await client.updateEnvironment(request); - await assert.rejects(operation.promise(), expectedError); + }); + }); + + describe('createUserWorkloadsConfigMap', () => { + it('invokes createUserWorkloadsConfigMap without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() + ); + client.innerApiCalls.createUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.createUserWorkloadsConfigMap(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateEnvironmentProgress without error', async () => { + it('invokes createUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdateEnvironmentProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest', + ['parent'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() + ); + client.innerApiCalls.createUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createUserWorkloadsConfigMap( + request, + ( + err?: Error | null, + result?: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateEnvironmentProgress with error', async () => { + it('invokes createUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.createUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkUpdateEnvironmentProgress(''), + client.createUserWorkloadsConfigMap(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createUserWorkloadsConfigMap with closed client', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createUserWorkloadsConfigMap(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteEnvironment', () => { - it('invokes deleteEnvironment without error', async () => { + describe('getUserWorkloadsConfigMap', () => { + it('invokes getUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ); - client.innerApiCalls.deleteEnvironment = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteEnvironment(request); - const [response] = await operation.promise(); + client.innerApiCalls.getUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.getUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteEnvironment without error using callback', async () => { + it('invokes getUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ); - client.innerApiCalls.deleteEnvironment = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteEnvironment( + client.getUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap | null ) => { if (err) { reject(err); @@ -1431,190 +1591,136 @@ describe('v1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteEnvironment with call error', async () => { + it('invokes getUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteEnvironment = stubLongRunningCall( + client.innerApiCalls.getUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteEnvironment(request), expectedError); + await assert.rejects( + client.getUserWorkloadsConfigMap(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteEnvironment with LRO error', async () => { + it('invokes getUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteEnvironment = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteEnvironment(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteEnvironmentProgress without error', async () => { - const client = new environmentsModule.v1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteEnvironmentProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteEnvironmentProgress with error', async () => { - const client = new environmentsModule.v1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteEnvironmentProgress(''), + client.getUserWorkloadsConfigMap(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('saveSnapshot', () => { - it('invokes saveSnapshot without error', async () => { + describe('updateUserWorkloadsConfigMap', () => { + it('invokes updateUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest() ); + request.userWorkloadsConfigMap ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_config_map.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ); - client.innerApiCalls.saveSnapshot = stubLongRunningCall(expectedResponse); - const [operation] = await client.saveSnapshot(request); - const [response] = await operation.promise(); + client.innerApiCalls.updateUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.updateUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes saveSnapshot without error using callback', async () => { + it('invokes updateUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest() ); + request.userWorkloadsConfigMap ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_config_map.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ); - client.innerApiCalls.saveSnapshot = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.updateUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.saveSnapshot( + client.updateUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap | null ) => { if (err) { reject(err); @@ -1624,187 +1730,136 @@ describe('v1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes saveSnapshot with call error', async () => { + it('invokes updateUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest() ); + request.userWorkloadsConfigMap ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_config_map.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.saveSnapshot = stubLongRunningCall( + client.innerApiCalls.updateUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.saveSnapshot(request), expectedError); - const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes saveSnapshot with LRO error', async () => { - const client = new environmentsModule.v1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', - ['environment'] - ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.saveSnapshot = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.updateUserWorkloadsConfigMap(request), expectedError ); - const [operation] = await client.saveSnapshot(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkSaveSnapshotProgress without error', async () => { + it('invokes updateUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkSaveSnapshotProgress( - expectedResponse.name + request.userWorkloadsConfigMap ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkSaveSnapshotProgress with error', async () => { - const client = new environmentsModule.v1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateUserWorkloadsConfigMap(request), expectedError ); - await assert.rejects(client.checkSaveSnapshotProgress(''), expectedError); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('loadSnapshot', () => { - it('invokes loadSnapshot without error', async () => { + describe('deleteUserWorkloadsConfigMap', () => { + it('invokes deleteUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.loadSnapshot = stubLongRunningCall(expectedResponse); - const [operation] = await client.loadSnapshot(request); - const [response] = await operation.promise(); + client.innerApiCalls.deleteUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes loadSnapshot without error using callback', async () => { + it('invokes deleteUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.loadSnapshot = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.deleteUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.loadSnapshot( + client.deleteUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -1814,188 +1869,134 @@ describe('v1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes loadSnapshot with call error', async () => { + it('invokes deleteUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.loadSnapshot = stubLongRunningCall( + client.innerApiCalls.deleteUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.loadSnapshot(request), expectedError); - const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes loadSnapshot with LRO error', async () => { - const client = new environmentsModule.v1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', - ['environment'] - ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.loadSnapshot = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.deleteUserWorkloadsConfigMap(request), expectedError ); - const [operation] = await client.loadSnapshot(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkLoadSnapshotProgress without error', async () => { + it('invokes deleteUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkLoadSnapshotProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkLoadSnapshotProgress with error', async () => { - const client = new environmentsModule.v1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteUserWorkloadsConfigMap(request), expectedError ); - await assert.rejects(client.checkLoadSnapshotProgress(''), expectedError); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('databaseFailover', () => { - it('invokes databaseFailover without error', async () => { + describe('fetchDatabaseProperties', () => { + it('invokes fetchDatabaseProperties without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', ['environment'] ); request.environment = defaultValue1; const expectedHeaderRequestParams = `environment=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse() ); - client.innerApiCalls.databaseFailover = - stubLongRunningCall(expectedResponse); - const [operation] = await client.databaseFailover(request); - const [response] = await operation.promise(); + client.innerApiCalls.fetchDatabaseProperties = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchDatabaseProperties(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes databaseFailover without error using callback', async () => { + it('invokes fetchDatabaseProperties without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', ['environment'] ); request.environment = defaultValue1; const expectedHeaderRequestParams = `environment=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse() ); - client.innerApiCalls.databaseFailover = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.fetchDatabaseProperties = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.databaseFailover( + client.fetchDatabaseProperties( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1.IFetchDatabasePropertiesResponse | null ) => { if (err) { reject(err); @@ -2005,87 +2006,228 @@ describe('v1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, - protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes databaseFailover with call error', async () => { + it('invokes fetchDatabaseProperties with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', ['environment'] ); request.environment = defaultValue1; const expectedHeaderRequestParams = `environment=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.databaseFailover = stubLongRunningCall( + client.innerApiCalls.fetchDatabaseProperties = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.databaseFailover(request), expectedError); + await assert.rejects( + client.fetchDatabaseProperties(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes databaseFailover with LRO error', async () => { + it('invokes fetchDatabaseProperties with closed client', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + '.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest', ['environment'] ); request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.fetchDatabaseProperties(request), + expectedError + ); + }); + }); + + describe('createEnvironment', () => { + it('invokes createEnvironment without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createEnvironment = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createEnvironment(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createEnvironment without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createEnvironment = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createEnvironment( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createEnvironment with call error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.databaseFailover = stubLongRunningCall( + client.innerApiCalls.createEnvironment = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createEnvironment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createEnvironment with LRO error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createEnvironment = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.databaseFailover(request); + const [operation] = await client.createEnvironment(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDatabaseFailoverProgress without error', async () => { + it('invokes checkCreateEnvironmentProgress without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -2099,109 +2241,2101 @@ describe('v1.EnvironmentsClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDatabaseFailoverProgress( + const decodedOperation = await client.checkCreateEnvironmentProgress( expectedResponse.name ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateEnvironmentProgress with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateEnvironmentProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateEnvironment', () => { + it('invokes updateEnvironment without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateEnvironment = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateEnvironment(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateEnvironment without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateEnvironment = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateEnvironment( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateEnvironment with call error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateEnvironment = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateEnvironment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateEnvironment with LRO error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateEnvironment = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateEnvironment(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateEnvironmentProgress without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateEnvironmentProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateEnvironmentProgress with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateEnvironmentProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteEnvironment', () => { + it('invokes deleteEnvironment without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteEnvironment = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteEnvironment(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEnvironment without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteEnvironment = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteEnvironment( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEnvironment with call error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteEnvironment = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteEnvironment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEnvironment with LRO error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteEnvironment = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteEnvironment(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteEnvironmentProgress without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteEnvironmentProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteEnvironmentProgress with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteEnvironmentProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('saveSnapshot', () => { + it('invokes saveSnapshot without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.saveSnapshot = stubLongRunningCall(expectedResponse); + const [operation] = await client.saveSnapshot(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes saveSnapshot without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.saveSnapshot = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.saveSnapshot( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes saveSnapshot with call error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.saveSnapshot = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.saveSnapshot(request), expectedError); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes saveSnapshot with LRO error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.saveSnapshot = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.saveSnapshot(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkSaveSnapshotProgress without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkSaveSnapshotProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkSaveSnapshotProgress with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkSaveSnapshotProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('loadSnapshot', () => { + it('invokes loadSnapshot without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.loadSnapshot = stubLongRunningCall(expectedResponse); + const [operation] = await client.loadSnapshot(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes loadSnapshot without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.loadSnapshot = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.loadSnapshot( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes loadSnapshot with call error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.loadSnapshot = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.loadSnapshot(request), expectedError); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes loadSnapshot with LRO error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.loadSnapshot = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.loadSnapshot(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkLoadSnapshotProgress without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkLoadSnapshotProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkLoadSnapshotProgress with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkLoadSnapshotProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('databaseFailover', () => { + it('invokes databaseFailover without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.databaseFailover = + stubLongRunningCall(expectedResponse); + const [operation] = await client.databaseFailover(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes databaseFailover without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.databaseFailover = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.databaseFailover( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes databaseFailover with call error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.databaseFailover = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.databaseFailover(request), expectedError); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes databaseFailover with LRO error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.databaseFailover = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.databaseFailover(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDatabaseFailoverProgress without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDatabaseFailoverProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDatabaseFailoverProgress with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDatabaseFailoverProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listEnvironments', () => { + it('invokes listEnvironments without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + ]; + client.innerApiCalls.listEnvironments = stubSimpleCall(expectedResponse); + const [response] = await client.listEnvironments(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEnvironments without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + ]; + client.innerApiCalls.listEnvironments = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listEnvironments( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEnvironments with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listEnvironments = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listEnvironments(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEnvironmentsStream without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + ]; + client.descriptors.page.listEnvironments.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listEnvironmentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.Environment[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1.Environment + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listEnvironments, request) + ); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listEnvironmentsStream with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listEnvironments.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listEnvironmentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.Environment[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1.Environment + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listEnvironments, request) + ); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listEnvironments without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.Environment() + ), + ]; + client.descriptors.page.listEnvironments.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[] = + []; + const iterable = client.listEnvironmentsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listEnvironments.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listEnvironments with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listEnvironments.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listEnvironmentsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listEnvironments.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listWorkloads', () => { + it('invokes listWorkloads without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.innerApiCalls.listWorkloads = stubSimpleCall(expectedResponse); + const [response] = await client.listWorkloads(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkloads without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.innerApiCalls.listWorkloads = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listWorkloads( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkloads with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listWorkloads = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listWorkloads(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkloadsStream without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.descriptors.page.listWorkloads.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listWorkloadsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWorkloads, request) + ); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listWorkloadsStream with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listWorkloads.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listWorkloadsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWorkloads, request) + ); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listWorkloads without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.descriptors.page.listWorkloads.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[] = + []; + const iterable = client.listWorkloadsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listWorkloads.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listWorkloads.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listWorkloads with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listWorkloads.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listWorkloadsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse.IComposerWorkload[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listWorkloads.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listWorkloads.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listUserWorkloadsSecrets', () => { + it('invokes listUserWorkloadsSecrets without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + ]; + client.innerApiCalls.listUserWorkloadsSecrets = + stubSimpleCall(expectedResponse); + const [response] = await client.listUserWorkloadsSecrets(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUserWorkloadsSecrets without error using callback', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + ]; + client.innerApiCalls.listUserWorkloadsSecrets = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listUserWorkloadsSecrets( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUserWorkloadsSecrets with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listUserWorkloadsSecrets = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listUserWorkloadsSecrets(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUserWorkloadsSecretsStream without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + ]; + client.descriptors.page.listUserWorkloadsSecrets.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listUserWorkloadsSecretsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listUserWorkloadsSecrets, request) + ); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listUserWorkloadsSecretsStream with error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listUserWorkloadsSecrets.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listUserWorkloadsSecretsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listUserWorkloadsSecrets, request) + ); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listUserWorkloadsSecrets without error', async () => { + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret() + ), + ]; + client.descriptors.page.listUserWorkloadsSecrets.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[] = + []; + const iterable = client.listUserWorkloadsSecretsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); - it('invokes checkDatabaseFailoverProgress with error', async () => { + it('uses async iteration with listUserWorkloadsSecrets with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + client.descriptors.page.listUserWorkloadsSecrets.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listUserWorkloadsSecretsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsSecret[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - await assert.rejects( - client.checkDatabaseFailoverProgress(''), - expectedError + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listEnvironments', () => { - it('invokes listEnvironments without error', async () => { + describe('listUserWorkloadsConfigMaps', () => { + it('invokes listUserWorkloadsConfigMaps without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), ]; - client.innerApiCalls.listEnvironments = stubSimpleCall(expectedResponse); - const [response] = await client.listEnvironments(request); + client.innerApiCalls.listUserWorkloadsConfigMaps = + stubSimpleCall(expectedResponse); + const [response] = await client.listUserWorkloadsConfigMaps(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listEnvironments without error using callback', async () => { + it('invokes listUserWorkloadsConfigMaps without error using callback', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), ]; - client.innerApiCalls.listEnvironments = + client.innerApiCalls.listUserWorkloadsConfigMaps = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listEnvironments( + client.listUserWorkloadsConfigMaps( request, ( err?: Error | null, result?: - | protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[] + | protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[] | null ) => { if (err) { @@ -2215,82 +4349,85 @@ describe('v1.EnvironmentsClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listEnvironments with error', async () => { + it('invokes listUserWorkloadsConfigMaps with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listEnvironments = stubSimpleCall( + client.innerApiCalls.listUserWorkloadsConfigMaps = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listEnvironments(request), expectedError); + await assert.rejects( + client.listUserWorkloadsConfigMaps(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listEnvironmentsStream without error', async () => { + it('invokes listUserWorkloadsConfigMapsStream without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), ]; - client.descriptors.page.listEnvironments.createStream = + client.descriptors.page.listUserWorkloadsConfigMaps.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listEnvironmentsStream(request); + const stream = client.listUserWorkloadsConfigMapsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.orchestration.airflow.service.v1.Environment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap[] = []; stream.on( 'data', ( - response: protos.google.cloud.orchestration.airflow.service.v1.Environment + response: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap ) => { responses.push(response); } @@ -2305,12 +4442,18 @@ describe('v1.EnvironmentsClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listEnvironments, request) + .calledWith(client.innerApiCalls.listUserWorkloadsConfigMaps, request) ); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2318,32 +4461,32 @@ describe('v1.EnvironmentsClient', () => { ); }); - it('invokes listEnvironmentsStream with error', async () => { + it('invokes listUserWorkloadsConfigMapsStream with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listEnvironments.createStream = + client.descriptors.page.listUserWorkloadsConfigMaps.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listEnvironmentsStream(request); + const stream = client.listUserWorkloadsConfigMapsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.orchestration.airflow.service.v1.Environment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap[] = []; stream.on( 'data', ( - response: protos.google.cloud.orchestration.airflow.service.v1.Environment + response: protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap ) => { responses.push(response); } @@ -2357,12 +4500,18 @@ describe('v1.EnvironmentsClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listEnvironments, request) + .calledWith(client.innerApiCalls.listUserWorkloadsConfigMaps, request) ); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2370,49 +4519,53 @@ describe('v1.EnvironmentsClient', () => { ); }); - it('uses async iteration with listEnvironments without error', async () => { + it('uses async iteration with listUserWorkloadsConfigMaps without error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap() ), ]; - client.descriptors.page.listEnvironments.asyncIterate = + client.descriptors.page.listUserWorkloadsConfigMaps.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[] = []; - const iterable = client.listEnvironmentsAsync(request); + const iterable = client.listUserWorkloadsConfigMapsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listEnvironments.asyncIterate as SinonStub + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2420,27 +4573,27 @@ describe('v1.EnvironmentsClient', () => { ); }); - it('uses async iteration with listEnvironments with error', async () => { + it('uses async iteration with listUserWorkloadsConfigMaps with error', async () => { const client = new environmentsModule.v1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listEnvironments.asyncIterate = + client.descriptors.page.listUserWorkloadsConfigMaps.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listEnvironmentsAsync(request); + const iterable = client.listUserWorkloadsConfigMapsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.orchestration.airflow.service.v1.IEnvironment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1.IUserWorkloadsConfigMap[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -2448,12 +4601,16 @@ describe('v1.EnvironmentsClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listEnvironments.asyncIterate as SinonStub + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2831,5 +4988,196 @@ describe('v1.EnvironmentsClient', () => { ); }); }); + + describe('userWorkloadsConfigMap', () => { + const fakePath = '/rendered/path/userWorkloadsConfigMap'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_config_map: 'userWorkloadsConfigMapValue', + }; + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsConfigMapPath', () => { + const result = client.userWorkloadsConfigMapPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsConfigMapValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsConfigMapName', () => { + const result = + client.matchProjectFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsConfigMapName', () => { + const result = + client.matchLocationFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsConfigMapName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName', () => { + const result = + client.matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + fakePath + ); + assert.strictEqual(result, 'userWorkloadsConfigMapValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('userWorkloadsSecret', () => { + const fakePath = '/rendered/path/userWorkloadsSecret'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_secret: 'userWorkloadsSecretValue', + }; + const client = new environmentsModule.v1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsSecretPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsSecretPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsSecretPath', () => { + const result = client.userWorkloadsSecretPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsSecretValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsSecretName', () => { + const result = client.matchProjectFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsSecretName', () => { + const result = + client.matchLocationFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsSecretName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsSecretFromUserWorkloadsSecretName', () => { + const result = + client.matchUserWorkloadsSecretFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'userWorkloadsSecretValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); }); }); diff --git a/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1beta1.ts b/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1beta1.ts index 25dad8f23f11..20f63fe5bef8 100644 --- a/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1beta1.ts +++ b/packages/google-cloud-orchestration-airflow-service/test/gapic_environments_v1beta1.ts @@ -834,65 +834,65 @@ describe('v1beta1.EnvironmentsClient', () => { }); }); - describe('fetchDatabaseProperties', () => { - it('invokes fetchDatabaseProperties without error', async () => { + describe('createUserWorkloadsSecret', () => { + it('invokes createUserWorkloadsSecret without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() ); - client.innerApiCalls.fetchDatabaseProperties = + client.innerApiCalls.createUserWorkloadsSecret = stubSimpleCall(expectedResponse); - const [response] = await client.fetchDatabaseProperties(request); + const [response] = await client.createUserWorkloadsSecret(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchDatabaseProperties without error using callback', async () => { + it('invokes createUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() ); - client.innerApiCalls.fetchDatabaseProperties = + client.innerApiCalls.createUserWorkloadsSecret = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.fetchDatabaseProperties( + client.createUserWorkloadsSecret( request, ( err?: Error | null, - result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse | null + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret | null ) => { if (err) { reject(err); @@ -905,135 +905,131 @@ describe('v1beta1.EnvironmentsClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchDatabaseProperties with error', async () => { + it('invokes createUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.fetchDatabaseProperties = stubSimpleCall( + client.innerApiCalls.createUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.fetchDatabaseProperties(request), + client.createUserWorkloadsSecret(request), expectedError ); const actualRequest = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.fetchDatabaseProperties as SinonStub + client.innerApiCalls.createUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes fetchDatabaseProperties with closed client', async () => { + it('invokes createUserWorkloadsSecret with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest', + ['parent'] ); - request.environment = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.fetchDatabaseProperties(request), + client.createUserWorkloadsSecret(request), expectedError ); }); }); - describe('createEnvironment', () => { - it('invokes createEnvironment without error', async () => { + describe('getUserWorkloadsSecret', () => { + it('invokes getUserWorkloadsSecret without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() ); - client.innerApiCalls.createEnvironment = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createEnvironment(request); - const [response] = await operation.promise(); + client.innerApiCalls.getUserWorkloadsSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.getUserWorkloadsSecret(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createEnvironment without error using callback', async () => { + it('invokes getUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() ); - client.innerApiCalls.createEnvironment = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getUserWorkloadsSecret = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createEnvironment( + client.getUserWorkloadsSecret( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret | null ) => { if (err) { reject(err); @@ -1043,191 +1039,275 @@ describe('v1beta1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createEnvironment with call error', async () => { + it('invokes getUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createEnvironment = stubLongRunningCall( + client.innerApiCalls.getUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createEnvironment(request), expectedError); + await assert.rejects( + client.getUserWorkloadsSecret(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.getUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createEnvironment with LRO error', async () => { + it('invokes getUserWorkloadsSecret with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', - ['parent'] + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createEnvironment = stubLongRunningCall( - undefined, - undefined, + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getUserWorkloadsSecret(request), expectedError ); - const [operation] = await client.createEnvironment(request); - await assert.rejects(operation.promise(), expectedError); + }); + }); + + describe('updateUserWorkloadsSecret', () => { + it('invokes updateUserWorkloadsSecret without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest() + ); + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] + ); + request.userWorkloadsSecret.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_secret.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ); + client.innerApiCalls.updateUserWorkloadsSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.updateUserWorkloadsSecret(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createEnvironment as SinonStub + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateEnvironmentProgress without error', async () => { + it('invokes updateUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateEnvironmentProgress( - expectedResponse.name + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.userWorkloadsSecret.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_secret.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ); + client.innerApiCalls.updateUserWorkloadsSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateUserWorkloadsSecret( + request, + ( + err?: Error | null, + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateEnvironmentProgress with error', async () => { + it('invokes updateUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest() + ); + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] + ); + request.userWorkloadsSecret.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_secret.name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.updateUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkCreateEnvironmentProgress(''), + client.updateUserWorkloadsSecret(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserWorkloadsSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateUserWorkloadsSecret with closed client', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest() + ); + request.userWorkloadsSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest', + ['userWorkloadsSecret', 'name'] + ); + request.userWorkloadsSecret.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateUserWorkloadsSecret(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateEnvironment', () => { - it('invokes updateEnvironment without error', async () => { + describe('deleteUserWorkloadsSecret', () => { + it('invokes deleteUserWorkloadsSecret without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateEnvironment = - stubLongRunningCall(expectedResponse); - const [operation] = await client.updateEnvironment(request); - const [response] = await operation.promise(); + client.innerApiCalls.deleteUserWorkloadsSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteUserWorkloadsSecret(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateEnvironment without error using callback', async () => { + it('invokes deleteUserWorkloadsSecret without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateEnvironment = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.deleteUserWorkloadsSecret = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateEnvironment( + client.deleteUserWorkloadsSecret( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -1237,191 +1317,134 @@ describe('v1beta1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateEnvironment with call error', async () => { + it('invokes deleteUserWorkloadsSecret with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateEnvironment = stubLongRunningCall( + client.innerApiCalls.deleteUserWorkloadsSecret = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateEnvironment(request), expectedError); - const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub + await assert.rejects( + client.deleteUserWorkloadsSecret(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub + client.innerApiCalls.deleteUserWorkloadsSecret as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateEnvironment with LRO error', async () => { + it('invokes deleteUserWorkloadsSecret with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.updateEnvironment = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.updateEnvironment(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.updateEnvironment as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.updateEnvironment as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkUpdateEnvironmentProgress without error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdateEnvironmentProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkUpdateEnvironmentProgress with error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkUpdateEnvironmentProgress(''), + client.deleteUserWorkloadsSecret(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteEnvironment', () => { - it('invokes deleteEnvironment without error', async () => { + describe('createUserWorkloadsConfigMap', () => { + it('invokes createUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', - ['name'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ); - client.innerApiCalls.deleteEnvironment = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteEnvironment(request); - const [response] = await operation.promise(); + client.innerApiCalls.createUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.createUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteEnvironment without error using callback', async () => { + it('invokes createUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', - ['name'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ); - client.innerApiCalls.deleteEnvironment = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.createUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteEnvironment( + client.createUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap | null ) => { if (err) { reject(err); @@ -1431,191 +1454,134 @@ describe('v1beta1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteEnvironment with call error', async () => { + it('invokes createUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', - ['name'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteEnvironment = stubLongRunningCall( + client.innerApiCalls.createUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteEnvironment(request), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes deleteEnvironment with LRO error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteEnvironment = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.createUserWorkloadsConfigMap(request), expectedError ); - const [operation] = await client.deleteEnvironment(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteEnvironment as SinonStub + client.innerApiCalls.createUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteEnvironmentProgress without error', async () => { + it('invokes createUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteEnvironmentProgress( - expectedResponse.name + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest() ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteEnvironmentProgress with error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsConfigMapRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteEnvironmentProgress(''), + client.createUserWorkloadsConfigMap(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('restartWebServer', () => { - it('invokes restartWebServer without error', async () => { + describe('getUserWorkloadsConfigMap', () => { + it('invokes getUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ); - client.innerApiCalls.restartWebServer = - stubLongRunningCall(expectedResponse); - const [operation] = await client.restartWebServer(request); - const [response] = await operation.promise(); + client.innerApiCalls.getUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.getUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.restartWebServer as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.restartWebServer as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes restartWebServer without error using callback', async () => { + it('invokes getUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ); - client.innerApiCalls.restartWebServer = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.restartWebServer( + client.getUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap | null ) => { if (err) { reject(err); @@ -1625,190 +1591,136 @@ describe('v1beta1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.restartWebServer as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.restartWebServer as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes restartWebServer with call error', async () => { + it('invokes getUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.restartWebServer = stubLongRunningCall( + client.innerApiCalls.getUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.restartWebServer(request), expectedError); + await assert.rejects( + client.getUserWorkloadsConfigMap(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.restartWebServer as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.restartWebServer as SinonStub + client.innerApiCalls.getUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes restartWebServer with LRO error', async () => { + it('invokes getUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.restartWebServer = stubLongRunningCall( - undefined, - undefined, + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getUserWorkloadsConfigMap(request), expectedError ); - const [operation] = await client.restartWebServer(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.restartWebServer as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.restartWebServer as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); + }); - it('invokes checkRestartWebServerProgress without error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkRestartWebServerProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkRestartWebServerProgress with error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkRestartWebServerProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - }); - - describe('checkUpgrade', () => { - it('invokes checkUpgrade without error', async () => { + describe('updateUserWorkloadsConfigMap', () => { + it('invokes updateUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest() ); + request.userWorkloadsConfigMap ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_config_map.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ); - client.innerApiCalls.checkUpgrade = stubLongRunningCall(expectedResponse); - const [operation] = await client.checkUpgrade(request); - const [response] = await operation.promise(); + client.innerApiCalls.updateUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.updateUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.checkUpgrade as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.checkUpgrade as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpgrade without error using callback', async () => { + it('invokes updateUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest() ); + request.userWorkloadsConfigMap ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_config_map.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ); - client.innerApiCalls.checkUpgrade = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.updateUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.checkUpgrade( + client.updateUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - > | null + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap | null ) => { if (err) { reject(err); @@ -1818,187 +1730,136 @@ describe('v1beta1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.checkUpgrade as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.checkUpgrade as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpgrade with call error', async () => { + it('invokes updateUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest() ); + request.userWorkloadsConfigMap ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedHeaderRequestParams = `user_workloads_config_map.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.checkUpgrade = stubLongRunningCall( + client.innerApiCalls.updateUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.checkUpgrade(request), expectedError); - const actualRequest = ( - client.innerApiCalls.checkUpgrade as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.checkUpgrade as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkUpgrade with LRO error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', - ['environment'] - ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.checkUpgrade = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.updateUserWorkloadsConfigMap(request), expectedError ); - const [operation] = await client.checkUpgrade(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.checkUpgrade as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.checkUpgrade as SinonStub + client.innerApiCalls.updateUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCheckUpgradeProgress without error', async () => { + it('invokes updateUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCheckUpgradeProgress( - expectedResponse.name + request.userWorkloadsConfigMap ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsConfigMapRequest', + ['userWorkloadsConfigMap', 'name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkCheckUpgradeProgress with error', async () => { - const client = new environmentsModule.v1beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, + request.userWorkloadsConfigMap.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateUserWorkloadsConfigMap(request), expectedError ); - await assert.rejects(client.checkCheckUpgradeProgress(''), expectedError); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('saveSnapshot', () => { - it('invokes saveSnapshot without error', async () => { + describe('deleteUserWorkloadsConfigMap', () => { + it('invokes deleteUserWorkloadsConfigMap without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.saveSnapshot = stubLongRunningCall(expectedResponse); - const [operation] = await client.saveSnapshot(request); - const [response] = await operation.promise(); + client.innerApiCalls.deleteUserWorkloadsConfigMap = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteUserWorkloadsConfigMap(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes saveSnapshot without error using callback', async () => { + it('invokes deleteUserWorkloadsConfigMap without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.saveSnapshot = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.deleteUserWorkloadsConfigMap = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.saveSnapshot( + client.deleteUserWorkloadsConfigMap( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2008,185 +1869,273 @@ describe('v1beta1.EnvironmentsClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, - protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes saveSnapshot with call error', async () => { + it('invokes deleteUserWorkloadsConfigMap with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.saveSnapshot = stubLongRunningCall( + client.innerApiCalls.deleteUserWorkloadsConfigMap = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.saveSnapshot(request), expectedError); + await assert.rejects( + client.deleteUserWorkloadsConfigMap(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.deleteUserWorkloadsConfigMap as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes saveSnapshot with LRO error', async () => { + it('invokes deleteUserWorkloadsConfigMap with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteUserWorkloadsConfigMap(request), + expectedError + ); + }); + }); + + describe('fetchDatabaseProperties', () => { + it('invokes fetchDatabaseProperties without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', ['environment'] ); request.environment = defaultValue1; const expectedHeaderRequestParams = `environment=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.saveSnapshot = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse() ); - const [operation] = await client.saveSnapshot(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.fetchDatabaseProperties = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchDatabaseProperties(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.saveSnapshot as SinonStub + client.innerApiCalls.fetchDatabaseProperties as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkSaveSnapshotProgress without error', async () => { + it('invokes fetchDatabaseProperties without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkSaveSnapshotProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', + ['environment'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse() + ); + client.innerApiCalls.fetchDatabaseProperties = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.fetchDatabaseProperties( + request, + ( + err?: Error | null, + result?: protos.google.cloud.orchestration.airflow.service.v1beta1.IFetchDatabasePropertiesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchDatabaseProperties as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchDatabaseProperties as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkSaveSnapshotProgress with error', async () => { + it('invokes fetchDatabaseProperties with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.fetchDatabaseProperties = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.checkSaveSnapshotProgress(''), expectedError); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + await assert.rejects( + client.fetchDatabaseProperties(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.fetchDatabaseProperties as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchDatabaseProperties as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - }); - describe('loadSnapshot', () => { - it('invokes loadSnapshot without error', async () => { + it('invokes fetchDatabaseProperties with closed client', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest', ['environment'] ); request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.fetchDatabaseProperties(request), + expectedError + ); + }); + }); + + describe('createEnvironment', () => { + it('invokes createEnvironment without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.loadSnapshot = stubLongRunningCall(expectedResponse); - const [operation] = await client.loadSnapshot(request); + client.innerApiCalls.createEnvironment = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createEnvironment(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes loadSnapshot without error using callback', async () => { + it('invokes createEnvironment without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.loadSnapshot = + client.innerApiCalls.createEnvironment = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.loadSnapshot( + client.createEnvironment( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata > | null ) => { @@ -2199,86 +2148,86 @@ describe('v1beta1.EnvironmentsClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes loadSnapshot with call error', async () => { + it('invokes createEnvironment with call error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.loadSnapshot = stubLongRunningCall( + client.innerApiCalls.createEnvironment = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.loadSnapshot(request), expectedError); + await assert.rejects(client.createEnvironment(request), expectedError); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes loadSnapshot with LRO error', async () => { + it('invokes createEnvironment with LRO error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest', + ['parent'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.loadSnapshot = stubLongRunningCall( + client.innerApiCalls.createEnvironment = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.loadSnapshot(request); + const [operation] = await client.createEnvironment(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.loadSnapshot as SinonStub + client.innerApiCalls.createEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkLoadSnapshotProgress without error', async () => { + it('invokes checkCreateEnvironmentProgress without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -2292,7 +2241,7 @@ describe('v1beta1.EnvironmentsClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkLoadSnapshotProgress( + const decodedOperation = await client.checkCreateEnvironmentProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -2300,7 +2249,7 @@ describe('v1beta1.EnvironmentsClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkLoadSnapshotProgress with error', async () => { + it('invokes checkCreateEnvironmentProgress with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -2312,72 +2261,75 @@ describe('v1beta1.EnvironmentsClient', () => { undefined, expectedError ); - await assert.rejects(client.checkLoadSnapshotProgress(''), expectedError); + await assert.rejects( + client.checkCreateEnvironmentProgress(''), + expectedError + ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('databaseFailover', () => { - it('invokes databaseFailover without error', async () => { + describe('updateEnvironment', () => { + it('invokes updateEnvironment without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.databaseFailover = + client.innerApiCalls.updateEnvironment = stubLongRunningCall(expectedResponse); - const [operation] = await client.databaseFailover(request); + const [operation] = await client.updateEnvironment(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes databaseFailover without error using callback', async () => { + it('invokes updateEnvironment without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.databaseFailover = + client.innerApiCalls.updateEnvironment = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.databaseFailover( + client.updateEnvironment( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata > | null ) => { @@ -2390,86 +2342,86 @@ describe('v1beta1.EnvironmentsClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes databaseFailover with call error', async () => { + it('invokes updateEnvironment with call error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.databaseFailover = stubLongRunningCall( + client.innerApiCalls.updateEnvironment = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.databaseFailover(request), expectedError); + await assert.rejects(client.updateEnvironment(request), expectedError); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes databaseFailover with LRO error', async () => { + it('invokes updateEnvironment with LRO error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', - ['environment'] + '.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest', + ['name'] ); - request.environment = defaultValue1; - const expectedHeaderRequestParams = `environment=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.databaseFailover = stubLongRunningCall( + client.innerApiCalls.updateEnvironment = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.databaseFailover(request); + const [operation] = await client.updateEnvironment(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.databaseFailover as SinonStub + client.innerApiCalls.updateEnvironment as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDatabaseFailoverProgress without error', async () => { + it('invokes checkUpdateEnvironmentProgress without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -2483,109 +2435,2291 @@ describe('v1beta1.EnvironmentsClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDatabaseFailoverProgress( + const decodedOperation = await client.checkUpdateEnvironmentProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateEnvironmentProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateEnvironmentProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteEnvironment', () => { + it('invokes deleteEnvironment without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteEnvironment = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteEnvironment(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEnvironment without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteEnvironment = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteEnvironment( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEnvironment with call error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteEnvironment = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteEnvironment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEnvironment with LRO error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteEnvironment = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteEnvironment(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEnvironment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteEnvironmentProgress without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteEnvironmentProgress( expectedResponse.name ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteEnvironmentProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteEnvironmentProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('restartWebServer', () => { + it('invokes restartWebServer without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.restartWebServer = + stubLongRunningCall(expectedResponse); + const [operation] = await client.restartWebServer(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes restartWebServer without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.restartWebServer = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.restartWebServer( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes restartWebServer with call error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.restartWebServer = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.restartWebServer(request), expectedError); + const actualRequest = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes restartWebServer with LRO error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.restartWebServer = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.restartWebServer(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.restartWebServer as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkRestartWebServerProgress without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkRestartWebServerProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkRestartWebServerProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkRestartWebServerProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('checkUpgrade', () => { + it('invokes checkUpgrade without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.checkUpgrade = stubLongRunningCall(expectedResponse); + const [operation] = await client.checkUpgrade(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpgrade without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.checkUpgrade = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.checkUpgrade( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpgrade with call error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.checkUpgrade = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.checkUpgrade(request), expectedError); + const actualRequest = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpgrade with LRO error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.checkUpgrade = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.checkUpgrade(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.checkUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCheckUpgradeProgress without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCheckUpgradeProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCheckUpgradeProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkCheckUpgradeProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('saveSnapshot', () => { + it('invokes saveSnapshot without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.saveSnapshot = stubLongRunningCall(expectedResponse); + const [operation] = await client.saveSnapshot(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes saveSnapshot without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.saveSnapshot = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.saveSnapshot( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ISaveSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes saveSnapshot with call error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.saveSnapshot = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.saveSnapshot(request), expectedError); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes saveSnapshot with LRO error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.saveSnapshot = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.saveSnapshot(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.saveSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkSaveSnapshotProgress without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkSaveSnapshotProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkSaveSnapshotProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkSaveSnapshotProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('loadSnapshot', () => { + it('invokes loadSnapshot without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.loadSnapshot = stubLongRunningCall(expectedResponse); + const [operation] = await client.loadSnapshot(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes loadSnapshot without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.loadSnapshot = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.loadSnapshot( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.ILoadSnapshotResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes loadSnapshot with call error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.loadSnapshot = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.loadSnapshot(request), expectedError); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes loadSnapshot with LRO error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.loadSnapshot = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.loadSnapshot(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.loadSnapshot as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkLoadSnapshotProgress without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkLoadSnapshotProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkLoadSnapshotProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkLoadSnapshotProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('databaseFailover', () => { + it('invokes databaseFailover without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.databaseFailover = + stubLongRunningCall(expectedResponse); + const [operation] = await client.databaseFailover(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes databaseFailover without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.databaseFailover = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.databaseFailover( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.orchestration.airflow.service.v1beta1.IDatabaseFailoverResponse, + protos.google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes databaseFailover with call error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.databaseFailover = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.databaseFailover(request), expectedError); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes databaseFailover with LRO error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest', + ['environment'] + ); + request.environment = defaultValue1; + const expectedHeaderRequestParams = `environment=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.databaseFailover = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.databaseFailover(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.databaseFailover as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDatabaseFailoverProgress without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDatabaseFailoverProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDatabaseFailoverProgress with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDatabaseFailoverProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listEnvironments', () => { + it('invokes listEnvironments without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + ]; + client.innerApiCalls.listEnvironments = stubSimpleCall(expectedResponse); + const [response] = await client.listEnvironments(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEnvironments without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + ]; + client.innerApiCalls.listEnvironments = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listEnvironments( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEnvironments with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listEnvironments = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listEnvironments(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listEnvironments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEnvironmentsStream without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + ]; + client.descriptors.page.listEnvironments.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listEnvironmentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listEnvironments, request) + ); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listEnvironmentsStream with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listEnvironments.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listEnvironmentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listEnvironments, request) + ); + assert( + (client.descriptors.page.listEnvironments.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listEnvironments without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + ), + ]; + client.descriptors.page.listEnvironments.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[] = + []; + const iterable = client.listEnvironmentsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listEnvironments.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listEnvironments with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listEnvironments.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listEnvironmentsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listEnvironments.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listWorkloads', () => { + it('invokes listWorkloads without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.innerApiCalls.listWorkloads = stubSimpleCall(expectedResponse); + const [response] = await client.listWorkloads(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkloads without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.innerApiCalls.listWorkloads = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listWorkloads( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkloads with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listWorkloads = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listWorkloads(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listWorkloads as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listWorkloadsStream without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.descriptors.page.listWorkloads.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listWorkloadsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWorkloads, request) + ); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listWorkloadsStream with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listWorkloads.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listWorkloadsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWorkloads, request) + ); + assert( + (client.descriptors.page.listWorkloads.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listWorkloads without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.ComposerWorkload() + ), + ]; + client.descriptors.page.listWorkloads.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[] = + []; + const iterable = client.listWorkloadsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listWorkloads.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listWorkloads.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listWorkloads with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listWorkloads.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listWorkloadsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse.IComposerWorkload[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listWorkloads.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listWorkloads.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listUserWorkloadsSecrets', () => { + it('invokes listUserWorkloadsSecrets without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + ]; + client.innerApiCalls.listUserWorkloadsSecrets = + stubSimpleCall(expectedResponse); + const [response] = await client.listUserWorkloadsSecrets(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUserWorkloadsSecrets without error using callback', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + ]; + client.innerApiCalls.listUserWorkloadsSecrets = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listUserWorkloadsSecrets( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUserWorkloadsSecrets with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listUserWorkloadsSecrets = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listUserWorkloadsSecrets(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserWorkloadsSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUserWorkloadsSecretsStream without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + ]; + client.descriptors.page.listUserWorkloadsSecrets.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listUserWorkloadsSecretsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listUserWorkloadsSecrets, request) + ); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listUserWorkloadsSecretsStream with error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listUserWorkloadsSecrets.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listUserWorkloadsSecretsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listUserWorkloadsSecrets, request) + ); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listUserWorkloadsSecrets without error', async () => { + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret() + ), + ]; + client.descriptors.page.listUserWorkloadsSecrets.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[] = + []; + const iterable = client.listUserWorkloadsSecretsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); - it('invokes checkDatabaseFailoverProgress with error', async () => { + it('uses async iteration with listUserWorkloadsSecrets with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + client.descriptors.page.listUserWorkloadsSecrets.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listUserWorkloadsSecretsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsSecret[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - await assert.rejects( - client.checkDatabaseFailoverProgress(''), - expectedError + assert( + ( + client.descriptors.page.listUserWorkloadsSecrets + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listEnvironments', () => { - it('invokes listEnvironments without error', async () => { + describe('listUserWorkloadsConfigMaps', () => { + it('invokes listUserWorkloadsConfigMaps without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), ]; - client.innerApiCalls.listEnvironments = stubSimpleCall(expectedResponse); - const [response] = await client.listEnvironments(request); + client.innerApiCalls.listUserWorkloadsConfigMaps = + stubSimpleCall(expectedResponse); + const [response] = await client.listUserWorkloadsConfigMaps(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listEnvironments without error using callback', async () => { + it('invokes listUserWorkloadsConfigMaps without error using callback', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), ]; - client.innerApiCalls.listEnvironments = + client.innerApiCalls.listUserWorkloadsConfigMaps = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listEnvironments( + client.listUserWorkloadsConfigMaps( request, ( err?: Error | null, result?: - | protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[] + | protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[] | null ) => { if (err) { @@ -2599,82 +4733,85 @@ describe('v1beta1.EnvironmentsClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listEnvironments with error', async () => { + it('invokes listUserWorkloadsConfigMaps with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listEnvironments = stubSimpleCall( + client.innerApiCalls.listUserWorkloadsConfigMaps = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listEnvironments(request), expectedError); + await assert.rejects( + client.listUserWorkloadsConfigMaps(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listEnvironments as SinonStub + client.innerApiCalls.listUserWorkloadsConfigMaps as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listEnvironmentsStream without error', async () => { + it('invokes listUserWorkloadsConfigMapsStream without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), ]; - client.descriptors.page.listEnvironments.createStream = + client.descriptors.page.listUserWorkloadsConfigMaps.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listEnvironmentsStream(request); + const stream = client.listUserWorkloadsConfigMapsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap[] = []; stream.on( 'data', ( - response: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment + response: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap ) => { responses.push(response); } @@ -2689,12 +4826,18 @@ describe('v1beta1.EnvironmentsClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listEnvironments, request) + .calledWith(client.innerApiCalls.listUserWorkloadsConfigMaps, request) ); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2702,32 +4845,32 @@ describe('v1beta1.EnvironmentsClient', () => { ); }); - it('invokes listEnvironmentsStream with error', async () => { + it('invokes listUserWorkloadsConfigMapsStream with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listEnvironments.createStream = + client.descriptors.page.listUserWorkloadsConfigMaps.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listEnvironmentsStream(request); + const stream = client.listUserWorkloadsConfigMapsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap[] = []; stream.on( 'data', ( - response: protos.google.cloud.orchestration.airflow.service.v1beta1.Environment + response: protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap ) => { responses.push(response); } @@ -2741,12 +4884,18 @@ describe('v1beta1.EnvironmentsClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listEnvironments, request) + .calledWith(client.innerApiCalls.listUserWorkloadsConfigMaps, request) ); assert( - (client.descriptors.page.listEnvironments.createStream as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2754,49 +4903,53 @@ describe('v1beta1.EnvironmentsClient', () => { ); }); - it('uses async iteration with listEnvironments without error', async () => { + it('uses async iteration with listUserWorkloadsConfigMaps without error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.Environment() + new protos.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap() ), ]; - client.descriptors.page.listEnvironments.asyncIterate = + client.descriptors.page.listUserWorkloadsConfigMaps.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[] = []; - const iterable = client.listEnvironmentsAsync(request); + const iterable = client.listUserWorkloadsConfigMapsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listEnvironments.asyncIterate as SinonStub + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -2804,27 +4957,27 @@ describe('v1beta1.EnvironmentsClient', () => { ); }); - it('uses async iteration with listEnvironments with error', async () => { + it('uses async iteration with listUserWorkloadsConfigMaps with error', async () => { const client = new environmentsModule.v1beta1.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest() + new protos.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest', + '.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listEnvironments.asyncIterate = + client.descriptors.page.listUserWorkloadsConfigMaps.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listEnvironmentsAsync(request); + const iterable = client.listUserWorkloadsConfigMapsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[] = + const responses: protos.google.cloud.orchestration.airflow.service.v1beta1.IUserWorkloadsConfigMap[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -2832,12 +4985,16 @@ describe('v1beta1.EnvironmentsClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listEnvironments.asyncIterate as SinonStub + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listEnvironments.asyncIterate as SinonStub) + ( + client.descriptors.page.listUserWorkloadsConfigMaps + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3215,5 +5372,196 @@ describe('v1beta1.EnvironmentsClient', () => { ); }); }); + + describe('userWorkloadsConfigMap', () => { + const fakePath = '/rendered/path/userWorkloadsConfigMap'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_config_map: 'userWorkloadsConfigMapValue', + }; + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsConfigMapPath', () => { + const result = client.userWorkloadsConfigMapPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsConfigMapValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsConfigMapName', () => { + const result = + client.matchProjectFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsConfigMapName', () => { + const result = + client.matchLocationFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsConfigMapName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName', () => { + const result = + client.matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + fakePath + ); + assert.strictEqual(result, 'userWorkloadsConfigMapValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('userWorkloadsSecret', () => { + const fakePath = '/rendered/path/userWorkloadsSecret'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_secret: 'userWorkloadsSecretValue', + }; + const client = new environmentsModule.v1beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsSecretPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsSecretPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsSecretPath', () => { + const result = client.userWorkloadsSecretPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsSecretValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsSecretName', () => { + const result = client.matchProjectFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsSecretName', () => { + const result = + client.matchLocationFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsSecretName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsSecretFromUserWorkloadsSecretName', () => { + const result = + client.matchUserWorkloadsSecretFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'userWorkloadsSecretValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); }); }); diff --git a/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1.ts b/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1.ts index d5c6547510a9..98ee5f872b32 100644 --- a/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1.ts +++ b/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1.ts @@ -672,5 +672,196 @@ describe('v1.ImageVersionsClient', () => { ); }); }); + + describe('userWorkloadsConfigMap', () => { + const fakePath = '/rendered/path/userWorkloadsConfigMap'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_config_map: 'userWorkloadsConfigMapValue', + }; + const client = new imageversionsModule.v1.ImageVersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsConfigMapPath', () => { + const result = client.userWorkloadsConfigMapPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsConfigMapValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsConfigMapName', () => { + const result = + client.matchProjectFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsConfigMapName', () => { + const result = + client.matchLocationFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsConfigMapName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName', () => { + const result = + client.matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + fakePath + ); + assert.strictEqual(result, 'userWorkloadsConfigMapValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('userWorkloadsSecret', () => { + const fakePath = '/rendered/path/userWorkloadsSecret'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_secret: 'userWorkloadsSecretValue', + }; + const client = new imageversionsModule.v1.ImageVersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsSecretPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsSecretPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsSecretPath', () => { + const result = client.userWorkloadsSecretPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsSecretValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsSecretName', () => { + const result = client.matchProjectFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsSecretName', () => { + const result = + client.matchLocationFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsSecretName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsSecretFromUserWorkloadsSecretName', () => { + const result = + client.matchUserWorkloadsSecretFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'userWorkloadsSecretValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); }); }); diff --git a/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1beta1.ts b/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1beta1.ts index 16ddd99ed1b9..4a22a83ecef4 100644 --- a/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1beta1.ts +++ b/packages/google-cloud-orchestration-airflow-service/test/gapic_image_versions_v1beta1.ts @@ -672,5 +672,196 @@ describe('v1beta1.ImageVersionsClient', () => { ); }); }); + + describe('userWorkloadsConfigMap', () => { + const fakePath = '/rendered/path/userWorkloadsConfigMap'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_config_map: 'userWorkloadsConfigMapValue', + }; + const client = new imageversionsModule.v1beta1.ImageVersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsConfigMapPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsConfigMapPath', () => { + const result = client.userWorkloadsConfigMapPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsConfigMapValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsConfigMapName', () => { + const result = + client.matchProjectFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsConfigMapName', () => { + const result = + client.matchLocationFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsConfigMapName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsConfigMapName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName', () => { + const result = + client.matchUserWorkloadsConfigMapFromUserWorkloadsConfigMapName( + fakePath + ); + assert.strictEqual(result, 'userWorkloadsConfigMapValue'); + assert( + ( + client.pathTemplates.userWorkloadsConfigMapPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('userWorkloadsSecret', () => { + const fakePath = '/rendered/path/userWorkloadsSecret'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + environment: 'environmentValue', + user_workloads_secret: 'userWorkloadsSecretValue', + }; + const client = new imageversionsModule.v1beta1.ImageVersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.userWorkloadsSecretPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.userWorkloadsSecretPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('userWorkloadsSecretPath', () => { + const result = client.userWorkloadsSecretPath( + 'projectValue', + 'locationValue', + 'environmentValue', + 'userWorkloadsSecretValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromUserWorkloadsSecretName', () => { + const result = client.matchProjectFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromUserWorkloadsSecretName', () => { + const result = + client.matchLocationFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromUserWorkloadsSecretName', () => { + const result = + client.matchEnvironmentFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserWorkloadsSecretFromUserWorkloadsSecretName', () => { + const result = + client.matchUserWorkloadsSecretFromUserWorkloadsSecretName(fakePath); + assert.strictEqual(result, 'userWorkloadsSecretValue'); + assert( + ( + client.pathTemplates.userWorkloadsSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); }); }); From 63db1443bfe83f1539e7369b98066a220f7bce31 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:24:47 -0800 Subject: [PATCH 05/19] docs: [billing] Clarify that the parent field in the CreateBillingAccountRequest must be a billing account (#5046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Clarify that the parent field in the CreateBillingAccountRequest must be a billing account PiperOrigin-RevId: 606668963 Source-Link: https://github.com/googleapis/googleapis/commit/026fd50d5b46537ed987ab8f02736b507ef12049 Source-Link: https://github.com/googleapis/googleapis-gen/commit/853ddfe691bb2eeebc660bcfebb27d12b7d062b6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6Ijg1M2RkZmU2OTFiYjJlZWViYzY2MGJjZmViYjI3ZDEyYjdkMDYyYjYifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../protos/google/cloud/billing/v1/cloud_billing.proto | 2 -- .../generated/v1/cloud_billing.create_billing_account.js | 2 -- .../generated/v1/snippet_metadata_google.cloud.billing.v1.json | 2 +- packages/google-cloud-billing/src/v1/cloud_billing_client.ts | 2 -- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto b/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto index cc7126a1d0b1..b340497f80d7 100644 --- a/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto +++ b/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto @@ -380,8 +380,6 @@ message CreateBillingAccountRequest { // Optional. The parent to create a billing account from. // Format: - // - `organizations/{organization_id}`, for example, - // `organizations/12345678` // - `billingAccounts/{billing_account_id}`, for example, // `billingAccounts/012345-567890-ABCDEF` string parent = 2 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-billing/samples/generated/v1/cloud_billing.create_billing_account.js b/packages/google-cloud-billing/samples/generated/v1/cloud_billing.create_billing_account.js index 9be33094ce64..3fda1e808bd0 100644 --- a/packages/google-cloud-billing/samples/generated/v1/cloud_billing.create_billing_account.js +++ b/packages/google-cloud-billing/samples/generated/v1/cloud_billing.create_billing_account.js @@ -38,8 +38,6 @@ function main(billingAccount) { /** * Optional. The parent to create a billing account from. * Format: - * - `organizations/{organization_id}`, for example, - * `organizations/12345678` * - `billingAccounts/{billing_account_id}`, for example, * `billingAccounts/012345-567890-ABCDEF` */ diff --git a/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json b/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json index f6957be74f4b..fdaf37e275cf 100644 --- a/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json +++ b/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json @@ -162,7 +162,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 63, "type": "FULL" } ], diff --git a/packages/google-cloud-billing/src/v1/cloud_billing_client.ts b/packages/google-cloud-billing/src/v1/cloud_billing_client.ts index 80bb7361478d..851d3781c6f4 100644 --- a/packages/google-cloud-billing/src/v1/cloud_billing_client.ts +++ b/packages/google-cloud-billing/src/v1/cloud_billing_client.ts @@ -632,8 +632,6 @@ export class CloudBillingClient { * @param {string} [request.parent] * Optional. The parent to create a billing account from. * Format: - * - `organizations/{organization_id}`, for example, - * `organizations/12345678` * - `billingAccounts/{billing_account_id}`, for example, * `billingAccounts/012345-567890-ABCDEF` * @param {object} [options] From 934c300105e20afb8d8ed750e79e9935b7d42a79 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:25:07 -0800 Subject: [PATCH 06/19] feat: [securitycenter] Add Backup DR field to finding's list of attributes (#5047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add application field to finding's list of attributes PiperOrigin-RevId: 606675743 Source-Link: https://github.com/googleapis/googleapis/commit/8e7f6bb194b807b5d64235191d356f77b538114b Source-Link: https://github.com/googleapis/googleapis-gen/commit/e65f14e491982a1aef2ecfc41940b04b9de78069 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiJlNjVmMTRlNDkxOTgyYTFhZWYyZWNmYzQxOTQwYjA0YjlkZTc4MDY5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add Backup DR field to finding's list of attributes PiperOrigin-RevId: 609040971 Source-Link: https://github.com/googleapis/googleapis/commit/698ad3d70e5d679702cd86dc49f436bf16aae2f8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d1aef2406369b70e555cc0a99e6e783ab5e898dc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiJkMWFlZjI0MDYzNjliNzBlNTU1Y2MwYTk5ZTZlNzgzYWI1ZTg5OGRjIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/securitycenter/v1/application.proto | 36 + .../v1/backup_disaster_recovery.proto | 88 ++ .../cloud/securitycenter/v1/finding.proto | 8 + .../protos/protos.d.ts | 266 +++++++ .../protos/protos.js | 749 ++++++++++++++++++ .../protos/protos.json | 67 ++ .../src/v1/security_center_proto_list.json | 2 + 7 files changed, 1216 insertions(+) create mode 100644 packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/application.proto create mode 100644 packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/backup_disaster_recovery.proto diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/application.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/application.proto new file mode 100644 index 000000000000..d7a9ae47411d --- /dev/null +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/application.proto @@ -0,0 +1,36 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ApplicationProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Represents an application associated with a finding. +message Application { + // The base URI that identifies the network location of the application in + // which the vulnerability was detected. For example, `http://example.com`. + string base_uri = 1; + + // The full URI with payload that can be used to reproduce the + // vulnerability. For example, `http://example.com?p=aMmYgI6H`. + string full_uri = 2; +} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/backup_disaster_recovery.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/backup_disaster_recovery.proto new file mode 100644 index 000000000000..51dbe8b0d56f --- /dev/null +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/backup_disaster_recovery.proto @@ -0,0 +1,88 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "BackupDisasterRecoveryProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Information related to Google Cloud Backup and DR Service findings. +message BackupDisasterRecovery { + // The name of a Backup and DR template which comprises one or more backup + // policies. See the [Backup and DR + // documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) + // for more information. For example, `snap-ov`. + string backup_template = 1; + + // The names of Backup and DR policies that are associated with a template + // and that define when to run a backup, how frequently to run a backup, and + // how long to retain the backup image. For example, `onvaults`. + repeated string policies = 2; + + // The name of a Backup and DR host, which is managed by the backup and + // recovery appliance and known to the management console. The host can be of + // type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file + // system, etc.), vCenter, or an ESX server. See the [Backup and DR + // documentation on + // hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) + // for more information. For example, `centos7-01`. + string host = 3; + + // The names of Backup and DR applications. An application is a VM, database, + // or file system on a managed host monitored by a backup and recovery + // appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, + // `centos7-01-vol02`. + repeated string applications = 4; + + // The name of the Backup and DR storage pool that the backup and recovery + // appliance is storing data in. The storage pool could be of type Cloud, + // Primary, Snapshot, or OnVault. See the [Backup and DR documentation on + // storage + // pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). + // For example, `DiskPoolOne`. + string storage_pool = 5; + + // The names of Backup and DR advanced policy options of a policy applying to + // an application. See the [Backup and DR documentation on policy + // options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). + // For example, `skipofflineappsincongrp, nounmap`. + repeated string policy_options = 6; + + // The name of the Backup and DR resource profile that specifies the storage + // media for backups of application and VM data. See the [Backup and DR + // documentation on + // profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). + // For example, `GCP`. + string profile = 7; + + // The name of the Backup and DR appliance that captures, moves, and manages + // the lifecycle of backup data. For example, `backup-server-57137`. + string appliance = 8; + + // The backup type of the Backup and DR image. + // For example, `Snapshot`, `Remote Snapshot`, `OnVault`. + string backup_type = 9; + + // The timestamp at which the Backup and DR backup was created. + google.protobuf.Timestamp backup_create_time = 10; +} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto index b57b7be4e7a7..4d77c0c9c9fe 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto @@ -19,6 +19,8 @@ package google.cloud.securitycenter.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/securitycenter/v1/access.proto"; +import "google/cloud/securitycenter/v1/application.proto"; +import "google/cloud/securitycenter/v1/backup_disaster_recovery.proto"; import "google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto"; import "google/cloud/securitycenter/v1/cloud_dlp_inspection.proto"; import "google/cloud/securitycenter/v1/compliance.proto"; @@ -359,4 +361,10 @@ message Finding { // Signature of the kernel rootkit. KernelRootkit kernel_rootkit = 50; + + // Represents an application associated with the finding. + Application application = 53; + + // Fields related to Backup and DR findings. + BackupDisasterRecovery backup_disaster_recovery = 55; } diff --git a/packages/google-cloud-securitycenter/protos/protos.d.ts b/packages/google-cloud-securitycenter/protos/protos.d.ts index c5b684dd515f..03948be76b6c 100644 --- a/packages/google-cloud-securitycenter/protos/protos.d.ts +++ b/packages/google-cloud-securitycenter/protos/protos.d.ts @@ -383,6 +383,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an Application. */ + interface IApplication { + + /** Application baseUri */ + baseUri?: (string|null); + + /** Application fullUri */ + fullUri?: (string|null); + } + + /** Represents an Application. */ + class Application implements IApplication { + + /** + * Constructs a new Application. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IApplication); + + /** Application baseUri. */ + public baseUri: string; + + /** Application fullUri. */ + public fullUri: string; + + /** + * Creates a new Application instance using the specified properties. + * @param [properties] Properties to set + * @returns Application instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IApplication): google.cloud.securitycenter.v1.Application; + + /** + * Encodes the specified Application message. Does not implicitly {@link google.cloud.securitycenter.v1.Application.verify|verify} messages. + * @param message Application message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IApplication, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Application message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Application.verify|verify} messages. + * @param message Application message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IApplication, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Application message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Application + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Application; + + /** + * Decodes an Application message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Application + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Application; + + /** + * Verifies an Application message. + * @param message Plain 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 Application message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Application + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Application; + + /** + * Creates a plain object from an Application message. Also converts values to other types if specified. + * @param message Application + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Application, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Application to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Application + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Asset. */ interface IAsset { @@ -979,6 +1082,157 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackupDisasterRecovery. */ + interface IBackupDisasterRecovery { + + /** BackupDisasterRecovery backupTemplate */ + backupTemplate?: (string|null); + + /** BackupDisasterRecovery policies */ + policies?: (string[]|null); + + /** BackupDisasterRecovery host */ + host?: (string|null); + + /** BackupDisasterRecovery applications */ + applications?: (string[]|null); + + /** BackupDisasterRecovery storagePool */ + storagePool?: (string|null); + + /** BackupDisasterRecovery policyOptions */ + policyOptions?: (string[]|null); + + /** BackupDisasterRecovery profile */ + profile?: (string|null); + + /** BackupDisasterRecovery appliance */ + appliance?: (string|null); + + /** BackupDisasterRecovery backupType */ + backupType?: (string|null); + + /** BackupDisasterRecovery backupCreateTime */ + backupCreateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a BackupDisasterRecovery. */ + class BackupDisasterRecovery implements IBackupDisasterRecovery { + + /** + * Constructs a new BackupDisasterRecovery. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IBackupDisasterRecovery); + + /** BackupDisasterRecovery backupTemplate. */ + public backupTemplate: string; + + /** BackupDisasterRecovery policies. */ + public policies: string[]; + + /** BackupDisasterRecovery host. */ + public host: string; + + /** BackupDisasterRecovery applications. */ + public applications: string[]; + + /** BackupDisasterRecovery storagePool. */ + public storagePool: string; + + /** BackupDisasterRecovery policyOptions. */ + public policyOptions: string[]; + + /** BackupDisasterRecovery profile. */ + public profile: string; + + /** BackupDisasterRecovery appliance. */ + public appliance: string; + + /** BackupDisasterRecovery backupType. */ + public backupType: string; + + /** BackupDisasterRecovery backupCreateTime. */ + public backupCreateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new BackupDisasterRecovery instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupDisasterRecovery instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IBackupDisasterRecovery): google.cloud.securitycenter.v1.BackupDisasterRecovery; + + /** + * Encodes the specified BackupDisasterRecovery message. Does not implicitly {@link google.cloud.securitycenter.v1.BackupDisasterRecovery.verify|verify} messages. + * @param message BackupDisasterRecovery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IBackupDisasterRecovery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupDisasterRecovery message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BackupDisasterRecovery.verify|verify} messages. + * @param message BackupDisasterRecovery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IBackupDisasterRecovery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupDisasterRecovery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupDisasterRecovery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.BackupDisasterRecovery; + + /** + * Decodes a BackupDisasterRecovery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupDisasterRecovery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.BackupDisasterRecovery; + + /** + * Verifies a BackupDisasterRecovery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupDisasterRecovery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupDisasterRecovery + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.BackupDisasterRecovery; + + /** + * Creates a plain object from a BackupDisasterRecovery message. Also converts values to other types if specified. + * @param message BackupDisasterRecovery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.BackupDisasterRecovery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupDisasterRecovery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupDisasterRecovery + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BigQueryExport. */ interface IBigQueryExport { @@ -3256,6 +3510,12 @@ export namespace google { /** Finding kernelRootkit */ kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); + + /** Finding application */ + application?: (google.cloud.securitycenter.v1.IApplication|null); + + /** Finding backupDisasterRecovery */ + backupDisasterRecovery?: (google.cloud.securitycenter.v1.IBackupDisasterRecovery|null); } /** Represents a Finding. */ @@ -3381,6 +3641,12 @@ export namespace google { /** Finding kernelRootkit. */ public kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); + /** Finding application. */ + public application?: (google.cloud.securitycenter.v1.IApplication|null); + + /** Finding backupDisasterRecovery. */ + public backupDisasterRecovery?: (google.cloud.securitycenter.v1.IBackupDisasterRecovery|null); + /** * Creates a new Finding instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-securitycenter/protos/protos.js b/packages/google-cloud-securitycenter/protos/protos.js index 2693bfa91f61..3da1d9c04a46 100644 --- a/packages/google-cloud-securitycenter/protos/protos.js +++ b/packages/google-cloud-securitycenter/protos/protos.js @@ -957,6 +957,233 @@ return Geolocation; })(); + v1.Application = (function() { + + /** + * Properties of an Application. + * @memberof google.cloud.securitycenter.v1 + * @interface IApplication + * @property {string|null} [baseUri] Application baseUri + * @property {string|null} [fullUri] Application fullUri + */ + + /** + * Constructs a new Application. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents an Application. + * @implements IApplication + * @constructor + * @param {google.cloud.securitycenter.v1.IApplication=} [properties] Properties to set + */ + function Application(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Application baseUri. + * @member {string} baseUri + * @memberof google.cloud.securitycenter.v1.Application + * @instance + */ + Application.prototype.baseUri = ""; + + /** + * Application fullUri. + * @member {string} fullUri + * @memberof google.cloud.securitycenter.v1.Application + * @instance + */ + Application.prototype.fullUri = ""; + + /** + * Creates a new Application instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {google.cloud.securitycenter.v1.IApplication=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.Application} Application instance + */ + Application.create = function create(properties) { + return new Application(properties); + }; + + /** + * Encodes the specified Application message. Does not implicitly {@link google.cloud.securitycenter.v1.Application.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {google.cloud.securitycenter.v1.IApplication} message Application message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Application.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.baseUri != null && Object.hasOwnProperty.call(message, "baseUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseUri); + if (message.fullUri != null && Object.hasOwnProperty.call(message, "fullUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullUri); + return writer; + }; + + /** + * Encodes the specified Application message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Application.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {google.cloud.securitycenter.v1.IApplication} message Application message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Application.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Application message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.Application} Application + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Application.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.Application(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.baseUri = reader.string(); + break; + } + case 2: { + message.fullUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Application message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.Application} Application + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Application.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Application message. + * @function verify + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Application.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.baseUri != null && message.hasOwnProperty("baseUri")) + if (!$util.isString(message.baseUri)) + return "baseUri: string expected"; + if (message.fullUri != null && message.hasOwnProperty("fullUri")) + if (!$util.isString(message.fullUri)) + return "fullUri: string expected"; + return null; + }; + + /** + * Creates an Application message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.Application} Application + */ + Application.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.Application) + return object; + var message = new $root.google.cloud.securitycenter.v1.Application(); + if (object.baseUri != null) + message.baseUri = String(object.baseUri); + if (object.fullUri != null) + message.fullUri = String(object.fullUri); + return message; + }; + + /** + * Creates a plain object from an Application message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {google.cloud.securitycenter.v1.Application} message Application + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Application.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.baseUri = ""; + object.fullUri = ""; + } + if (message.baseUri != null && message.hasOwnProperty("baseUri")) + object.baseUri = message.baseUri; + if (message.fullUri != null && message.hasOwnProperty("fullUri")) + object.fullUri = message.fullUri; + return object; + }; + + /** + * Converts this Application to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.Application + * @instance + * @returns {Object.} JSON object + */ + Application.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Application + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.Application + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Application.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.Application"; + }; + + return Application; + })(); + v1.Asset = (function() { /** @@ -2533,6 +2760,472 @@ return SecurityMarks; })(); + v1.BackupDisasterRecovery = (function() { + + /** + * Properties of a BackupDisasterRecovery. + * @memberof google.cloud.securitycenter.v1 + * @interface IBackupDisasterRecovery + * @property {string|null} [backupTemplate] BackupDisasterRecovery backupTemplate + * @property {Array.|null} [policies] BackupDisasterRecovery policies + * @property {string|null} [host] BackupDisasterRecovery host + * @property {Array.|null} [applications] BackupDisasterRecovery applications + * @property {string|null} [storagePool] BackupDisasterRecovery storagePool + * @property {Array.|null} [policyOptions] BackupDisasterRecovery policyOptions + * @property {string|null} [profile] BackupDisasterRecovery profile + * @property {string|null} [appliance] BackupDisasterRecovery appliance + * @property {string|null} [backupType] BackupDisasterRecovery backupType + * @property {google.protobuf.ITimestamp|null} [backupCreateTime] BackupDisasterRecovery backupCreateTime + */ + + /** + * Constructs a new BackupDisasterRecovery. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a BackupDisasterRecovery. + * @implements IBackupDisasterRecovery + * @constructor + * @param {google.cloud.securitycenter.v1.IBackupDisasterRecovery=} [properties] Properties to set + */ + function BackupDisasterRecovery(properties) { + this.policies = []; + this.applications = []; + this.policyOptions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackupDisasterRecovery backupTemplate. + * @member {string} backupTemplate + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.backupTemplate = ""; + + /** + * BackupDisasterRecovery policies. + * @member {Array.} policies + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.policies = $util.emptyArray; + + /** + * BackupDisasterRecovery host. + * @member {string} host + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.host = ""; + + /** + * BackupDisasterRecovery applications. + * @member {Array.} applications + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.applications = $util.emptyArray; + + /** + * BackupDisasterRecovery storagePool. + * @member {string} storagePool + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.storagePool = ""; + + /** + * BackupDisasterRecovery policyOptions. + * @member {Array.} policyOptions + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.policyOptions = $util.emptyArray; + + /** + * BackupDisasterRecovery profile. + * @member {string} profile + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.profile = ""; + + /** + * BackupDisasterRecovery appliance. + * @member {string} appliance + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.appliance = ""; + + /** + * BackupDisasterRecovery backupType. + * @member {string} backupType + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.backupType = ""; + + /** + * BackupDisasterRecovery backupCreateTime. + * @member {google.protobuf.ITimestamp|null|undefined} backupCreateTime + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + */ + BackupDisasterRecovery.prototype.backupCreateTime = null; + + /** + * Creates a new BackupDisasterRecovery instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {google.cloud.securitycenter.v1.IBackupDisasterRecovery=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.BackupDisasterRecovery} BackupDisasterRecovery instance + */ + BackupDisasterRecovery.create = function create(properties) { + return new BackupDisasterRecovery(properties); + }; + + /** + * Encodes the specified BackupDisasterRecovery message. Does not implicitly {@link google.cloud.securitycenter.v1.BackupDisasterRecovery.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {google.cloud.securitycenter.v1.IBackupDisasterRecovery} message BackupDisasterRecovery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupDisasterRecovery.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.backupTemplate != null && Object.hasOwnProperty.call(message, "backupTemplate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.backupTemplate); + if (message.policies != null && message.policies.length) + for (var i = 0; i < message.policies.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.policies[i]); + if (message.host != null && Object.hasOwnProperty.call(message, "host")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.host); + if (message.applications != null && message.applications.length) + for (var i = 0; i < message.applications.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.applications[i]); + if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.storagePool); + if (message.policyOptions != null && message.policyOptions.length) + for (var i = 0; i < message.policyOptions.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.policyOptions[i]); + if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.profile); + if (message.appliance != null && Object.hasOwnProperty.call(message, "appliance")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.appliance); + if (message.backupType != null && Object.hasOwnProperty.call(message, "backupType")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.backupType); + if (message.backupCreateTime != null && Object.hasOwnProperty.call(message, "backupCreateTime")) + $root.google.protobuf.Timestamp.encode(message.backupCreateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BackupDisasterRecovery message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BackupDisasterRecovery.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {google.cloud.securitycenter.v1.IBackupDisasterRecovery} message BackupDisasterRecovery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupDisasterRecovery.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackupDisasterRecovery message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.BackupDisasterRecovery} BackupDisasterRecovery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupDisasterRecovery.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.BackupDisasterRecovery(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.backupTemplate = reader.string(); + break; + } + case 2: { + if (!(message.policies && message.policies.length)) + message.policies = []; + message.policies.push(reader.string()); + break; + } + case 3: { + message.host = reader.string(); + break; + } + case 4: { + if (!(message.applications && message.applications.length)) + message.applications = []; + message.applications.push(reader.string()); + break; + } + case 5: { + message.storagePool = reader.string(); + break; + } + case 6: { + if (!(message.policyOptions && message.policyOptions.length)) + message.policyOptions = []; + message.policyOptions.push(reader.string()); + break; + } + case 7: { + message.profile = reader.string(); + break; + } + case 8: { + message.appliance = reader.string(); + break; + } + case 9: { + message.backupType = reader.string(); + break; + } + case 10: { + message.backupCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackupDisasterRecovery message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.BackupDisasterRecovery} BackupDisasterRecovery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupDisasterRecovery.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackupDisasterRecovery message. + * @function verify + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackupDisasterRecovery.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.backupTemplate != null && message.hasOwnProperty("backupTemplate")) + if (!$util.isString(message.backupTemplate)) + return "backupTemplate: string expected"; + if (message.policies != null && message.hasOwnProperty("policies")) { + if (!Array.isArray(message.policies)) + return "policies: array expected"; + for (var i = 0; i < message.policies.length; ++i) + if (!$util.isString(message.policies[i])) + return "policies: string[] expected"; + } + if (message.host != null && message.hasOwnProperty("host")) + if (!$util.isString(message.host)) + return "host: string expected"; + if (message.applications != null && message.hasOwnProperty("applications")) { + if (!Array.isArray(message.applications)) + return "applications: array expected"; + for (var i = 0; i < message.applications.length; ++i) + if (!$util.isString(message.applications[i])) + return "applications: string[] expected"; + } + if (message.storagePool != null && message.hasOwnProperty("storagePool")) + if (!$util.isString(message.storagePool)) + return "storagePool: string expected"; + if (message.policyOptions != null && message.hasOwnProperty("policyOptions")) { + if (!Array.isArray(message.policyOptions)) + return "policyOptions: array expected"; + for (var i = 0; i < message.policyOptions.length; ++i) + if (!$util.isString(message.policyOptions[i])) + return "policyOptions: string[] expected"; + } + if (message.profile != null && message.hasOwnProperty("profile")) + if (!$util.isString(message.profile)) + return "profile: string expected"; + if (message.appliance != null && message.hasOwnProperty("appliance")) + if (!$util.isString(message.appliance)) + return "appliance: string expected"; + if (message.backupType != null && message.hasOwnProperty("backupType")) + if (!$util.isString(message.backupType)) + return "backupType: string expected"; + if (message.backupCreateTime != null && message.hasOwnProperty("backupCreateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.backupCreateTime); + if (error) + return "backupCreateTime." + error; + } + return null; + }; + + /** + * Creates a BackupDisasterRecovery message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.BackupDisasterRecovery} BackupDisasterRecovery + */ + BackupDisasterRecovery.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.BackupDisasterRecovery) + return object; + var message = new $root.google.cloud.securitycenter.v1.BackupDisasterRecovery(); + if (object.backupTemplate != null) + message.backupTemplate = String(object.backupTemplate); + if (object.policies) { + if (!Array.isArray(object.policies)) + throw TypeError(".google.cloud.securitycenter.v1.BackupDisasterRecovery.policies: array expected"); + message.policies = []; + for (var i = 0; i < object.policies.length; ++i) + message.policies[i] = String(object.policies[i]); + } + if (object.host != null) + message.host = String(object.host); + if (object.applications) { + if (!Array.isArray(object.applications)) + throw TypeError(".google.cloud.securitycenter.v1.BackupDisasterRecovery.applications: array expected"); + message.applications = []; + for (var i = 0; i < object.applications.length; ++i) + message.applications[i] = String(object.applications[i]); + } + if (object.storagePool != null) + message.storagePool = String(object.storagePool); + if (object.policyOptions) { + if (!Array.isArray(object.policyOptions)) + throw TypeError(".google.cloud.securitycenter.v1.BackupDisasterRecovery.policyOptions: array expected"); + message.policyOptions = []; + for (var i = 0; i < object.policyOptions.length; ++i) + message.policyOptions[i] = String(object.policyOptions[i]); + } + if (object.profile != null) + message.profile = String(object.profile); + if (object.appliance != null) + message.appliance = String(object.appliance); + if (object.backupType != null) + message.backupType = String(object.backupType); + if (object.backupCreateTime != null) { + if (typeof object.backupCreateTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.BackupDisasterRecovery.backupCreateTime: object expected"); + message.backupCreateTime = $root.google.protobuf.Timestamp.fromObject(object.backupCreateTime); + } + return message; + }; + + /** + * Creates a plain object from a BackupDisasterRecovery message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {google.cloud.securitycenter.v1.BackupDisasterRecovery} message BackupDisasterRecovery + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackupDisasterRecovery.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.policies = []; + object.applications = []; + object.policyOptions = []; + } + if (options.defaults) { + object.backupTemplate = ""; + object.host = ""; + object.storagePool = ""; + object.profile = ""; + object.appliance = ""; + object.backupType = ""; + object.backupCreateTime = null; + } + if (message.backupTemplate != null && message.hasOwnProperty("backupTemplate")) + object.backupTemplate = message.backupTemplate; + if (message.policies && message.policies.length) { + object.policies = []; + for (var j = 0; j < message.policies.length; ++j) + object.policies[j] = message.policies[j]; + } + if (message.host != null && message.hasOwnProperty("host")) + object.host = message.host; + if (message.applications && message.applications.length) { + object.applications = []; + for (var j = 0; j < message.applications.length; ++j) + object.applications[j] = message.applications[j]; + } + if (message.storagePool != null && message.hasOwnProperty("storagePool")) + object.storagePool = message.storagePool; + if (message.policyOptions && message.policyOptions.length) { + object.policyOptions = []; + for (var j = 0; j < message.policyOptions.length; ++j) + object.policyOptions[j] = message.policyOptions[j]; + } + if (message.profile != null && message.hasOwnProperty("profile")) + object.profile = message.profile; + if (message.appliance != null && message.hasOwnProperty("appliance")) + object.appliance = message.appliance; + if (message.backupType != null && message.hasOwnProperty("backupType")) + object.backupType = message.backupType; + if (message.backupCreateTime != null && message.hasOwnProperty("backupCreateTime")) + object.backupCreateTime = $root.google.protobuf.Timestamp.toObject(message.backupCreateTime, options); + return object; + }; + + /** + * Converts this BackupDisasterRecovery to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @instance + * @returns {Object.} JSON object + */ + BackupDisasterRecovery.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackupDisasterRecovery + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.BackupDisasterRecovery + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackupDisasterRecovery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.BackupDisasterRecovery"; + }; + + return BackupDisasterRecovery; + })(); + v1.BigQueryExport = (function() { /** @@ -7950,6 +8643,8 @@ * @property {google.cloud.securitycenter.v1.ICloudDlpInspection|null} [cloudDlpInspection] Finding cloudDlpInspection * @property {google.cloud.securitycenter.v1.ICloudDlpDataProfile|null} [cloudDlpDataProfile] Finding cloudDlpDataProfile * @property {google.cloud.securitycenter.v1.IKernelRootkit|null} [kernelRootkit] Finding kernelRootkit + * @property {google.cloud.securitycenter.v1.IApplication|null} [application] Finding application + * @property {google.cloud.securitycenter.v1.IBackupDisasterRecovery|null} [backupDisasterRecovery] Finding backupDisasterRecovery */ /** @@ -8280,6 +8975,22 @@ */ Finding.prototype.kernelRootkit = null; + /** + * Finding application. + * @member {google.cloud.securitycenter.v1.IApplication|null|undefined} application + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.application = null; + + /** + * Finding backupDisasterRecovery. + * @member {google.cloud.securitycenter.v1.IBackupDisasterRecovery|null|undefined} backupDisasterRecovery + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.backupDisasterRecovery = null; + /** * Creates a new Finding instance using the specified properties. * @function create @@ -8395,6 +9106,10 @@ $root.google.cloud.securitycenter.v1.CloudDlpDataProfile.encode(message.cloudDlpDataProfile, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim(); if (message.kernelRootkit != null && Object.hasOwnProperty.call(message, "kernelRootkit")) $root.google.cloud.securitycenter.v1.KernelRootkit.encode(message.kernelRootkit, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.application != null && Object.hasOwnProperty.call(message, "application")) + $root.google.cloud.securitycenter.v1.Application.encode(message.application, writer.uint32(/* id 53, wireType 2 =*/426).fork()).ldelim(); + if (message.backupDisasterRecovery != null && Object.hasOwnProperty.call(message, "backupDisasterRecovery")) + $root.google.cloud.securitycenter.v1.BackupDisasterRecovery.encode(message.backupDisasterRecovery, writer.uint32(/* id 55, wireType 2 =*/442).fork()).ldelim(); return writer; }; @@ -8650,6 +9365,14 @@ message.kernelRootkit = $root.google.cloud.securitycenter.v1.KernelRootkit.decode(reader, reader.uint32()); break; } + case 53: { + message.application = $root.google.cloud.securitycenter.v1.Application.decode(reader, reader.uint32()); + break; + } + case 55: { + message.backupDisasterRecovery = $root.google.cloud.securitycenter.v1.BackupDisasterRecovery.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -8914,6 +9637,16 @@ if (error) return "kernelRootkit." + error; } + if (message.application != null && message.hasOwnProperty("application")) { + var error = $root.google.cloud.securitycenter.v1.Application.verify(message.application); + if (error) + return "application." + error; + } + if (message.backupDisasterRecovery != null && message.hasOwnProperty("backupDisasterRecovery")) { + var error = $root.google.cloud.securitycenter.v1.BackupDisasterRecovery.verify(message.backupDisasterRecovery); + if (error) + return "backupDisasterRecovery." + error; + } return null; }; @@ -9215,6 +9948,16 @@ throw TypeError(".google.cloud.securitycenter.v1.Finding.kernelRootkit: object expected"); message.kernelRootkit = $root.google.cloud.securitycenter.v1.KernelRootkit.fromObject(object.kernelRootkit); } + if (object.application != null) { + if (typeof object.application !== "object") + throw TypeError(".google.cloud.securitycenter.v1.Finding.application: object expected"); + message.application = $root.google.cloud.securitycenter.v1.Application.fromObject(object.application); + } + if (object.backupDisasterRecovery != null) { + if (typeof object.backupDisasterRecovery !== "object") + throw TypeError(".google.cloud.securitycenter.v1.Finding.backupDisasterRecovery: object expected"); + message.backupDisasterRecovery = $root.google.cloud.securitycenter.v1.BackupDisasterRecovery.fromObject(object.backupDisasterRecovery); + } return message; }; @@ -9274,6 +10017,8 @@ object.cloudDlpInspection = null; object.cloudDlpDataProfile = null; object.kernelRootkit = null; + object.application = null; + object.backupDisasterRecovery = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -9379,6 +10124,10 @@ object.cloudDlpDataProfile = $root.google.cloud.securitycenter.v1.CloudDlpDataProfile.toObject(message.cloudDlpDataProfile, options); if (message.kernelRootkit != null && message.hasOwnProperty("kernelRootkit")) object.kernelRootkit = $root.google.cloud.securitycenter.v1.KernelRootkit.toObject(message.kernelRootkit, options); + if (message.application != null && message.hasOwnProperty("application")) + object.application = $root.google.cloud.securitycenter.v1.Application.toObject(message.application, options); + if (message.backupDisasterRecovery != null && message.hasOwnProperty("backupDisasterRecovery")) + object.backupDisasterRecovery = $root.google.cloud.securitycenter.v1.BackupDisasterRecovery.toObject(message.backupDisasterRecovery, options); return object; }; diff --git a/packages/google-cloud-securitycenter/protos/protos.json b/packages/google-cloud-securitycenter/protos/protos.json index 585625753123..19c57b1be6f1 100644 --- a/packages/google-cloud-securitycenter/protos/protos.json +++ b/packages/google-cloud-securitycenter/protos/protos.json @@ -88,6 +88,18 @@ } } }, + "Application": { + "fields": { + "baseUri": { + "type": "string", + "id": 1 + }, + "fullUri": { + "type": "string", + "id": 2 + } + } + }, "Asset": { "options": { "(google.api.resource).type": "securitycenter.googleapis.com/Asset", @@ -214,6 +226,53 @@ } } }, + "BackupDisasterRecovery": { + "fields": { + "backupTemplate": { + "type": "string", + "id": 1 + }, + "policies": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "host": { + "type": "string", + "id": 3 + }, + "applications": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "storagePool": { + "type": "string", + "id": 5 + }, + "policyOptions": { + "rule": "repeated", + "type": "string", + "id": 6 + }, + "profile": { + "type": "string", + "id": 7 + }, + "appliance": { + "type": "string", + "id": 8 + }, + "backupType": { + "type": "string", + "id": 9 + }, + "backupCreateTime": { + "type": "google.protobuf.Timestamp", + "id": 10 + } + } + }, "BigQueryExport": { "options": { "(google.api.resource).type": "securitycenter.googleapis.com/BigQueryExport", @@ -822,6 +881,14 @@ "kernelRootkit": { "type": "KernelRootkit", "id": 50 + }, + "application": { + "type": "Application", + "id": 53 + }, + "backupDisasterRecovery": { + "type": "BackupDisasterRecovery", + "id": 55 } }, "nested": { diff --git a/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json b/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json index 445bd4476f41..6ac06b8c2a4c 100644 --- a/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json +++ b/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json @@ -1,6 +1,8 @@ [ "../../protos/google/cloud/securitycenter/v1/access.proto", + "../../protos/google/cloud/securitycenter/v1/application.proto", "../../protos/google/cloud/securitycenter/v1/asset.proto", + "../../protos/google/cloud/securitycenter/v1/backup_disaster_recovery.proto", "../../protos/google/cloud/securitycenter/v1/bigquery_export.proto", "../../protos/google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto", "../../protos/google/cloud/securitycenter/v1/cloud_dlp_inspection.proto", From ff8ef66a10c3c78c941299eddb3ce79b09b91d14 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:27:53 -0800 Subject: [PATCH 07/19] feat: [sql] A new field `threads` is added to message `.google.cloud.sql.v1beta4.ExportContext` (#5048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: A new value `SUBSCRIPTION_CALCULATION_STATUS` is added to enum `SqlExternalSyncSettingErrorType` feat: A new field `threads` is added to message `.google.cloud.sql.v1.ExportContext` feat: A new field `parallel` is added to message `.google.cloud.sql.v1.ExportContext` docs: A comment for enum `SqlNetworkArchitecture` is changed docs: A comment for enum value `NEW_NETWORK_ARCHITECTURE` in enum `SqlNetworkArchitecture` is changed docs: A comment for enum value `OLD_NETWORK_ARCHITECTURE` in enum `SqlNetworkArchitecture` is changed PiperOrigin-RevId: 606684808 Source-Link: https://github.com/googleapis/googleapis/commit/cfb7db9815f7f0a1f821295d1bdd1ef2c582a02f Source-Link: https://github.com/googleapis/googleapis-gen/commit/71573b04552d08da6476603fdec17d9816e391af Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiNzE1NzNiMDQ1NTJkMDhkYTY0NzY2MDNmZGVjMTdkOTgxNmUzOTFhZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: A new field `threads` is added to message `.google.cloud.sql.v1beta4.ExportContext` feat: A new field `parallel` is added to message `.google.cloud.sql.v1beta4.ExportContext` feat: A new value `SUBSCRIPTION_CALCULATION_STATUS` is added to enum `SqlExternalSyncSettingErrorType` docs: A comment for enum `SqlNetworkArchitecture` is changed docs: A comment for enum value `NEW_NETWORK_ARCHITECTURE` in enum `SqlNetworkArchitecture` is changed docs: A comment for enum value `OLD_NETWORK_ARCHITECTURE` in enum `SqlNetworkArchitecture` is changed PiperOrigin-RevId: 606687662 Source-Link: https://github.com/googleapis/googleapis/commit/052235f2d7ad52b7b43d559368d1510c6c07db6f Source-Link: https://github.com/googleapis/googleapis-gen/commit/c98c99b7b141f8819a9c5f2e54fcba9d0e3a16c7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiYzk4Yzk5YjdiMTQxZjg4MTlhOWM1ZjJlNTRmY2JhOWQwZTNhMTZjNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/sql/v1/cloud_sql_instances.proto | 10 +- .../cloud/sql/v1/cloud_sql_resources.proto | 8 ++ .../sql/v1beta4/cloud_sql_resources.proto | 18 ++- packages/google-cloud-sql/protos/protos.d.ts | 30 ++++- packages/google-cloud-sql/protos/protos.js | 126 ++++++++++++++++++ packages/google-cloud-sql/protos/protos.json | 34 ++++- 6 files changed, 216 insertions(+), 10 deletions(-) diff --git a/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_instances.proto b/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_instances.proto index 0eb0270caa69..b731e9d91a24 100644 --- a/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_instances.proto +++ b/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_instances.proto @@ -1018,14 +1018,14 @@ message DatabaseInstance { optional int32 sql_min_recommended_increase_size_gb = 2; } - // The current SQL network architecture for the instance. + // The SQL network architecture for the instance. enum SqlNetworkArchitecture { SQL_NETWORK_ARCHITECTURE_UNSPECIFIED = 0; - // Instance is a Tenancy Unit (TU) instance. + // The instance uses the new network architecture. NEW_NETWORK_ARCHITECTURE = 1; - // Instance is an Umbrella instance. + // The instance uses the old network architecture. OLD_NETWORK_ARCHITECTURE = 2; } @@ -1439,6 +1439,10 @@ message SqlExternalSyncSettingError { // Unable to verify definers on the source for MySQL. UNABLE_TO_VERIFY_DEFINERS = 39; + + // If a time out occurs while the subscription counts are calculated, then + // this value is set to 1. Otherwise, this value is set to 2. + SUBSCRIPTION_CALCULATION_STATUS = 40; } // Can be `sql#externalSyncSettingError` or diff --git a/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_resources.proto b/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_resources.proto index 3cb1924ce75e..a40ff6ddaf04 100644 --- a/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_resources.proto +++ b/packages/google-cloud-sql/protos/google/cloud/sql/v1/cloud_sql_resources.proto @@ -328,6 +328,14 @@ message ExportContext { google.protobuf.BoolValue schema_only = 2; MysqlExportOptions mysql_export_options = 3; + + // Optional. The number of threads to use for parallel export. + google.protobuf.Int32Value threads = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the export should be parallel. + google.protobuf.BoolValue parallel = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Options for exporting BAK files (SQL Server-only) diff --git a/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto b/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto index b3f29245c6e0..9f753d163c6b 100644 --- a/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto +++ b/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto @@ -440,14 +440,14 @@ message DatabaseInstance { optional int32 sql_min_recommended_increase_size_gb = 2; } - // The current SQL network architecture for the instance. + // The SQL network architecture for the instance. enum SqlNetworkArchitecture { SQL_NETWORK_ARCHITECTURE_UNSPECIFIED = 0; - // Instance is a Tenancy Unit (TU) instance. + // The instance uses the new network architecture. NEW_NETWORK_ARCHITECTURE = 1; - // Instance is an Umbrella instance. + // The instance uses the old network architecture. OLD_NETWORK_ARCHITECTURE = 2; } @@ -761,6 +761,14 @@ message ExportContext { google.protobuf.BoolValue schema_only = 2; MysqlExportOptions mysql_export_options = 3; + + // Optional. The number of threads to use for parallel export. + google.protobuf.Int32Value threads = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the export should be parallel. + google.protobuf.BoolValue parallel = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Options for exporting BAK files (SQL Server-only) @@ -1256,6 +1264,10 @@ message SqlExternalSyncSettingError { // Unable to verify definers on the source for MySQL. UNABLE_TO_VERIFY_DEFINERS = 39; + + // If a time out occurs while the subscription counts are calculated, then + // this value is set to 1. Otherwise, this value is set to 2. + SUBSCRIPTION_CALCULATION_STATUS = 40; } // Can be `sql#externalSyncSettingError` or diff --git a/packages/google-cloud-sql/protos/protos.d.ts b/packages/google-cloud-sql/protos/protos.d.ts index 5b1908573796..30d660d74a90 100644 --- a/packages/google-cloud-sql/protos/protos.d.ts +++ b/packages/google-cloud-sql/protos/protos.d.ts @@ -2794,6 +2794,12 @@ export namespace google { /** SqlExportOptions mysqlExportOptions */ mysqlExportOptions?: (google.cloud.sql.v1.ExportContext.SqlExportOptions.IMysqlExportOptions|null); + + /** SqlExportOptions threads */ + threads?: (google.protobuf.IInt32Value|null); + + /** SqlExportOptions parallel */ + parallel?: (google.protobuf.IBoolValue|null); } /** Represents a SqlExportOptions. */ @@ -2814,6 +2820,12 @@ export namespace google { /** SqlExportOptions mysqlExportOptions. */ public mysqlExportOptions?: (google.cloud.sql.v1.ExportContext.SqlExportOptions.IMysqlExportOptions|null); + /** SqlExportOptions threads. */ + public threads?: (google.protobuf.IInt32Value|null); + + /** SqlExportOptions parallel. */ + public parallel?: (google.protobuf.IBoolValue|null); + /** * Creates a new SqlExportOptions instance using the specified properties. * @param [properties] Properties to set @@ -16189,7 +16201,8 @@ export namespace google { TURN_ON_PITR_AFTER_PROMOTE = 36, INCOMPATIBLE_DATABASE_MINOR_VERSION = 37, SOURCE_MAX_SUBSCRIPTIONS = 38, - UNABLE_TO_VERIFY_DEFINERS = 39 + UNABLE_TO_VERIFY_DEFINERS = 39, + SUBSCRIPTION_CALCULATION_STATUS = 40 } } @@ -29646,6 +29659,12 @@ export namespace google { /** SqlExportOptions mysqlExportOptions */ mysqlExportOptions?: (google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.IMysqlExportOptions|null); + + /** SqlExportOptions threads */ + threads?: (google.protobuf.IInt32Value|null); + + /** SqlExportOptions parallel */ + parallel?: (google.protobuf.IBoolValue|null); } /** Represents a SqlExportOptions. */ @@ -29666,6 +29685,12 @@ export namespace google { /** SqlExportOptions mysqlExportOptions. */ public mysqlExportOptions?: (google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.IMysqlExportOptions|null); + /** SqlExportOptions threads. */ + public threads?: (google.protobuf.IInt32Value|null); + + /** SqlExportOptions parallel. */ + public parallel?: (google.protobuf.IBoolValue|null); + /** * Creates a new SqlExportOptions instance using the specified properties. * @param [properties] Properties to set @@ -32500,7 +32525,8 @@ export namespace google { TURN_ON_PITR_AFTER_PROMOTE = 36, INCOMPATIBLE_DATABASE_MINOR_VERSION = 37, SOURCE_MAX_SUBSCRIPTIONS = 38, - UNABLE_TO_VERIFY_DEFINERS = 39 + UNABLE_TO_VERIFY_DEFINERS = 39, + SUBSCRIPTION_CALCULATION_STATUS = 40 } } diff --git a/packages/google-cloud-sql/protos/protos.js b/packages/google-cloud-sql/protos/protos.js index a5147c0b8afa..12fe7a3b334e 100644 --- a/packages/google-cloud-sql/protos/protos.js +++ b/packages/google-cloud-sql/protos/protos.js @@ -6979,6 +6979,8 @@ * @property {Array.|null} [tables] SqlExportOptions tables * @property {google.protobuf.IBoolValue|null} [schemaOnly] SqlExportOptions schemaOnly * @property {google.cloud.sql.v1.ExportContext.SqlExportOptions.IMysqlExportOptions|null} [mysqlExportOptions] SqlExportOptions mysqlExportOptions + * @property {google.protobuf.IInt32Value|null} [threads] SqlExportOptions threads + * @property {google.protobuf.IBoolValue|null} [parallel] SqlExportOptions parallel */ /** @@ -7021,6 +7023,22 @@ */ SqlExportOptions.prototype.mysqlExportOptions = null; + /** + * SqlExportOptions threads. + * @member {google.protobuf.IInt32Value|null|undefined} threads + * @memberof google.cloud.sql.v1.ExportContext.SqlExportOptions + * @instance + */ + SqlExportOptions.prototype.threads = null; + + /** + * SqlExportOptions parallel. + * @member {google.protobuf.IBoolValue|null|undefined} parallel + * @memberof google.cloud.sql.v1.ExportContext.SqlExportOptions + * @instance + */ + SqlExportOptions.prototype.parallel = null; + /** * Creates a new SqlExportOptions instance using the specified properties. * @function create @@ -7052,6 +7070,10 @@ $root.google.protobuf.BoolValue.encode(message.schemaOnly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.mysqlExportOptions != null && Object.hasOwnProperty.call(message, "mysqlExportOptions")) $root.google.cloud.sql.v1.ExportContext.SqlExportOptions.MysqlExportOptions.encode(message.mysqlExportOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.threads != null && Object.hasOwnProperty.call(message, "threads")) + $root.google.protobuf.Int32Value.encode(message.threads, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parallel != null && Object.hasOwnProperty.call(message, "parallel")) + $root.google.protobuf.BoolValue.encode(message.parallel, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -7100,6 +7122,14 @@ message.mysqlExportOptions = $root.google.cloud.sql.v1.ExportContext.SqlExportOptions.MysqlExportOptions.decode(reader, reader.uint32()); break; } + case 4: { + message.threads = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.parallel = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -7152,6 +7182,16 @@ if (error) return "mysqlExportOptions." + error; } + if (message.threads != null && message.hasOwnProperty("threads")) { + var error = $root.google.protobuf.Int32Value.verify(message.threads); + if (error) + return "threads." + error; + } + if (message.parallel != null && message.hasOwnProperty("parallel")) { + var error = $root.google.protobuf.BoolValue.verify(message.parallel); + if (error) + return "parallel." + error; + } return null; }; @@ -7184,6 +7224,16 @@ throw TypeError(".google.cloud.sql.v1.ExportContext.SqlExportOptions.mysqlExportOptions: object expected"); message.mysqlExportOptions = $root.google.cloud.sql.v1.ExportContext.SqlExportOptions.MysqlExportOptions.fromObject(object.mysqlExportOptions); } + if (object.threads != null) { + if (typeof object.threads !== "object") + throw TypeError(".google.cloud.sql.v1.ExportContext.SqlExportOptions.threads: object expected"); + message.threads = $root.google.protobuf.Int32Value.fromObject(object.threads); + } + if (object.parallel != null) { + if (typeof object.parallel !== "object") + throw TypeError(".google.cloud.sql.v1.ExportContext.SqlExportOptions.parallel: object expected"); + message.parallel = $root.google.protobuf.BoolValue.fromObject(object.parallel); + } return message; }; @@ -7205,6 +7255,8 @@ if (options.defaults) { object.schemaOnly = null; object.mysqlExportOptions = null; + object.threads = null; + object.parallel = null; } if (message.tables && message.tables.length) { object.tables = []; @@ -7215,6 +7267,10 @@ object.schemaOnly = $root.google.protobuf.BoolValue.toObject(message.schemaOnly, options); if (message.mysqlExportOptions != null && message.hasOwnProperty("mysqlExportOptions")) object.mysqlExportOptions = $root.google.cloud.sql.v1.ExportContext.SqlExportOptions.MysqlExportOptions.toObject(message.mysqlExportOptions, options); + if (message.threads != null && message.hasOwnProperty("threads")) + object.threads = $root.google.protobuf.Int32Value.toObject(message.threads, options); + if (message.parallel != null && message.hasOwnProperty("parallel")) + object.parallel = $root.google.protobuf.BoolValue.toObject(message.parallel, options); return object; }; @@ -40555,6 +40611,7 @@ case 37: case 38: case 39: + case 40: break; } if (message.detail != null && message.hasOwnProperty("detail")) @@ -40744,6 +40801,10 @@ case 39: message.type = 39; break; + case "SUBSCRIPTION_CALCULATION_STATUS": + case 40: + message.type = 40; + break; } if (object.detail != null) message.detail = String(object.detail); @@ -40847,6 +40908,7 @@ * @property {number} INCOMPATIBLE_DATABASE_MINOR_VERSION=37 INCOMPATIBLE_DATABASE_MINOR_VERSION value * @property {number} SOURCE_MAX_SUBSCRIPTIONS=38 SOURCE_MAX_SUBSCRIPTIONS value * @property {number} UNABLE_TO_VERIFY_DEFINERS=39 UNABLE_TO_VERIFY_DEFINERS value + * @property {number} SUBSCRIPTION_CALCULATION_STATUS=40 SUBSCRIPTION_CALCULATION_STATUS value */ SqlExternalSyncSettingError.SqlExternalSyncSettingErrorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -40890,6 +40952,7 @@ values[valuesById[37] = "INCOMPATIBLE_DATABASE_MINOR_VERSION"] = 37; values[valuesById[38] = "SOURCE_MAX_SUBSCRIPTIONS"] = 38; values[valuesById[39] = "UNABLE_TO_VERIFY_DEFINERS"] = 39; + values[valuesById[40] = "SUBSCRIPTION_CALCULATION_STATUS"] = 40; return values; })(); @@ -72909,6 +72972,8 @@ * @property {Array.|null} [tables] SqlExportOptions tables * @property {google.protobuf.IBoolValue|null} [schemaOnly] SqlExportOptions schemaOnly * @property {google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.IMysqlExportOptions|null} [mysqlExportOptions] SqlExportOptions mysqlExportOptions + * @property {google.protobuf.IInt32Value|null} [threads] SqlExportOptions threads + * @property {google.protobuf.IBoolValue|null} [parallel] SqlExportOptions parallel */ /** @@ -72951,6 +73016,22 @@ */ SqlExportOptions.prototype.mysqlExportOptions = null; + /** + * SqlExportOptions threads. + * @member {google.protobuf.IInt32Value|null|undefined} threads + * @memberof google.cloud.sql.v1beta4.ExportContext.SqlExportOptions + * @instance + */ + SqlExportOptions.prototype.threads = null; + + /** + * SqlExportOptions parallel. + * @member {google.protobuf.IBoolValue|null|undefined} parallel + * @memberof google.cloud.sql.v1beta4.ExportContext.SqlExportOptions + * @instance + */ + SqlExportOptions.prototype.parallel = null; + /** * Creates a new SqlExportOptions instance using the specified properties. * @function create @@ -72982,6 +73063,10 @@ $root.google.protobuf.BoolValue.encode(message.schemaOnly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.mysqlExportOptions != null && Object.hasOwnProperty.call(message, "mysqlExportOptions")) $root.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions.encode(message.mysqlExportOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.threads != null && Object.hasOwnProperty.call(message, "threads")) + $root.google.protobuf.Int32Value.encode(message.threads, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parallel != null && Object.hasOwnProperty.call(message, "parallel")) + $root.google.protobuf.BoolValue.encode(message.parallel, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -73030,6 +73115,14 @@ message.mysqlExportOptions = $root.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions.decode(reader, reader.uint32()); break; } + case 4: { + message.threads = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.parallel = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -73082,6 +73175,16 @@ if (error) return "mysqlExportOptions." + error; } + if (message.threads != null && message.hasOwnProperty("threads")) { + var error = $root.google.protobuf.Int32Value.verify(message.threads); + if (error) + return "threads." + error; + } + if (message.parallel != null && message.hasOwnProperty("parallel")) { + var error = $root.google.protobuf.BoolValue.verify(message.parallel); + if (error) + return "parallel." + error; + } return null; }; @@ -73114,6 +73217,16 @@ throw TypeError(".google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.mysqlExportOptions: object expected"); message.mysqlExportOptions = $root.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions.fromObject(object.mysqlExportOptions); } + if (object.threads != null) { + if (typeof object.threads !== "object") + throw TypeError(".google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.threads: object expected"); + message.threads = $root.google.protobuf.Int32Value.fromObject(object.threads); + } + if (object.parallel != null) { + if (typeof object.parallel !== "object") + throw TypeError(".google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.parallel: object expected"); + message.parallel = $root.google.protobuf.BoolValue.fromObject(object.parallel); + } return message; }; @@ -73135,6 +73248,8 @@ if (options.defaults) { object.schemaOnly = null; object.mysqlExportOptions = null; + object.threads = null; + object.parallel = null; } if (message.tables && message.tables.length) { object.tables = []; @@ -73145,6 +73260,10 @@ object.schemaOnly = $root.google.protobuf.BoolValue.toObject(message.schemaOnly, options); if (message.mysqlExportOptions != null && message.hasOwnProperty("mysqlExportOptions")) object.mysqlExportOptions = $root.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions.toObject(message.mysqlExportOptions, options); + if (message.threads != null && message.hasOwnProperty("threads")) + object.threads = $root.google.protobuf.Int32Value.toObject(message.threads, options); + if (message.parallel != null && message.hasOwnProperty("parallel")) + object.parallel = $root.google.protobuf.BoolValue.toObject(message.parallel, options); return object; }; @@ -80020,6 +80139,7 @@ case 37: case 38: case 39: + case 40: break; } if (message.detail != null && message.hasOwnProperty("detail")) @@ -80209,6 +80329,10 @@ case 39: message.type = 39; break; + case "SUBSCRIPTION_CALCULATION_STATUS": + case 40: + message.type = 40; + break; } if (object.detail != null) message.detail = String(object.detail); @@ -80312,6 +80436,7 @@ * @property {number} INCOMPATIBLE_DATABASE_MINOR_VERSION=37 INCOMPATIBLE_DATABASE_MINOR_VERSION value * @property {number} SOURCE_MAX_SUBSCRIPTIONS=38 SOURCE_MAX_SUBSCRIPTIONS value * @property {number} UNABLE_TO_VERIFY_DEFINERS=39 UNABLE_TO_VERIFY_DEFINERS value + * @property {number} SUBSCRIPTION_CALCULATION_STATUS=40 SUBSCRIPTION_CALCULATION_STATUS value */ SqlExternalSyncSettingError.SqlExternalSyncSettingErrorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -80355,6 +80480,7 @@ values[valuesById[37] = "INCOMPATIBLE_DATABASE_MINOR_VERSION"] = 37; values[valuesById[38] = "SOURCE_MAX_SUBSCRIPTIONS"] = 38; values[valuesById[39] = "UNABLE_TO_VERIFY_DEFINERS"] = 39; + values[valuesById[40] = "SUBSCRIPTION_CALCULATION_STATUS"] = 40; return values; })(); diff --git a/packages/google-cloud-sql/protos/protos.json b/packages/google-cloud-sql/protos/protos.json index 08c7f6787e42..74c7be6cc13b 100644 --- a/packages/google-cloud-sql/protos/protos.json +++ b/packages/google-cloud-sql/protos/protos.json @@ -632,6 +632,20 @@ "mysqlExportOptions": { "type": "MysqlExportOptions", "id": 3 + }, + "threads": { + "type": "google.protobuf.Int32Value", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parallel": { + "type": "google.protobuf.BoolValue", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -3980,7 +3994,8 @@ "TURN_ON_PITR_AFTER_PROMOTE": 36, "INCOMPATIBLE_DATABASE_MINOR_VERSION": 37, "SOURCE_MAX_SUBSCRIPTIONS": 38, - "UNABLE_TO_VERIFY_DEFINERS": 39 + "UNABLE_TO_VERIFY_DEFINERS": 39, + "SUBSCRIPTION_CALCULATION_STATUS": 40 } } } @@ -7332,6 +7347,20 @@ "mysqlExportOptions": { "type": "MysqlExportOptions", "id": 3 + }, + "threads": { + "type": "google.protobuf.Int32Value", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parallel": { + "type": "google.protobuf.BoolValue", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -7795,7 +7824,8 @@ "TURN_ON_PITR_AFTER_PROMOTE": 36, "INCOMPATIBLE_DATABASE_MINOR_VERSION": 37, "SOURCE_MAX_SUBSCRIPTIONS": 38, - "UNABLE_TO_VERIFY_DEFINERS": 39 + "UNABLE_TO_VERIFY_DEFINERS": 39, + "SUBSCRIPTION_CALCULATION_STATUS": 40 } } } From 5c58e553b1d0411715e160754787ded4b33d099c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:28:10 -0800 Subject: [PATCH 08/19] feat: [recaptchaenterprise] Add an API method for reordering firewall policies (#5050) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add an API method for reordering firewall policies PiperOrigin-RevId: 607015517 Source-Link: https://github.com/googleapis/googleapis/commit/c43e216cc37c82f16b829f583fd9f6864e34c2c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/71c27adc96b0c80093b4a413815bd93943196bb2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6IjcxYzI3YWRjOTZiMGM4MDA5M2I0YTQxMzgxNWJkOTM5NDMxOTZiYjIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../README.md | 1 + .../v1/recaptchaenterprise.proto | 34 ++ .../protos/protos.d.ts | 215 +++++++++ .../protos/protos.js | 451 ++++++++++++++++++ .../protos/protos.json | 44 ++ .../samples/README.md | 18 + ...prise_service.reorder_firewall_policies.js | 68 +++ ...a_google.cloud.recaptchaenterprise.v1.json | 44 ++ .../src/v1/gapic_metadata.json | 10 + .../v1/recaptcha_enterprise_service_client.ts | 105 ++++ ...tcha_enterprise_service_client_config.json | 4 + .../gapic_recaptcha_enterprise_service_v1.ts | 149 ++++++ 12 files changed, 1143 insertions(+) create mode 100644 packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js diff --git a/packages/google-cloud-recaptchaenterprise/README.md b/packages/google-cloud-recaptchaenterprise/README.md index 41542d9bb4bd..3645f34fd34e 100644 --- a/packages/google-cloud-recaptchaenterprise/README.md +++ b/packages/google-cloud-recaptchaenterprise/README.md @@ -126,6 +126,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Recaptcha_enterprise_service.list_related_account_group_memberships | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | | Recaptcha_enterprise_service.list_related_account_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | | Recaptcha_enterprise_service.migrate_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | +| Recaptcha_enterprise_service.reorder_firewall_policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | | Recaptcha_enterprise_service.retrieve_legacy_secret_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | | Recaptcha_enterprise_service.search_related_account_group_memberships | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | | Recaptcha_enterprise_service.update_firewall_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_firewall_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_firewall_policy.js,packages/google-cloud-recaptchaenterprise/samples/README.md) | diff --git a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index 20b40c5d4212..e01e13f71792 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -183,6 +183,16 @@ service RecaptchaEnterpriseService { option (google.api.method_signature) = "name"; } + // Reorders all firewall policies. + rpc ReorderFirewallPolicies(ReorderFirewallPoliciesRequest) + returns (ReorderFirewallPoliciesResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/firewallpolicies:reorder" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + // List groups of related accounts. rpc ListRelatedAccountGroups(ListRelatedAccountGroupsRequest) returns (ListRelatedAccountGroupsResponse) { @@ -1279,6 +1289,30 @@ message DeleteFirewallPolicyRequest { ]; } +// The reorder firewall policies request message. +message ReorderFirewallPoliciesRequest { + // Required. The name of the project to list the policies for, in the format + // `projects/{project}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. A list containing all policy names, in the new order. Each name + // is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recaptchaenterprise.googleapis.com/FirewallPolicy" + } + ]; +} + +// The reorder firewall policies response message. +message ReorderFirewallPoliciesResponse {} + // The migrate key request message. message MigrateKeyRequest { // Required. The name of the key to be migrated, in the format diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts b/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts index aaed32431d85..d7acd604c89c 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts @@ -256,6 +256,20 @@ export namespace google { */ public deleteFirewallPolicy(request: google.cloud.recaptchaenterprise.v1.IDeleteFirewallPolicyRequest): Promise; + /** + * Calls ReorderFirewallPolicies. + * @param request ReorderFirewallPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReorderFirewallPoliciesResponse + */ + public reorderFirewallPolicies(request: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, callback: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPoliciesCallback): void; + + /** + * Calls ReorderFirewallPolicies. + * @param request ReorderFirewallPoliciesRequest message or plain object + * @returns Promise + */ + public reorderFirewallPolicies(request: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest): Promise; + /** * Calls ListRelatedAccountGroups. * @param request ListRelatedAccountGroupsRequest message or plain object @@ -406,6 +420,13 @@ export namespace google { */ type DeleteFirewallPolicyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|reorderFirewallPolicies}. + * @param error Error, if any + * @param [response] ReorderFirewallPoliciesResponse + */ + type ReorderFirewallPoliciesCallback = (error: (Error|null), response?: google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse) => void; + /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|listRelatedAccountGroups}. * @param error Error, if any @@ -4919,6 +4940,200 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReorderFirewallPoliciesRequest. */ + interface IReorderFirewallPoliciesRequest { + + /** ReorderFirewallPoliciesRequest parent */ + parent?: (string|null); + + /** ReorderFirewallPoliciesRequest names */ + names?: (string[]|null); + } + + /** Represents a ReorderFirewallPoliciesRequest. */ + class ReorderFirewallPoliciesRequest implements IReorderFirewallPoliciesRequest { + + /** + * Constructs a new ReorderFirewallPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest); + + /** ReorderFirewallPoliciesRequest parent. */ + public parent: string; + + /** ReorderFirewallPoliciesRequest names. */ + public names: string[]; + + /** + * Creates a new ReorderFirewallPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReorderFirewallPoliciesRequest instance + */ + public static create(properties?: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest; + + /** + * Encodes the specified ReorderFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest.verify|verify} messages. + * @param message ReorderFirewallPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReorderFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest.verify|verify} messages. + * @param message ReorderFirewallPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReorderFirewallPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReorderFirewallPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest; + + /** + * Decodes a ReorderFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReorderFirewallPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest; + + /** + * Verifies a ReorderFirewallPoliciesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReorderFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReorderFirewallPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest; + + /** + * Creates a plain object from a ReorderFirewallPoliciesRequest message. Also converts values to other types if specified. + * @param message ReorderFirewallPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReorderFirewallPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReorderFirewallPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReorderFirewallPoliciesResponse. */ + interface IReorderFirewallPoliciesResponse { + } + + /** Represents a ReorderFirewallPoliciesResponse. */ + class ReorderFirewallPoliciesResponse implements IReorderFirewallPoliciesResponse { + + /** + * Constructs a new ReorderFirewallPoliciesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse); + + /** + * Creates a new ReorderFirewallPoliciesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReorderFirewallPoliciesResponse instance + */ + public static create(properties?: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse; + + /** + * Encodes the specified ReorderFirewallPoliciesResponse message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse.verify|verify} messages. + * @param message ReorderFirewallPoliciesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReorderFirewallPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse.verify|verify} messages. + * @param message ReorderFirewallPoliciesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReorderFirewallPoliciesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReorderFirewallPoliciesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse; + + /** + * Decodes a ReorderFirewallPoliciesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReorderFirewallPoliciesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse; + + /** + * Verifies a ReorderFirewallPoliciesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReorderFirewallPoliciesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReorderFirewallPoliciesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse; + + /** + * Creates a plain object from a ReorderFirewallPoliciesResponse message. Also converts values to other types if specified. + * @param message ReorderFirewallPoliciesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReorderFirewallPoliciesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReorderFirewallPoliciesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a MigrateKeyRequest. */ interface IMigrateKeyRequest { diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.js b/packages/google-cloud-recaptchaenterprise/protos/protos.js index 0226521142b1..a8c91271d639 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.js +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.js @@ -593,6 +593,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|reorderFirewallPolicies}. + * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService + * @typedef ReorderFirewallPoliciesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} [response] ReorderFirewallPoliciesResponse + */ + + /** + * Calls ReorderFirewallPolicies. + * @function reorderFirewallPolicies + * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService + * @instance + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest} request ReorderFirewallPoliciesRequest message or plain object + * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPoliciesCallback} callback Node-style callback called with the error, if any, and ReorderFirewallPoliciesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RecaptchaEnterpriseService.prototype.reorderFirewallPolicies = function reorderFirewallPolicies(request, callback) { + return this.rpcCall(reorderFirewallPolicies, $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest, $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse, request, callback); + }, "name", { value: "ReorderFirewallPolicies" }); + + /** + * Calls ReorderFirewallPolicies. + * @function reorderFirewallPolicies + * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService + * @instance + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest} request ReorderFirewallPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|listRelatedAccountGroups}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService @@ -12064,6 +12097,424 @@ return DeleteFirewallPolicyRequest; })(); + v1.ReorderFirewallPoliciesRequest = (function() { + + /** + * Properties of a ReorderFirewallPoliciesRequest. + * @memberof google.cloud.recaptchaenterprise.v1 + * @interface IReorderFirewallPoliciesRequest + * @property {string|null} [parent] ReorderFirewallPoliciesRequest parent + * @property {Array.|null} [names] ReorderFirewallPoliciesRequest names + */ + + /** + * Constructs a new ReorderFirewallPoliciesRequest. + * @memberof google.cloud.recaptchaenterprise.v1 + * @classdesc Represents a ReorderFirewallPoliciesRequest. + * @implements IReorderFirewallPoliciesRequest + * @constructor + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest=} [properties] Properties to set + */ + function ReorderFirewallPoliciesRequest(properties) { + this.names = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReorderFirewallPoliciesRequest parent. + * @member {string} parent + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @instance + */ + ReorderFirewallPoliciesRequest.prototype.parent = ""; + + /** + * ReorderFirewallPoliciesRequest names. + * @member {Array.} names + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @instance + */ + ReorderFirewallPoliciesRequest.prototype.names = $util.emptyArray; + + /** + * Creates a new ReorderFirewallPoliciesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest} ReorderFirewallPoliciesRequest instance + */ + ReorderFirewallPoliciesRequest.create = function create(properties) { + return new ReorderFirewallPoliciesRequest(properties); + }; + + /** + * Encodes the specified ReorderFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest} message ReorderFirewallPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReorderFirewallPoliciesRequest.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified ReorderFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest} message ReorderFirewallPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReorderFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReorderFirewallPoliciesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest} ReorderFirewallPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReorderFirewallPoliciesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReorderFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest} ReorderFirewallPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReorderFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReorderFirewallPoliciesRequest message. + * @function verify + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReorderFirewallPoliciesRequest.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.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a ReorderFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest} ReorderFirewallPoliciesRequest + */ + ReorderFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest) + return object; + var message = new $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReorderFirewallPoliciesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest} message ReorderFirewallPoliciesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReorderFirewallPoliciesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this ReorderFirewallPoliciesRequest to JSON. + * @function toJSON + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @instance + * @returns {Object.} JSON object + */ + ReorderFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReorderFirewallPoliciesRequest + * @function getTypeUrl + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReorderFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest"; + }; + + return ReorderFirewallPoliciesRequest; + })(); + + v1.ReorderFirewallPoliciesResponse = (function() { + + /** + * Properties of a ReorderFirewallPoliciesResponse. + * @memberof google.cloud.recaptchaenterprise.v1 + * @interface IReorderFirewallPoliciesResponse + */ + + /** + * Constructs a new ReorderFirewallPoliciesResponse. + * @memberof google.cloud.recaptchaenterprise.v1 + * @classdesc Represents a ReorderFirewallPoliciesResponse. + * @implements IReorderFirewallPoliciesResponse + * @constructor + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse=} [properties] Properties to set + */ + function ReorderFirewallPoliciesResponse(properties) { + if (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 ReorderFirewallPoliciesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse=} [properties] Properties to set + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} ReorderFirewallPoliciesResponse instance + */ + ReorderFirewallPoliciesResponse.create = function create(properties) { + return new ReorderFirewallPoliciesResponse(properties); + }; + + /** + * Encodes the specified ReorderFirewallPoliciesResponse message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse} message ReorderFirewallPoliciesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReorderFirewallPoliciesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ReorderFirewallPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse} message ReorderFirewallPoliciesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReorderFirewallPoliciesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReorderFirewallPoliciesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} ReorderFirewallPoliciesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReorderFirewallPoliciesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReorderFirewallPoliciesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} ReorderFirewallPoliciesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReorderFirewallPoliciesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReorderFirewallPoliciesResponse message. + * @function verify + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReorderFirewallPoliciesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ReorderFirewallPoliciesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} ReorderFirewallPoliciesResponse + */ + ReorderFirewallPoliciesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse) + return object; + return new $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse(); + }; + + /** + * Creates a plain object from a ReorderFirewallPoliciesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} message ReorderFirewallPoliciesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReorderFirewallPoliciesResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ReorderFirewallPoliciesResponse to JSON. + * @function toJSON + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @instance + * @returns {Object.} JSON object + */ + ReorderFirewallPoliciesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReorderFirewallPoliciesResponse + * @function getTypeUrl + * @memberof google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReorderFirewallPoliciesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse"; + }; + + return ReorderFirewallPoliciesResponse; + })(); + v1.MigrateKeyRequest = (function() { /** diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.json b/packages/google-cloud-recaptchaenterprise/protos/protos.json index 442c1e2524f8..c7437e71c737 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.json +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.json @@ -304,6 +304,26 @@ } ] }, + "ReorderFirewallPolicies": { + "requestType": "ReorderFirewallPoliciesRequest", + "responseType": "ReorderFirewallPoliciesResponse", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*}/firewallpolicies:reorder", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,names" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*}/firewallpolicies:reorder", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,names" + } + ] + }, "ListRelatedAccountGroups": { "requestType": "ListRelatedAccountGroupsRequest", "responseType": "ListRelatedAccountGroupsResponse", @@ -1617,6 +1637,30 @@ } } }, + "ReorderFirewallPoliciesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project" + } + }, + "names": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recaptchaenterprise.googleapis.com/FirewallPolicy" + } + } + } + }, + "ReorderFirewallPoliciesResponse": { + "fields": {} + }, "MigrateKeyRequest": { "fields": { "name": { diff --git a/packages/google-cloud-recaptchaenterprise/samples/README.md b/packages/google-cloud-recaptchaenterprise/samples/README.md index 36bf102b10a8..f7f02343376a 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/README.md +++ b/packages/google-cloud-recaptchaenterprise/samples/README.md @@ -26,6 +26,7 @@ * [Recaptcha_enterprise_service.list_related_account_group_memberships](#recaptcha_enterprise_service.list_related_account_group_memberships) * [Recaptcha_enterprise_service.list_related_account_groups](#recaptcha_enterprise_service.list_related_account_groups) * [Recaptcha_enterprise_service.migrate_key](#recaptcha_enterprise_service.migrate_key) + * [Recaptcha_enterprise_service.reorder_firewall_policies](#recaptcha_enterprise_service.reorder_firewall_policies) * [Recaptcha_enterprise_service.retrieve_legacy_secret_key](#recaptcha_enterprise_service.retrieve_legacy_secret_key) * [Recaptcha_enterprise_service.search_related_account_group_memberships](#recaptcha_enterprise_service.search_related_account_group_memberships) * [Recaptcha_enterprise_service.update_firewall_policy](#recaptcha_enterprise_service.update_firewall_policy) @@ -292,6 +293,23 @@ __Usage:__ +### Recaptcha_enterprise_service.reorder_firewall_policies + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js` + + +----- + + + + ### Recaptcha_enterprise_service.retrieve_legacy_secret_key View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js). diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js new file mode 100644 index 000000000000..e3f219d5dd5c --- /dev/null +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js @@ -0,0 +1,68 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, names) { + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ReorderFirewallPolicies_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 project to list the policies for, in the format + * `projects/{project}`. + */ + // const parent = 'abc123' + /** + * Required. A list containing all policy names, in the new order. Each name + * is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. + */ + // const names = ['abc','def'] + + // Imports the Recaptchaenterprise library + const {RecaptchaEnterpriseServiceClient} = require('@google-cloud/recaptcha-enterprise').v1; + + // Instantiates a client + const recaptchaenterpriseClient = new RecaptchaEnterpriseServiceClient(); + + async function callReorderFirewallPolicies() { + // Construct request + const request = { + parent, + names, + }; + + // Run request + const response = await recaptchaenterpriseClient.reorderFirewallPolicies(request); + console.log(response); + } + + callReorderFirewallPolicies(); + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ReorderFirewallPolicies_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json index b25a966d90e7..6807243e4a85 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json @@ -671,6 +671,50 @@ } } }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ReorderFirewallPolicies_async", + "title": "RecaptchaEnterpriseService reorderFirewallPolicies Sample", + "origin": "API_DEFINITION", + "description": " Reorders all firewall policies.", + "canonical": true, + "file": "recaptcha_enterprise_service.reorder_firewall_policies.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ReorderFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "names", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ReorderFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + } + }, { "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_async", "title": "RecaptchaEnterpriseService listRelatedAccountGroups Sample", diff --git a/packages/google-cloud-recaptchaenterprise/src/v1/gapic_metadata.json b/packages/google-cloud-recaptchaenterprise/src/v1/gapic_metadata.json index 5931b7ccc8c0..dd2984fa96ab 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1/gapic_metadata.json +++ b/packages/google-cloud-recaptchaenterprise/src/v1/gapic_metadata.json @@ -75,6 +75,11 @@ "deleteFirewallPolicy" ] }, + "ReorderFirewallPolicies": { + "methods": [ + "reorderFirewallPolicies" + ] + }, "ListKeys": { "methods": [ "listKeys", @@ -180,6 +185,11 @@ "deleteFirewallPolicy" ] }, + "ReorderFirewallPolicies": { + "methods": [ + "reorderFirewallPolicies" + ] + }, "ListKeys": { "methods": [ "listKeys", diff --git a/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts b/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts index a3122f505cb7..a61739152c6e 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts +++ b/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts @@ -314,6 +314,7 @@ export class RecaptchaEnterpriseServiceClient { 'getFirewallPolicy', 'updateFirewallPolicy', 'deleteFirewallPolicy', + 'reorderFirewallPolicies', 'listRelatedAccountGroups', 'listRelatedAccountGroupMemberships', 'searchRelatedAccountGroupMemberships', @@ -1708,6 +1709,110 @@ export class RecaptchaEnterpriseServiceClient { this.initialize(); return this.innerApiCalls.deleteFirewallPolicy(request, options, callback); } + /** + * Reorders all firewall policies. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project to list the policies for, in the format + * `projects/{project}`. + * @param {string[]} request.names + * Required. A list containing all policy names, in the new order. Each name + * is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. + * @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 {@link protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse|ReorderFirewallPoliciesResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/recaptcha_enterprise_service.reorder_firewall_policies.js + * region_tag:recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ReorderFirewallPolicies_async + */ + reorderFirewallPolicies( + request?: protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, + ( + | protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest + | undefined + ), + {} | undefined, + ] + >; + reorderFirewallPolicies( + request: protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, + | protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + reorderFirewallPolicies( + request: protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, + callback: Callback< + protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, + | protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + reorderFirewallPolicies( + request?: protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, + | protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, + | protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse, + ( + | protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest + | 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.reorderFirewallPolicies( + request, + options, + callback + ); + } /** * Returns the list of all keys that belong to a project. diff --git a/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client_config.json b/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client_config.json index f2e59deb977e..699e7c2e4938 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client_config.json +++ b/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client_config.json @@ -87,6 +87,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ReorderFirewallPolicies": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListRelatedAccountGroups": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts b/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts index dc98da2fc6be..a5d9df28523a 100644 --- a/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts +++ b/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts @@ -2152,6 +2152,155 @@ describe('v1.RecaptchaEnterpriseServiceClient', () => { }); }); + describe('reorderFirewallPolicies', () => { + it('invokes reorderFirewallPolicies without error', async () => { + const client = + new recaptchaenterpriseserviceModule.v1.RecaptchaEnterpriseServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse() + ); + client.innerApiCalls.reorderFirewallPolicies = + stubSimpleCall(expectedResponse); + const [response] = await client.reorderFirewallPolicies(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.reorderFirewallPolicies as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.reorderFirewallPolicies as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes reorderFirewallPolicies without error using callback', async () => { + const client = + new recaptchaenterpriseserviceModule.v1.RecaptchaEnterpriseServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse() + ); + client.innerApiCalls.reorderFirewallPolicies = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.reorderFirewallPolicies( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.reorderFirewallPolicies as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.reorderFirewallPolicies as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes reorderFirewallPolicies with error', async () => { + const client = + new recaptchaenterpriseserviceModule.v1.RecaptchaEnterpriseServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.reorderFirewallPolicies = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.reorderFirewallPolicies(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.reorderFirewallPolicies as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.reorderFirewallPolicies as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes reorderFirewallPolicies with closed client', async () => { + const client = + new recaptchaenterpriseserviceModule.v1.RecaptchaEnterpriseServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.reorderFirewallPolicies(request), + expectedError + ); + }); + }); + describe('listKeys', () => { it('invokes listKeys without error', async () => { const client = From 22746efa2f2efa5cf9de2570e094f48b4ab0ebb1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:28:26 -0800 Subject: [PATCH 09/19] docs: [documentai] updated comments (#5051) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: A new field `schema_override` is added to message `ProcessOptions` feat: A new field `labels` is added to messages `ProcessRequest` and `BatchProcessRequest` feat: A new field `display_name` is added to message `DocumentSchema` docs: updated comments PiperOrigin-RevId: 607148983 Source-Link: https://github.com/googleapis/googleapis/commit/9a9bc9b427e4516f79b9753c4fad91d425334755 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b8c71bc205c3adea235dc876c215d2ceccbb66a8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6ImI4YzcxYmMyMDVjM2FkZWEyMzVkYzg3NmMyMTVkMmNlY2NiYjY2YTgifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: A new message FoundationModelTuningOptions is added feat: A new field foundation_model_tuning_options is added to message TrainProcessorVersionRequest feat: A new field `labels` is added to messages `ProcessRequest` and `BatchProcessRequest` feat: A new field `display_name` is added to message `DocumentSchema` fix: deprecate `Dataset.document_warehouse_config` docs: updated comments PiperOrigin-RevId: 607358355 Source-Link: https://github.com/googleapis/googleapis/commit/1da529959b075366bfc281070cdbd7874c6f132e Source-Link: https://github.com/googleapis/googleapis-gen/commit/a931f91c05ad6c4958c546a57db4298dc622757f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6ImE5MzFmOTFjMDVhZDZjNDk1OGM1NDZhNTdkYjQyOThkYzYyMjc1N2YifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: updated comments PiperOrigin-RevId: 607453878 Source-Link: https://github.com/googleapis/googleapis/commit/b7c2f98f6df3231538514822de6d9ecedb83298b Source-Link: https://github.com/googleapis/googleapis-gen/commit/5e337dccdc676eafe187ba2420ef8084f0a7d03b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjVlMzM3ZGNjZGM2NzZlYWZlMTg3YmEyNDIwZWY4MDg0ZjBhN2QwM2IifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/cloud/documentai/v1/document.proto | 3 +- .../v1/document_processor_service.proto | 30 +- .../cloud/documentai/v1/document_schema.proto | 13 +- .../cloud/documentai/v1beta2/document.proto | 3 +- .../cloud/documentai/v1beta3/dataset.proto | 5 +- .../cloud/documentai/v1beta3/document.proto | 3 +- .../v1beta3/document_processor_service.proto | 49 +- .../documentai/v1beta3/document_schema.proto | 19 +- .../documentai/v1beta3/document_service.proto | 30 +- .../protos/protos.d.ts | 153 ++++- .../google-cloud-documentai/protos/protos.js | 587 +++++++++++++++++- .../protos/protos.json | 73 ++- ...ocessor_service.batch_process_documents.js | 8 + ...ment_processor_service.create_processor.js | 3 +- ...ment_processor_service.process_document.js | 8 + ...t_metadata_google.cloud.documentai.v1.json | 14 +- ...ocessor_service.batch_process_documents.js | 8 + ...ment_processor_service.create_processor.js | 3 +- ...ment_processor_service.process_document.js | 8 + ...ocessor_service.train_processor_version.js | 4 + .../document_service.list_documents.js | 14 +- ...adata_google.cloud.documentai.v1beta3.json | 22 +- .../v1/document_processor_service_client.ts | 17 +- .../document_processor_service_client.ts | 19 +- .../src/v1beta3/document_service_client.ts | 42 +- 25 files changed, 1055 insertions(+), 83 deletions(-) diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto index 92ccfc0a9293..8c66f6b93a68 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto @@ -754,7 +754,8 @@ message Document { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Identifies the bounding polygon of a layout element on the - // page. + // page. If `layout_type` is set, the bounding polygon must be exactly the + // same to the layout element it's referring to. BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidence of detected page element, if applicable. Range diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto index 9117bed524fa..447b28ba1c88 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto @@ -352,9 +352,16 @@ message ProcessOptions { int32 from_end = 7; } - // Only applicable to `OCR_PROCESSOR`. Returns error if set on other - // processor types. + // Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. + // Returns error if set on other processor types. OcrConfig ocr_config = 1; + + // Optional. Override the schema of the + // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will + // return an Invalid Argument error if this field is set when the underlying + // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't + // support schema override. + DocumentSchema schema_override = 8 [(google.api.field_behavior) = OPTIONAL]; } // Request message for the @@ -400,6 +407,14 @@ message ProcessRequest { // Inference-time options for the process API ProcessOptions process_options = 7; + + // Optional. The labels with user-defined metadata for the request. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; } // The status of human review on a processed document. @@ -483,6 +498,14 @@ message BatchProcessRequest { // Inference-time options for the process API ProcessOptions process_options = 7; + + // Optional. The labels with user-defined metadata for the request. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -803,7 +826,8 @@ message CreateProcessorRequest { // Required. The processor to be created, requires // [Processor.type][google.cloud.documentai.v1.Processor.type] and - // [Processor.display_name]][] to be set. Also, the + // [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] + // to be set. Also, the // [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] // field must be set if the processor is under CMEK. Processor processor = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto index 72afd826c9ff..71b2791b826c 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto @@ -39,13 +39,13 @@ message DocumentSchema { // Defines properties that can be part of the entity type. message Property { // Types of occurrences of the entity type in the document. This - // represents the number of instances of an entity, not number of mentions - // of an entity. For example, a bank statement may only have one - // `account_number`, but this account number may be mentioned in several - // places on the document. In this case the 'account_number' would be + // represents the number of instances, not mentions, of an entity. + // For example, a bank statement might only have one + // `account_number`, but this account number can be mentioned in several + // places on the document. In this case, the `account_number` is // considered a `REQUIRED_ONCE` entity type. If, on the other hand, we // expect a bank statement to contain the status of multiple different - // accounts for the customers, the occurrence type will be set to + // accounts for the customers, the occurrence type is set to // `REQUIRED_MULTIPLE`. enum OccurrenceType { // Unspecified occurrence type. @@ -70,6 +70,9 @@ message DocumentSchema { // EntityType name. string name = 1; + // User defined name for the property. + string display_name = 6; + // A reference to the value type of the property. This type is subject // to the same conventions as the `Entity.base_types` field. string value_type = 2; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto index 7e97a6e59359..56144ad93993 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto @@ -784,7 +784,8 @@ message Document { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Identifies the bounding polygon of a layout element on the - // page. + // page. If `layout_type` is set, the bounding polygon must be exactly the + // same to the layout element it's referring to. BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidence of detected page element, if applicable. Range diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto index 5f366e3372ab..66ea297ea4cf 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto @@ -94,9 +94,10 @@ message Dataset { GCSManagedConfig gcs_managed_config = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Document AI Warehouse-based dataset configuration. + // Optional. Deprecated. Warehouse-based dataset configuration is not + // supported. DocumentWarehouseConfig document_warehouse_config = 5 - [(google.api.field_behavior) = OPTIONAL]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Unmanaged dataset configuration. Use this configuration if the // dataset documents are managed by the document service internally (not diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto index 00c45ebaea70..aeb805b215bb 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto @@ -758,7 +758,8 @@ message Document { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Identifies the bounding polygon of a layout element on the - // page. + // page. If `layout_type` is set, the bounding polygon must be exactly the + // same to the layout element it's referring to. BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidence of detected page element, if applicable. Range diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto index e456b366175f..39b9f4074279 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -349,12 +349,11 @@ message ProcessOptions { } // A subset of pages to process. If not specified, all pages are processed. - // If a page range is set, only the given pages are extracted and processed - // from the document. In the output document, - // [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number] - // refers to the page number in the original document. This configuration - // only applies to sync requests. `page_range` can be only one of the - // following: + // If a page range is set, only the given pages are extracted and processed + // from the document. In the output document, + // [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number] + // refers to the page number in the original document. This configuration + // only applies to sync requests. oneof page_range { // Which pages to process (1-indexed). IndividualPageSelector individual_page_selector = 5; @@ -367,8 +366,8 @@ message ProcessOptions { int32 from_end = 7; } - // Only applicable to `OCR_PROCESSOR`. Returns error if set on other - // processor types. + // Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. + // Returns error if set on other processor types. OcrConfig ocr_config = 1; // Optional. Override the schema of the @@ -428,6 +427,14 @@ message ProcessRequest { // Inference-time options for the process API ProcessOptions process_options = 7; + + // Optional. The labels with user-defined metadata for the request. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; } // The status of human review on a processed document. @@ -550,6 +557,14 @@ message BatchProcessRequest { // Inference-time options for the process API ProcessOptions process_options = 7; + + // Optional. The labels with user-defined metadata for the request. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -878,7 +893,8 @@ message CreateProcessorRequest { // Required. The processor to be created, requires // [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and - // [Processor.display_name]][] to be set. Also, the + // [Processor.display_name][google.cloud.documentai.v1beta3.Processor.display_name] + // to be set. Also, the // [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name] // field must be set if the processor is under CMEK. Processor processor = 2 [(google.api.field_behavior) = REQUIRED]; @@ -1027,9 +1043,24 @@ message TrainProcessorVersionRequest { TrainingMethod training_method = 3; } + // Options to control foundation model tuning of the processor. + message FoundationModelTuningOptions { + // Optional. The number of steps to run for model tuning. Valid values are + // between 1 and 400. If not provided, recommended steps will be used. + int32 train_steps = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The multiplier to apply to the recommended learning rate. Valid + // values are between 0.1 and 10. If not provided, recommended learning rate + // will be used. + float learning_rate_multiplier = 3 [(google.api.field_behavior) = OPTIONAL]; + } + oneof processor_flags { // Options to control Custom Document Extraction (CDE) Processor. CustomDocumentExtractionOptions custom_document_extraction_options = 5; + + // Options to control foundation model tuning of a processor. + FoundationModelTuningOptions foundation_model_tuning_options = 12; } // Required. The parent (project, location and processor) to create the new diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto index 15e393052249..86a28d7b66ab 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto @@ -96,14 +96,14 @@ message DocumentSchema { // Defines properties that can be part of the entity type. message Property { // Types of occurrences of the entity type in the document. This - // represents the number of instances of instances of an entity, not - // number of mentions of an entity. For example, a bank statement may - // only have one `account_number`, but this account number may be - // mentioned in several places on the document. In this case the - // 'account_number' would be considered a `REQUIRED_ONCE` entity type. If, - // on the other hand, we expect a bank statement to contain the status of - // multiple different accounts for the customers, the occurrence type will - // be set to `REQUIRED_MULTIPLE`. + // represents the number of instances, not mentions, of an entity. + // For example, a bank statement might only have one + // `account_number`, but this account number can be mentioned in several + // places on the document. In this case, the `account_number` is + // considered a `REQUIRED_ONCE` entity type. If, on the other hand, we + // expect a bank statement to contain the status of multiple different + // accounts for the customers, the occurrence type is set to + // `REQUIRED_MULTIPLE`. enum OccurrenceType { // Unspecified occurrence type. OCCURRENCE_TYPE_UNSPECIFIED = 0; @@ -127,6 +127,9 @@ message DocumentSchema { // EntityType name. string name = 1; + // User defined name for the property. + string display_name = 6; + // A reference to the value type of the property. This type is subject // to the same conventions as the `Entity.base_types` field. string value_type = 2; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_service.proto index 1f52adc5b987..dcf35b1a4fc3 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_service.proto @@ -135,18 +135,18 @@ enum DatasetSplitType { DATASET_SPLIT_UNASSIGNED = 3; } -// Describes the labelling status of a document. +// Describes the labeling status of a document. enum DocumentLabelingState { // Default value if the enum is not set. DOCUMENT_LABELING_STATE_UNSPECIFIED = 0; - // Document has been labelled. + // Document has been labeled. DOCUMENT_LABELED = 1; - // Document has not been labelled. + // Document has not been labeled. DOCUMENT_UNLABELED = 2; - // Document has been auto-labelled. + // Document has been auto-labeled. DOCUMENT_AUTO_LABELED = 3; } @@ -315,8 +315,9 @@ message ListDocumentsRequest { // - String match is case sensitive (for filter `DisplayName` & `EntityType`). string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Controls if the ListDocuments request requires a total size - // of matched documents. See ListDocumentsResponse.total_size. + // Optional. Controls if the request requires a total size of matched + // documents. See + // [ListDocumentsResponse.total_size][google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size]. // // Enabling this flag may adversely impact performance. // @@ -325,10 +326,13 @@ message ListDocumentsRequest { // Optional. Number of results to skip beginning from the `page_token` if // provided. https://google.aip.dev/158#skipping-results. It must be a - // non-negative integer. Negative values wil be rejected. Note that this is + // non-negative integer. Negative values will be rejected. Note that this is // not the number of pages to skip. If this value causes the cursor to move - // past the end of results, `ListDocumentsResponse.document_metadata` and - // `ListDocumentsResponse.next_page_token` will be empty. + // past the end of results, + // [ListDocumentsResponse.document_metadata][google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata] + // and + // [ListDocumentsResponse.next_page_token][google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token] + // will be empty. int32 skip = 8 [(google.api.field_behavior) = OPTIONAL]; } @@ -336,8 +340,10 @@ message ListDocumentsResponse { // Document metadata corresponding to the listed documents. repeated DocumentMetadata document_metadata = 1; - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListDocumentsRequest.page_token][google.cloud.documentai.v1beta3.ListDocumentsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. string next_page_token = 2; // Total count of documents queried. @@ -430,7 +436,7 @@ message DocumentMetadata { // Type of the dataset split to which the document belongs. DatasetSplitType dataset_type = 3; - // Labelling state of the document. + // Labeling state of the document. DocumentLabelingState labeling_state = 5; // The display name of the document. diff --git a/packages/google-cloud-documentai/protos/protos.d.ts b/packages/google-cloud-documentai/protos/protos.d.ts index 082b5d66dc84..b32e3ea6436f 100644 --- a/packages/google-cloud-documentai/protos/protos.d.ts +++ b/packages/google-cloud-documentai/protos/protos.d.ts @@ -6595,6 +6595,9 @@ export namespace google { /** ProcessOptions ocrConfig */ ocrConfig?: (google.cloud.documentai.v1.IOcrConfig|null); + + /** ProcessOptions schemaOverride */ + schemaOverride?: (google.cloud.documentai.v1.IDocumentSchema|null); } /** Represents a ProcessOptions. */ @@ -6618,6 +6621,9 @@ export namespace google { /** ProcessOptions ocrConfig. */ public ocrConfig?: (google.cloud.documentai.v1.IOcrConfig|null); + /** ProcessOptions schemaOverride. */ + public schemaOverride?: (google.cloud.documentai.v1.IDocumentSchema|null); + /** ProcessOptions pageRange. */ public pageRange?: ("individualPageSelector"|"fromStart"|"fromEnd"); @@ -6822,6 +6828,9 @@ export namespace google { /** ProcessRequest processOptions */ processOptions?: (google.cloud.documentai.v1.IProcessOptions|null); + + /** ProcessRequest labels */ + labels?: ({ [k: string]: string }|null); } /** Represents a ProcessRequest. */ @@ -6854,6 +6863,9 @@ export namespace google { /** ProcessRequest processOptions. */ public processOptions?: (google.cloud.documentai.v1.IProcessOptions|null); + /** ProcessRequest labels. */ + public labels: { [k: string]: string }; + /** ProcessRequest source. */ public source?: ("inlineDocument"|"rawDocument"|"gcsDocument"); @@ -7176,6 +7188,9 @@ export namespace google { /** BatchProcessRequest processOptions */ processOptions?: (google.cloud.documentai.v1.IProcessOptions|null); + + /** BatchProcessRequest labels */ + labels?: ({ [k: string]: string }|null); } /** Represents a BatchProcessRequest. */ @@ -7202,6 +7217,9 @@ export namespace google { /** BatchProcessRequest processOptions. */ public processOptions?: (google.cloud.documentai.v1.IProcessOptions|null); + /** BatchProcessRequest labels. */ + public labels: { [k: string]: string }; + /** * Creates a new BatchProcessRequest instance using the specified properties. * @param [properties] Properties to set @@ -12638,6 +12656,9 @@ export namespace google { /** Property name */ name?: (string|null); + /** Property displayName */ + displayName?: (string|null); + /** Property valueType */ valueType?: (string|null); @@ -12657,6 +12678,9 @@ export namespace google { /** Property name. */ public name: string; + /** Property displayName. */ + public displayName: string; + /** Property valueType. */ public valueType: string; @@ -33935,6 +33959,9 @@ export namespace google { /** Property name */ name?: (string|null); + /** Property displayName */ + displayName?: (string|null); + /** Property valueType */ valueType?: (string|null); @@ -33957,6 +33984,9 @@ export namespace google { /** Property name. */ public name: string; + /** Property displayName. */ + public displayName: string; + /** Property valueType. */ public valueType: string; @@ -34930,6 +34960,9 @@ export namespace google { /** ProcessRequest processOptions */ processOptions?: (google.cloud.documentai.v1beta3.IProcessOptions|null); + + /** ProcessRequest labels */ + labels?: ({ [k: string]: string }|null); } /** Represents a ProcessRequest. */ @@ -34965,6 +34998,9 @@ export namespace google { /** ProcessRequest processOptions. */ public processOptions?: (google.cloud.documentai.v1beta3.IProcessOptions|null); + /** ProcessRequest labels. */ + public labels: { [k: string]: string }; + /** ProcessRequest source. */ public source?: ("inlineDocument"|"rawDocument"|"gcsDocument"); @@ -35299,6 +35335,9 @@ export namespace google { /** BatchProcessRequest processOptions */ processOptions?: (google.cloud.documentai.v1beta3.IProcessOptions|null); + + /** BatchProcessRequest labels */ + labels?: ({ [k: string]: string }|null); } /** Represents a BatchProcessRequest. */ @@ -35331,6 +35370,9 @@ export namespace google { /** BatchProcessRequest processOptions. */ public processOptions?: (google.cloud.documentai.v1beta3.IProcessOptions|null); + /** BatchProcessRequest labels. */ + public labels: { [k: string]: string }; + /** * Creates a new BatchProcessRequest instance using the specified properties. * @param [properties] Properties to set @@ -39008,6 +39050,9 @@ export namespace google { /** TrainProcessorVersionRequest customDocumentExtractionOptions */ customDocumentExtractionOptions?: (google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.ICustomDocumentExtractionOptions|null); + /** TrainProcessorVersionRequest foundationModelTuningOptions */ + foundationModelTuningOptions?: (google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions|null); + /** TrainProcessorVersionRequest parent */ parent?: (string|null); @@ -39036,6 +39081,9 @@ export namespace google { /** TrainProcessorVersionRequest customDocumentExtractionOptions. */ public customDocumentExtractionOptions?: (google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.ICustomDocumentExtractionOptions|null); + /** TrainProcessorVersionRequest foundationModelTuningOptions. */ + public foundationModelTuningOptions?: (google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions|null); + /** TrainProcessorVersionRequest parent. */ public parent: string; @@ -39052,7 +39100,7 @@ export namespace google { public baseProcessorVersion: string; /** TrainProcessorVersionRequest processorFlags. */ - public processorFlags?: "customDocumentExtractionOptions"; + public processorFlags?: ("customDocumentExtractionOptions"|"foundationModelTuningOptions"); /** * Creates a new TrainProcessorVersionRequest instance using the specified properties. @@ -39343,6 +39391,109 @@ export namespace google { TEMPLATE_BASED = 2 } } + + /** Properties of a FoundationModelTuningOptions. */ + interface IFoundationModelTuningOptions { + + /** FoundationModelTuningOptions trainSteps */ + trainSteps?: (number|null); + + /** FoundationModelTuningOptions learningRateMultiplier */ + learningRateMultiplier?: (number|null); + } + + /** Represents a FoundationModelTuningOptions. */ + class FoundationModelTuningOptions implements IFoundationModelTuningOptions { + + /** + * Constructs a new FoundationModelTuningOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions); + + /** FoundationModelTuningOptions trainSteps. */ + public trainSteps: number; + + /** FoundationModelTuningOptions learningRateMultiplier. */ + public learningRateMultiplier: number; + + /** + * Creates a new FoundationModelTuningOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FoundationModelTuningOptions instance + */ + public static create(properties?: google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions): google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions; + + /** + * Encodes the specified FoundationModelTuningOptions message. Does not implicitly {@link google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.verify|verify} messages. + * @param message FoundationModelTuningOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FoundationModelTuningOptions message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.verify|verify} messages. + * @param message FoundationModelTuningOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FoundationModelTuningOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FoundationModelTuningOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions; + + /** + * Decodes a FoundationModelTuningOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FoundationModelTuningOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions; + + /** + * Verifies a FoundationModelTuningOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FoundationModelTuningOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FoundationModelTuningOptions + */ + public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions; + + /** + * Creates a plain object from a FoundationModelTuningOptions message. Also converts values to other types if specified. + * @param message FoundationModelTuningOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FoundationModelTuningOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FoundationModelTuningOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a TrainProcessorVersionResponse. */ diff --git a/packages/google-cloud-documentai/protos/protos.js b/packages/google-cloud-documentai/protos/protos.js index 15f4d0aa6c20..8895cb6e8229 100644 --- a/packages/google-cloud-documentai/protos/protos.js +++ b/packages/google-cloud-documentai/protos/protos.js @@ -16655,6 +16655,7 @@ * @property {number|null} [fromStart] ProcessOptions fromStart * @property {number|null} [fromEnd] ProcessOptions fromEnd * @property {google.cloud.documentai.v1.IOcrConfig|null} [ocrConfig] ProcessOptions ocrConfig + * @property {google.cloud.documentai.v1.IDocumentSchema|null} [schemaOverride] ProcessOptions schemaOverride */ /** @@ -16704,6 +16705,14 @@ */ ProcessOptions.prototype.ocrConfig = null; + /** + * ProcessOptions schemaOverride. + * @member {google.cloud.documentai.v1.IDocumentSchema|null|undefined} schemaOverride + * @memberof google.cloud.documentai.v1.ProcessOptions + * @instance + */ + ProcessOptions.prototype.schemaOverride = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -16750,6 +16759,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.fromStart); if (message.fromEnd != null && Object.hasOwnProperty.call(message, "fromEnd")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.fromEnd); + if (message.schemaOverride != null && Object.hasOwnProperty.call(message, "schemaOverride")) + $root.google.cloud.documentai.v1.DocumentSchema.encode(message.schemaOverride, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -16800,6 +16811,10 @@ message.ocrConfig = $root.google.cloud.documentai.v1.OcrConfig.decode(reader, reader.uint32()); break; } + case 8: { + message.schemaOverride = $root.google.cloud.documentai.v1.DocumentSchema.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -16863,6 +16878,11 @@ if (error) return "ocrConfig." + error; } + if (message.schemaOverride != null && message.hasOwnProperty("schemaOverride")) { + var error = $root.google.cloud.documentai.v1.DocumentSchema.verify(message.schemaOverride); + if (error) + return "schemaOverride." + error; + } return null; }; @@ -16892,6 +16912,11 @@ throw TypeError(".google.cloud.documentai.v1.ProcessOptions.ocrConfig: object expected"); message.ocrConfig = $root.google.cloud.documentai.v1.OcrConfig.fromObject(object.ocrConfig); } + if (object.schemaOverride != null) { + if (typeof object.schemaOverride !== "object") + throw TypeError(".google.cloud.documentai.v1.ProcessOptions.schemaOverride: object expected"); + message.schemaOverride = $root.google.cloud.documentai.v1.DocumentSchema.fromObject(object.schemaOverride); + } return message; }; @@ -16908,8 +16933,10 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.ocrConfig = null; + object.schemaOverride = null; + } if (message.ocrConfig != null && message.hasOwnProperty("ocrConfig")) object.ocrConfig = $root.google.cloud.documentai.v1.OcrConfig.toObject(message.ocrConfig, options); if (message.individualPageSelector != null && message.hasOwnProperty("individualPageSelector")) { @@ -16927,6 +16954,8 @@ if (options.oneofs) object.pageRange = "fromEnd"; } + if (message.schemaOverride != null && message.hasOwnProperty("schemaOverride")) + object.schemaOverride = $root.google.cloud.documentai.v1.DocumentSchema.toObject(message.schemaOverride, options); return object; }; @@ -17199,6 +17228,7 @@ * @property {boolean|null} [skipHumanReview] ProcessRequest skipHumanReview * @property {google.protobuf.IFieldMask|null} [fieldMask] ProcessRequest fieldMask * @property {google.cloud.documentai.v1.IProcessOptions|null} [processOptions] ProcessRequest processOptions + * @property {Object.|null} [labels] ProcessRequest labels */ /** @@ -17210,6 +17240,7 @@ * @param {google.cloud.documentai.v1.IProcessRequest=} [properties] Properties to set */ function ProcessRequest(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17272,6 +17303,14 @@ */ ProcessRequest.prototype.processOptions = null; + /** + * ProcessRequest labels. + * @member {Object.} labels + * @memberof google.cloud.documentai.v1.ProcessRequest + * @instance + */ + ProcessRequest.prototype.labels = $util.emptyObject; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -17324,6 +17363,9 @@ $root.google.cloud.documentai.v1.ProcessOptions.encode(message.processOptions, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.gcsDocument != null && Object.hasOwnProperty.call(message, "gcsDocument")) $root.google.cloud.documentai.v1.GcsDocument.encode(message.gcsDocument, writer.uint32(/* id 8, wireType 2 =*/66).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 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; @@ -17354,7 +17396,7 @@ ProcessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1.ProcessRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1.ProcessRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17386,6 +17428,29 @@ message.processOptions = $root.google.cloud.documentai.v1.ProcessOptions.decode(reader, reader.uint32()); break; } + case 10: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -17466,6 +17531,14 @@ if (error) return "processOptions." + error; } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } return null; }; @@ -17510,6 +17583,13 @@ throw TypeError(".google.cloud.documentai.v1.ProcessRequest.processOptions: object expected"); message.processOptions = $root.google.cloud.documentai.v1.ProcessOptions.fromObject(object.processOptions); } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.documentai.v1.ProcessRequest.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } return message; }; @@ -17526,6 +17606,8 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; object.skipHumanReview = false; @@ -17555,6 +17637,12 @@ if (options.oneofs) object.source = "gcsDocument"; } + 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]]; + } return object; }; @@ -18139,6 +18227,7 @@ * @property {google.cloud.documentai.v1.IDocumentOutputConfig|null} [documentOutputConfig] BatchProcessRequest documentOutputConfig * @property {boolean|null} [skipHumanReview] BatchProcessRequest skipHumanReview * @property {google.cloud.documentai.v1.IProcessOptions|null} [processOptions] BatchProcessRequest processOptions + * @property {Object.|null} [labels] BatchProcessRequest labels */ /** @@ -18150,6 +18239,7 @@ * @param {google.cloud.documentai.v1.IBatchProcessRequest=} [properties] Properties to set */ function BatchProcessRequest(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18196,6 +18286,14 @@ */ BatchProcessRequest.prototype.processOptions = null; + /** + * BatchProcessRequest labels. + * @member {Object.} labels + * @memberof google.cloud.documentai.v1.BatchProcessRequest + * @instance + */ + BatchProcessRequest.prototype.labels = $util.emptyObject; + /** * Creates a new BatchProcessRequest instance using the specified properties. * @function create @@ -18230,6 +18328,9 @@ $root.google.cloud.documentai.v1.DocumentOutputConfig.encode(message.documentOutputConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.processOptions != null && Object.hasOwnProperty.call(message, "processOptions")) $root.google.cloud.documentai.v1.ProcessOptions.encode(message.processOptions, writer.uint32(/* id 7, wireType 2 =*/58).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 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; @@ -18260,7 +18361,7 @@ BatchProcessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1.BatchProcessRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1.BatchProcessRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18284,6 +18385,29 @@ message.processOptions = $root.google.cloud.documentai.v1.ProcessOptions.decode(reader, reader.uint32()); break; } + case 9: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -18340,6 +18464,14 @@ if (error) return "processOptions." + error; } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } return null; }; @@ -18374,6 +18506,13 @@ throw TypeError(".google.cloud.documentai.v1.BatchProcessRequest.processOptions: object expected"); message.processOptions = $root.google.cloud.documentai.v1.ProcessOptions.fromObject(object.processOptions); } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.documentai.v1.BatchProcessRequest.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } return message; }; @@ -18390,6 +18529,8 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; object.skipHumanReview = false; @@ -18407,6 +18548,12 @@ object.documentOutputConfig = $root.google.cloud.documentai.v1.DocumentOutputConfig.toObject(message.documentOutputConfig, options); if (message.processOptions != null && message.hasOwnProperty("processOptions")) object.processOptions = $root.google.cloud.documentai.v1.ProcessOptions.toObject(message.processOptions, 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]]; + } return object; }; @@ -30560,6 +30707,7 @@ * @memberof google.cloud.documentai.v1.DocumentSchema.EntityType * @interface IProperty * @property {string|null} [name] Property name + * @property {string|null} [displayName] Property displayName * @property {string|null} [valueType] Property valueType * @property {google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType|null} [occurrenceType] Property occurrenceType */ @@ -30587,6 +30735,14 @@ */ Property.prototype.name = ""; + /** + * Property displayName. + * @member {string} displayName + * @memberof google.cloud.documentai.v1.DocumentSchema.EntityType.Property + * @instance + */ + Property.prototype.displayName = ""; + /** * Property valueType. * @member {string} valueType @@ -30633,6 +30789,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.valueType); if (message.occurrenceType != null && Object.hasOwnProperty.call(message, "occurrenceType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.occurrenceType); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); return writer; }; @@ -30671,6 +30829,10 @@ message.name = reader.string(); break; } + case 6: { + message.displayName = reader.string(); + break; + } case 2: { message.valueType = reader.string(); break; @@ -30717,6 +30879,9 @@ 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.valueType != null && message.hasOwnProperty("valueType")) if (!$util.isString(message.valueType)) return "valueType: string expected"; @@ -30748,6 +30913,8 @@ var message = new $root.google.cloud.documentai.v1.DocumentSchema.EntityType.Property(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); if (object.valueType != null) message.valueType = String(object.valueType); switch (object.occurrenceType) { @@ -30798,6 +30965,7 @@ object.name = ""; object.valueType = ""; object.occurrenceType = options.enums === String ? "OCCURRENCE_TYPE_UNSPECIFIED" : 0; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -30805,6 +30973,8 @@ object.valueType = message.valueType; if (message.occurrenceType != null && message.hasOwnProperty("occurrenceType")) object.occurrenceType = options.enums === String ? $root.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType[message.occurrenceType] === undefined ? message.occurrenceType : $root.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType[message.occurrenceType] : message.occurrenceType; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; @@ -85262,6 +85432,7 @@ * @memberof google.cloud.documentai.v1beta3.DocumentSchema.EntityType * @interface IProperty * @property {string|null} [name] Property name + * @property {string|null} [displayName] Property displayName * @property {string|null} [valueType] Property valueType * @property {google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType|null} [occurrenceType] Property occurrenceType * @property {google.cloud.documentai.v1beta3.IPropertyMetadata|null} [propertyMetadata] Property propertyMetadata @@ -85290,6 +85461,14 @@ */ Property.prototype.name = ""; + /** + * Property displayName. + * @member {string} displayName + * @memberof google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property + * @instance + */ + Property.prototype.displayName = ""; + /** * Property valueType. * @member {string} valueType @@ -85346,6 +85525,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.occurrenceType); if (message.propertyMetadata != null && Object.hasOwnProperty.call(message, "propertyMetadata")) $root.google.cloud.documentai.v1beta3.PropertyMetadata.encode(message.propertyMetadata, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); return writer; }; @@ -85384,6 +85565,10 @@ message.name = reader.string(); break; } + case 6: { + message.displayName = reader.string(); + break; + } case 2: { message.valueType = reader.string(); break; @@ -85434,6 +85619,9 @@ 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.valueType != null && message.hasOwnProperty("valueType")) if (!$util.isString(message.valueType)) return "valueType: string expected"; @@ -85470,6 +85658,8 @@ var message = new $root.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); if (object.valueType != null) message.valueType = String(object.valueType); switch (object.occurrenceType) { @@ -85526,6 +85716,7 @@ object.valueType = ""; object.occurrenceType = options.enums === String ? "OCCURRENCE_TYPE_UNSPECIFIED" : 0; object.propertyMetadata = null; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -85535,6 +85726,8 @@ object.occurrenceType = options.enums === String ? $root.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType[message.occurrenceType] === undefined ? message.occurrenceType : $root.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType[message.occurrenceType] : message.occurrenceType; if (message.propertyMetadata != null && message.hasOwnProperty("propertyMetadata")) object.propertyMetadata = $root.google.cloud.documentai.v1beta3.PropertyMetadata.toObject(message.propertyMetadata, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; @@ -87244,6 +87437,7 @@ * @property {boolean|null} [skipHumanReview] ProcessRequest skipHumanReview * @property {google.protobuf.IFieldMask|null} [fieldMask] ProcessRequest fieldMask * @property {google.cloud.documentai.v1beta3.IProcessOptions|null} [processOptions] ProcessRequest processOptions + * @property {Object.|null} [labels] ProcessRequest labels */ /** @@ -87255,6 +87449,7 @@ * @param {google.cloud.documentai.v1beta3.IProcessRequest=} [properties] Properties to set */ function ProcessRequest(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87325,6 +87520,14 @@ */ ProcessRequest.prototype.processOptions = null; + /** + * ProcessRequest labels. + * @member {Object.} labels + * @memberof google.cloud.documentai.v1beta3.ProcessRequest + * @instance + */ + ProcessRequest.prototype.labels = $util.emptyObject; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -87379,6 +87582,9 @@ $root.google.cloud.documentai.v1beta3.ProcessOptions.encode(message.processOptions, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.gcsDocument != null && Object.hasOwnProperty.call(message, "gcsDocument")) $root.google.cloud.documentai.v1beta3.GcsDocument.encode(message.gcsDocument, writer.uint32(/* id 8, wireType 2 =*/66).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 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; @@ -87409,7 +87615,7 @@ ProcessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1beta3.ProcessRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1beta3.ProcessRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -87445,6 +87651,29 @@ message.processOptions = $root.google.cloud.documentai.v1beta3.ProcessOptions.decode(reader, reader.uint32()); break; } + case 10: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -87530,6 +87759,14 @@ if (error) return "processOptions." + error; } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } return null; }; @@ -87579,6 +87816,13 @@ throw TypeError(".google.cloud.documentai.v1beta3.ProcessRequest.processOptions: object expected"); message.processOptions = $root.google.cloud.documentai.v1beta3.ProcessOptions.fromObject(object.processOptions); } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.documentai.v1beta3.ProcessRequest.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } return message; }; @@ -87595,6 +87839,8 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; object.document = null; @@ -87627,6 +87873,12 @@ if (options.oneofs) object.source = "gcsDocument"; } + 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]]; + } return object; }; @@ -88236,6 +88488,7 @@ * @property {google.cloud.documentai.v1beta3.IDocumentOutputConfig|null} [documentOutputConfig] BatchProcessRequest documentOutputConfig * @property {boolean|null} [skipHumanReview] BatchProcessRequest skipHumanReview * @property {google.cloud.documentai.v1beta3.IProcessOptions|null} [processOptions] BatchProcessRequest processOptions + * @property {Object.|null} [labels] BatchProcessRequest labels */ /** @@ -88248,6 +88501,7 @@ */ function BatchProcessRequest(properties) { this.inputConfigs = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88310,6 +88564,14 @@ */ BatchProcessRequest.prototype.processOptions = null; + /** + * BatchProcessRequest labels. + * @member {Object.} labels + * @memberof google.cloud.documentai.v1beta3.BatchProcessRequest + * @instance + */ + BatchProcessRequest.prototype.labels = $util.emptyObject; + /** * Creates a new BatchProcessRequest instance using the specified properties. * @function create @@ -88349,6 +88611,9 @@ $root.google.cloud.documentai.v1beta3.DocumentOutputConfig.encode(message.documentOutputConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.processOptions != null && Object.hasOwnProperty.call(message, "processOptions")) $root.google.cloud.documentai.v1beta3.ProcessOptions.encode(message.processOptions, writer.uint32(/* id 7, wireType 2 =*/58).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 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; @@ -88379,7 +88644,7 @@ BatchProcessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1beta3.BatchProcessRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1beta3.BatchProcessRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -88413,6 +88678,29 @@ message.processOptions = $root.google.cloud.documentai.v1beta3.ProcessOptions.decode(reader, reader.uint32()); break; } + case 9: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -88483,6 +88771,14 @@ if (error) return "processOptions." + error; } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } return null; }; @@ -88532,6 +88828,13 @@ throw TypeError(".google.cloud.documentai.v1beta3.BatchProcessRequest.processOptions: object expected"); message.processOptions = $root.google.cloud.documentai.v1beta3.ProcessOptions.fromObject(object.processOptions); } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.documentai.v1beta3.BatchProcessRequest.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } return message; }; @@ -88550,6 +88853,8 @@ var object = {}; if (options.arrays || options.defaults) object.inputConfigs = []; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; object.outputConfig = null; @@ -88575,6 +88880,12 @@ object.documentOutputConfig = $root.google.cloud.documentai.v1beta3.DocumentOutputConfig.toObject(message.documentOutputConfig, options); if (message.processOptions != null && message.hasOwnProperty("processOptions")) object.processOptions = $root.google.cloud.documentai.v1beta3.ProcessOptions.toObject(message.processOptions, 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]]; + } return object; }; @@ -96459,6 +96770,7 @@ * @memberof google.cloud.documentai.v1beta3 * @interface ITrainProcessorVersionRequest * @property {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.ICustomDocumentExtractionOptions|null} [customDocumentExtractionOptions] TrainProcessorVersionRequest customDocumentExtractionOptions + * @property {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions|null} [foundationModelTuningOptions] TrainProcessorVersionRequest foundationModelTuningOptions * @property {string|null} [parent] TrainProcessorVersionRequest parent * @property {google.cloud.documentai.v1beta3.IProcessorVersion|null} [processorVersion] TrainProcessorVersionRequest processorVersion * @property {google.cloud.documentai.v1beta3.IDocumentSchema|null} [documentSchema] TrainProcessorVersionRequest documentSchema @@ -96489,6 +96801,14 @@ */ TrainProcessorVersionRequest.prototype.customDocumentExtractionOptions = null; + /** + * TrainProcessorVersionRequest foundationModelTuningOptions. + * @member {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions|null|undefined} foundationModelTuningOptions + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + * @instance + */ + TrainProcessorVersionRequest.prototype.foundationModelTuningOptions = null; + /** * TrainProcessorVersionRequest parent. * @member {string} parent @@ -96534,12 +96854,12 @@ /** * TrainProcessorVersionRequest processorFlags. - * @member {"customDocumentExtractionOptions"|undefined} processorFlags + * @member {"customDocumentExtractionOptions"|"foundationModelTuningOptions"|undefined} processorFlags * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest * @instance */ Object.defineProperty(TrainProcessorVersionRequest.prototype, "processorFlags", { - get: $util.oneOfGetter($oneOfFields = ["customDocumentExtractionOptions"]), + get: $util.oneOfGetter($oneOfFields = ["customDocumentExtractionOptions", "foundationModelTuningOptions"]), set: $util.oneOfSetter($oneOfFields) }); @@ -96579,6 +96899,8 @@ writer.uint32(/* id 8, wireType 2 =*/66).string(message.baseProcessorVersion); if (message.documentSchema != null && Object.hasOwnProperty.call(message, "documentSchema")) $root.google.cloud.documentai.v1beta3.DocumentSchema.encode(message.documentSchema, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.foundationModelTuningOptions != null && Object.hasOwnProperty.call(message, "foundationModelTuningOptions")) + $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.encode(message.foundationModelTuningOptions, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -96617,6 +96939,10 @@ message.customDocumentExtractionOptions = $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.decode(reader, reader.uint32()); break; } + case 12: { + message.foundationModelTuningOptions = $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.decode(reader, reader.uint32()); + break; + } case 1: { message.parent = reader.string(); break; @@ -96681,6 +97007,16 @@ return "customDocumentExtractionOptions." + error; } } + if (message.foundationModelTuningOptions != null && message.hasOwnProperty("foundationModelTuningOptions")) { + if (properties.processorFlags === 1) + return "processorFlags: multiple values"; + properties.processorFlags = 1; + { + var error = $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.verify(message.foundationModelTuningOptions); + if (error) + return "foundationModelTuningOptions." + error; + } + } if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; @@ -96722,6 +97058,11 @@ throw TypeError(".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.customDocumentExtractionOptions: object expected"); message.customDocumentExtractionOptions = $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.fromObject(object.customDocumentExtractionOptions); } + if (object.foundationModelTuningOptions != null) { + if (typeof object.foundationModelTuningOptions !== "object") + throw TypeError(".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.foundationModelTuningOptions: object expected"); + message.foundationModelTuningOptions = $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.fromObject(object.foundationModelTuningOptions); + } if (object.parent != null) message.parent = String(object.parent); if (object.processorVersion != null) { @@ -96779,6 +97120,11 @@ object.baseProcessorVersion = message.baseProcessorVersion; if (message.documentSchema != null && message.hasOwnProperty("documentSchema")) object.documentSchema = $root.google.cloud.documentai.v1beta3.DocumentSchema.toObject(message.documentSchema, options); + if (message.foundationModelTuningOptions != null && message.hasOwnProperty("foundationModelTuningOptions")) { + object.foundationModelTuningOptions = $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.toObject(message.foundationModelTuningOptions, options); + if (options.oneofs) + object.processorFlags = "foundationModelTuningOptions"; + } return object; }; @@ -97288,6 +97634,233 @@ return CustomDocumentExtractionOptions; })(); + TrainProcessorVersionRequest.FoundationModelTuningOptions = (function() { + + /** + * Properties of a FoundationModelTuningOptions. + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + * @interface IFoundationModelTuningOptions + * @property {number|null} [trainSteps] FoundationModelTuningOptions trainSteps + * @property {number|null} [learningRateMultiplier] FoundationModelTuningOptions learningRateMultiplier + */ + + /** + * Constructs a new FoundationModelTuningOptions. + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + * @classdesc Represents a FoundationModelTuningOptions. + * @implements IFoundationModelTuningOptions + * @constructor + * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions=} [properties] Properties to set + */ + function FoundationModelTuningOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FoundationModelTuningOptions trainSteps. + * @member {number} trainSteps + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @instance + */ + FoundationModelTuningOptions.prototype.trainSteps = 0; + + /** + * FoundationModelTuningOptions learningRateMultiplier. + * @member {number} learningRateMultiplier + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @instance + */ + FoundationModelTuningOptions.prototype.learningRateMultiplier = 0; + + /** + * Creates a new FoundationModelTuningOptions instance using the specified properties. + * @function create + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions=} [properties] Properties to set + * @returns {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions} FoundationModelTuningOptions instance + */ + FoundationModelTuningOptions.create = function create(properties) { + return new FoundationModelTuningOptions(properties); + }; + + /** + * Encodes the specified FoundationModelTuningOptions message. Does not implicitly {@link google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.verify|verify} messages. + * @function encode + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions} message FoundationModelTuningOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FoundationModelTuningOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainSteps != null && Object.hasOwnProperty.call(message, "trainSteps")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trainSteps); + if (message.learningRateMultiplier != null && Object.hasOwnProperty.call(message, "learningRateMultiplier")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.learningRateMultiplier); + return writer; + }; + + /** + * Encodes the specified FoundationModelTuningOptions message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.IFoundationModelTuningOptions} message FoundationModelTuningOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FoundationModelTuningOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FoundationModelTuningOptions message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions} FoundationModelTuningOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FoundationModelTuningOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.trainSteps = reader.int32(); + break; + } + case 3: { + message.learningRateMultiplier = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FoundationModelTuningOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions} FoundationModelTuningOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FoundationModelTuningOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FoundationModelTuningOptions message. + * @function verify + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FoundationModelTuningOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainSteps != null && message.hasOwnProperty("trainSteps")) + if (!$util.isInteger(message.trainSteps)) + return "trainSteps: integer expected"; + if (message.learningRateMultiplier != null && message.hasOwnProperty("learningRateMultiplier")) + if (typeof message.learningRateMultiplier !== "number") + return "learningRateMultiplier: number expected"; + return null; + }; + + /** + * Creates a FoundationModelTuningOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions} FoundationModelTuningOptions + */ + FoundationModelTuningOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions) + return object; + var message = new $root.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions(); + if (object.trainSteps != null) + message.trainSteps = object.trainSteps | 0; + if (object.learningRateMultiplier != null) + message.learningRateMultiplier = Number(object.learningRateMultiplier); + return message; + }; + + /** + * Creates a plain object from a FoundationModelTuningOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions} message FoundationModelTuningOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FoundationModelTuningOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainSteps = 0; + object.learningRateMultiplier = 0; + } + if (message.trainSteps != null && message.hasOwnProperty("trainSteps")) + object.trainSteps = message.trainSteps; + if (message.learningRateMultiplier != null && message.hasOwnProperty("learningRateMultiplier")) + object.learningRateMultiplier = options.json && !isFinite(message.learningRateMultiplier) ? String(message.learningRateMultiplier) : message.learningRateMultiplier; + return object; + }; + + /** + * Converts this FoundationModelTuningOptions to JSON. + * @function toJSON + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @instance + * @returns {Object.} JSON object + */ + FoundationModelTuningOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FoundationModelTuningOptions + * @function getTypeUrl + * @memberof google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FoundationModelTuningOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions"; + }; + + return FoundationModelTuningOptions; + })(); + return TrainProcessorVersionRequest; })(); diff --git a/packages/google-cloud-documentai/protos/protos.json b/packages/google-cloud-documentai/protos/protos.json index e6295f18ae05..d1fe940815e4 100644 --- a/packages/google-cloud-documentai/protos/protos.json +++ b/packages/google-cloud-documentai/protos/protos.json @@ -1860,6 +1860,13 @@ "ocrConfig": { "type": "OcrConfig", "id": 1 + }, + "schemaOverride": { + "type": "DocumentSchema", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -1919,6 +1926,14 @@ "processOptions": { "type": "ProcessOptions", "id": 7 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1986,6 +2001,14 @@ "processOptions": { "type": "ProcessOptions", "id": 7 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2747,6 +2770,10 @@ "type": "string", "id": 1 }, + "displayName": { + "type": "string", + "id": 6 + }, "valueType": { "type": "string", "id": 2 @@ -5643,6 +5670,7 @@ "type": "DocumentWarehouseConfig", "id": 5, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } }, @@ -7277,6 +7305,10 @@ "type": "string", "id": 1 }, + "displayName": { + "type": "string", + "id": 6 + }, "valueType": { "type": "string", "id": 2 @@ -7967,6 +7999,14 @@ "processOptions": { "type": "ProcessOptions", "id": 7 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -8056,6 +8096,14 @@ "processOptions": { "type": "ProcessOptions", "id": 7 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -8497,7 +8545,8 @@ "oneofs": { "processorFlags": { "oneof": [ - "customDocumentExtractionOptions" + "customDocumentExtractionOptions", + "foundationModelTuningOptions" ] } }, @@ -8506,6 +8555,10 @@ "type": "CustomDocumentExtractionOptions", "id": 5 }, + "foundationModelTuningOptions": { + "type": "FoundationModelTuningOptions", + "id": 12 + }, "parent": { "type": "string", "id": 1, @@ -8572,6 +8625,24 @@ } } } + }, + "FoundationModelTuningOptions": { + "fields": { + "trainSteps": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "learningRateMultiplier": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, diff --git a/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.batch_process_documents.js b/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.batch_process_documents.js index cc23b0af4243..36db80eb1741 100644 --- a/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.batch_process_documents.js +++ b/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.batch_process_documents.js @@ -58,6 +58,14 @@ function main(name) { * Inference-time options for the process API */ // const processOptions = {} + /** + * Optional. The labels with user-defined metadata for the request. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] // Imports the Documentai library const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1; diff --git a/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.create_processor.js b/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.create_processor.js index a169483ab622..7fa934a98b00 100644 --- a/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.create_processor.js +++ b/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.create_processor.js @@ -36,7 +36,8 @@ function main(parent, processor) { /** * Required. The processor to be created, requires * Processor.type google.cloud.documentai.v1.Processor.type and - * Processor.display_name to be set. Also, the + * Processor.display_name google.cloud.documentai.v1.Processor.display_name + * to be set. Also, the * Processor.kms_key_name google.cloud.documentai.v1.Processor.kms_key_name * field must be set if the processor is under CMEK. */ diff --git a/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.process_document.js b/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.process_document.js index bbb4b44373ba..3d6ae30d1d11 100644 --- a/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.process_document.js +++ b/packages/google-cloud-documentai/samples/generated/v1/document_processor_service.process_document.js @@ -69,6 +69,14 @@ function main(name) { * Inference-time options for the process API */ // const processOptions = {} + /** + * Optional. The labels with user-defined metadata for the request. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] // Imports the Documentai library const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1; diff --git a/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json b/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json index 7b69021c8c94..5b6c48108801 100644 --- a/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json +++ b/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 90, + "end": 98, "type": "FULL" } ], @@ -58,6 +58,10 @@ { "name": "process_options", "type": ".google.cloud.documentai.v1.ProcessOptions" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" } ], "resultType": ".google.cloud.documentai.v1.ProcessResponse", @@ -86,7 +90,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 88, "type": "FULL" } ], @@ -114,6 +118,10 @@ { "name": "process_options", "type": ".google.cloud.documentai.v1.ProcessOptions" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" } ], "resultType": ".google.longrunning.Operation", @@ -626,7 +634,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.batch_process_documents.js b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.batch_process_documents.js index f1707d71dc70..d5382c33686c 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.batch_process_documents.js +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.batch_process_documents.js @@ -66,6 +66,14 @@ function main(name) { * Inference-time options for the process API */ // const processOptions = {} + /** + * Optional. The labels with user-defined metadata for the request. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] // Imports the Documentai library const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3; diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.create_processor.js b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.create_processor.js index 1670026872c2..eb9fa4fe23b9 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.create_processor.js +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.create_processor.js @@ -36,7 +36,8 @@ function main(parent, processor) { /** * Required. The processor to be created, requires * Processor.type google.cloud.documentai.v1beta3.Processor.type and - * Processor.display_name to be set. Also, the + * Processor.display_name google.cloud.documentai.v1beta3.Processor.display_name + * to be set. Also, the * Processor.kms_key_name google.cloud.documentai.v1beta3.Processor.kms_key_name * field must be set if the processor is under CMEK. */ diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.process_document.js b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.process_document.js index 119eee2eeaa7..0c773f04ddb9 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.process_document.js +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.process_document.js @@ -76,6 +76,14 @@ function main(name) { * Inference-time options for the process API */ // const processOptions = {} + /** + * Optional. The labels with user-defined metadata for the request. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] // Imports the Documentai library const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3; diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.train_processor_version.js b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.train_processor_version.js index ea31a86fcd00..339400ec5418 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.train_processor_version.js +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/document_processor_service.train_processor_version.js @@ -32,6 +32,10 @@ function main(parent, processorVersion) { * Options to control Custom Document Extraction (CDE) Processor. */ // const customDocumentExtractionOptions = {} + /** + * Options to control foundation model tuning of a processor. + */ + // const foundationModelTuningOptions = {} /** * Required. The parent (project, location and processor) to create the new * version for. Format: diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/document_service.list_documents.js b/packages/google-cloud-documentai/samples/generated/v1beta3/document_service.list_documents.js index ed679f313dbd..32e5e51ed20a 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/document_service.list_documents.js +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/document_service.list_documents.js @@ -67,8 +67,9 @@ function main(dataset) { */ // const filter = 'abc123' /** - * Optional. Controls if the ListDocuments request requires a total size - * of matched documents. See ListDocumentsResponse.total_size. + * Optional. Controls if the request requires a total size of matched + * documents. See + * ListDocumentsResponse.total_size google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size. * Enabling this flag may adversely impact performance. * Defaults to false. */ @@ -76,10 +77,13 @@ function main(dataset) { /** * Optional. Number of results to skip beginning from the `page_token` if * provided. https://google.aip.dev/158#skipping-results. It must be a - * non-negative integer. Negative values wil be rejected. Note that this is + * non-negative integer. Negative values will be rejected. Note that this is * not the number of pages to skip. If this value causes the cursor to move - * past the end of results, `ListDocumentsResponse.document_metadata` and - * `ListDocumentsResponse.next_page_token` will be empty. + * past the end of results, + * ListDocumentsResponse.document_metadata google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata + * and + * ListDocumentsResponse.next_page_token google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token + * will be empty. */ // const skip = 1234 diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json b/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json index 9f970300bda0..8318ea603d9c 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 105, "type": "FULL" } ], @@ -62,6 +62,10 @@ { "name": "process_options", "type": ".google.cloud.documentai.v1beta3.ProcessOptions" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" } ], "resultType": ".google.cloud.documentai.v1beta3.ProcessResponse", @@ -90,7 +94,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 96, "type": "FULL" } ], @@ -126,6 +130,10 @@ { "name": "process_options", "type": ".google.cloud.documentai.v1beta3.ProcessOptions" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" } ], "resultType": ".google.longrunning.Operation", @@ -370,7 +378,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 84, "type": "FULL" } ], @@ -383,6 +391,10 @@ "name": "custom_document_extraction_options", "type": ".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions" }, + { + "name": "foundation_model_tuning_options", + "type": ".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions" + }, { "name": "parent", "type": "TYPE_STRING" @@ -638,7 +650,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -1226,7 +1238,7 @@ "segments": [ { "start": 25, - "end": 105, + "end": 109, "type": "FULL" } ], diff --git a/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts b/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts index bd5220934d7c..ced4e9c272ad 100644 --- a/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts +++ b/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts @@ -680,6 +680,13 @@ export class DocumentProcessorServiceClient { * the form of `{document_field_name}` or `pages.{page_field_name}`. * @param {google.cloud.documentai.v1.ProcessOptions} request.processOptions * Inference-time options for the process API + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @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. @@ -1125,7 +1132,8 @@ export class DocumentProcessorServiceClient { * @param {google.cloud.documentai.v1.Processor} request.processor * Required. The processor to be created, requires * {@link protos.google.cloud.documentai.v1.Processor.type|Processor.type} and - * {@link protos.|Processor.display_name]} to be set. Also, the + * {@link protos.google.cloud.documentai.v1.Processor.display_name|Processor.display_name} + * to be set. Also, the * {@link protos.google.cloud.documentai.v1.Processor.kms_key_name|Processor.kms_key_name} * field must be set if the processor is under CMEK. * @param {object} [options] @@ -1330,6 +1338,13 @@ export class DocumentProcessorServiceClient { * `false`. * @param {google.cloud.documentai.v1.ProcessOptions} request.processOptions * Inference-time options for the process API + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @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. diff --git a/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts b/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts index 73b9d706955c..6903106fd0d5 100644 --- a/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts +++ b/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts @@ -706,6 +706,13 @@ export class DocumentProcessorServiceClient { * the form of `{document_field_name}` or `pages.{page_field_name}`. * @param {google.cloud.documentai.v1beta3.ProcessOptions} request.processOptions * Inference-time options for the process API + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @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. @@ -1177,7 +1184,8 @@ export class DocumentProcessorServiceClient { * @param {google.cloud.documentai.v1beta3.Processor} request.processor * Required. The processor to be created, requires * {@link protos.google.cloud.documentai.v1beta3.Processor.type|Processor.type} and - * {@link protos.|Processor.display_name]} to be set. Also, the + * {@link protos.google.cloud.documentai.v1beta3.Processor.display_name|Processor.display_name} + * to be set. Also, the * {@link protos.google.cloud.documentai.v1beta3.Processor.kms_key_name|Processor.kms_key_name} * field must be set if the processor is under CMEK. * @param {object} [options] @@ -1392,6 +1400,13 @@ export class DocumentProcessorServiceClient { * `false`. * @param {google.cloud.documentai.v1beta3.ProcessOptions} request.processOptions * Inference-time options for the process API + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @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. @@ -1530,6 +1545,8 @@ export class DocumentProcessorServiceClient { * The request object that will be sent. * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions} request.customDocumentExtractionOptions * Options to control Custom Document Extraction (CDE) Processor. + * @param {google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions} request.foundationModelTuningOptions + * Options to control foundation model tuning of a processor. * @param {string} request.parent * Required. The parent (project, location and processor) to create the new * version for. Format: diff --git a/packages/google-cloud-documentai/src/v1beta3/document_service_client.ts b/packages/google-cloud-documentai/src/v1beta3/document_service_client.ts index fb389f261884..69b2b53330ab 100644 --- a/packages/google-cloud-documentai/src/v1beta3/document_service_client.ts +++ b/packages/google-cloud-documentai/src/v1beta3/document_service_client.ts @@ -1259,8 +1259,9 @@ export class DocumentServiceClient { * e.g. `EntityType=a AND EntityType=b` is NOT supported. * - String match is case sensitive (for filter `DisplayName` & `EntityType`). * @param {boolean} [request.returnTotalSize] - * Optional. Controls if the ListDocuments request requires a total size - * of matched documents. See ListDocumentsResponse.total_size. + * Optional. Controls if the request requires a total size of matched + * documents. See + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size|ListDocumentsResponse.total_size}. * * Enabling this flag may adversely impact performance. * @@ -1268,10 +1269,13 @@ export class DocumentServiceClient { * @param {number} [request.skip] * Optional. Number of results to skip beginning from the `page_token` if * provided. https://google.aip.dev/158#skipping-results. It must be a - * non-negative integer. Negative values wil be rejected. Note that this is + * non-negative integer. Negative values will be rejected. Note that this is * not the number of pages to skip. If this value causes the cursor to move - * past the end of results, `ListDocumentsResponse.document_metadata` and - * `ListDocumentsResponse.next_page_token` will be empty. + * past the end of results, + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata|ListDocumentsResponse.document_metadata} + * and + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token} + * will be empty. * @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. @@ -1397,8 +1401,9 @@ export class DocumentServiceClient { * e.g. `EntityType=a AND EntityType=b` is NOT supported. * - String match is case sensitive (for filter `DisplayName` & `EntityType`). * @param {boolean} [request.returnTotalSize] - * Optional. Controls if the ListDocuments request requires a total size - * of matched documents. See ListDocumentsResponse.total_size. + * Optional. Controls if the request requires a total size of matched + * documents. See + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size|ListDocumentsResponse.total_size}. * * Enabling this flag may adversely impact performance. * @@ -1406,10 +1411,13 @@ export class DocumentServiceClient { * @param {number} [request.skip] * Optional. Number of results to skip beginning from the `page_token` if * provided. https://google.aip.dev/158#skipping-results. It must be a - * non-negative integer. Negative values wil be rejected. Note that this is + * non-negative integer. Negative values will be rejected. Note that this is * not the number of pages to skip. If this value causes the cursor to move - * past the end of results, `ListDocumentsResponse.document_metadata` and - * `ListDocumentsResponse.next_page_token` will be empty. + * past the end of results, + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata|ListDocumentsResponse.document_metadata} + * and + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token} + * will be empty. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1483,8 +1491,9 @@ export class DocumentServiceClient { * e.g. `EntityType=a AND EntityType=b` is NOT supported. * - String match is case sensitive (for filter `DisplayName` & `EntityType`). * @param {boolean} [request.returnTotalSize] - * Optional. Controls if the ListDocuments request requires a total size - * of matched documents. See ListDocumentsResponse.total_size. + * Optional. Controls if the request requires a total size of matched + * documents. See + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size|ListDocumentsResponse.total_size}. * * Enabling this flag may adversely impact performance. * @@ -1492,10 +1501,13 @@ export class DocumentServiceClient { * @param {number} [request.skip] * Optional. Number of results to skip beginning from the `page_token` if * provided. https://google.aip.dev/158#skipping-results. It must be a - * non-negative integer. Negative values wil be rejected. Note that this is + * non-negative integer. Negative values will be rejected. Note that this is * not the number of pages to skip. If this value causes the cursor to move - * past the end of results, `ListDocumentsResponse.document_metadata` and - * `ListDocumentsResponse.next_page_token` will be empty. + * past the end of results, + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata|ListDocumentsResponse.document_metadata} + * and + * {@link protos.google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token} + * will be empty. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} From e1afd1fc6779e73022f996ffa44378d0096f6269 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:28:46 -0800 Subject: [PATCH 10/19] feat: [contentwarehouse] A new field `schema_override` is added to message `ProcessOptions` (#5052) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: A new field `schema_override` is added to message `ProcessOptions` feat: A new field `labels` is added to messages `ProcessRequest` and `BatchProcessRequest` feat: A new field `display_name` is added to message `DocumentSchema` docs: updated comments PiperOrigin-RevId: 607148983 Source-Link: https://github.com/googleapis/googleapis/commit/9a9bc9b427e4516f79b9753c4fad91d425334755 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b8c71bc205c3adea235dc876c215d2ceccbb66a8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRlbnR3YXJlaG91c2UvLk93bEJvdC55YW1sIiwiaCI6ImI4YzcxYmMyMDVjM2FkZWEyMzVkYzg3NmMyMTVkMmNlY2NiYjY2YTgifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/cloud/documentai/v1/document.proto | 3 +- .../v1/document_processor_service.proto | 30 +++++++++++++++++-- .../cloud/documentai/v1/document_schema.proto | 13 ++++---- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto index 92ccfc0a9293..8c66f6b93a68 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto @@ -754,7 +754,8 @@ message Document { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Identifies the bounding polygon of a layout element on the - // page. + // page. If `layout_type` is set, the bounding polygon must be exactly the + // same to the layout element it's referring to. BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidence of detected page element, if applicable. Range diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto index 9117bed524fa..447b28ba1c88 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto @@ -352,9 +352,16 @@ message ProcessOptions { int32 from_end = 7; } - // Only applicable to `OCR_PROCESSOR`. Returns error if set on other - // processor types. + // Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. + // Returns error if set on other processor types. OcrConfig ocr_config = 1; + + // Optional. Override the schema of the + // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will + // return an Invalid Argument error if this field is set when the underlying + // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't + // support schema override. + DocumentSchema schema_override = 8 [(google.api.field_behavior) = OPTIONAL]; } // Request message for the @@ -400,6 +407,14 @@ message ProcessRequest { // Inference-time options for the process API ProcessOptions process_options = 7; + + // Optional. The labels with user-defined metadata for the request. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; } // The status of human review on a processed document. @@ -483,6 +498,14 @@ message BatchProcessRequest { // Inference-time options for the process API ProcessOptions process_options = 7; + + // Optional. The labels with user-defined metadata for the request. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -803,7 +826,8 @@ message CreateProcessorRequest { // Required. The processor to be created, requires // [Processor.type][google.cloud.documentai.v1.Processor.type] and - // [Processor.display_name]][] to be set. Also, the + // [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] + // to be set. Also, the // [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] // field must be set if the processor is under CMEK. Processor processor = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto index 72afd826c9ff..71b2791b826c 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto @@ -39,13 +39,13 @@ message DocumentSchema { // Defines properties that can be part of the entity type. message Property { // Types of occurrences of the entity type in the document. This - // represents the number of instances of an entity, not number of mentions - // of an entity. For example, a bank statement may only have one - // `account_number`, but this account number may be mentioned in several - // places on the document. In this case the 'account_number' would be + // represents the number of instances, not mentions, of an entity. + // For example, a bank statement might only have one + // `account_number`, but this account number can be mentioned in several + // places on the document. In this case, the `account_number` is // considered a `REQUIRED_ONCE` entity type. If, on the other hand, we // expect a bank statement to contain the status of multiple different - // accounts for the customers, the occurrence type will be set to + // accounts for the customers, the occurrence type is set to // `REQUIRED_MULTIPLE`. enum OccurrenceType { // Unspecified occurrence type. @@ -70,6 +70,9 @@ message DocumentSchema { // EntityType name. string name = 1; + // User defined name for the property. + string display_name = 6; + // A reference to the value type of the property. This type is subject // to the same conventions as the `Entity.base_types` field. string value_type = 2; From 79a4df0201d6c8ee7e7498fbaff6dd2d10f70a54 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:29:06 -0800 Subject: [PATCH 11/19] docs: [servicehealth] update proto comments (#5053) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: update proto comments PiperOrigin-RevId: 607453590 Source-Link: https://github.com/googleapis/googleapis/commit/f65b9f283e62410dedcc0f5f6d2647a0cf05a77c Source-Link: https://github.com/googleapis/googleapis-gen/commit/31d0d15acfe31204627f797fc7df6794a5fbe0c0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VoZWFsdGgvLk93bEJvdC55YW1sIiwiaCI6IjMxZDBkMTVhY2ZlMzEyMDQ2MjdmNzk3ZmM3ZGY2Nzk0YTVmYmUwYzAifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../servicehealth/v1/event_resources.proto | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto b/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto index e8caa03a5335..33fad0c33815 100644 --- a/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto +++ b/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto @@ -105,12 +105,18 @@ message Event { // name of the parent. MERGED = 4; - // The incident was automatically closed because the issues couldn’t be - // confirmed or is no longer impacting Google Cloud Products and/or - // Locations. + // The incident was automatically closed because of the following reasons: + // + // * The impact of the incident could not be confirmed. + // * The incident was intermittent or resolved itself. + // + // The incident does not have a resolution because no action or + // investigation happened. If it is intermittent, the incident may reopen. AUTO_CLOSED = 9; - // The incident was verified as non-impactful. No further action required. + // Upon investigation, Google engineers concluded that the incident is not + // affecting a Google Cloud product. This state can change if the incident + // is reviewed again. FALSE_POSITIVE = 10; } @@ -273,12 +279,18 @@ message OrganizationEvent { // parent. MERGED = 4; - // The incident was automatically closed because the issues couldn’t be - // confirmed or is no longer impacting Google Cloud Products and/or - // Locations. + // The incident was automatically closed because of the following reasons: + // + // * The impact of the incident could not be confirmed. + // * The incident was intermittent or resolved itself. + // + // The incident does not have a resolution because no action or + // investigation happened. If it is intermittent, the incident may reopen. AUTO_CLOSED = 9; - // The incident was verified as non-impactful. No further action required. + // Upon investigation, Google engineers concluded that the incident is not + // affecting a Google Cloud product. This state can change if the incident + // is reviewed again. FALSE_POSITIVE = 10; } From c53c6ea8311a921b16a4e3b3c4d3d941afd82245 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:29:21 -0800 Subject: [PATCH 12/19] feat: [places] add AutoComplete API (#5056) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add AutoComplete API feat: add Searchable EV feature to TextSearch API PiperOrigin-RevId: 608184544 Source-Link: https://github.com/googleapis/googleapis/commit/3049b76008977b1faa13d5c7b861c744ba4be0e4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2cac391ac8a560e9031c1c502ca08d62faad35ab Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcGxhY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIyY2FjMzkxYWM4YTU2MGU5MDMxYzFjNTAyY2EwOGQ2MmZhYWQzNWFiIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- packages/google-maps-places/README.md | 1 + .../protos/google/maps/places/v1/place.proto | 4 +- .../maps/places/v1/places_service.proto | 323 +- .../google-maps-places/protos/protos.d.ts | 1256 +++++++ packages/google-maps-places/protos/protos.js | 3182 +++++++++++++++++ .../google-maps-places/protos/protos.json | 288 ++ packages/google-maps-places/samples/README.md | 18 + .../v1/places.autocomplete_places.js | 150 + .../samples/generated/v1/places.get_place.js | 29 +- .../generated/v1/places.search_text.js | 4 + ...nippet_metadata_google.maps.places.v1.json | 94 +- .../src/v1/gapic_metadata.json | 10 + .../src/v1/places_client.ts | 195 +- .../src/v1/places_client_config.json | 4 + .../test/gapic_places_v1.ts | 84 + 15 files changed, 5624 insertions(+), 18 deletions(-) create mode 100644 packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js diff --git a/packages/google-maps-places/README.md b/packages/google-maps-places/README.md index 2c6f17f0631c..b84e6430af73 100644 --- a/packages/google-maps-places/README.md +++ b/packages/google-maps-places/README.md @@ -93,6 +93,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Places.autocomplete_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js,packages/google-maps-places/samples/README.md) | | Places.get_photo_media | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-places/samples/generated/v1/places.get_photo_media.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-places/samples/generated/v1/places.get_photo_media.js,packages/google-maps-places/samples/README.md) | | Places.get_place | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-places/samples/generated/v1/places.get_place.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-places/samples/generated/v1/places.get_place.js,packages/google-maps-places/samples/README.md) | | Places.search_nearby | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-places/samples/generated/v1/places.search_nearby.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-places/samples/generated/v1/places.search_nearby.js,packages/google-maps-places/samples/README.md) | diff --git a/packages/google-maps-places/protos/google/maps/places/v1/place.proto b/packages/google-maps-places/protos/google/maps/places/v1/place.proto index 5d29462e87a7..d8886dd32073 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/place.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/place.proto @@ -283,8 +283,8 @@ message Place { optional bool wheelchair_accessible_seating = 4; } - // An ID representing this place which may be used to look up this place - // again (a.k.a. the API "resource" name: places/place_id). + // This Place's resource name, in `places/{place_id}` format. Can be used to + // look up the Place. string name = 1; // The unique identifier of a place. diff --git a/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto b/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto index 0bcc8ec9cbe1..aec74fd87caf 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto @@ -21,8 +21,10 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/geo/type/viewport.proto"; +import "google/maps/places/v1/ev_charging.proto"; import "google/maps/places/v1/geometry.proto"; import "google/maps/places/v1/place.proto"; +import "google/type/latlng.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; @@ -66,13 +68,23 @@ service Places { option (google.api.method_signature) = "name"; } - // Get place details with a place id (in a name) string. + // Get the details of a place based on its resource name, which is a string + // in the `places/{place_id}` format. rpc GetPlace(GetPlaceRequest) returns (Place) { option (google.api.http) = { get: "/v1/{name=places/*}" }; option (google.api.method_signature) = "name"; } + + // Returns predictions for the given input. + rpc AutocompletePlaces(AutocompletePlacesRequest) + returns (AutocompletePlacesResponse) { + option (google.api.http) = { + post: "/v1/places:autocomplete" + body: "*" + }; + } } // Request proto for Search Nearby. @@ -214,7 +226,6 @@ message SearchNearbyRequest { // Response proto for Search Nearby. // -// message SearchNearbyResponse { // A list of places that meets user's requirements like places // types, number of places and specific location restriction. @@ -269,6 +280,19 @@ message SearchTextRequest { } } + // Searchable EV options of a place search request. + message EVOptions { + // Optional. Filtering places by minimum charging rate. Any places with + // charging a rate less than the minimum charging rate are filtered out. + double minimum_charging_rate_kw = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of preferred EV connector types. A place that does not + // support any of the listed connector types are filter out. + repeated EVConnectorType connector_types = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The text query for textual search. string text_query = 1 [(google.api.field_behavior) = REQUIRED]; @@ -336,6 +360,9 @@ message SearchTextRequest { // results outside given location will not be returned. Cannot be set along // with location_bias. LocationRestriction location_restriction = 14; + + // Optional. Set the searchable EV options of a place search request. + EVOptions ev_options = 15 [(google.api.field_behavior) = OPTIONAL]; } // Response proto for SearchText. @@ -411,11 +438,10 @@ message PhotoMedia { string photo_uri = 2; } -// Request for fetching a Place with a place id (in a name) string. +// Request for fetching a Place based on its resource name, which is a string in +// the `places/{place_id}` format. message GetPlaceRequest { - // Required. A place ID returned in a Place (with "places/" prefix), or - // equivalently the name in the same Place. Format: - // `places/{place_id}`. + // Required. The resource name of a place, in the `places/{place_id}` format. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "places.googleapis.com/Place" } @@ -438,4 +464,289 @@ message GetPlaceRequest { // // Note that 3-digit region codes are not currently supported. string region_code = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An arbitrary string which identifies an autocomplete session for + // billing purposes. Must be at most 36 characters in length. Otherwise an + // INVALID_ARGUMENT error is returned. + // + // The session begins when the user starts typing a query, and concludes when + // they select a place and a call to Place Details or Address Validation is + // made. Each session can have multiple queries, followed by one Place + // selection. The credentials used for each request within a session must + // belong to the same Google Cloud Console project. Once a session has + // concluded, the token is no longer valid; your app must generate a fresh + // token for each session. If the `session_token` parameter is omitted, or if + // you reuse a session token, the session is charged as if no session token + // was provided (each request is billed separately). + // + // We recommend the following guidelines: + // * Use session tokens for all Place Autocomplete calls. + // * Generate a fresh token for each session. Using a version 4 UUID is + // recommended. + // * Ensure that the credentials used for all Place Autocomplete, Place + // Details, and Address Validation requests within a session belong to the + // same Cloud Console project. + // * Be sure to pass a unique session token for each new session. Using the + // same token for more than one session will result in each request being + // billed individually. + string session_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request proto for AutocompletePlaces. +message AutocompletePlacesRequest { + // The region to search. The results may be biased around the specified + // region. + message LocationBias { + oneof type { + // A viewport defined by a northeast and a southwest corner. + google.geo.type.Viewport rectangle = 1; + + // A circle defined by a center point and radius. + Circle circle = 2; + } + } + + // The region to search. The results will be restricted to the specified + // region. + message LocationRestriction { + oneof type { + // A viewport defined by a northeast and a southwest corner. + google.geo.type.Viewport rectangle = 1; + + // A circle defined by a center point and radius. + Circle circle = 2; + } + } + + // Required. The text string on which to search. + string input = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Bias results to a specified location. + // + // At most one of `location_bias` or `location_restriction` should be set. If + // neither are set, the results will be biased by IP address, meaning the IP + // address will be mapped to an imprecise location and used as a biasing + // signal. + LocationBias location_bias = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Restrict results to a specified location. + // + // At most one of `location_bias` or `location_restriction` should be set. If + // neither are set, the results will be biased by IP address, meaning the IP + // address will be mapped to an imprecise location and used as a biasing + // signal. + LocationRestriction location_restriction = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Included primary Place type (e.g. "restaurant" or "gas_station") + // from + // https://developers.google.com/maps/documentation/places/web-service/place-types. + // A Place is only returned if its primary type is included in this list. Up + // to 5 values can be specified. If no types are specified, all Place types + // are returned. + repeated string included_primary_types = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only include results in the specified regions, specified as up to + // 15 CLDR two-character region codes. An empty set will not restrict the + // results. If both `location_restriction` and `included_region_codes` are + // set, the results will be located in the area of intersection. + repeated string included_region_codes = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The language in which to return results. Defaults to en-US. The + // results may be in mixed languages if the language used in `input` is + // different from `language_code` or if the returned Place does not have a + // translation from the local language to `language_code`. + string language_code = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The region code, specified as a CLDR two-character region code. + // This affects address formatting, result ranking, and may influence what + // results are returned. This does not restrict results to the specified + // region. To restrict results to a region, use `region_code_restriction`. + string region_code = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The origin point from which to calculate geodesic distance to the + // destination (returned as `distance_meters`). If this value is omitted, + // geodesic distance will not be returned. + google.type.LatLng origin = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A zero-based Unicode character offset of `input` indicating the + // cursor position in `input`. The cursor position may influence what + // predictions are returned. + // + // If empty, defaults to the length of `input`. + int32 input_offset = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the response will include both Place and query + // predictions. Otherwise the response will only return Place predictions. + bool include_query_predictions = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An arbitrary string which identifies an autocomplete session for + // billing purposes. Must be at most 36 characters in length. Otherwise an + // INVALID_ARGUMENT error is returned. + // + // The session begins when the user starts typing a query, and concludes when + // they select a place and a call to Place Details or Address Validation is + // made. Each session can have multiple queries, followed by one Place + // selection. The credentials used for each request within a session must + // belong to the same Google Cloud Console project. Once a session has + // concluded, the token is no longer valid; your app must generate a fresh + // token for each session. If the `session_token` parameter is omitted, or if + // you reuse a session token, the session is charged as if no session token + // was provided (each request is billed separately). + // + // We recommend the following guidelines: + // * Use session tokens for all Place Autocomplete calls. + // * Generate a fresh token for each session. Using a version 4 UUID is + // recommended. + // * Ensure that the credentials used for all Place Autocomplete, Place + // Details, and Address Validation requests within a session belong to the + // same Cloud Console project. + // * Be sure to pass a unique session token for each new session. Using the + // same token for more than one session will result in each request being + // billed individually. + string session_token = 11 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response proto for AutocompletePlaces. +message AutocompletePlacesResponse { + // An Autocomplete suggestion result. + message Suggestion { + // Identifies a substring within a given text. + message StringRange { + // Zero-based offset of the first Unicode character of the string + // (inclusive). + int32 start_offset = 1; + + // Zero-based offset of the last Unicode character (exclusive). + int32 end_offset = 2; + } + + // Text representing a Place or query prediction. The text may be used as is + // or formatted. + message FormattableText { + // Text that may be used as is or formatted with `matches`. + string text = 1; + + // A list of string ranges identifying where the input request matched in + // `text`. The ranges can be used to format specific parts of `text`. The + // substrings may not be exact matches of `input` if the matching was + // determined by criteria other than string matching (e.g. spell + // corrections or transliterations). + // + // These values are Unicode character offsets of `text`. The ranges are + // guaranteed to be ordered in increasing offset values. + repeated StringRange matches = 2; + } + + // Contains a breakdown of a Place or query prediction into main text + // and secondary text. + // + // For Place predictions, the main text contains the specific name of the + // Place. For query predictions, the main text contains the query. + // + // The secondary text contains additional disambiguating features (such as a + // city or region) to further identify the Place or refine the query. + message StructuredFormat { + // Represents the name of the Place or query. + FormattableText main_text = 1; + + // Represents additional disambiguating features (such as a city or + // region) to further identify the Place or refine the query. + FormattableText secondary_text = 2; + } + + // Prediction results for a Place Autocomplete prediction. + message PlacePrediction { + // The resource name of the suggested Place. This name can be used in + // other APIs that accept Place names. + string place = 1 [(google.api.resource_reference) = { + type: "places.googleapis.com/Place" + }]; + + // The unique identifier of the suggested Place. This identifier can be + // used in other APIs that accept Place IDs. + string place_id = 2; + + // Contains the human-readable name for the returned result. For + // establishment results, this is usually the business name and address. + // + // `text` is recommended for developers who wish to show a single UI + // element. Developers who wish to show two separate, but related, UI + // elements may want to use `structured_format` instead. They are two + // different ways to represent a Place prediction. Users should not try to + // parse `structured_format` into `text` or vice versa. + // + // This text may be different from the `display_name` returned by + // GetPlace. + // + // May be in mixed languages if the request `input` and `language_code` + // are in different languages or if the Place does not have a translation + // from the local language to `language_code`. + FormattableText text = 3; + + // A breakdown of the Place prediction into main text containing the name + // of the Place and secondary text containing additional disambiguating + // features (such as a city or region). + // + // `structured_format` is recommended for developers who wish to show two + // separate, but related, UI elements. Developers who wish to show a + // single UI element may want to use `text` instead. They are two + // different ways to represent a Place prediction. Users should not try to + // parse `structured_format` into `text` or vice versa. + StructuredFormat structured_format = 4; + + // List of types that apply to this Place from Table A or Table B in + // https://developers.google.com/maps/documentation/places/web-service/place-types. + // + // A type is a categorization of a Place. Places with shared types will + // share similar characteristics. + repeated string types = 5; + + // The length of the geodesic in meters from `origin` if `origin` is + // specified. Certain predictions such as routes may not populate this + // field. + int32 distance_meters = 6; + } + + // Prediction results for a Query Autocomplete prediction. + message QueryPrediction { + // The predicted text. This text does not represent a Place, but rather a + // text query that could be used in a search endpoint (e.g. TextSearch). + // + // `text` is recommended for developers who wish to show a single UI + // element. Developers who wish to show two separate, but related, UI + // elements may want to use `structured_format` instead. They are two + // different ways to represent a query prediction. Users should not try to + // parse `structured_format` into `text` or vice versa. + // + // May be in mixed languages if the request `input` and `language_code` + // are in different languages or if part of the query does not have a + // translation from the local language to `language_code`. + FormattableText text = 1; + + // A breakdown of the query prediction into main text containing the query + // and secondary text containing additional disambiguating features (such + // as a city or region). + // + // `structured_format` is recommended for developers who wish to show two + // separate, but related, UI elements. Developers who wish to show a + // single UI element may want to use `text` instead. They are two + // different ways to represent a query prediction. Users should not try to + // parse `structured_format` into `text` or vice versa. + StructuredFormat structured_format = 2; + } + + oneof kind { + // A prediction for a Place. + PlacePrediction place_prediction = 1; + + // A prediction for a query. + QueryPrediction query_prediction = 2; + } + } + + // Contains a list of suggestions, ordered in descending order of relevance. + repeated Suggestion suggestions = 1; } diff --git a/packages/google-maps-places/protos/protos.d.ts b/packages/google-maps-places/protos/protos.d.ts index 1db53ff8609c..591037f3011e 100644 --- a/packages/google-maps-places/protos/protos.d.ts +++ b/packages/google-maps-places/protos/protos.d.ts @@ -7058,6 +7058,20 @@ export namespace google { * @returns Promise */ public getPlace(request: google.maps.places.v1.IGetPlaceRequest): Promise; + + /** + * Calls AutocompletePlaces. + * @param request AutocompletePlacesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AutocompletePlacesResponse + */ + public autocompletePlaces(request: google.maps.places.v1.IAutocompletePlacesRequest, callback: google.maps.places.v1.Places.AutocompletePlacesCallback): void; + + /** + * Calls AutocompletePlaces. + * @param request AutocompletePlacesRequest message or plain object + * @returns Promise + */ + public autocompletePlaces(request: google.maps.places.v1.IAutocompletePlacesRequest): Promise; } namespace Places { @@ -7089,6 +7103,13 @@ export namespace google { * @param [response] Place */ type GetPlaceCallback = (error: (Error|null), response?: google.maps.places.v1.Place) => void; + + /** + * Callback as used by {@link google.maps.places.v1.Places|autocompletePlaces}. + * @param error Error, if any + * @param [response] AutocompletePlacesResponse + */ + type AutocompletePlacesCallback = (error: (Error|null), response?: google.maps.places.v1.AutocompletePlacesResponse) => void; } /** Properties of a SearchNearbyRequest. */ @@ -7481,6 +7502,9 @@ export namespace google { /** SearchTextRequest locationRestriction */ locationRestriction?: (google.maps.places.v1.SearchTextRequest.ILocationRestriction|null); + + /** SearchTextRequest evOptions */ + evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null); } /** Represents a SearchTextRequest. */ @@ -7528,6 +7552,9 @@ export namespace google { /** SearchTextRequest locationRestriction. */ public locationRestriction?: (google.maps.places.v1.SearchTextRequest.ILocationRestriction|null); + /** SearchTextRequest evOptions. */ + public evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null); + /** * Creates a new SearchTextRequest instance using the specified properties. * @param [properties] Properties to set @@ -7820,6 +7847,109 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a EVOptions. */ + interface IEVOptions { + + /** EVOptions minimumChargingRateKw */ + minimumChargingRateKw?: (number|null); + + /** EVOptions connectorTypes */ + connectorTypes?: (google.maps.places.v1.EVConnectorType[]|null); + } + + /** Represents a EVOptions. */ + class EVOptions implements IEVOptions { + + /** + * Constructs a new EVOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.SearchTextRequest.IEVOptions); + + /** EVOptions minimumChargingRateKw. */ + public minimumChargingRateKw: number; + + /** EVOptions connectorTypes. */ + public connectorTypes: google.maps.places.v1.EVConnectorType[]; + + /** + * Creates a new EVOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EVOptions instance + */ + public static create(properties?: google.maps.places.v1.SearchTextRequest.IEVOptions): google.maps.places.v1.SearchTextRequest.EVOptions; + + /** + * Encodes the specified EVOptions message. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.EVOptions.verify|verify} messages. + * @param message EVOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.SearchTextRequest.IEVOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EVOptions message, length delimited. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.EVOptions.verify|verify} messages. + * @param message EVOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.SearchTextRequest.IEVOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a EVOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EVOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.SearchTextRequest.EVOptions; + + /** + * Decodes a EVOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EVOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.SearchTextRequest.EVOptions; + + /** + * Verifies a EVOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a EVOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EVOptions + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.SearchTextRequest.EVOptions; + + /** + * Creates a plain object from a EVOptions message. Also converts values to other types if specified. + * @param message EVOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.SearchTextRequest.EVOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EVOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EVOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a SearchTextResponse. */ @@ -8148,6 +8278,9 @@ export namespace google { /** GetPlaceRequest regionCode */ regionCode?: (string|null); + + /** GetPlaceRequest sessionToken */ + sessionToken?: (string|null); } /** Represents a GetPlaceRequest. */ @@ -8168,6 +8301,9 @@ export namespace google { /** GetPlaceRequest regionCode. */ public regionCode: string; + /** GetPlaceRequest sessionToken. */ + public sessionToken: string; + /** * Creates a new GetPlaceRequest instance using the specified properties. * @param [properties] Properties to set @@ -8245,6 +8381,1126 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of an AutocompletePlacesRequest. */ + interface IAutocompletePlacesRequest { + + /** AutocompletePlacesRequest input */ + input?: (string|null); + + /** AutocompletePlacesRequest locationBias */ + locationBias?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationBias|null); + + /** AutocompletePlacesRequest locationRestriction */ + locationRestriction?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction|null); + + /** AutocompletePlacesRequest includedPrimaryTypes */ + includedPrimaryTypes?: (string[]|null); + + /** AutocompletePlacesRequest includedRegionCodes */ + includedRegionCodes?: (string[]|null); + + /** AutocompletePlacesRequest languageCode */ + languageCode?: (string|null); + + /** AutocompletePlacesRequest regionCode */ + regionCode?: (string|null); + + /** AutocompletePlacesRequest origin */ + origin?: (google.type.ILatLng|null); + + /** AutocompletePlacesRequest inputOffset */ + inputOffset?: (number|null); + + /** AutocompletePlacesRequest includeQueryPredictions */ + includeQueryPredictions?: (boolean|null); + + /** AutocompletePlacesRequest sessionToken */ + sessionToken?: (string|null); + } + + /** Represents an AutocompletePlacesRequest. */ + class AutocompletePlacesRequest implements IAutocompletePlacesRequest { + + /** + * Constructs a new AutocompletePlacesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.IAutocompletePlacesRequest); + + /** AutocompletePlacesRequest input. */ + public input: string; + + /** AutocompletePlacesRequest locationBias. */ + public locationBias?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationBias|null); + + /** AutocompletePlacesRequest locationRestriction. */ + public locationRestriction?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction|null); + + /** AutocompletePlacesRequest includedPrimaryTypes. */ + public includedPrimaryTypes: string[]; + + /** AutocompletePlacesRequest includedRegionCodes. */ + public includedRegionCodes: string[]; + + /** AutocompletePlacesRequest languageCode. */ + public languageCode: string; + + /** AutocompletePlacesRequest regionCode. */ + public regionCode: string; + + /** AutocompletePlacesRequest origin. */ + public origin?: (google.type.ILatLng|null); + + /** AutocompletePlacesRequest inputOffset. */ + public inputOffset: number; + + /** AutocompletePlacesRequest includeQueryPredictions. */ + public includeQueryPredictions: boolean; + + /** AutocompletePlacesRequest sessionToken. */ + public sessionToken: string; + + /** + * Creates a new AutocompletePlacesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AutocompletePlacesRequest instance + */ + public static create(properties?: google.maps.places.v1.IAutocompletePlacesRequest): google.maps.places.v1.AutocompletePlacesRequest; + + /** + * Encodes the specified AutocompletePlacesRequest message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.verify|verify} messages. + * @param message AutocompletePlacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.IAutocompletePlacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutocompletePlacesRequest message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.verify|verify} messages. + * @param message AutocompletePlacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.IAutocompletePlacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutocompletePlacesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutocompletePlacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesRequest; + + /** + * Decodes an AutocompletePlacesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutocompletePlacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesRequest; + + /** + * Verifies an AutocompletePlacesRequest message. + * @param message Plain 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 AutocompletePlacesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutocompletePlacesRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesRequest; + + /** + * Creates a plain object from an AutocompletePlacesRequest message. Also converts values to other types if specified. + * @param message AutocompletePlacesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutocompletePlacesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutocompletePlacesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutocompletePlacesRequest { + + /** Properties of a LocationBias. */ + interface ILocationBias { + + /** LocationBias rectangle */ + rectangle?: (google.geo.type.IViewport|null); + + /** LocationBias circle */ + circle?: (google.maps.places.v1.ICircle|null); + } + + /** Represents a LocationBias. */ + class LocationBias implements ILocationBias { + + /** + * Constructs a new LocationBias. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias); + + /** LocationBias rectangle. */ + public rectangle?: (google.geo.type.IViewport|null); + + /** LocationBias circle. */ + public circle?: (google.maps.places.v1.ICircle|null); + + /** LocationBias type. */ + public type?: ("rectangle"|"circle"); + + /** + * Creates a new LocationBias instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationBias instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias): google.maps.places.v1.AutocompletePlacesRequest.LocationBias; + + /** + * Encodes the specified LocationBias message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify|verify} messages. + * @param message LocationBias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationBias message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify|verify} messages. + * @param message LocationBias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationBias message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationBias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesRequest.LocationBias; + + /** + * Decodes a LocationBias message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationBias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesRequest.LocationBias; + + /** + * Verifies a LocationBias message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LocationBias message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationBias + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesRequest.LocationBias; + + /** + * Creates a plain object from a LocationBias message. Also converts values to other types if specified. + * @param message LocationBias + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesRequest.LocationBias, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocationBias to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LocationBias + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LocationRestriction. */ + interface ILocationRestriction { + + /** LocationRestriction rectangle */ + rectangle?: (google.geo.type.IViewport|null); + + /** LocationRestriction circle */ + circle?: (google.maps.places.v1.ICircle|null); + } + + /** Represents a LocationRestriction. */ + class LocationRestriction implements ILocationRestriction { + + /** + * Constructs a new LocationRestriction. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction); + + /** LocationRestriction rectangle. */ + public rectangle?: (google.geo.type.IViewport|null); + + /** LocationRestriction circle. */ + public circle?: (google.maps.places.v1.ICircle|null); + + /** LocationRestriction type. */ + public type?: ("rectangle"|"circle"); + + /** + * Creates a new LocationRestriction instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationRestriction instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction; + + /** + * Encodes the specified LocationRestriction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify|verify} messages. + * @param message LocationRestriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationRestriction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify|verify} messages. + * @param message LocationRestriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationRestriction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction; + + /** + * Decodes a LocationRestriction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction; + + /** + * Verifies a LocationRestriction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LocationRestriction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationRestriction + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction; + + /** + * Creates a plain object from a LocationRestriction message. Also converts values to other types if specified. + * @param message LocationRestriction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocationRestriction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LocationRestriction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an AutocompletePlacesResponse. */ + interface IAutocompletePlacesResponse { + + /** AutocompletePlacesResponse suggestions */ + suggestions?: (google.maps.places.v1.AutocompletePlacesResponse.ISuggestion[]|null); + } + + /** Represents an AutocompletePlacesResponse. */ + class AutocompletePlacesResponse implements IAutocompletePlacesResponse { + + /** + * Constructs a new AutocompletePlacesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.IAutocompletePlacesResponse); + + /** AutocompletePlacesResponse suggestions. */ + public suggestions: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion[]; + + /** + * Creates a new AutocompletePlacesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AutocompletePlacesResponse instance + */ + public static create(properties?: google.maps.places.v1.IAutocompletePlacesResponse): google.maps.places.v1.AutocompletePlacesResponse; + + /** + * Encodes the specified AutocompletePlacesResponse message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.verify|verify} messages. + * @param message AutocompletePlacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.IAutocompletePlacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutocompletePlacesResponse message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.verify|verify} messages. + * @param message AutocompletePlacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.IAutocompletePlacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutocompletePlacesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutocompletePlacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse; + + /** + * Decodes an AutocompletePlacesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutocompletePlacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse; + + /** + * Verifies an AutocompletePlacesResponse message. + * @param message Plain 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 AutocompletePlacesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutocompletePlacesResponse + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse; + + /** + * Creates a plain object from an AutocompletePlacesResponse message. Also converts values to other types if specified. + * @param message AutocompletePlacesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutocompletePlacesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutocompletePlacesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutocompletePlacesResponse { + + /** Properties of a Suggestion. */ + interface ISuggestion { + + /** Suggestion placePrediction */ + placePrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction|null); + + /** Suggestion queryPrediction */ + queryPrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction|null); + } + + /** Represents a Suggestion. */ + class Suggestion implements ISuggestion { + + /** + * Constructs a new Suggestion. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion); + + /** Suggestion placePrediction. */ + public placePrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction|null); + + /** Suggestion queryPrediction. */ + public queryPrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction|null); + + /** Suggestion kind. */ + public kind?: ("placePrediction"|"queryPrediction"); + + /** + * Creates a new Suggestion instance using the specified properties. + * @param [properties] Properties to set + * @returns Suggestion instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion): google.maps.places.v1.AutocompletePlacesResponse.Suggestion; + + /** + * Encodes the specified Suggestion message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify|verify} messages. + * @param message Suggestion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Suggestion message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify|verify} messages. + * @param message Suggestion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Suggestion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Suggestion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion; + + /** + * Decodes a Suggestion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Suggestion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion; + + /** + * Verifies a Suggestion message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Suggestion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Suggestion + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion; + + /** + * Creates a plain object from a Suggestion message. Also converts values to other types if specified. + * @param message Suggestion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Suggestion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Suggestion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Suggestion { + + /** Properties of a StringRange. */ + interface IStringRange { + + /** StringRange startOffset */ + startOffset?: (number|null); + + /** StringRange endOffset */ + endOffset?: (number|null); + } + + /** Represents a StringRange. */ + class StringRange implements IStringRange { + + /** + * Constructs a new StringRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange); + + /** StringRange startOffset. */ + public startOffset: number; + + /** StringRange endOffset. */ + public endOffset: number; + + /** + * Creates a new StringRange instance using the specified properties. + * @param [properties] Properties to set + * @returns StringRange instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange; + + /** + * Encodes the specified StringRange message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify|verify} messages. + * @param message StringRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StringRange message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify|verify} messages. + * @param message StringRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange; + + /** + * Decodes a StringRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StringRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange; + + /** + * Verifies a StringRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StringRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StringRange + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange; + + /** + * Creates a plain object from a StringRange message. Also converts values to other types if specified. + * @param message StringRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StringRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FormattableText. */ + interface IFormattableText { + + /** FormattableText text */ + text?: (string|null); + + /** FormattableText matches */ + matches?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange[]|null); + } + + /** Represents a FormattableText. */ + class FormattableText implements IFormattableText { + + /** + * Constructs a new FormattableText. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText); + + /** FormattableText text. */ + public text: string; + + /** FormattableText matches. */ + public matches: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange[]; + + /** + * Creates a new FormattableText instance using the specified properties. + * @param [properties] Properties to set + * @returns FormattableText instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText; + + /** + * Encodes the specified FormattableText message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify|verify} messages. + * @param message FormattableText message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FormattableText message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify|verify} messages. + * @param message FormattableText message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FormattableText message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FormattableText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText; + + /** + * Decodes a FormattableText message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FormattableText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText; + + /** + * Verifies a FormattableText message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FormattableText message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FormattableText + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText; + + /** + * Creates a plain object from a FormattableText message. Also converts values to other types if specified. + * @param message FormattableText + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FormattableText to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FormattableText + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StructuredFormat. */ + interface IStructuredFormat { + + /** StructuredFormat mainText */ + mainText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** StructuredFormat secondaryText */ + secondaryText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + } + + /** Represents a StructuredFormat. */ + class StructuredFormat implements IStructuredFormat { + + /** + * Constructs a new StructuredFormat. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat); + + /** StructuredFormat mainText. */ + public mainText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** StructuredFormat secondaryText. */ + public secondaryText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** + * Creates a new StructuredFormat instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredFormat instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat; + + /** + * Encodes the specified StructuredFormat message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify|verify} messages. + * @param message StructuredFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StructuredFormat message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify|verify} messages. + * @param message StructuredFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredFormat message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat; + + /** + * Decodes a StructuredFormat message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StructuredFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat; + + /** + * Verifies a StructuredFormat message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StructuredFormat message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StructuredFormat + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat; + + /** + * Creates a plain object from a StructuredFormat message. Also converts values to other types if specified. + * @param message StructuredFormat + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StructuredFormat to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StructuredFormat + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PlacePrediction. */ + interface IPlacePrediction { + + /** PlacePrediction place */ + place?: (string|null); + + /** PlacePrediction placeId */ + placeId?: (string|null); + + /** PlacePrediction text */ + text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** PlacePrediction structuredFormat */ + structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null); + + /** PlacePrediction types */ + types?: (string[]|null); + + /** PlacePrediction distanceMeters */ + distanceMeters?: (number|null); + } + + /** Represents a PlacePrediction. */ + class PlacePrediction implements IPlacePrediction { + + /** + * Constructs a new PlacePrediction. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction); + + /** PlacePrediction place. */ + public place: string; + + /** PlacePrediction placeId. */ + public placeId: string; + + /** PlacePrediction text. */ + public text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** PlacePrediction structuredFormat. */ + public structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null); + + /** PlacePrediction types. */ + public types: string[]; + + /** PlacePrediction distanceMeters. */ + public distanceMeters: number; + + /** + * Creates a new PlacePrediction instance using the specified properties. + * @param [properties] Properties to set + * @returns PlacePrediction instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction; + + /** + * Encodes the specified PlacePrediction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify|verify} messages. + * @param message PlacePrediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PlacePrediction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify|verify} messages. + * @param message PlacePrediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PlacePrediction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlacePrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction; + + /** + * Decodes a PlacePrediction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlacePrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction; + + /** + * Verifies a PlacePrediction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PlacePrediction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlacePrediction + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction; + + /** + * Creates a plain object from a PlacePrediction message. Also converts values to other types if specified. + * @param message PlacePrediction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlacePrediction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PlacePrediction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QueryPrediction. */ + interface IQueryPrediction { + + /** QueryPrediction text */ + text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** QueryPrediction structuredFormat */ + structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null); + } + + /** Represents a QueryPrediction. */ + class QueryPrediction implements IQueryPrediction { + + /** + * Constructs a new QueryPrediction. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction); + + /** QueryPrediction text. */ + public text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null); + + /** QueryPrediction structuredFormat. */ + public structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null); + + /** + * Creates a new QueryPrediction instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPrediction instance + */ + public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction; + + /** + * Encodes the specified QueryPrediction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify|verify} messages. + * @param message QueryPrediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryPrediction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify|verify} messages. + * @param message QueryPrediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryPrediction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryPrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction; + + /** + * Decodes a QueryPrediction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryPrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction; + + /** + * Verifies a QueryPrediction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryPrediction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryPrediction + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction; + + /** + * Creates a plain object from a QueryPrediction message. Also converts values to other types if specified. + * @param message QueryPrediction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryPrediction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QueryPrediction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } } } } diff --git a/packages/google-maps-places/protos/protos.js b/packages/google-maps-places/protos/protos.js index e8d4df3570c8..5f3e9b548930 100644 --- a/packages/google-maps-places/protos/protos.js +++ b/packages/google-maps-places/protos/protos.js @@ -19744,6 +19744,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.maps.places.v1.Places|autocompletePlaces}. + * @memberof google.maps.places.v1.Places + * @typedef AutocompletePlacesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.maps.places.v1.AutocompletePlacesResponse} [response] AutocompletePlacesResponse + */ + + /** + * Calls AutocompletePlaces. + * @function autocompletePlaces + * @memberof google.maps.places.v1.Places + * @instance + * @param {google.maps.places.v1.IAutocompletePlacesRequest} request AutocompletePlacesRequest message or plain object + * @param {google.maps.places.v1.Places.AutocompletePlacesCallback} callback Node-style callback called with the error, if any, and AutocompletePlacesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Places.prototype.autocompletePlaces = function autocompletePlaces(request, callback) { + return this.rpcCall(autocompletePlaces, $root.google.maps.places.v1.AutocompletePlacesRequest, $root.google.maps.places.v1.AutocompletePlacesResponse, request, callback); + }, "name", { value: "AutocompletePlaces" }); + + /** + * Calls AutocompletePlaces. + * @function autocompletePlaces + * @memberof google.maps.places.v1.Places + * @instance + * @param {google.maps.places.v1.IAutocompletePlacesRequest} request AutocompletePlacesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Places; })(); @@ -20715,6 +20748,7 @@ * @property {boolean|null} [strictTypeFiltering] SearchTextRequest strictTypeFiltering * @property {google.maps.places.v1.SearchTextRequest.ILocationBias|null} [locationBias] SearchTextRequest locationBias * @property {google.maps.places.v1.SearchTextRequest.ILocationRestriction|null} [locationRestriction] SearchTextRequest locationRestriction + * @property {google.maps.places.v1.SearchTextRequest.IEVOptions|null} [evOptions] SearchTextRequest evOptions */ /** @@ -20829,6 +20863,14 @@ */ SearchTextRequest.prototype.locationRestriction = null; + /** + * SearchTextRequest evOptions. + * @member {google.maps.places.v1.SearchTextRequest.IEVOptions|null|undefined} evOptions + * @memberof google.maps.places.v1.SearchTextRequest + * @instance + */ + SearchTextRequest.prototype.evOptions = null; + /** * Creates a new SearchTextRequest instance using the specified properties. * @function create @@ -20881,6 +20923,8 @@ $root.google.maps.places.v1.SearchTextRequest.LocationBias.encode(message.locationBias, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.locationRestriction != null && Object.hasOwnProperty.call(message, "locationRestriction")) $root.google.maps.places.v1.SearchTextRequest.LocationRestriction.encode(message.locationRestriction, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.evOptions != null && Object.hasOwnProperty.call(message, "evOptions")) + $root.google.maps.places.v1.SearchTextRequest.EVOptions.encode(message.evOptions, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); return writer; }; @@ -20970,6 +21014,10 @@ message.locationRestriction = $root.google.maps.places.v1.SearchTextRequest.LocationRestriction.decode(reader, reader.uint32()); break; } + case 15: { + message.evOptions = $root.google.maps.places.v1.SearchTextRequest.EVOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -21064,6 +21112,11 @@ if (error) return "locationRestriction." + error; } + if (message.evOptions != null && message.hasOwnProperty("evOptions")) { + var error = $root.google.maps.places.v1.SearchTextRequest.EVOptions.verify(message.evOptions); + if (error) + return "evOptions." + error; + } return null; }; @@ -21162,6 +21215,11 @@ throw TypeError(".google.maps.places.v1.SearchTextRequest.locationRestriction: object expected"); message.locationRestriction = $root.google.maps.places.v1.SearchTextRequest.LocationRestriction.fromObject(object.locationRestriction); } + if (object.evOptions != null) { + if (typeof object.evOptions !== "object") + throw TypeError(".google.maps.places.v1.SearchTextRequest.evOptions: object expected"); + message.evOptions = $root.google.maps.places.v1.SearchTextRequest.EVOptions.fromObject(object.evOptions); + } return message; }; @@ -21192,6 +21250,7 @@ object.strictTypeFiltering = false; object.locationBias = null; object.locationRestriction = null; + object.evOptions = null; } if (message.textQuery != null && message.hasOwnProperty("textQuery")) object.textQuery = message.textQuery; @@ -21220,6 +21279,8 @@ object.locationBias = $root.google.maps.places.v1.SearchTextRequest.LocationBias.toObject(message.locationBias, options); if (message.locationRestriction != null && message.hasOwnProperty("locationRestriction")) object.locationRestriction = $root.google.maps.places.v1.SearchTextRequest.LocationRestriction.toObject(message.locationRestriction, options); + if (message.evOptions != null && message.hasOwnProperty("evOptions")) + object.evOptions = $root.google.maps.places.v1.SearchTextRequest.EVOptions.toObject(message.evOptions, options); return object; }; @@ -21754,6 +21815,316 @@ return LocationRestriction; })(); + SearchTextRequest.EVOptions = (function() { + + /** + * Properties of a EVOptions. + * @memberof google.maps.places.v1.SearchTextRequest + * @interface IEVOptions + * @property {number|null} [minimumChargingRateKw] EVOptions minimumChargingRateKw + * @property {Array.|null} [connectorTypes] EVOptions connectorTypes + */ + + /** + * Constructs a new EVOptions. + * @memberof google.maps.places.v1.SearchTextRequest + * @classdesc Represents a EVOptions. + * @implements IEVOptions + * @constructor + * @param {google.maps.places.v1.SearchTextRequest.IEVOptions=} [properties] Properties to set + */ + function EVOptions(properties) { + this.connectorTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EVOptions minimumChargingRateKw. + * @member {number} minimumChargingRateKw + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @instance + */ + EVOptions.prototype.minimumChargingRateKw = 0; + + /** + * EVOptions connectorTypes. + * @member {Array.} connectorTypes + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @instance + */ + EVOptions.prototype.connectorTypes = $util.emptyArray; + + /** + * Creates a new EVOptions instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {google.maps.places.v1.SearchTextRequest.IEVOptions=} [properties] Properties to set + * @returns {google.maps.places.v1.SearchTextRequest.EVOptions} EVOptions instance + */ + EVOptions.create = function create(properties) { + return new EVOptions(properties); + }; + + /** + * Encodes the specified EVOptions message. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.EVOptions.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {google.maps.places.v1.SearchTextRequest.IEVOptions} message EVOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EVOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minimumChargingRateKw != null && Object.hasOwnProperty.call(message, "minimumChargingRateKw")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.minimumChargingRateKw); + if (message.connectorTypes != null && message.connectorTypes.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.connectorTypes.length; ++i) + writer.int32(message.connectorTypes[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified EVOptions message, length delimited. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.EVOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {google.maps.places.v1.SearchTextRequest.IEVOptions} message EVOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EVOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a EVOptions message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.SearchTextRequest.EVOptions} EVOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EVOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.SearchTextRequest.EVOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.minimumChargingRateKw = reader.double(); + break; + } + case 2: { + if (!(message.connectorTypes && message.connectorTypes.length)) + message.connectorTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.connectorTypes.push(reader.int32()); + } else + message.connectorTypes.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a EVOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.SearchTextRequest.EVOptions} EVOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EVOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a EVOptions message. + * @function verify + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EVOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.minimumChargingRateKw != null && message.hasOwnProperty("minimumChargingRateKw")) + if (typeof message.minimumChargingRateKw !== "number") + return "minimumChargingRateKw: number expected"; + if (message.connectorTypes != null && message.hasOwnProperty("connectorTypes")) { + if (!Array.isArray(message.connectorTypes)) + return "connectorTypes: array expected"; + for (var i = 0; i < message.connectorTypes.length; ++i) + switch (message.connectorTypes[i]) { + default: + return "connectorTypes: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + return null; + }; + + /** + * Creates a EVOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.SearchTextRequest.EVOptions} EVOptions + */ + EVOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.SearchTextRequest.EVOptions) + return object; + var message = new $root.google.maps.places.v1.SearchTextRequest.EVOptions(); + if (object.minimumChargingRateKw != null) + message.minimumChargingRateKw = Number(object.minimumChargingRateKw); + if (object.connectorTypes) { + if (!Array.isArray(object.connectorTypes)) + throw TypeError(".google.maps.places.v1.SearchTextRequest.EVOptions.connectorTypes: array expected"); + message.connectorTypes = []; + for (var i = 0; i < object.connectorTypes.length; ++i) + switch (object.connectorTypes[i]) { + default: + if (typeof object.connectorTypes[i] === "number") { + message.connectorTypes[i] = object.connectorTypes[i]; + break; + } + case "EV_CONNECTOR_TYPE_UNSPECIFIED": + case 0: + message.connectorTypes[i] = 0; + break; + case "EV_CONNECTOR_TYPE_OTHER": + case 1: + message.connectorTypes[i] = 1; + break; + case "EV_CONNECTOR_TYPE_J1772": + case 2: + message.connectorTypes[i] = 2; + break; + case "EV_CONNECTOR_TYPE_TYPE_2": + case 3: + message.connectorTypes[i] = 3; + break; + case "EV_CONNECTOR_TYPE_CHADEMO": + case 4: + message.connectorTypes[i] = 4; + break; + case "EV_CONNECTOR_TYPE_CCS_COMBO_1": + case 5: + message.connectorTypes[i] = 5; + break; + case "EV_CONNECTOR_TYPE_CCS_COMBO_2": + case 6: + message.connectorTypes[i] = 6; + break; + case "EV_CONNECTOR_TYPE_TESLA": + case 7: + message.connectorTypes[i] = 7; + break; + case "EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T": + case 8: + message.connectorTypes[i] = 8; + break; + case "EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET": + case 9: + message.connectorTypes[i] = 9; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a EVOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {google.maps.places.v1.SearchTextRequest.EVOptions} message EVOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EVOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.connectorTypes = []; + if (options.defaults) + object.minimumChargingRateKw = 0; + if (message.minimumChargingRateKw != null && message.hasOwnProperty("minimumChargingRateKw")) + object.minimumChargingRateKw = options.json && !isFinite(message.minimumChargingRateKw) ? String(message.minimumChargingRateKw) : message.minimumChargingRateKw; + if (message.connectorTypes && message.connectorTypes.length) { + object.connectorTypes = []; + for (var j = 0; j < message.connectorTypes.length; ++j) + object.connectorTypes[j] = options.enums === String ? $root.google.maps.places.v1.EVConnectorType[message.connectorTypes[j]] === undefined ? message.connectorTypes[j] : $root.google.maps.places.v1.EVConnectorType[message.connectorTypes[j]] : message.connectorTypes[j]; + } + return object; + }; + + /** + * Converts this EVOptions to JSON. + * @function toJSON + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @instance + * @returns {Object.} JSON object + */ + EVOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EVOptions + * @function getTypeUrl + * @memberof google.maps.places.v1.SearchTextRequest.EVOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EVOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.SearchTextRequest.EVOptions"; + }; + + return EVOptions; + })(); + return SearchTextRequest; })(); @@ -22490,6 +22861,7 @@ * @property {string|null} [name] GetPlaceRequest name * @property {string|null} [languageCode] GetPlaceRequest languageCode * @property {string|null} [regionCode] GetPlaceRequest regionCode + * @property {string|null} [sessionToken] GetPlaceRequest sessionToken */ /** @@ -22531,6 +22903,14 @@ */ GetPlaceRequest.prototype.regionCode = ""; + /** + * GetPlaceRequest sessionToken. + * @member {string} sessionToken + * @memberof google.maps.places.v1.GetPlaceRequest + * @instance + */ + GetPlaceRequest.prototype.sessionToken = ""; + /** * Creates a new GetPlaceRequest instance using the specified properties. * @function create @@ -22561,6 +22941,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.regionCode); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sessionToken); return writer; }; @@ -22607,6 +22989,10 @@ message.regionCode = reader.string(); break; } + case 4: { + message.sessionToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -22651,6 +23037,9 @@ if (message.regionCode != null && message.hasOwnProperty("regionCode")) if (!$util.isString(message.regionCode)) return "regionCode: string expected"; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (!$util.isString(message.sessionToken)) + return "sessionToken: string expected"; return null; }; @@ -22672,6 +23061,8 @@ message.languageCode = String(object.languageCode); if (object.regionCode != null) message.regionCode = String(object.regionCode); + if (object.sessionToken != null) + message.sessionToken = String(object.sessionToken); return message; }; @@ -22692,6 +23083,7 @@ object.name = ""; object.languageCode = ""; object.regionCode = ""; + object.sessionToken = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -22699,6 +23091,8 @@ object.languageCode = message.languageCode; if (message.regionCode != null && message.hasOwnProperty("regionCode")) object.regionCode = message.regionCode; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + object.sessionToken = message.sessionToken; return object; }; @@ -22731,6 +23125,2794 @@ return GetPlaceRequest; })(); + v1.AutocompletePlacesRequest = (function() { + + /** + * Properties of an AutocompletePlacesRequest. + * @memberof google.maps.places.v1 + * @interface IAutocompletePlacesRequest + * @property {string|null} [input] AutocompletePlacesRequest input + * @property {google.maps.places.v1.AutocompletePlacesRequest.ILocationBias|null} [locationBias] AutocompletePlacesRequest locationBias + * @property {google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction|null} [locationRestriction] AutocompletePlacesRequest locationRestriction + * @property {Array.|null} [includedPrimaryTypes] AutocompletePlacesRequest includedPrimaryTypes + * @property {Array.|null} [includedRegionCodes] AutocompletePlacesRequest includedRegionCodes + * @property {string|null} [languageCode] AutocompletePlacesRequest languageCode + * @property {string|null} [regionCode] AutocompletePlacesRequest regionCode + * @property {google.type.ILatLng|null} [origin] AutocompletePlacesRequest origin + * @property {number|null} [inputOffset] AutocompletePlacesRequest inputOffset + * @property {boolean|null} [includeQueryPredictions] AutocompletePlacesRequest includeQueryPredictions + * @property {string|null} [sessionToken] AutocompletePlacesRequest sessionToken + */ + + /** + * Constructs a new AutocompletePlacesRequest. + * @memberof google.maps.places.v1 + * @classdesc Represents an AutocompletePlacesRequest. + * @implements IAutocompletePlacesRequest + * @constructor + * @param {google.maps.places.v1.IAutocompletePlacesRequest=} [properties] Properties to set + */ + function AutocompletePlacesRequest(properties) { + this.includedPrimaryTypes = []; + this.includedRegionCodes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutocompletePlacesRequest input. + * @member {string} input + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.input = ""; + + /** + * AutocompletePlacesRequest locationBias. + * @member {google.maps.places.v1.AutocompletePlacesRequest.ILocationBias|null|undefined} locationBias + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.locationBias = null; + + /** + * AutocompletePlacesRequest locationRestriction. + * @member {google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction|null|undefined} locationRestriction + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.locationRestriction = null; + + /** + * AutocompletePlacesRequest includedPrimaryTypes. + * @member {Array.} includedPrimaryTypes + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.includedPrimaryTypes = $util.emptyArray; + + /** + * AutocompletePlacesRequest includedRegionCodes. + * @member {Array.} includedRegionCodes + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.includedRegionCodes = $util.emptyArray; + + /** + * AutocompletePlacesRequest languageCode. + * @member {string} languageCode + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.languageCode = ""; + + /** + * AutocompletePlacesRequest regionCode. + * @member {string} regionCode + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.regionCode = ""; + + /** + * AutocompletePlacesRequest origin. + * @member {google.type.ILatLng|null|undefined} origin + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.origin = null; + + /** + * AutocompletePlacesRequest inputOffset. + * @member {number} inputOffset + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.inputOffset = 0; + + /** + * AutocompletePlacesRequest includeQueryPredictions. + * @member {boolean} includeQueryPredictions + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.includeQueryPredictions = false; + + /** + * AutocompletePlacesRequest sessionToken. + * @member {string} sessionToken + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.sessionToken = ""; + + /** + * Creates a new AutocompletePlacesRequest instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {google.maps.places.v1.IAutocompletePlacesRequest=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesRequest} AutocompletePlacesRequest instance + */ + AutocompletePlacesRequest.create = function create(properties) { + return new AutocompletePlacesRequest(properties); + }; + + /** + * Encodes the specified AutocompletePlacesRequest message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {google.maps.places.v1.IAutocompletePlacesRequest} message AutocompletePlacesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutocompletePlacesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.input); + if (message.locationBias != null && Object.hasOwnProperty.call(message, "locationBias")) + $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias.encode(message.locationBias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.locationRestriction != null && Object.hasOwnProperty.call(message, "locationRestriction")) + $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.encode(message.locationRestriction, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.includedPrimaryTypes != null && message.includedPrimaryTypes.length) + for (var i = 0; i < message.includedPrimaryTypes.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.includedPrimaryTypes[i]); + if (message.includedRegionCodes != null && message.includedRegionCodes.length) + for (var i = 0; i < message.includedRegionCodes.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.includedRegionCodes[i]); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.languageCode); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.regionCode); + if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) + $root.google.type.LatLng.encode(message.origin, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.inputOffset != null && Object.hasOwnProperty.call(message, "inputOffset")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.inputOffset); + if (message.includeQueryPredictions != null && Object.hasOwnProperty.call(message, "includeQueryPredictions")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.includeQueryPredictions); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.sessionToken); + return writer; + }; + + /** + * Encodes the specified AutocompletePlacesRequest message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {google.maps.places.v1.IAutocompletePlacesRequest} message AutocompletePlacesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutocompletePlacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutocompletePlacesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesRequest} AutocompletePlacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutocompletePlacesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.input = reader.string(); + break; + } + case 2: { + message.locationBias = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias.decode(reader, reader.uint32()); + break; + } + case 3: { + message.locationRestriction = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.includedPrimaryTypes && message.includedPrimaryTypes.length)) + message.includedPrimaryTypes = []; + message.includedPrimaryTypes.push(reader.string()); + break; + } + case 5: { + if (!(message.includedRegionCodes && message.includedRegionCodes.length)) + message.includedRegionCodes = []; + message.includedRegionCodes.push(reader.string()); + break; + } + case 6: { + message.languageCode = reader.string(); + break; + } + case 7: { + message.regionCode = reader.string(); + break; + } + case 8: { + message.origin = $root.google.type.LatLng.decode(reader, reader.uint32()); + break; + } + case 9: { + message.inputOffset = reader.int32(); + break; + } + case 10: { + message.includeQueryPredictions = reader.bool(); + break; + } + case 11: { + message.sessionToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutocompletePlacesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesRequest} AutocompletePlacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutocompletePlacesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutocompletePlacesRequest message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutocompletePlacesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.input != null && message.hasOwnProperty("input")) + if (!$util.isString(message.input)) + return "input: string expected"; + if (message.locationBias != null && message.hasOwnProperty("locationBias")) { + var error = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify(message.locationBias); + if (error) + return "locationBias." + error; + } + if (message.locationRestriction != null && message.hasOwnProperty("locationRestriction")) { + var error = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify(message.locationRestriction); + if (error) + return "locationRestriction." + error; + } + if (message.includedPrimaryTypes != null && message.hasOwnProperty("includedPrimaryTypes")) { + if (!Array.isArray(message.includedPrimaryTypes)) + return "includedPrimaryTypes: array expected"; + for (var i = 0; i < message.includedPrimaryTypes.length; ++i) + if (!$util.isString(message.includedPrimaryTypes[i])) + return "includedPrimaryTypes: string[] expected"; + } + if (message.includedRegionCodes != null && message.hasOwnProperty("includedRegionCodes")) { + if (!Array.isArray(message.includedRegionCodes)) + return "includedRegionCodes: array expected"; + for (var i = 0; i < message.includedRegionCodes.length; ++i) + if (!$util.isString(message.includedRegionCodes[i])) + return "includedRegionCodes: string[] expected"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.origin != null && message.hasOwnProperty("origin")) { + var error = $root.google.type.LatLng.verify(message.origin); + if (error) + return "origin." + error; + } + if (message.inputOffset != null && message.hasOwnProperty("inputOffset")) + if (!$util.isInteger(message.inputOffset)) + return "inputOffset: integer expected"; + if (message.includeQueryPredictions != null && message.hasOwnProperty("includeQueryPredictions")) + if (typeof message.includeQueryPredictions !== "boolean") + return "includeQueryPredictions: boolean expected"; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (!$util.isString(message.sessionToken)) + return "sessionToken: string expected"; + return null; + }; + + /** + * Creates an AutocompletePlacesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesRequest} AutocompletePlacesRequest + */ + AutocompletePlacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesRequest) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesRequest(); + if (object.input != null) + message.input = String(object.input); + if (object.locationBias != null) { + if (typeof object.locationBias !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.locationBias: object expected"); + message.locationBias = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias.fromObject(object.locationBias); + } + if (object.locationRestriction != null) { + if (typeof object.locationRestriction !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.locationRestriction: object expected"); + message.locationRestriction = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.fromObject(object.locationRestriction); + } + if (object.includedPrimaryTypes) { + if (!Array.isArray(object.includedPrimaryTypes)) + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.includedPrimaryTypes: array expected"); + message.includedPrimaryTypes = []; + for (var i = 0; i < object.includedPrimaryTypes.length; ++i) + message.includedPrimaryTypes[i] = String(object.includedPrimaryTypes[i]); + } + if (object.includedRegionCodes) { + if (!Array.isArray(object.includedRegionCodes)) + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.includedRegionCodes: array expected"); + message.includedRegionCodes = []; + for (var i = 0; i < object.includedRegionCodes.length; ++i) + message.includedRegionCodes[i] = String(object.includedRegionCodes[i]); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.origin != null) { + if (typeof object.origin !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.origin: object expected"); + message.origin = $root.google.type.LatLng.fromObject(object.origin); + } + if (object.inputOffset != null) + message.inputOffset = object.inputOffset | 0; + if (object.includeQueryPredictions != null) + message.includeQueryPredictions = Boolean(object.includeQueryPredictions); + if (object.sessionToken != null) + message.sessionToken = String(object.sessionToken); + return message; + }; + + /** + * Creates a plain object from an AutocompletePlacesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest} message AutocompletePlacesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutocompletePlacesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.includedPrimaryTypes = []; + object.includedRegionCodes = []; + } + if (options.defaults) { + object.input = ""; + object.locationBias = null; + object.locationRestriction = null; + object.languageCode = ""; + object.regionCode = ""; + object.origin = null; + object.inputOffset = 0; + object.includeQueryPredictions = false; + object.sessionToken = ""; + } + if (message.input != null && message.hasOwnProperty("input")) + object.input = message.input; + if (message.locationBias != null && message.hasOwnProperty("locationBias")) + object.locationBias = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias.toObject(message.locationBias, options); + if (message.locationRestriction != null && message.hasOwnProperty("locationRestriction")) + object.locationRestriction = $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.toObject(message.locationRestriction, options); + if (message.includedPrimaryTypes && message.includedPrimaryTypes.length) { + object.includedPrimaryTypes = []; + for (var j = 0; j < message.includedPrimaryTypes.length; ++j) + object.includedPrimaryTypes[j] = message.includedPrimaryTypes[j]; + } + if (message.includedRegionCodes && message.includedRegionCodes.length) { + object.includedRegionCodes = []; + for (var j = 0; j < message.includedRegionCodes.length; ++j) + object.includedRegionCodes[j] = message.includedRegionCodes[j]; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.origin != null && message.hasOwnProperty("origin")) + object.origin = $root.google.type.LatLng.toObject(message.origin, options); + if (message.inputOffset != null && message.hasOwnProperty("inputOffset")) + object.inputOffset = message.inputOffset; + if (message.includeQueryPredictions != null && message.hasOwnProperty("includeQueryPredictions")) + object.includeQueryPredictions = message.includeQueryPredictions; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + object.sessionToken = message.sessionToken; + return object; + }; + + /** + * Converts this AutocompletePlacesRequest to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + * @returns {Object.} JSON object + */ + AutocompletePlacesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutocompletePlacesRequest + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutocompletePlacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesRequest"; + }; + + AutocompletePlacesRequest.LocationBias = (function() { + + /** + * Properties of a LocationBias. + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @interface ILocationBias + * @property {google.geo.type.IViewport|null} [rectangle] LocationBias rectangle + * @property {google.maps.places.v1.ICircle|null} [circle] LocationBias circle + */ + + /** + * Constructs a new LocationBias. + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @classdesc Represents a LocationBias. + * @implements ILocationBias + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationBias=} [properties] Properties to set + */ + function LocationBias(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LocationBias rectangle. + * @member {google.geo.type.IViewport|null|undefined} rectangle + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @instance + */ + LocationBias.prototype.rectangle = null; + + /** + * LocationBias circle. + * @member {google.maps.places.v1.ICircle|null|undefined} circle + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @instance + */ + LocationBias.prototype.circle = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LocationBias type. + * @member {"rectangle"|"circle"|undefined} type + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @instance + */ + Object.defineProperty(LocationBias.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["rectangle", "circle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LocationBias instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationBias=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} LocationBias instance + */ + LocationBias.create = function create(properties) { + return new LocationBias(properties); + }; + + /** + * Encodes the specified LocationBias message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationBias} message LocationBias message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationBias.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rectangle != null && Object.hasOwnProperty.call(message, "rectangle")) + $root.google.geo.type.Viewport.encode(message.rectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.circle != null && Object.hasOwnProperty.call(message, "circle")) + $root.google.maps.places.v1.Circle.encode(message.circle, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LocationBias message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationBias} message LocationBias message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationBias.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocationBias message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} LocationBias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationBias.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.rectangle = $root.google.geo.type.Viewport.decode(reader, reader.uint32()); + break; + } + case 2: { + message.circle = $root.google.maps.places.v1.Circle.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocationBias message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} LocationBias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationBias.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocationBias message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationBias.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.rectangle != null && message.hasOwnProperty("rectangle")) { + properties.type = 1; + { + var error = $root.google.geo.type.Viewport.verify(message.rectangle); + if (error) + return "rectangle." + error; + } + } + if (message.circle != null && message.hasOwnProperty("circle")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.google.maps.places.v1.Circle.verify(message.circle); + if (error) + return "circle." + error; + } + } + return null; + }; + + /** + * Creates a LocationBias message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} LocationBias + */ + LocationBias.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesRequest.LocationBias(); + if (object.rectangle != null) { + if (typeof object.rectangle !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.LocationBias.rectangle: object expected"); + message.rectangle = $root.google.geo.type.Viewport.fromObject(object.rectangle); + } + if (object.circle != null) { + if (typeof object.circle !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.LocationBias.circle: object expected"); + message.circle = $root.google.maps.places.v1.Circle.fromObject(object.circle); + } + return message; + }; + + /** + * Creates a plain object from a LocationBias message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} message LocationBias + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationBias.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.rectangle != null && message.hasOwnProperty("rectangle")) { + object.rectangle = $root.google.geo.type.Viewport.toObject(message.rectangle, options); + if (options.oneofs) + object.type = "rectangle"; + } + if (message.circle != null && message.hasOwnProperty("circle")) { + object.circle = $root.google.maps.places.v1.Circle.toObject(message.circle, options); + if (options.oneofs) + object.type = "circle"; + } + return object; + }; + + /** + * Converts this LocationBias to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @instance + * @returns {Object.} JSON object + */ + LocationBias.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LocationBias + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationBias + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocationBias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesRequest.LocationBias"; + }; + + return LocationBias; + })(); + + AutocompletePlacesRequest.LocationRestriction = (function() { + + /** + * Properties of a LocationRestriction. + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @interface ILocationRestriction + * @property {google.geo.type.IViewport|null} [rectangle] LocationRestriction rectangle + * @property {google.maps.places.v1.ICircle|null} [circle] LocationRestriction circle + */ + + /** + * Constructs a new LocationRestriction. + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @classdesc Represents a LocationRestriction. + * @implements ILocationRestriction + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction=} [properties] Properties to set + */ + function LocationRestriction(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LocationRestriction rectangle. + * @member {google.geo.type.IViewport|null|undefined} rectangle + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @instance + */ + LocationRestriction.prototype.rectangle = null; + + /** + * LocationRestriction circle. + * @member {google.maps.places.v1.ICircle|null|undefined} circle + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @instance + */ + LocationRestriction.prototype.circle = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LocationRestriction type. + * @member {"rectangle"|"circle"|undefined} type + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @instance + */ + Object.defineProperty(LocationRestriction.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["rectangle", "circle"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LocationRestriction instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} LocationRestriction instance + */ + LocationRestriction.create = function create(properties) { + return new LocationRestriction(properties); + }; + + /** + * Encodes the specified LocationRestriction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction} message LocationRestriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationRestriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rectangle != null && Object.hasOwnProperty.call(message, "rectangle")) + $root.google.geo.type.Viewport.encode(message.rectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.circle != null && Object.hasOwnProperty.call(message, "circle")) + $root.google.maps.places.v1.Circle.encode(message.circle, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LocationRestriction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction} message LocationRestriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationRestriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocationRestriction message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} LocationRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationRestriction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.rectangle = $root.google.geo.type.Viewport.decode(reader, reader.uint32()); + break; + } + case 2: { + message.circle = $root.google.maps.places.v1.Circle.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocationRestriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} LocationRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationRestriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocationRestriction message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationRestriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.rectangle != null && message.hasOwnProperty("rectangle")) { + properties.type = 1; + { + var error = $root.google.geo.type.Viewport.verify(message.rectangle); + if (error) + return "rectangle." + error; + } + } + if (message.circle != null && message.hasOwnProperty("circle")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.google.maps.places.v1.Circle.verify(message.circle); + if (error) + return "circle." + error; + } + } + return null; + }; + + /** + * Creates a LocationRestriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} LocationRestriction + */ + LocationRestriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction(); + if (object.rectangle != null) { + if (typeof object.rectangle !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.rectangle: object expected"); + message.rectangle = $root.google.geo.type.Viewport.fromObject(object.rectangle); + } + if (object.circle != null) { + if (typeof object.circle !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.circle: object expected"); + message.circle = $root.google.maps.places.v1.Circle.fromObject(object.circle); + } + return message; + }; + + /** + * Creates a plain object from a LocationRestriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} message LocationRestriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationRestriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.rectangle != null && message.hasOwnProperty("rectangle")) { + object.rectangle = $root.google.geo.type.Viewport.toObject(message.rectangle, options); + if (options.oneofs) + object.type = "rectangle"; + } + if (message.circle != null && message.hasOwnProperty("circle")) { + object.circle = $root.google.maps.places.v1.Circle.toObject(message.circle, options); + if (options.oneofs) + object.type = "circle"; + } + return object; + }; + + /** + * Converts this LocationRestriction to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @instance + * @returns {Object.} JSON object + */ + LocationRestriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LocationRestriction + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocationRestriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction"; + }; + + return LocationRestriction; + })(); + + return AutocompletePlacesRequest; + })(); + + v1.AutocompletePlacesResponse = (function() { + + /** + * Properties of an AutocompletePlacesResponse. + * @memberof google.maps.places.v1 + * @interface IAutocompletePlacesResponse + * @property {Array.|null} [suggestions] AutocompletePlacesResponse suggestions + */ + + /** + * Constructs a new AutocompletePlacesResponse. + * @memberof google.maps.places.v1 + * @classdesc Represents an AutocompletePlacesResponse. + * @implements IAutocompletePlacesResponse + * @constructor + * @param {google.maps.places.v1.IAutocompletePlacesResponse=} [properties] Properties to set + */ + function AutocompletePlacesResponse(properties) { + this.suggestions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutocompletePlacesResponse suggestions. + * @member {Array.} suggestions + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @instance + */ + AutocompletePlacesResponse.prototype.suggestions = $util.emptyArray; + + /** + * Creates a new AutocompletePlacesResponse instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {google.maps.places.v1.IAutocompletePlacesResponse=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse} AutocompletePlacesResponse instance + */ + AutocompletePlacesResponse.create = function create(properties) { + return new AutocompletePlacesResponse(properties); + }; + + /** + * Encodes the specified AutocompletePlacesResponse message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {google.maps.places.v1.IAutocompletePlacesResponse} message AutocompletePlacesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutocompletePlacesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.suggestions != null && message.suggestions.length) + for (var i = 0; i < message.suggestions.length; ++i) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.encode(message.suggestions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutocompletePlacesResponse message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {google.maps.places.v1.IAutocompletePlacesResponse} message AutocompletePlacesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutocompletePlacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutocompletePlacesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse} AutocompletePlacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutocompletePlacesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.suggestions && message.suggestions.length)) + message.suggestions = []; + message.suggestions.push($root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutocompletePlacesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse} AutocompletePlacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutocompletePlacesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutocompletePlacesResponse message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutocompletePlacesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.suggestions != null && message.hasOwnProperty("suggestions")) { + if (!Array.isArray(message.suggestions)) + return "suggestions: array expected"; + for (var i = 0; i < message.suggestions.length; ++i) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify(message.suggestions[i]); + if (error) + return "suggestions." + error; + } + } + return null; + }; + + /** + * Creates an AutocompletePlacesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse} AutocompletePlacesResponse + */ + AutocompletePlacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse(); + if (object.suggestions) { + if (!Array.isArray(object.suggestions)) + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.suggestions: array expected"); + message.suggestions = []; + for (var i = 0; i < object.suggestions.length; ++i) { + if (typeof object.suggestions[i] !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.suggestions: object expected"); + message.suggestions[i] = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.fromObject(object.suggestions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AutocompletePlacesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse} message AutocompletePlacesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutocompletePlacesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.suggestions = []; + if (message.suggestions && message.suggestions.length) { + object.suggestions = []; + for (var j = 0; j < message.suggestions.length; ++j) + object.suggestions[j] = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.toObject(message.suggestions[j], options); + } + return object; + }; + + /** + * Converts this AutocompletePlacesResponse to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @instance + * @returns {Object.} JSON object + */ + AutocompletePlacesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutocompletePlacesResponse + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutocompletePlacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse"; + }; + + AutocompletePlacesResponse.Suggestion = (function() { + + /** + * Properties of a Suggestion. + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @interface ISuggestion + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction|null} [placePrediction] Suggestion placePrediction + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction|null} [queryPrediction] Suggestion queryPrediction + */ + + /** + * Constructs a new Suggestion. + * @memberof google.maps.places.v1.AutocompletePlacesResponse + * @classdesc Represents a Suggestion. + * @implements ISuggestion + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesResponse.ISuggestion=} [properties] Properties to set + */ + function Suggestion(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Suggestion placePrediction. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction|null|undefined} placePrediction + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @instance + */ + Suggestion.prototype.placePrediction = null; + + /** + * Suggestion queryPrediction. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction|null|undefined} queryPrediction + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @instance + */ + Suggestion.prototype.queryPrediction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Suggestion kind. + * @member {"placePrediction"|"queryPrediction"|undefined} kind + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @instance + */ + Object.defineProperty(Suggestion.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["placePrediction", "queryPrediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Suggestion instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.ISuggestion=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion} Suggestion instance + */ + Suggestion.create = function create(properties) { + return new Suggestion(properties); + }; + + /** + * Encodes the specified Suggestion message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.ISuggestion} message Suggestion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Suggestion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.placePrediction != null && Object.hasOwnProperty.call(message, "placePrediction")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.encode(message.placePrediction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.queryPrediction != null && Object.hasOwnProperty.call(message, "queryPrediction")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.encode(message.queryPrediction, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Suggestion message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.ISuggestion} message Suggestion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Suggestion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Suggestion message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion} Suggestion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Suggestion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.placePrediction = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.decode(reader, reader.uint32()); + break; + } + case 2: { + message.queryPrediction = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Suggestion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion} Suggestion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Suggestion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Suggestion message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Suggestion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.placePrediction != null && message.hasOwnProperty("placePrediction")) { + properties.kind = 1; + { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify(message.placePrediction); + if (error) + return "placePrediction." + error; + } + } + if (message.queryPrediction != null && message.hasOwnProperty("queryPrediction")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify(message.queryPrediction); + if (error) + return "queryPrediction." + error; + } + } + return null; + }; + + /** + * Creates a Suggestion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion} Suggestion + */ + Suggestion.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion(); + if (object.placePrediction != null) { + if (typeof object.placePrediction !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.placePrediction: object expected"); + message.placePrediction = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.fromObject(object.placePrediction); + } + if (object.queryPrediction != null) { + if (typeof object.queryPrediction !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.queryPrediction: object expected"); + message.queryPrediction = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.fromObject(object.queryPrediction); + } + return message; + }; + + /** + * Creates a plain object from a Suggestion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion} message Suggestion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Suggestion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.placePrediction != null && message.hasOwnProperty("placePrediction")) { + object.placePrediction = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.toObject(message.placePrediction, options); + if (options.oneofs) + object.kind = "placePrediction"; + } + if (message.queryPrediction != null && message.hasOwnProperty("queryPrediction")) { + object.queryPrediction = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.toObject(message.queryPrediction, options); + if (options.oneofs) + object.kind = "queryPrediction"; + } + return object; + }; + + /** + * Converts this Suggestion to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @instance + * @returns {Object.} JSON object + */ + Suggestion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Suggestion + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Suggestion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse.Suggestion"; + }; + + Suggestion.StringRange = (function() { + + /** + * Properties of a StringRange. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @interface IStringRange + * @property {number|null} [startOffset] StringRange startOffset + * @property {number|null} [endOffset] StringRange endOffset + */ + + /** + * Constructs a new StringRange. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @classdesc Represents a StringRange. + * @implements IStringRange + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange=} [properties] Properties to set + */ + function StringRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StringRange startOffset. + * @member {number} startOffset + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @instance + */ + StringRange.prototype.startOffset = 0; + + /** + * StringRange endOffset. + * @member {number} endOffset + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @instance + */ + StringRange.prototype.endOffset = 0; + + /** + * Creates a new StringRange instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange} StringRange instance + */ + StringRange.create = function create(properties) { + return new StringRange(properties); + }; + + /** + * Encodes the specified StringRange message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange} message StringRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startOffset); + if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.endOffset); + return writer; + }; + + /** + * Encodes the specified StringRange message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange} message StringRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StringRange message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange} StringRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.startOffset = reader.int32(); + break; + } + case 2: { + message.endOffset = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StringRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange} StringRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StringRange message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startOffset != null && message.hasOwnProperty("startOffset")) + if (!$util.isInteger(message.startOffset)) + return "startOffset: integer expected"; + if (message.endOffset != null && message.hasOwnProperty("endOffset")) + if (!$util.isInteger(message.endOffset)) + return "endOffset: integer expected"; + return null; + }; + + /** + * Creates a StringRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange} StringRange + */ + StringRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange(); + if (object.startOffset != null) + message.startOffset = object.startOffset | 0; + if (object.endOffset != null) + message.endOffset = object.endOffset | 0; + return message; + }; + + /** + * Creates a plain object from a StringRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange} message StringRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startOffset = 0; + object.endOffset = 0; + } + if (message.startOffset != null && message.hasOwnProperty("startOffset")) + object.startOffset = message.startOffset; + if (message.endOffset != null && message.hasOwnProperty("endOffset")) + object.endOffset = message.endOffset; + return object; + }; + + /** + * Converts this StringRange to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @instance + * @returns {Object.} JSON object + */ + StringRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StringRange + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange"; + }; + + return StringRange; + })(); + + Suggestion.FormattableText = (function() { + + /** + * Properties of a FormattableText. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @interface IFormattableText + * @property {string|null} [text] FormattableText text + * @property {Array.|null} [matches] FormattableText matches + */ + + /** + * Constructs a new FormattableText. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @classdesc Represents a FormattableText. + * @implements IFormattableText + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText=} [properties] Properties to set + */ + function FormattableText(properties) { + this.matches = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FormattableText text. + * @member {string} text + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @instance + */ + FormattableText.prototype.text = ""; + + /** + * FormattableText matches. + * @member {Array.} matches + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @instance + */ + FormattableText.prototype.matches = $util.emptyArray; + + /** + * Creates a new FormattableText instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText} FormattableText instance + */ + FormattableText.create = function create(properties) { + return new FormattableText(properties); + }; + + /** + * Encodes the specified FormattableText message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText} message FormattableText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormattableText.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.matches != null && message.matches.length) + for (var i = 0; i < message.matches.length; ++i) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.encode(message.matches[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FormattableText message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText} message FormattableText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormattableText.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FormattableText message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText} FormattableText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormattableText.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = reader.string(); + break; + } + case 2: { + if (!(message.matches && message.matches.length)) + message.matches = []; + message.matches.push($root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FormattableText message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText} FormattableText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormattableText.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FormattableText message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FormattableText.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.matches != null && message.hasOwnProperty("matches")) { + if (!Array.isArray(message.matches)) + return "matches: array expected"; + for (var i = 0; i < message.matches.length; ++i) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify(message.matches[i]); + if (error) + return "matches." + error; + } + } + return null; + }; + + /** + * Creates a FormattableText message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText} FormattableText + */ + FormattableText.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText(); + if (object.text != null) + message.text = String(object.text); + if (object.matches) { + if (!Array.isArray(object.matches)) + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.matches: array expected"); + message.matches = []; + for (var i = 0; i < object.matches.length; ++i) { + if (typeof object.matches[i] !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.matches: object expected"); + message.matches[i] = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.fromObject(object.matches[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FormattableText message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText} message FormattableText + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FormattableText.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.matches = []; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.matches && message.matches.length) { + object.matches = []; + for (var j = 0; j < message.matches.length; ++j) + object.matches[j] = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.toObject(message.matches[j], options); + } + return object; + }; + + /** + * Converts this FormattableText to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @instance + * @returns {Object.} JSON object + */ + FormattableText.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FormattableText + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FormattableText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText"; + }; + + return FormattableText; + })(); + + Suggestion.StructuredFormat = (function() { + + /** + * Properties of a StructuredFormat. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @interface IStructuredFormat + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null} [mainText] StructuredFormat mainText + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null} [secondaryText] StructuredFormat secondaryText + */ + + /** + * Constructs a new StructuredFormat. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @classdesc Represents a StructuredFormat. + * @implements IStructuredFormat + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat=} [properties] Properties to set + */ + function StructuredFormat(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredFormat mainText. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null|undefined} mainText + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @instance + */ + StructuredFormat.prototype.mainText = null; + + /** + * StructuredFormat secondaryText. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null|undefined} secondaryText + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @instance + */ + StructuredFormat.prototype.secondaryText = null; + + /** + * Creates a new StructuredFormat instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat} StructuredFormat instance + */ + StructuredFormat.create = function create(properties) { + return new StructuredFormat(properties); + }; + + /** + * Encodes the specified StructuredFormat message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat} message StructuredFormat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredFormat.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mainText != null && Object.hasOwnProperty.call(message, "mainText")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.encode(message.mainText, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.secondaryText != null && Object.hasOwnProperty.call(message, "secondaryText")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.encode(message.secondaryText, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StructuredFormat message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat} message StructuredFormat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredFormat.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StructuredFormat message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat} StructuredFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredFormat.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mainText = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.decode(reader, reader.uint32()); + break; + } + case 2: { + message.secondaryText = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StructuredFormat message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat} StructuredFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredFormat.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StructuredFormat message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredFormat.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mainText != null && message.hasOwnProperty("mainText")) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify(message.mainText); + if (error) + return "mainText." + error; + } + if (message.secondaryText != null && message.hasOwnProperty("secondaryText")) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify(message.secondaryText); + if (error) + return "secondaryText." + error; + } + return null; + }; + + /** + * Creates a StructuredFormat message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat} StructuredFormat + */ + StructuredFormat.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat(); + if (object.mainText != null) { + if (typeof object.mainText !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.mainText: object expected"); + message.mainText = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.fromObject(object.mainText); + } + if (object.secondaryText != null) { + if (typeof object.secondaryText !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.secondaryText: object expected"); + message.secondaryText = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.fromObject(object.secondaryText); + } + return message; + }; + + /** + * Creates a plain object from a StructuredFormat message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat} message StructuredFormat + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StructuredFormat.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.mainText = null; + object.secondaryText = null; + } + if (message.mainText != null && message.hasOwnProperty("mainText")) + object.mainText = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.toObject(message.mainText, options); + if (message.secondaryText != null && message.hasOwnProperty("secondaryText")) + object.secondaryText = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.toObject(message.secondaryText, options); + return object; + }; + + /** + * Converts this StructuredFormat to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @instance + * @returns {Object.} JSON object + */ + StructuredFormat.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StructuredFormat + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StructuredFormat.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat"; + }; + + return StructuredFormat; + })(); + + Suggestion.PlacePrediction = (function() { + + /** + * Properties of a PlacePrediction. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @interface IPlacePrediction + * @property {string|null} [place] PlacePrediction place + * @property {string|null} [placeId] PlacePrediction placeId + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null} [text] PlacePrediction text + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null} [structuredFormat] PlacePrediction structuredFormat + * @property {Array.|null} [types] PlacePrediction types + * @property {number|null} [distanceMeters] PlacePrediction distanceMeters + */ + + /** + * Constructs a new PlacePrediction. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @classdesc Represents a PlacePrediction. + * @implements IPlacePrediction + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction=} [properties] Properties to set + */ + function PlacePrediction(properties) { + this.types = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PlacePrediction place. + * @member {string} place + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + */ + PlacePrediction.prototype.place = ""; + + /** + * PlacePrediction placeId. + * @member {string} placeId + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + */ + PlacePrediction.prototype.placeId = ""; + + /** + * PlacePrediction text. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null|undefined} text + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + */ + PlacePrediction.prototype.text = null; + + /** + * PlacePrediction structuredFormat. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null|undefined} structuredFormat + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + */ + PlacePrediction.prototype.structuredFormat = null; + + /** + * PlacePrediction types. + * @member {Array.} types + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + */ + PlacePrediction.prototype.types = $util.emptyArray; + + /** + * PlacePrediction distanceMeters. + * @member {number} distanceMeters + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + */ + PlacePrediction.prototype.distanceMeters = 0; + + /** + * Creates a new PlacePrediction instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction} PlacePrediction instance + */ + PlacePrediction.create = function create(properties) { + return new PlacePrediction(properties); + }; + + /** + * Encodes the specified PlacePrediction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction} message PlacePrediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PlacePrediction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.place != null && Object.hasOwnProperty.call(message, "place")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.place); + if (message.placeId != null && Object.hasOwnProperty.call(message, "placeId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.placeId); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.encode(message.text, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.structuredFormat != null && Object.hasOwnProperty.call(message, "structuredFormat")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.encode(message.structuredFormat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.types != null && message.types.length) + for (var i = 0; i < message.types.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.types[i]); + if (message.distanceMeters != null && Object.hasOwnProperty.call(message, "distanceMeters")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.distanceMeters); + return writer; + }; + + /** + * Encodes the specified PlacePrediction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction} message PlacePrediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PlacePrediction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PlacePrediction message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction} PlacePrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PlacePrediction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.place = reader.string(); + break; + } + case 2: { + message.placeId = reader.string(); + break; + } + case 3: { + message.text = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.decode(reader, reader.uint32()); + break; + } + case 4: { + message.structuredFormat = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.types && message.types.length)) + message.types = []; + message.types.push(reader.string()); + break; + } + case 6: { + message.distanceMeters = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PlacePrediction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction} PlacePrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PlacePrediction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PlacePrediction message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PlacePrediction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.place != null && message.hasOwnProperty("place")) + if (!$util.isString(message.place)) + return "place: string expected"; + if (message.placeId != null && message.hasOwnProperty("placeId")) + if (!$util.isString(message.placeId)) + return "placeId: string expected"; + if (message.text != null && message.hasOwnProperty("text")) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify(message.text); + if (error) + return "text." + error; + } + if (message.structuredFormat != null && message.hasOwnProperty("structuredFormat")) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify(message.structuredFormat); + if (error) + return "structuredFormat." + error; + } + if (message.types != null && message.hasOwnProperty("types")) { + if (!Array.isArray(message.types)) + return "types: array expected"; + for (var i = 0; i < message.types.length; ++i) + if (!$util.isString(message.types[i])) + return "types: string[] expected"; + } + if (message.distanceMeters != null && message.hasOwnProperty("distanceMeters")) + if (!$util.isInteger(message.distanceMeters)) + return "distanceMeters: integer expected"; + return null; + }; + + /** + * Creates a PlacePrediction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction} PlacePrediction + */ + PlacePrediction.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction(); + if (object.place != null) + message.place = String(object.place); + if (object.placeId != null) + message.placeId = String(object.placeId); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.text: object expected"); + message.text = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.fromObject(object.text); + } + if (object.structuredFormat != null) { + if (typeof object.structuredFormat !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.structuredFormat: object expected"); + message.structuredFormat = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.fromObject(object.structuredFormat); + } + if (object.types) { + if (!Array.isArray(object.types)) + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.types: array expected"); + message.types = []; + for (var i = 0; i < object.types.length; ++i) + message.types[i] = String(object.types[i]); + } + if (object.distanceMeters != null) + message.distanceMeters = object.distanceMeters | 0; + return message; + }; + + /** + * Creates a plain object from a PlacePrediction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction} message PlacePrediction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PlacePrediction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.types = []; + if (options.defaults) { + object.place = ""; + object.placeId = ""; + object.text = null; + object.structuredFormat = null; + object.distanceMeters = 0; + } + if (message.place != null && message.hasOwnProperty("place")) + object.place = message.place; + if (message.placeId != null && message.hasOwnProperty("placeId")) + object.placeId = message.placeId; + if (message.text != null && message.hasOwnProperty("text")) + object.text = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.toObject(message.text, options); + if (message.structuredFormat != null && message.hasOwnProperty("structuredFormat")) + object.structuredFormat = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.toObject(message.structuredFormat, options); + if (message.types && message.types.length) { + object.types = []; + for (var j = 0; j < message.types.length; ++j) + object.types[j] = message.types[j]; + } + if (message.distanceMeters != null && message.hasOwnProperty("distanceMeters")) + object.distanceMeters = message.distanceMeters; + return object; + }; + + /** + * Converts this PlacePrediction to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @instance + * @returns {Object.} JSON object + */ + PlacePrediction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PlacePrediction + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PlacePrediction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction"; + }; + + return PlacePrediction; + })(); + + Suggestion.QueryPrediction = (function() { + + /** + * Properties of a QueryPrediction. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @interface IQueryPrediction + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null} [text] QueryPrediction text + * @property {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null} [structuredFormat] QueryPrediction structuredFormat + */ + + /** + * Constructs a new QueryPrediction. + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion + * @classdesc Represents a QueryPrediction. + * @implements IQueryPrediction + * @constructor + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction=} [properties] Properties to set + */ + function QueryPrediction(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryPrediction text. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null|undefined} text + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @instance + */ + QueryPrediction.prototype.text = null; + + /** + * QueryPrediction structuredFormat. + * @member {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null|undefined} structuredFormat + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @instance + */ + QueryPrediction.prototype.structuredFormat = null; + + /** + * Creates a new QueryPrediction instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction=} [properties] Properties to set + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction} QueryPrediction instance + */ + QueryPrediction.create = function create(properties) { + return new QueryPrediction(properties); + }; + + /** + * Encodes the specified QueryPrediction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction} message QueryPrediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryPrediction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.structuredFormat != null && Object.hasOwnProperty.call(message, "structuredFormat")) + $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.encode(message.structuredFormat, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryPrediction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction} message QueryPrediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryPrediction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryPrediction message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction} QueryPrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryPrediction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.decode(reader, reader.uint32()); + break; + } + case 2: { + message.structuredFormat = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryPrediction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction} QueryPrediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryPrediction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryPrediction message. + * @function verify + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryPrediction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify(message.text); + if (error) + return "text." + error; + } + if (message.structuredFormat != null && message.hasOwnProperty("structuredFormat")) { + var error = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify(message.structuredFormat); + if (error) + return "structuredFormat." + error; + } + return null; + }; + + /** + * Creates a QueryPrediction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction} QueryPrediction + */ + QueryPrediction.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction) + return object; + var message = new $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.text: object expected"); + message.text = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.fromObject(object.text); + } + if (object.structuredFormat != null) { + if (typeof object.structuredFormat !== "object") + throw TypeError(".google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.structuredFormat: object expected"); + message.structuredFormat = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.fromObject(object.structuredFormat); + } + return message; + }; + + /** + * Creates a plain object from a QueryPrediction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction} message QueryPrediction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryPrediction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = null; + object.structuredFormat = null; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.toObject(message.text, options); + if (message.structuredFormat != null && message.hasOwnProperty("structuredFormat")) + object.structuredFormat = $root.google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.toObject(message.structuredFormat, options); + return object; + }; + + /** + * Converts this QueryPrediction to JSON. + * @function toJSON + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @instance + * @returns {Object.} JSON object + */ + QueryPrediction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QueryPrediction + * @function getTypeUrl + * @memberof google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QueryPrediction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction"; + }; + + return QueryPrediction; + })(); + + return Suggestion; + })(); + + return AutocompletePlacesResponse; + })(); + return v1; })(); diff --git a/packages/google-maps-places/protos/protos.json b/packages/google-maps-places/protos/protos.json index 98403c9f8dc4..06c6b0fb5e26 100644 --- a/packages/google-maps-places/protos/protos.json +++ b/packages/google-maps-places/protos/protos.json @@ -2300,6 +2300,22 @@ "(google.api.method_signature)": "name" } ] + }, + "AutocompletePlaces": { + "requestType": "AutocompletePlacesRequest", + "responseType": "AutocompletePlacesResponse", + "options": { + "(google.api.http).post": "/v1/places:autocomplete", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/places:autocomplete", + "body": "*" + } + } + ] } } }, @@ -2436,6 +2452,13 @@ "locationRestriction": { "type": "LocationRestriction", "id": 14 + }, + "evOptions": { + "type": "EVOptions", + "id": 15, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -2480,6 +2503,25 @@ "id": 1 } } + }, + "EVOptions": { + "fields": { + "minimumChargingRateKw": { + "type": "double", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "connectorTypes": { + "rule": "repeated", + "type": "EVConnectorType", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, @@ -2566,6 +2608,252 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "sessionToken": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "AutocompletePlacesRequest": { + "fields": { + "input": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "locationBias": { + "type": "LocationBias", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "locationRestriction": { + "type": "LocationRestriction", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "includedPrimaryTypes": { + "rule": "repeated", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "includedRegionCodes": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "languageCode": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "regionCode": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "origin": { + "type": "google.type.LatLng", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "inputOffset": { + "type": "int32", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "includeQueryPredictions": { + "type": "bool", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "sessionToken": { + "type": "string", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "LocationBias": { + "oneofs": { + "type": { + "oneof": [ + "rectangle", + "circle" + ] + } + }, + "fields": { + "rectangle": { + "type": "google.geo.type.Viewport", + "id": 1 + }, + "circle": { + "type": "Circle", + "id": 2 + } + } + }, + "LocationRestriction": { + "oneofs": { + "type": { + "oneof": [ + "rectangle", + "circle" + ] + } + }, + "fields": { + "rectangle": { + "type": "google.geo.type.Viewport", + "id": 1 + }, + "circle": { + "type": "Circle", + "id": 2 + } + } + } + } + }, + "AutocompletePlacesResponse": { + "fields": { + "suggestions": { + "rule": "repeated", + "type": "Suggestion", + "id": 1 + } + }, + "nested": { + "Suggestion": { + "oneofs": { + "kind": { + "oneof": [ + "placePrediction", + "queryPrediction" + ] + } + }, + "fields": { + "placePrediction": { + "type": "PlacePrediction", + "id": 1 + }, + "queryPrediction": { + "type": "QueryPrediction", + "id": 2 + } + }, + "nested": { + "StringRange": { + "fields": { + "startOffset": { + "type": "int32", + "id": 1 + }, + "endOffset": { + "type": "int32", + "id": 2 + } + } + }, + "FormattableText": { + "fields": { + "text": { + "type": "string", + "id": 1 + }, + "matches": { + "rule": "repeated", + "type": "StringRange", + "id": 2 + } + } + }, + "StructuredFormat": { + "fields": { + "mainText": { + "type": "FormattableText", + "id": 1 + }, + "secondaryText": { + "type": "FormattableText", + "id": 2 + } + } + }, + "PlacePrediction": { + "fields": { + "place": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "places.googleapis.com/Place" + } + }, + "placeId": { + "type": "string", + "id": 2 + }, + "text": { + "type": "FormattableText", + "id": 3 + }, + "structuredFormat": { + "type": "StructuredFormat", + "id": 4 + }, + "types": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "distanceMeters": { + "type": "int32", + "id": 6 + } + } + }, + "QueryPrediction": { + "fields": { + "text": { + "type": "FormattableText", + "id": 1 + }, + "structuredFormat": { + "type": "StructuredFormat", + "id": 2 + } + } + } + } } } } diff --git a/packages/google-maps-places/samples/README.md b/packages/google-maps-places/samples/README.md index 791b8a7bf359..2a45cece1d62 100644 --- a/packages/google-maps-places/samples/README.md +++ b/packages/google-maps-places/samples/README.md @@ -12,6 +12,7 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Places.autocomplete_places](#places.autocomplete_places) * [Places.get_photo_media](#places.get_photo_media) * [Places.get_place](#places.get_place) * [Places.search_nearby](#places.search_nearby) @@ -33,6 +34,23 @@ Before running the samples, make sure you've followed the steps outlined in +### Places.autocomplete_places + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js` + + +----- + + + + ### Places.get_photo_media View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-places/samples/generated/v1/places.get_photo_media.js). diff --git a/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js b/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js new file mode 100644 index 000000000000..411755c599f0 --- /dev/null +++ b/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js @@ -0,0 +1,150 @@ +// Copyright 2024 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(input) { + // [START places_v1_generated_Places_AutocompletePlaces_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 text string on which to search. + */ + // const input = 'abc123' + /** + * Optional. Bias results to a specified location. + * At most one of `location_bias` or `location_restriction` should be set. If + * neither are set, the results will be biased by IP address, meaning the IP + * address will be mapped to an imprecise location and used as a biasing + * signal. + */ + // const locationBias = {} + /** + * Optional. Restrict results to a specified location. + * At most one of `location_bias` or `location_restriction` should be set. If + * neither are set, the results will be biased by IP address, meaning the IP + * address will be mapped to an imprecise location and used as a biasing + * signal. + */ + // const locationRestriction = {} + /** + * Optional. Included primary Place type (e.g. "restaurant" or "gas_station") + * from + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * A Place is only returned if its primary type is included in this list. Up + * to 5 values can be specified. If no types are specified, all Place types + * are returned. + */ + // const includedPrimaryTypes = ['abc','def'] + /** + * Optional. Only include results in the specified regions, specified as up to + * 15 CLDR two-character region codes. An empty set will not restrict the + * results. If both `location_restriction` and `included_region_codes` are + * set, the results will be located in the area of intersection. + */ + // const includedRegionCodes = ['abc','def'] + /** + * Optional. The language in which to return results. Defaults to en-US. The + * results may be in mixed languages if the language used in `input` is + * different from `language_code` or if the returned Place does not have a + * translation from the local language to `language_code`. + */ + // const languageCode = 'abc123' + /** + * Optional. The region code, specified as a CLDR two-character region code. + * This affects address formatting, result ranking, and may influence what + * results are returned. This does not restrict results to the specified + * region. To restrict results to a region, use `region_code_restriction`. + */ + // const regionCode = 'abc123' + /** + * Optional. The origin point from which to calculate geodesic distance to the + * destination (returned as `distance_meters`). If this value is omitted, + * geodesic distance will not be returned. + */ + // const origin = {} + /** + * Optional. A zero-based Unicode character offset of `input` indicating the + * cursor position in `input`. The cursor position may influence what + * predictions are returned. + * If empty, defaults to the length of `input`. + */ + // const inputOffset = 1234 + /** + * Optional. If true, the response will include both Place and query + * predictions. Otherwise the response will only return Place predictions. + */ + // const includeQueryPredictions = true + /** + * Optional. An arbitrary string which identifies an autocomplete session for + * billing purposes. Must be at most 36 characters in length. Otherwise an + * INVALID_ARGUMENT error is returned. + * The session begins when the user starts typing a query, and concludes when + * they select a place and a call to Place Details or Address Validation is + * made. Each session can have multiple queries, followed by one Place + * selection. The credentials used for each request within a session must + * belong to the same Google Cloud Console project. Once a session has + * concluded, the token is no longer valid; your app must generate a fresh + * token for each session. If the `session_token` parameter is omitted, or if + * you reuse a session token, the session is charged as if no session token + * was provided (each request is billed separately). + * We recommend the following guidelines: + * * Use session tokens for all Place Autocomplete calls. + * * Generate a fresh token for each session. Using a version 4 UUID is + * recommended. + * * Ensure that the credentials used for all Place Autocomplete, Place + * Details, and Address Validation requests within a session belong to the + * same Cloud Console project. + * * Be sure to pass a unique session token for each new session. Using the + * same token for more than one session will result in each request being + * billed individually. + */ + // const sessionToken = 'abc123' + + // Imports the Places library + const {PlacesClient} = require('@googlemaps/places').v1; + + // Instantiates a client + const placesClient = new PlacesClient(); + + async function callAutocompletePlaces() { + // Construct request + const request = { + input, + }; + + // Run request + const response = await placesClient.autocompletePlaces(request); + console.log(response); + } + + callAutocompletePlaces(); + // [END places_v1_generated_Places_AutocompletePlaces_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-places/samples/generated/v1/places.get_place.js b/packages/google-maps-places/samples/generated/v1/places.get_place.js index af4250795297..3481c8f34356 100644 --- a/packages/google-maps-places/samples/generated/v1/places.get_place.js +++ b/packages/google-maps-places/samples/generated/v1/places.get_place.js @@ -29,9 +29,7 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. A place ID returned in a Place (with "places/" prefix), or - * equivalently the name in the same Place. Format: - * `places/{place_id}`. + * Required. The resource name of a place, in the `places/{place_id}` format. */ // const name = 'abc123' /** @@ -51,6 +49,31 @@ function main(name) { * Note that 3-digit region codes are not currently supported. */ // const regionCode = 'abc123' + /** + * Optional. An arbitrary string which identifies an autocomplete session for + * billing purposes. Must be at most 36 characters in length. Otherwise an + * INVALID_ARGUMENT error is returned. + * The session begins when the user starts typing a query, and concludes when + * they select a place and a call to Place Details or Address Validation is + * made. Each session can have multiple queries, followed by one Place + * selection. The credentials used for each request within a session must + * belong to the same Google Cloud Console project. Once a session has + * concluded, the token is no longer valid; your app must generate a fresh + * token for each session. If the `session_token` parameter is omitted, or if + * you reuse a session token, the session is charged as if no session token + * was provided (each request is billed separately). + * We recommend the following guidelines: + * * Use session tokens for all Place Autocomplete calls. + * * Generate a fresh token for each session. Using a version 4 UUID is + * recommended. + * * Ensure that the credentials used for all Place Autocomplete, Place + * Details, and Address Validation requests within a session belong to the + * same Cloud Console project. + * * Be sure to pass a unique session token for each new session. Using the + * same token for more than one session will result in each request being + * billed individually. + */ + // const sessionToken = 'abc123' // Imports the Places library const {PlacesClient} = require('@googlemaps/places').v1; diff --git a/packages/google-maps-places/samples/generated/v1/places.search_text.js b/packages/google-maps-places/samples/generated/v1/places.search_text.js index fa8320a6c3d7..c219bf23c12a 100644 --- a/packages/google-maps-places/samples/generated/v1/places.search_text.js +++ b/packages/google-maps-places/samples/generated/v1/places.search_text.js @@ -104,6 +104,10 @@ function main(textQuery) { * with location_bias. */ // const locationRestriction = {} + /** + * Optional. Set the searchable EV options of a place search request. + */ + // const evOptions = {} // Imports the Places library const {PlacesClient} = require('@googlemaps/places').v1; diff --git a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json index 55c33f4cb8bd..6ce2807c7743 100644 --- a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json +++ b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json @@ -94,7 +94,7 @@ "segments": [ { "start": 25, - "end": 125, + "end": 129, "type": "FULL" } ], @@ -150,6 +150,10 @@ { "name": "location_restriction", "type": ".google.maps.places.v1.SearchTextRequest.LocationRestriction" + }, + { + "name": "ev_options", + "type": ".google.maps.places.v1.SearchTextRequest.EVOptions" } ], "resultType": ".google.maps.places.v1.SearchTextResponse", @@ -223,14 +227,14 @@ "regionTag": "places_v1_generated_Places_GetPlace_async", "title": "Places getPlace Sample", "origin": "API_DEFINITION", - "description": " Get place details with a place id (in a name) string.", + "description": " Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format.", "canonical": true, "file": "places.get_place.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 95, "type": "FULL" } ], @@ -250,6 +254,10 @@ { "name": "region_code", "type": "TYPE_STRING" + }, + { + "name": "session_token", + "type": "TYPE_STRING" } ], "resultType": ".google.maps.places.v1.Place", @@ -266,6 +274,86 @@ } } } + }, + { + "regionTag": "places_v1_generated_Places_AutocompletePlaces_async", + "title": "Places autocompletePlaces Sample", + "origin": "API_DEFINITION", + "description": " Returns predictions for the given input.", + "canonical": true, + "file": "places.autocomplete_places.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 142, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AutocompletePlaces", + "fullName": "google.maps.places.v1.Places.AutocompletePlaces", + "async": true, + "parameters": [ + { + "name": "input", + "type": "TYPE_STRING" + }, + { + "name": "location_bias", + "type": ".google.maps.places.v1.AutocompletePlacesRequest.LocationBias" + }, + { + "name": "location_restriction", + "type": ".google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction" + }, + { + "name": "included_primary_types", + "type": "TYPE_STRING[]" + }, + { + "name": "included_region_codes", + "type": "TYPE_STRING[]" + }, + { + "name": "language_code", + "type": "TYPE_STRING" + }, + { + "name": "region_code", + "type": "TYPE_STRING" + }, + { + "name": "origin", + "type": ".google.type.LatLng" + }, + { + "name": "input_offset", + "type": "TYPE_INT32" + }, + { + "name": "include_query_predictions", + "type": "TYPE_BOOL" + }, + { + "name": "session_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.maps.places.v1.AutocompletePlacesResponse", + "client": { + "shortName": "PlacesClient", + "fullName": "google.maps.places.v1.PlacesClient" + }, + "method": { + "shortName": "AutocompletePlaces", + "fullName": "google.maps.places.v1.Places.AutocompletePlaces", + "service": { + "shortName": "Places", + "fullName": "google.maps.places.v1.Places" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-maps-places/src/v1/gapic_metadata.json b/packages/google-maps-places/src/v1/gapic_metadata.json index fe8a489ab5c4..29fa123faa95 100644 --- a/packages/google-maps-places/src/v1/gapic_metadata.json +++ b/packages/google-maps-places/src/v1/gapic_metadata.json @@ -29,6 +29,11 @@ "methods": [ "getPlace" ] + }, + "AutocompletePlaces": { + "methods": [ + "autocompletePlaces" + ] } } }, @@ -54,6 +59,11 @@ "methods": [ "getPlace" ] + }, + "AutocompletePlaces": { + "methods": [ + "autocompletePlaces" + ] } } } diff --git a/packages/google-maps-places/src/v1/places_client.ts b/packages/google-maps-places/src/v1/places_client.ts index afbe676d27f2..1d06c616044d 100644 --- a/packages/google-maps-places/src/v1/places_client.ts +++ b/packages/google-maps-places/src/v1/places_client.ts @@ -261,6 +261,7 @@ export class PlacesClient { 'searchText', 'getPhotoMedia', 'getPlace', + 'autocompletePlaces', ]; for (const methodName of placesStubMethods) { const callPromise = this.placesStub.then( @@ -614,6 +615,8 @@ export class PlacesClient { * The region to search. This location serves as a restriction which means * results outside given location will not be returned. Cannot be set along * with location_bias. + * @param {google.maps.places.v1.SearchTextRequest.EVOptions} [request.evOptions] + * Optional. Set the searchable EV options of a place search request. * @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. @@ -803,14 +806,13 @@ export class PlacesClient { return this.innerApiCalls.getPhotoMedia(request, options, callback); } /** - * Get place details with a place id (in a name) string. + * Get the details of a place based on its resource name, which is a string + * in the `places/{place_id}` format. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. A place ID returned in a Place (with "places/" prefix), or - * equivalently the name in the same Place. Format: - * `places/{place_id}`. + * Required. The resource name of a place, in the `places/{place_id}` format. * @param {string} [request.languageCode] * Optional. Place details will be displayed with the preferred language if * available. @@ -827,6 +829,31 @@ export class PlacesClient { * * * Note that 3-digit region codes are not currently supported. + * @param {string} [request.sessionToken] + * Optional. An arbitrary string which identifies an autocomplete session for + * billing purposes. Must be at most 36 characters in length. Otherwise an + * INVALID_ARGUMENT error is returned. + * + * The session begins when the user starts typing a query, and concludes when + * they select a place and a call to Place Details or Address Validation is + * made. Each session can have multiple queries, followed by one Place + * selection. The credentials used for each request within a session must + * belong to the same Google Cloud Console project. Once a session has + * concluded, the token is no longer valid; your app must generate a fresh + * token for each session. If the `session_token` parameter is omitted, or if + * you reuse a session token, the session is charged as if no session token + * was provided (each request is billed separately). + * + * We recommend the following guidelines: + * * Use session tokens for all Place Autocomplete calls. + * * Generate a fresh token for each session. Using a version 4 UUID is + * recommended. + * * Ensure that the credentials used for all Place Autocomplete, Place + * Details, and Address Validation requests within a session belong to the + * same Cloud Console project. + * * Be sure to pass a unique session token for each new session. Using the + * same token for more than one session will result in each request being + * billed individually. * @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. @@ -902,6 +929,166 @@ export class PlacesClient { this.initialize(); return this.innerApiCalls.getPlace(request, options, callback); } + /** + * Returns predictions for the given input. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.input + * Required. The text string on which to search. + * @param {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} [request.locationBias] + * Optional. Bias results to a specified location. + * + * At most one of `location_bias` or `location_restriction` should be set. If + * neither are set, the results will be biased by IP address, meaning the IP + * address will be mapped to an imprecise location and used as a biasing + * signal. + * @param {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} [request.locationRestriction] + * Optional. Restrict results to a specified location. + * + * At most one of `location_bias` or `location_restriction` should be set. If + * neither are set, the results will be biased by IP address, meaning the IP + * address will be mapped to an imprecise location and used as a biasing + * signal. + * @param {string[]} [request.includedPrimaryTypes] + * Optional. Included primary Place type (e.g. "restaurant" or "gas_station") + * from + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * A Place is only returned if its primary type is included in this list. Up + * to 5 values can be specified. If no types are specified, all Place types + * are returned. + * @param {string[]} [request.includedRegionCodes] + * Optional. Only include results in the specified regions, specified as up to + * 15 CLDR two-character region codes. An empty set will not restrict the + * results. If both `location_restriction` and `included_region_codes` are + * set, the results will be located in the area of intersection. + * @param {string} [request.languageCode] + * Optional. The language in which to return results. Defaults to en-US. The + * results may be in mixed languages if the language used in `input` is + * different from `language_code` or if the returned Place does not have a + * translation from the local language to `language_code`. + * @param {string} [request.regionCode] + * Optional. The region code, specified as a CLDR two-character region code. + * This affects address formatting, result ranking, and may influence what + * results are returned. This does not restrict results to the specified + * region. To restrict results to a region, use `region_code_restriction`. + * @param {google.type.LatLng} [request.origin] + * Optional. The origin point from which to calculate geodesic distance to the + * destination (returned as `distance_meters`). If this value is omitted, + * geodesic distance will not be returned. + * @param {number} [request.inputOffset] + * Optional. A zero-based Unicode character offset of `input` indicating the + * cursor position in `input`. The cursor position may influence what + * predictions are returned. + * + * If empty, defaults to the length of `input`. + * @param {boolean} [request.includeQueryPredictions] + * Optional. If true, the response will include both Place and query + * predictions. Otherwise the response will only return Place predictions. + * @param {string} [request.sessionToken] + * Optional. An arbitrary string which identifies an autocomplete session for + * billing purposes. Must be at most 36 characters in length. Otherwise an + * INVALID_ARGUMENT error is returned. + * + * The session begins when the user starts typing a query, and concludes when + * they select a place and a call to Place Details or Address Validation is + * made. Each session can have multiple queries, followed by one Place + * selection. The credentials used for each request within a session must + * belong to the same Google Cloud Console project. Once a session has + * concluded, the token is no longer valid; your app must generate a fresh + * token for each session. If the `session_token` parameter is omitted, or if + * you reuse a session token, the session is charged as if no session token + * was provided (each request is billed separately). + * + * We recommend the following guidelines: + * * Use session tokens for all Place Autocomplete calls. + * * Generate a fresh token for each session. Using a version 4 UUID is + * recommended. + * * Ensure that the credentials used for all Place Autocomplete, Place + * Details, and Address Validation requests within a session belong to the + * same Cloud Console project. + * * Be sure to pass a unique session token for each new session. Using the + * same token for more than one session will result in each request being + * billed individually. + * @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 {@link protos.google.maps.places.v1.AutocompletePlacesResponse|AutocompletePlacesResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/places.autocomplete_places.js + * region_tag:places_v1_generated_Places_AutocompletePlaces_async + */ + autocompletePlaces( + request?: protos.google.maps.places.v1.IAutocompletePlacesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.maps.places.v1.IAutocompletePlacesResponse, + protos.google.maps.places.v1.IAutocompletePlacesRequest | undefined, + {} | undefined, + ] + >; + autocompletePlaces( + request: protos.google.maps.places.v1.IAutocompletePlacesRequest, + options: CallOptions, + callback: Callback< + protos.google.maps.places.v1.IAutocompletePlacesResponse, + | protos.google.maps.places.v1.IAutocompletePlacesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + autocompletePlaces( + request: protos.google.maps.places.v1.IAutocompletePlacesRequest, + callback: Callback< + protos.google.maps.places.v1.IAutocompletePlacesResponse, + | protos.google.maps.places.v1.IAutocompletePlacesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + autocompletePlaces( + request?: protos.google.maps.places.v1.IAutocompletePlacesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.maps.places.v1.IAutocompletePlacesResponse, + | protos.google.maps.places.v1.IAutocompletePlacesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.maps.places.v1.IAutocompletePlacesResponse, + | protos.google.maps.places.v1.IAutocompletePlacesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.maps.places.v1.IAutocompletePlacesResponse, + protos.google.maps.places.v1.IAutocompletePlacesRequest | 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 || {}; + this.initialize(); + return this.innerApiCalls.autocompletePlaces(request, options, callback); + } // -------------------- // -- Path templates -- diff --git a/packages/google-maps-places/src/v1/places_client_config.json b/packages/google-maps-places/src/v1/places_client_config.json index 34c88231028c..08c314b2f81a 100644 --- a/packages/google-maps-places/src/v1/places_client_config.json +++ b/packages/google-maps-places/src/v1/places_client_config.json @@ -35,6 +35,10 @@ "GetPlace": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "AutocompletePlaces": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-maps-places/test/gapic_places_v1.ts b/packages/google-maps-places/test/gapic_places_v1.ts index f0c983ca36ee..00230ffe1863 100644 --- a/packages/google-maps-places/test/gapic_places_v1.ts +++ b/packages/google-maps-places/test/gapic_places_v1.ts @@ -631,6 +631,90 @@ describe('v1.PlacesClient', () => { }); }); + describe('autocompletePlaces', () => { + it('invokes autocompletePlaces without error', async () => { + const client = new placesModule.v1.PlacesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.places.v1.AutocompletePlacesRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.maps.places.v1.AutocompletePlacesResponse() + ); + client.innerApiCalls.autocompletePlaces = + stubSimpleCall(expectedResponse); + const [response] = await client.autocompletePlaces(request); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes autocompletePlaces without error using callback', async () => { + const client = new placesModule.v1.PlacesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.places.v1.AutocompletePlacesRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.maps.places.v1.AutocompletePlacesResponse() + ); + client.innerApiCalls.autocompletePlaces = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.autocompletePlaces( + request, + ( + err?: Error | null, + result?: protos.google.maps.places.v1.IAutocompletePlacesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes autocompletePlaces with error', async () => { + const client = new placesModule.v1.PlacesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.places.v1.AutocompletePlacesRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.autocompletePlaces = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.autocompletePlaces(request), expectedError); + }); + + it('invokes autocompletePlaces with closed client', async () => { + const client = new placesModule.v1.PlacesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.places.v1.AutocompletePlacesRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.autocompletePlaces(request), expectedError); + }); + }); + describe('Path templates', () => { describe('photo', () => { const fakePath = '/rendered/path/photo'; From 38a6033f8cf226cd1ba29fee67e5a66469281986 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:29:35 -0800 Subject: [PATCH 13/19] docs: [batch] add caution messages for container runnable username and password fields (#5057) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: refine proto comment for run_as_non_root docs: add caution messages for container runnable username and password fields PiperOrigin-RevId: 608240389 Source-Link: https://github.com/googleapis/googleapis/commit/6f599f0782b0922a8b794dc35575288abf7debc9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6af0d38d953e7a5f9427d650ebcd3726fe286dce Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI2YWYwZDM4ZDk1M2U3YTVmOTQyN2Q2NTBlYmNkMzcyNmZlMjg2ZGNlIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: add caution messages for container runnable username and password fields --- docs: refine proto comment for run_as_non_root PiperOrigin-RevId: 608664745 Source-Link: https://github.com/googleapis/googleapis/commit/254e61ae3eb7ce8660c7cd3f15c8d30f1f46bfd3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4526911c7dd5862d18372554ddd820f94827f33a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI0NTI2OTExYzdkZDU4NjJkMTgzNzI1NTRkZGQ4MjBmOTQ4MjdmMzNhIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../protos/google/cloud/batch/v1/job.proto | 11 ++--- .../protos/google/cloud/batch/v1/task.proto | 41 +++++++++++++++---- .../google/cloud/batch/v1alpha/job.proto | 11 ++--- .../google/cloud/batch/v1alpha/task.proto | 41 +++++++++++++++---- 4 files changed, 78 insertions(+), 26 deletions(-) diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto index 7d97e5cc0d76..71067eb13755 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto @@ -607,17 +607,18 @@ message TaskGroup { // When true, Batch will populate a file with a list of all VMs assigned to // the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path - // of that file. Defaults to false. + // of that file. Defaults to false. The host file supports up to 1000 VMs. bool require_hosts_file = 11; // When true, Batch will configure SSH to allow passwordless login between // VMs running the Batch tasks in the same TaskGroup. bool permissive_ssh = 12; - // Optional. If not set or set to false, Batch will use root user to execute - // runnables. If set to true, Batch will make sure to run the runnables using - // non-root user. Currently, the non-root user Batch used is generated by OS - // login. Reference: https://cloud.google.com/compute/docs/oslogin + // Optional. If not set or set to false, Batch uses the root user to execute + // runnables. If set to true, Batch runs the runnables using a non-root user. + // Currently, the non-root user Batch used is generated by OS Login. For more + // information, see [About OS + // Login](https://cloud.google.com/compute/docs/oslogin). bool run_as_non_root = 14 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto index 1f97a00004f3..7037d20da0c6 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto @@ -179,14 +179,39 @@ message Runnable { // `container.options` field. bool block_external_network = 9; - // Optional username for logging in to a docker registry. If username - // matches `projects/*/secrets/*/versions/*` then Batch will read the - // username from the Secret Manager. + // Required if the container image is from a private Docker registry. The + // username to login to the Docker registry that contains the image. + // + // You can either specify the username directly by using plain text or + // specify an encrypted username by using a Secret Manager secret: + // `projects/*/secrets/*/versions/*`. However, using a secret is + // recommended for enhanced security. + // + // Caution: If you specify the username using plain text, you risk the + // username being exposed to any users who can view the job or its logs. + // To avoid this risk, specify a secret that contains the username instead. + // + // Learn more about [Secret + // Manager](https://cloud.google.com/secret-manager/docs/) and [using + // Secret Manager with + // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager). string username = 10; - // Optional password for logging in to a docker registry. If password - // matches `projects/*/secrets/*/versions/*` then Batch will read the - // password from the Secret Manager; + // Required if the container image is from a private Docker registry. The + // password to login to the Docker registry that contains the image. + // + // For security, it is strongly recommended to specify an + // encrypted password by using a Secret Manager secret: + // `projects/*/secrets/*/versions/*`. + // + // Warning: If you specify the password using plain text, you risk the + // password being exposed to any users who can view the job or its logs. + // To avoid this risk, specify a secret that contains the password instead. + // + // Learn more about [Secret + // Manager](https://cloud.google.com/secret-manager/docs/) and [using + // Secret Manager with + // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager). string password = 11; // Optional. If set to true, this container runnable uses Image streaming. @@ -219,7 +244,7 @@ message Runnable { // first line of the file.(For example, to execute the script using bash, // `#!/bin/bash` should be the first line of the file. To execute the // script using`Python3`, `#!/usr/bin/env python3` should be the first - // line of the file.) Otherwise, the file will by default be excuted by + // line of the file.) Otherwise, the file will by default be executed by // `/bin/sh`. string path = 1; @@ -229,7 +254,7 @@ message Runnable { // beginning of the text.(For example, to execute the script using bash, // `#!/bin/bash\n` should be added. To execute the script using`Python3`, // `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will - // by default be excuted by `/bin/sh`. + // by default be executed by `/bin/sh`. string text = 2; } } diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto index d5461738ac40..dcf6fed8ec99 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto @@ -698,17 +698,18 @@ message TaskGroup { // When true, Batch will populate a file with a list of all VMs assigned to // the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path - // of that file. Defaults to false. + // of that file. Defaults to false. The host file supports up to 1000 VMs. bool require_hosts_file = 11; // When true, Batch will configure SSH to allow passwordless login between // VMs running the Batch tasks in the same TaskGroup. bool permissive_ssh = 12; - // Optional. If not set or set to false, Batch will use root user to execute - // runnables. If set to true, Batch will make sure to run the runnables using - // non-root user. Currently, the non-root user Batch used is generated by OS - // login. Reference: https://cloud.google.com/compute/docs/oslogin + // Optional. If not set or set to false, Batch uses the root user to execute + // runnables. If set to true, Batch runs the runnables using a non-root user. + // Currently, the non-root user Batch used is generated by OS Login. For more + // information, see [About OS + // Login](https://cloud.google.com/compute/docs/oslogin). bool run_as_non_root = 14 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto index 40c3128d72d4..5b259463d938 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto @@ -198,14 +198,39 @@ message Runnable { // `container.options` field. bool block_external_network = 9; - // Optional username for logging in to a docker registry. If username - // matches `projects/*/secrets/*/versions/*` then Batch will read the - // username from the Secret Manager. + // Required if the container image is from a private Docker registry. The + // username to login to the Docker registry that contains the image. + // + // You can either specify the username directly by using plain text or + // specify an encrypted username by using a Secret Manager secret: + // `projects/*/secrets/*/versions/*`. However, using a secret is + // recommended for enhanced security. + // + // Caution: If you specify the username using plain text, you risk the + // username being exposed to any users who can view the job or its logs. + // To avoid this risk, specify a secret that contains the username instead. + // + // Learn more about [Secret + // Manager](https://cloud.google.com/secret-manager/docs/) and [using + // Secret Manager with + // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager). string username = 10; - // Optional password for logging in to a docker registry. If password - // matches `projects/*/secrets/*/versions/*` then Batch will read the - // password from the Secret Manager; + // Required if the container image is from a private Docker registry. The + // password to login to the Docker registry that contains the image. + // + // For security, it is strongly recommended to specify an + // encrypted password by using a Secret Manager secret: + // `projects/*/secrets/*/versions/*`. + // + // Warning: If you specify the password using plain text, you risk the + // password being exposed to any users who can view the job or its logs. + // To avoid this risk, specify a secret that contains the password instead. + // + // Learn more about [Secret + // Manager](https://cloud.google.com/secret-manager/docs/) and [using + // Secret Manager with + // Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager). string password = 11; // Optional. If set to true, this container runnable uses Image streaming. @@ -238,7 +263,7 @@ message Runnable { // first line of the file.(For example, to execute the script using bash, // `#!/bin/bash` should be the first line of the file. To execute the // script using`Python3`, `#!/usr/bin/env python3` should be the first - // line of the file.) Otherwise, the file will by default be excuted by + // line of the file.) Otherwise, the file will by default be executed by // `/bin/sh`. string path = 1; @@ -248,7 +273,7 @@ message Runnable { // beginning of the text.(For example, to execute the script using bash, // `#!/bin/bash\n` should be added. To execute the script using`Python3`, // `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will - // by default be excuted by `/bin/sh`. + // by default be executed by `/bin/sh`. string text = 2; } } From da1c96fcf441e412b3657b6b433c4a07c5afca1d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:29:50 -0800 Subject: [PATCH 14/19] feat: [addressvalidation] add session token support for Autocomplete (New) sessions that end with a call to Address Validation (#5059) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add session token support for Autocomplete (New) sessions that end with a call to Address Validation feat: add new fields to USPS data docs: update proto field descriptions PiperOrigin-RevId: 608369029 Source-Link: https://github.com/googleapis/googleapis/commit/5ff3e5298f3e330c09bd1690090f5c24f1540e86 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c1828358be412ba02e45bfbae3afc2b3dadd5d32 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtYWRkcmVzc3ZhbGlkYXRpb24vLk93bEJvdC55YW1sIiwiaCI6ImMxODI4MzU4YmU0MTJiYTAyZTQ1YmZiYWUzYWZjMmIzZGFkZDVkMzIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../maps/addressvalidation/v1/address.proto | 8 +- .../v1/address_validation_service.proto | 29 ++- .../maps/addressvalidation/v1/usps_data.proto | 105 +++++++- .../protos/protos.d.ts | 60 +++++ .../protos/protos.js | 230 ++++++++++++++++++ .../protos/protos.json | 43 ++++ .../v1/address_validation.validate_address.js | 25 +- ...data_google.maps.addressvalidation.v1.json | 6 +- .../src/v1/address_validation_client.ts | 25 +- 9 files changed, 513 insertions(+), 18 deletions(-) diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto index c24a3bf96181..031361178dcf 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto @@ -118,9 +118,11 @@ message AddressComponent { // for a complete address. bool inferred = 4; - // Indicates the spelling of the component name was corrected in a minor way, - // for example by switching two characters that appeared in the wrong order. - // This indicates a cosmetic change. + // Indicates a correction to a misspelling in the component name. The API + // does not always flag changes from one spelling variant to another, such as + // when changing "centre" to "center". It also does not always flag common + // misspellings, such as when changing "Amphitheater Pkwy" to "Amphitheatre + // Pkwy". bool spell_corrected = 5; // Indicates the name of the component was replaced with a completely diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto index ff19440eeded..134b27577627 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto @@ -70,8 +70,8 @@ message ValidateAddressRequest { // The total length of the fields in this input must not exceed 280 // characters. // - // Supported regions can be found in the - // [FAQ](https://developers.google.com/maps/documentation/address-validation/faq#which_regions_are_currently_supported). + // Supported regions can be found + // [here](https://developers.google.com/maps/documentation/address-validation/coverage). // // The [language_code][google.type.PostalAddress.language_code] value in the // input address is reserved for future uses and is ignored today. The @@ -107,6 +107,28 @@ message ValidateAddressRequest { // contains the street number and name and the second line contains the city, // state, and zip code. bool enable_usps_cass = 3; + + // Optional. A string which identifies an Autocomplete session for billing + // purposes. Must be a URL and filename safe base64 string with at most 36 + // ASCII characters in length. Otherwise an INVALID_ARGUMENT error is + // returned. + // + // The session begins when the user starts typing a query, and concludes when + // they select a place and a call to Place Details or Address Validation is + // made. Each session can have multiple autocomplete queries, followed by one + // Place Details or Address Validation request. The credentials used for each + // request within a session must belong to the same Google Cloud Console + // project. Once a session has concluded, the token is no longer valid; your + // app must generate a fresh token for each session. If the `session_token` + // parameter is omitted, or if you reuse a session token, the session is + // charged as if no session token was provided (each request is billed + // separately). + // + // Note: Address Validation can only be used in sessions with the + // Autocomplete (New) API, not the old Autocomplete API. See + // https://developers.google.com/maps/documentation/places/web-service/session-pricing + // for more details. + string session_token = 5 [(google.api.field_behavior) = OPTIONAL]; } // The response to an address validation request. @@ -204,8 +226,7 @@ message Verdict { // Building-level result. PREMISE = 2; - // A geocode that should be very close to the building-level location of - // the address. + // A geocode that approximates the building-level location of the address. PREMISE_PROXIMITY = 3; // The address or geocode indicates a block. Only used in regions which diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto index c1680a127790..a6d85fb3fd86 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto @@ -73,15 +73,18 @@ message UspsData { // code, and ZIP+4 together should yield a number divisible by 10. string delivery_point_check_digit = 3; - // The possible values for DPV confirmation. Returns a single character. + // The possible values for DPV confirmation. Returns a single character or + // returns no value. // - // * `Y`: Address was DPV confirmed for primary and any secondary numbers. // * `N`: Primary and any secondary number information failed to // DPV confirm. - // * `S`: Address was DPV confirmed for the primary number only, and the - // secondary number information was present by not confirmed. // * `D`: Address was DPV confirmed for the primary number only, and the // secondary number information was missing. + // * `S`: Address was DPV confirmed for the primary number only, and the + // secondary number information was present but not confirmed. + // * `Y`: Address was DPV confirmed for primary and any secondary numbers. + // * Empty: If the response does not contain a `dpv_confirmation` value, the + // address was not submitted for DPV confirmation. string dpv_confirmation = 4; // The footnotes from delivery point validation. @@ -90,11 +93,12 @@ message UspsData { // * `AA`: Input address matched to the ZIP+4 file // * `A1`: Input address was not matched to the ZIP+4 file // * `BB`: Matched to DPV (all components) - // * `CC`: Secondary number not matched (present but invalid) + // * `CC`: Secondary number not matched and not required + // * `C1`: Secondary number not matched but required // * `N1`: High-rise address missing secondary number // * `M1`: Primary number missing // * `M3`: Primary number invalid - // * `P1`: Input address RR or HC box number missing + // * `P1`: Input address PO, RR or HC box number missing // * `P3`: Input address PO, RR, or HC Box number invalid // * `F1`: Input address matched to a military address // * `G1`: Input address matched to a general delivery address @@ -103,6 +107,8 @@ message UspsData { // * `RR`: DPV confirmed address with PMB information // * `R1`: DPV confirmed address without PMB information // * `R7`: Carrier Route R777 or R779 record + // * `IA`: Informed Address identified + // * `TA`: Primary number matched by dropping a trailing alpha string dpv_footnote = 5; // Indicates if the address is a CMRA (Commercial Mail Receiving Agency)--a @@ -127,6 +133,93 @@ message UspsData { // * `N`: The address is active string dpv_no_stat = 8; + // Indicates the NoStat type. Returns a reason code as int. + // + // * `1`: IDA (Internal Drop Address) – Addresses that do not receive mail + // directly from the USPS but are delivered to a drop address that services + // them. + // * `2`: CDS - Addresses that have not yet become deliverable. For example, a + // new subdivision where lots and primary numbers have been determined, but no + // structure exists yet for occupancy. + // * `3`: Collision - Addresses that do not actually DPV confirm. + // * `4`: CMZ (College, Military and Other Types) - ZIP + 4 records USPS has + // incorporated into the data. + // * `5`: Regular - Indicates addresses not receiving delivery and the + // addresses are not counted as possible deliveries. + // * `6`: Secondary Required - The address requires secondary information. + int32 dpv_no_stat_reason_code = 29; + + // Flag indicates mail is delivered to a single receptable at a site. + // Returns a single character. + // + // * `Y`: The mail is delivered to a single receptable at a site. + // * `N`: The mail is not delivered to a single receptable at a site. + string dpv_drop = 30; + + // Indicates that mail is not delivered to the street address. + // Returns a single character. + // + // * `Y`: The mail is not delivered to the street address. + // * `N`: The mail is delivered to the street address. + string dpv_throwback = 31; + + // Flag indicates mail delivery is not performed every day of the week. + // Returns a single character. + // + // * `Y`: The mail delivery is not performed every day of the week. + // * `N`: No indication the mail delivery is not performed every day of the + // week. + string dpv_non_delivery_days = 32; + + // Integer identifying non-delivery days. It can be interrogated using bit + // flags: + // 0x40 – Sunday is a non-delivery day + // 0x20 – Monday is a non-delivery day + // 0x10 – Tuesday is a non-delivery day + // 0x08 – Wednesday is a non-delivery day + // 0x04 – Thursday is a non-delivery day + // 0x02 – Friday is a non-delivery day + // 0x01 – Saturday is a non-delivery day + int32 dpv_non_delivery_days_values = 33; + + // Flag indicates door is accessible, but package will not be left due to + // security concerns. + // Returns a single character. + // + // * `Y`: The package will not be left due to security concerns. + // * `N`: No indication the package will not be left due to security concerns. + string dpv_no_secure_location = 34; + + // Indicates the address was matched to PBSA record. + // Returns a single character. + // + // * `Y`: The address was matched to PBSA record. + // * `N`: The address was not matched to PBSA record. + string dpv_pbsa = 35; + + // Flag indicates addresses where USPS cannot knock on a door to deliver mail. + // Returns a single character. + // + // * `Y`: The door is not accessible. + // * `N`: No indication the door is not accessible. + string dpv_door_not_accessible = 36; + + // Indicates that more than one DPV return code is valid for the address. + // Returns a single character. + // + // * `Y`: Address was DPV confirmed for primary and any secondary numbers. + // * `N`: Primary and any secondary number information failed to + // DPV confirm. + // * `S`: Address was DPV confirmed for the primary number only, and the + // secondary number information was present by not confirmed, or a single + // trailing alpha on a primary number was dropped to make a DPV match and + // secondary information required. + // * `D`: Address was DPV confirmed for the primary number only, and the + // secondary number information was missing. + // * `R`: Address confirmed but assigned to phantom route R777 and R779 and + // USPS delivery is not provided. + string dpv_enhanced_delivery_code = 37; + // The carrier route code. // A four character code consisting of a one letter prefix and a three digit // route designator. diff --git a/packages/google-maps-addressvalidation/protos/protos.d.ts b/packages/google-maps-addressvalidation/protos/protos.d.ts index 2acf518c9720..100da8a884f3 100644 --- a/packages/google-maps-addressvalidation/protos/protos.d.ts +++ b/packages/google-maps-addressvalidation/protos/protos.d.ts @@ -852,6 +852,9 @@ export namespace google { /** ValidateAddressRequest enableUspsCass */ enableUspsCass?: (boolean|null); + + /** ValidateAddressRequest sessionToken */ + sessionToken?: (string|null); } /** Represents a ValidateAddressRequest. */ @@ -872,6 +875,9 @@ export namespace google { /** ValidateAddressRequest enableUspsCass. */ public enableUspsCass: boolean; + /** ValidateAddressRequest sessionToken. */ + public sessionToken: string; + /** * Creates a new ValidateAddressRequest instance using the specified properties. * @param [properties] Properties to set @@ -2047,6 +2053,33 @@ export namespace google { /** UspsData dpvNoStat */ dpvNoStat?: (string|null); + /** UspsData dpvNoStatReasonCode */ + dpvNoStatReasonCode?: (number|null); + + /** UspsData dpvDrop */ + dpvDrop?: (string|null); + + /** UspsData dpvThrowback */ + dpvThrowback?: (string|null); + + /** UspsData dpvNonDeliveryDays */ + dpvNonDeliveryDays?: (string|null); + + /** UspsData dpvNonDeliveryDaysValues */ + dpvNonDeliveryDaysValues?: (number|null); + + /** UspsData dpvNoSecureLocation */ + dpvNoSecureLocation?: (string|null); + + /** UspsData dpvPbsa */ + dpvPbsa?: (string|null); + + /** UspsData dpvDoorNotAccessible */ + dpvDoorNotAccessible?: (string|null); + + /** UspsData dpvEnhancedDeliveryCode */ + dpvEnhancedDeliveryCode?: (string|null); + /** UspsData carrierRoute */ carrierRoute?: (string|null); @@ -2141,6 +2174,33 @@ export namespace google { /** UspsData dpvNoStat. */ public dpvNoStat: string; + /** UspsData dpvNoStatReasonCode. */ + public dpvNoStatReasonCode: number; + + /** UspsData dpvDrop. */ + public dpvDrop: string; + + /** UspsData dpvThrowback. */ + public dpvThrowback: string; + + /** UspsData dpvNonDeliveryDays. */ + public dpvNonDeliveryDays: string; + + /** UspsData dpvNonDeliveryDaysValues. */ + public dpvNonDeliveryDaysValues: number; + + /** UspsData dpvNoSecureLocation. */ + public dpvNoSecureLocation: string; + + /** UspsData dpvPbsa. */ + public dpvPbsa: string; + + /** UspsData dpvDoorNotAccessible. */ + public dpvDoorNotAccessible: string; + + /** UspsData dpvEnhancedDeliveryCode. */ + public dpvEnhancedDeliveryCode: string; + /** UspsData carrierRoute. */ public carrierRoute: string; diff --git a/packages/google-maps-addressvalidation/protos/protos.js b/packages/google-maps-addressvalidation/protos/protos.js index 18bbbf0ae490..d523d208cbfc 100644 --- a/packages/google-maps-addressvalidation/protos/protos.js +++ b/packages/google-maps-addressvalidation/protos/protos.js @@ -2160,6 +2160,7 @@ * @property {google.type.IPostalAddress|null} [address] ValidateAddressRequest address * @property {string|null} [previousResponseId] ValidateAddressRequest previousResponseId * @property {boolean|null} [enableUspsCass] ValidateAddressRequest enableUspsCass + * @property {string|null} [sessionToken] ValidateAddressRequest sessionToken */ /** @@ -2201,6 +2202,14 @@ */ ValidateAddressRequest.prototype.enableUspsCass = false; + /** + * ValidateAddressRequest sessionToken. + * @member {string} sessionToken + * @memberof google.maps.addressvalidation.v1.ValidateAddressRequest + * @instance + */ + ValidateAddressRequest.prototype.sessionToken = ""; + /** * Creates a new ValidateAddressRequest instance using the specified properties. * @function create @@ -2231,6 +2240,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.previousResponseId); if (message.enableUspsCass != null && Object.hasOwnProperty.call(message, "enableUspsCass")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableUspsCass); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sessionToken); return writer; }; @@ -2277,6 +2288,10 @@ message.enableUspsCass = reader.bool(); break; } + case 5: { + message.sessionToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -2323,6 +2338,9 @@ if (message.enableUspsCass != null && message.hasOwnProperty("enableUspsCass")) if (typeof message.enableUspsCass !== "boolean") return "enableUspsCass: boolean expected"; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (!$util.isString(message.sessionToken)) + return "sessionToken: string expected"; return null; }; @@ -2347,6 +2365,8 @@ message.previousResponseId = String(object.previousResponseId); if (object.enableUspsCass != null) message.enableUspsCass = Boolean(object.enableUspsCass); + if (object.sessionToken != null) + message.sessionToken = String(object.sessionToken); return message; }; @@ -2367,6 +2387,7 @@ object.address = null; object.previousResponseId = ""; object.enableUspsCass = false; + object.sessionToken = ""; } if (message.address != null && message.hasOwnProperty("address")) object.address = $root.google.type.PostalAddress.toObject(message.address, options); @@ -2374,6 +2395,8 @@ object.previousResponseId = message.previousResponseId; if (message.enableUspsCass != null && message.hasOwnProperty("enableUspsCass")) object.enableUspsCass = message.enableUspsCass; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + object.sessionToken = message.sessionToken; return object; }; @@ -5190,6 +5213,15 @@ * @property {string|null} [dpvCmra] UspsData dpvCmra * @property {string|null} [dpvVacant] UspsData dpvVacant * @property {string|null} [dpvNoStat] UspsData dpvNoStat + * @property {number|null} [dpvNoStatReasonCode] UspsData dpvNoStatReasonCode + * @property {string|null} [dpvDrop] UspsData dpvDrop + * @property {string|null} [dpvThrowback] UspsData dpvThrowback + * @property {string|null} [dpvNonDeliveryDays] UspsData dpvNonDeliveryDays + * @property {number|null} [dpvNonDeliveryDaysValues] UspsData dpvNonDeliveryDaysValues + * @property {string|null} [dpvNoSecureLocation] UspsData dpvNoSecureLocation + * @property {string|null} [dpvPbsa] UspsData dpvPbsa + * @property {string|null} [dpvDoorNotAccessible] UspsData dpvDoorNotAccessible + * @property {string|null} [dpvEnhancedDeliveryCode] UspsData dpvEnhancedDeliveryCode * @property {string|null} [carrierRoute] UspsData carrierRoute * @property {string|null} [carrierRouteIndicator] UspsData carrierRouteIndicator * @property {boolean|null} [ewsNoMatch] UspsData ewsNoMatch @@ -5291,6 +5323,78 @@ */ UspsData.prototype.dpvNoStat = ""; + /** + * UspsData dpvNoStatReasonCode. + * @member {number} dpvNoStatReasonCode + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvNoStatReasonCode = 0; + + /** + * UspsData dpvDrop. + * @member {string} dpvDrop + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvDrop = ""; + + /** + * UspsData dpvThrowback. + * @member {string} dpvThrowback + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvThrowback = ""; + + /** + * UspsData dpvNonDeliveryDays. + * @member {string} dpvNonDeliveryDays + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvNonDeliveryDays = ""; + + /** + * UspsData dpvNonDeliveryDaysValues. + * @member {number} dpvNonDeliveryDaysValues + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvNonDeliveryDaysValues = 0; + + /** + * UspsData dpvNoSecureLocation. + * @member {string} dpvNoSecureLocation + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvNoSecureLocation = ""; + + /** + * UspsData dpvPbsa. + * @member {string} dpvPbsa + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvPbsa = ""; + + /** + * UspsData dpvDoorNotAccessible. + * @member {string} dpvDoorNotAccessible + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvDoorNotAccessible = ""; + + /** + * UspsData dpvEnhancedDeliveryCode. + * @member {string} dpvEnhancedDeliveryCode + * @memberof google.maps.addressvalidation.v1.UspsData + * @instance + */ + UspsData.prototype.dpvEnhancedDeliveryCode = ""; + /** * UspsData carrierRoute. * @member {string} carrierRoute @@ -5531,6 +5635,24 @@ writer.uint32(/* id 27, wireType 2 =*/218).string(message.errorMessage); if (message.cassProcessed != null && Object.hasOwnProperty.call(message, "cassProcessed")) writer.uint32(/* id 28, wireType 0 =*/224).bool(message.cassProcessed); + if (message.dpvNoStatReasonCode != null && Object.hasOwnProperty.call(message, "dpvNoStatReasonCode")) + writer.uint32(/* id 29, wireType 0 =*/232).int32(message.dpvNoStatReasonCode); + if (message.dpvDrop != null && Object.hasOwnProperty.call(message, "dpvDrop")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.dpvDrop); + if (message.dpvThrowback != null && Object.hasOwnProperty.call(message, "dpvThrowback")) + writer.uint32(/* id 31, wireType 2 =*/250).string(message.dpvThrowback); + if (message.dpvNonDeliveryDays != null && Object.hasOwnProperty.call(message, "dpvNonDeliveryDays")) + writer.uint32(/* id 32, wireType 2 =*/258).string(message.dpvNonDeliveryDays); + if (message.dpvNonDeliveryDaysValues != null && Object.hasOwnProperty.call(message, "dpvNonDeliveryDaysValues")) + writer.uint32(/* id 33, wireType 0 =*/264).int32(message.dpvNonDeliveryDaysValues); + if (message.dpvNoSecureLocation != null && Object.hasOwnProperty.call(message, "dpvNoSecureLocation")) + writer.uint32(/* id 34, wireType 2 =*/274).string(message.dpvNoSecureLocation); + if (message.dpvPbsa != null && Object.hasOwnProperty.call(message, "dpvPbsa")) + writer.uint32(/* id 35, wireType 2 =*/282).string(message.dpvPbsa); + if (message.dpvDoorNotAccessible != null && Object.hasOwnProperty.call(message, "dpvDoorNotAccessible")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.dpvDoorNotAccessible); + if (message.dpvEnhancedDeliveryCode != null && Object.hasOwnProperty.call(message, "dpvEnhancedDeliveryCode")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.dpvEnhancedDeliveryCode); return writer; }; @@ -5597,6 +5719,42 @@ message.dpvNoStat = reader.string(); break; } + case 29: { + message.dpvNoStatReasonCode = reader.int32(); + break; + } + case 30: { + message.dpvDrop = reader.string(); + break; + } + case 31: { + message.dpvThrowback = reader.string(); + break; + } + case 32: { + message.dpvNonDeliveryDays = reader.string(); + break; + } + case 33: { + message.dpvNonDeliveryDaysValues = reader.int32(); + break; + } + case 34: { + message.dpvNoSecureLocation = reader.string(); + break; + } + case 35: { + message.dpvPbsa = reader.string(); + break; + } + case 36: { + message.dpvDoorNotAccessible = reader.string(); + break; + } + case 37: { + message.dpvEnhancedDeliveryCode = reader.string(); + break; + } case 9: { message.carrierRoute = reader.string(); break; @@ -5738,6 +5896,33 @@ if (message.dpvNoStat != null && message.hasOwnProperty("dpvNoStat")) if (!$util.isString(message.dpvNoStat)) return "dpvNoStat: string expected"; + if (message.dpvNoStatReasonCode != null && message.hasOwnProperty("dpvNoStatReasonCode")) + if (!$util.isInteger(message.dpvNoStatReasonCode)) + return "dpvNoStatReasonCode: integer expected"; + if (message.dpvDrop != null && message.hasOwnProperty("dpvDrop")) + if (!$util.isString(message.dpvDrop)) + return "dpvDrop: string expected"; + if (message.dpvThrowback != null && message.hasOwnProperty("dpvThrowback")) + if (!$util.isString(message.dpvThrowback)) + return "dpvThrowback: string expected"; + if (message.dpvNonDeliveryDays != null && message.hasOwnProperty("dpvNonDeliveryDays")) + if (!$util.isString(message.dpvNonDeliveryDays)) + return "dpvNonDeliveryDays: string expected"; + if (message.dpvNonDeliveryDaysValues != null && message.hasOwnProperty("dpvNonDeliveryDaysValues")) + if (!$util.isInteger(message.dpvNonDeliveryDaysValues)) + return "dpvNonDeliveryDaysValues: integer expected"; + if (message.dpvNoSecureLocation != null && message.hasOwnProperty("dpvNoSecureLocation")) + if (!$util.isString(message.dpvNoSecureLocation)) + return "dpvNoSecureLocation: string expected"; + if (message.dpvPbsa != null && message.hasOwnProperty("dpvPbsa")) + if (!$util.isString(message.dpvPbsa)) + return "dpvPbsa: string expected"; + if (message.dpvDoorNotAccessible != null && message.hasOwnProperty("dpvDoorNotAccessible")) + if (!$util.isString(message.dpvDoorNotAccessible)) + return "dpvDoorNotAccessible: string expected"; + if (message.dpvEnhancedDeliveryCode != null && message.hasOwnProperty("dpvEnhancedDeliveryCode")) + if (!$util.isString(message.dpvEnhancedDeliveryCode)) + return "dpvEnhancedDeliveryCode: string expected"; if (message.carrierRoute != null && message.hasOwnProperty("carrierRoute")) if (!$util.isString(message.carrierRoute)) return "carrierRoute: string expected"; @@ -5832,6 +6017,24 @@ message.dpvVacant = String(object.dpvVacant); if (object.dpvNoStat != null) message.dpvNoStat = String(object.dpvNoStat); + if (object.dpvNoStatReasonCode != null) + message.dpvNoStatReasonCode = object.dpvNoStatReasonCode | 0; + if (object.dpvDrop != null) + message.dpvDrop = String(object.dpvDrop); + if (object.dpvThrowback != null) + message.dpvThrowback = String(object.dpvThrowback); + if (object.dpvNonDeliveryDays != null) + message.dpvNonDeliveryDays = String(object.dpvNonDeliveryDays); + if (object.dpvNonDeliveryDaysValues != null) + message.dpvNonDeliveryDaysValues = object.dpvNonDeliveryDaysValues | 0; + if (object.dpvNoSecureLocation != null) + message.dpvNoSecureLocation = String(object.dpvNoSecureLocation); + if (object.dpvPbsa != null) + message.dpvPbsa = String(object.dpvPbsa); + if (object.dpvDoorNotAccessible != null) + message.dpvDoorNotAccessible = String(object.dpvDoorNotAccessible); + if (object.dpvEnhancedDeliveryCode != null) + message.dpvEnhancedDeliveryCode = String(object.dpvEnhancedDeliveryCode); if (object.carrierRoute != null) message.carrierRoute = String(object.carrierRoute); if (object.carrierRouteIndicator != null) @@ -5917,6 +6120,15 @@ object.defaultAddress = false; object.errorMessage = ""; object.cassProcessed = false; + object.dpvNoStatReasonCode = 0; + object.dpvDrop = ""; + object.dpvThrowback = ""; + object.dpvNonDeliveryDays = ""; + object.dpvNonDeliveryDaysValues = 0; + object.dpvNoSecureLocation = ""; + object.dpvPbsa = ""; + object.dpvDoorNotAccessible = ""; + object.dpvEnhancedDeliveryCode = ""; } if (message.standardizedAddress != null && message.hasOwnProperty("standardizedAddress")) object.standardizedAddress = $root.google.maps.addressvalidation.v1.UspsAddress.toObject(message.standardizedAddress, options); @@ -5974,6 +6186,24 @@ object.errorMessage = message.errorMessage; if (message.cassProcessed != null && message.hasOwnProperty("cassProcessed")) object.cassProcessed = message.cassProcessed; + if (message.dpvNoStatReasonCode != null && message.hasOwnProperty("dpvNoStatReasonCode")) + object.dpvNoStatReasonCode = message.dpvNoStatReasonCode; + if (message.dpvDrop != null && message.hasOwnProperty("dpvDrop")) + object.dpvDrop = message.dpvDrop; + if (message.dpvThrowback != null && message.hasOwnProperty("dpvThrowback")) + object.dpvThrowback = message.dpvThrowback; + if (message.dpvNonDeliveryDays != null && message.hasOwnProperty("dpvNonDeliveryDays")) + object.dpvNonDeliveryDays = message.dpvNonDeliveryDays; + if (message.dpvNonDeliveryDaysValues != null && message.hasOwnProperty("dpvNonDeliveryDaysValues")) + object.dpvNonDeliveryDaysValues = message.dpvNonDeliveryDaysValues; + if (message.dpvNoSecureLocation != null && message.hasOwnProperty("dpvNoSecureLocation")) + object.dpvNoSecureLocation = message.dpvNoSecureLocation; + if (message.dpvPbsa != null && message.hasOwnProperty("dpvPbsa")) + object.dpvPbsa = message.dpvPbsa; + if (message.dpvDoorNotAccessible != null && message.hasOwnProperty("dpvDoorNotAccessible")) + object.dpvDoorNotAccessible = message.dpvDoorNotAccessible; + if (message.dpvEnhancedDeliveryCode != null && message.hasOwnProperty("dpvEnhancedDeliveryCode")) + object.dpvEnhancedDeliveryCode = message.dpvEnhancedDeliveryCode; return object; }; diff --git a/packages/google-maps-addressvalidation/protos/protos.json b/packages/google-maps-addressvalidation/protos/protos.json index f92207fe442c..e78f4e1bb214 100644 --- a/packages/google-maps-addressvalidation/protos/protos.json +++ b/packages/google-maps-addressvalidation/protos/protos.json @@ -264,6 +264,13 @@ "enableUspsCass": { "type": "bool", "id": 3 + }, + "sessionToken": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -537,6 +544,42 @@ "type": "string", "id": 8 }, + "dpvNoStatReasonCode": { + "type": "int32", + "id": 29 + }, + "dpvDrop": { + "type": "string", + "id": 30 + }, + "dpvThrowback": { + "type": "string", + "id": 31 + }, + "dpvNonDeliveryDays": { + "type": "string", + "id": 32 + }, + "dpvNonDeliveryDaysValues": { + "type": "int32", + "id": 33 + }, + "dpvNoSecureLocation": { + "type": "string", + "id": 34 + }, + "dpvPbsa": { + "type": "string", + "id": 35 + }, + "dpvDoorNotAccessible": { + "type": "string", + "id": 36 + }, + "dpvEnhancedDeliveryCode": { + "type": "string", + "id": 37 + }, "carrierRoute": { "type": "string", "id": 9 diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js b/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js index 5d852638fa59..1a7d720cca89 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js +++ b/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js @@ -33,8 +33,8 @@ function main(address) { * submitted via `address_lines` google.type.PostalAddress.address_lines. * The total length of the fields in this input must not exceed 280 * characters. - * Supported regions can be found in the - * FAQ (https://developers.google.com/maps/documentation/address-validation/faq#which_regions_are_currently_supported). + * Supported regions can be found + * here (https://developers.google.com/maps/documentation/address-validation/coverage). * The language_code google.type.PostalAddress.language_code value in the * input address is reserved for future uses and is ignored today. The * validated address result will be populated based on the preferred language @@ -69,6 +69,27 @@ function main(address) { * state, and zip code. */ // const enableUspsCass = true + /** + * Optional. A string which identifies an Autocomplete session for billing + * purposes. Must be a URL and filename safe base64 string with at most 36 + * ASCII characters in length. Otherwise an INVALID_ARGUMENT error is + * returned. + * The session begins when the user starts typing a query, and concludes when + * they select a place and a call to Place Details or Address Validation is + * made. Each session can have multiple autocomplete queries, followed by one + * Place Details or Address Validation request. The credentials used for each + * request within a session must belong to the same Google Cloud Console + * project. Once a session has concluded, the token is no longer valid; your + * app must generate a fresh token for each session. If the `session_token` + * parameter is omitted, or if you reuse a session token, the session is + * charged as if no session token was provided (each request is billed + * separately). + * Note: Address Validation can only be used in sessions with the + * Autocomplete (New) API, not the old Autocomplete API. See + * https://developers.google.com/maps/documentation/places/web-service/session-pricing + * for more details. + */ + // const sessionToken = 'abc123' // Imports the Addressvalidation library const {AddressValidationClient} = require('@googlemaps/addressvalidation').v1; diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json index 2a2ed685cb8a..f59de7596f73 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json +++ b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 90, + "end": 111, "type": "FULL" } ], @@ -42,6 +42,10 @@ { "name": "enable_usps_cass", "type": "TYPE_BOOL" + }, + { + "name": "session_token", + "type": "TYPE_STRING" } ], "resultType": ".google.maps.addressvalidation.v1.ValidateAddressResponse", diff --git a/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts b/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts index 9e5d38e2a2b8..58657bc17034 100644 --- a/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts +++ b/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts @@ -364,8 +364,8 @@ export class AddressValidationClient { * The total length of the fields in this input must not exceed 280 * characters. * - * Supported regions can be found in the - * [FAQ](https://developers.google.com/maps/documentation/address-validation/faq#which_regions_are_currently_supported). + * Supported regions can be found + * [here](https://developers.google.com/maps/documentation/address-validation/coverage). * * The {@link protos.google.type.PostalAddress.language_code|language_code} value in the * input address is reserved for future uses and is ignored today. The @@ -397,6 +397,27 @@ export class AddressValidationClient { * at least two [google.type.PostalAddress.address_lines] where the first line * contains the street number and name and the second line contains the city, * state, and zip code. + * @param {string} [request.sessionToken] + * Optional. A string which identifies an Autocomplete session for billing + * purposes. Must be a URL and filename safe base64 string with at most 36 + * ASCII characters in length. Otherwise an INVALID_ARGUMENT error is + * returned. + * + * The session begins when the user starts typing a query, and concludes when + * they select a place and a call to Place Details or Address Validation is + * made. Each session can have multiple autocomplete queries, followed by one + * Place Details or Address Validation request. The credentials used for each + * request within a session must belong to the same Google Cloud Console + * project. Once a session has concluded, the token is no longer valid; your + * app must generate a fresh token for each session. If the `session_token` + * parameter is omitted, or if you reuse a session token, the session is + * charged as if no session token was provided (each request is billed + * separately). + * + * Note: Address Validation can only be used in sessions with the + * Autocomplete (New) API, not the old Autocomplete API. See + * https://developers.google.com/maps/documentation/places/web-service/session-pricing + * for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. From f44291270aba5581520205feeed2dfe169eca790 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:30:06 -0800 Subject: [PATCH 15/19] feat: [servicecontrol] include api_key_uid in service control check response (#5061) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: include api_key_uid in service control check response PiperOrigin-RevId: 608766712 Source-Link: https://github.com/googleapis/googleapis/commit/7ac2785ca49d5133ad458b104bca9896ae0b0b55 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3864b5758b9d10227945ab973f3c698a536d2f78 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNlY29udHJvbC8uT3dsQm90LnlhbWwiLCJoIjoiMzg2NGI1NzU4YjlkMTAyMjc5NDVhYjk3M2YzYzY5OGE1MzZkMmY3OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../v1/service_controller.proto | 5 ++++ .../protos/protos.d.ts | 6 +++++ .../protos/protos.js | 26 ++++++++++++++++++- .../protos/protos.json | 4 +++ 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/packages/google-api-servicecontrol/protos/google/api/servicecontrol/v1/service_controller.proto b/packages/google-api-servicecontrol/protos/google/api/servicecontrol/v1/service_controller.proto index c0c758ed9584..94297441ae61 100644 --- a/packages/google-api-servicecontrol/protos/google/api/servicecontrol/v1/service_controller.proto +++ b/packages/google-api-servicecontrol/protos/google/api/servicecontrol/v1/service_controller.proto @@ -121,6 +121,11 @@ message CheckResponse { // Consumer info of this check. ConsumerInfo consumer_info = 2; + + // The unique id of the api key in the format of "apikey:". + // This field will be populated when the consumer passed to Service Control + // is an API key and all the API key related validations are successful. + string api_key_uid = 5; } // `ConsumerInfo` provides information about the consumer. diff --git a/packages/google-api-servicecontrol/protos/protos.d.ts b/packages/google-api-servicecontrol/protos/protos.d.ts index b7c63eef7c92..8a2f1380e447 100644 --- a/packages/google-api-servicecontrol/protos/protos.d.ts +++ b/packages/google-api-servicecontrol/protos/protos.d.ts @@ -6484,6 +6484,9 @@ export namespace google { /** CheckInfo consumerInfo */ consumerInfo?: (google.api.servicecontrol.v1.CheckResponse.IConsumerInfo|null); + + /** CheckInfo apiKeyUid */ + apiKeyUid?: (string|null); } /** Represents a CheckInfo. */ @@ -6501,6 +6504,9 @@ export namespace google { /** CheckInfo consumerInfo. */ public consumerInfo?: (google.api.servicecontrol.v1.CheckResponse.IConsumerInfo|null); + /** CheckInfo apiKeyUid. */ + public apiKeyUid: string; + /** * Creates a new CheckInfo instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-api-servicecontrol/protos/protos.js b/packages/google-api-servicecontrol/protos/protos.js index 8d572ab52818..de7d767b5bc0 100644 --- a/packages/google-api-servicecontrol/protos/protos.js +++ b/packages/google-api-servicecontrol/protos/protos.js @@ -17883,6 +17883,7 @@ * @interface ICheckInfo * @property {Array.|null} [unusedArguments] CheckInfo unusedArguments * @property {google.api.servicecontrol.v1.CheckResponse.IConsumerInfo|null} [consumerInfo] CheckInfo consumerInfo + * @property {string|null} [apiKeyUid] CheckInfo apiKeyUid */ /** @@ -17917,6 +17918,14 @@ */ CheckInfo.prototype.consumerInfo = null; + /** + * CheckInfo apiKeyUid. + * @member {string} apiKeyUid + * @memberof google.api.servicecontrol.v1.CheckResponse.CheckInfo + * @instance + */ + CheckInfo.prototype.apiKeyUid = ""; + /** * Creates a new CheckInfo instance using the specified properties. * @function create @@ -17946,6 +17955,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.unusedArguments[i]); if (message.consumerInfo != null && Object.hasOwnProperty.call(message, "consumerInfo")) $root.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.encode(message.consumerInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.apiKeyUid != null && Object.hasOwnProperty.call(message, "apiKeyUid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.apiKeyUid); return writer; }; @@ -17990,6 +18001,10 @@ message.consumerInfo = $root.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.decode(reader, reader.uint32()); break; } + case 5: { + message.apiKeyUid = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18037,6 +18052,9 @@ if (error) return "consumerInfo." + error; } + if (message.apiKeyUid != null && message.hasOwnProperty("apiKeyUid")) + if (!$util.isString(message.apiKeyUid)) + return "apiKeyUid: string expected"; return null; }; @@ -18064,6 +18082,8 @@ throw TypeError(".google.api.servicecontrol.v1.CheckResponse.CheckInfo.consumerInfo: object expected"); message.consumerInfo = $root.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.fromObject(object.consumerInfo); } + if (object.apiKeyUid != null) + message.apiKeyUid = String(object.apiKeyUid); return message; }; @@ -18082,8 +18102,10 @@ var object = {}; if (options.arrays || options.defaults) object.unusedArguments = []; - if (options.defaults) + if (options.defaults) { object.consumerInfo = null; + object.apiKeyUid = ""; + } if (message.unusedArguments && message.unusedArguments.length) { object.unusedArguments = []; for (var j = 0; j < message.unusedArguments.length; ++j) @@ -18091,6 +18113,8 @@ } if (message.consumerInfo != null && message.hasOwnProperty("consumerInfo")) object.consumerInfo = $root.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.toObject(message.consumerInfo, options); + if (message.apiKeyUid != null && message.hasOwnProperty("apiKeyUid")) + object.apiKeyUid = message.apiKeyUid; return object; }; diff --git a/packages/google-api-servicecontrol/protos/protos.json b/packages/google-api-servicecontrol/protos/protos.json index 3d81f6aa1b93..114704c5a1f1 100644 --- a/packages/google-api-servicecontrol/protos/protos.json +++ b/packages/google-api-servicecontrol/protos/protos.json @@ -1760,6 +1760,10 @@ "consumerInfo": { "type": "ConsumerInfo", "id": 2 + }, + "apiKeyUid": { + "type": "string", + "id": 5 } } }, From 6f3ab0415304dd270cca99ce18949a2a1fc0e1a9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:30:21 -0800 Subject: [PATCH 16/19] feat: add API for writing BatchRecognize transcripts in SRT and VTT formats (#5062) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add API for writing BatchRecognize transcripts in SRT and VTT formats docs: update field documentation based on field behavior updates PiperOrigin-RevId: 609024258 Source-Link: https://github.com/googleapis/googleapis/commit/4d70a58597dc8288a63741373dff456f32a12652 Source-Link: https://github.com/googleapis/googleapis-gen/commit/aeb46892d9543cde1b51d9eebf553d9026056292 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiYWViNDY4OTJkOTU0M2NkZTFiNTFkOWVlYmY1NTNkOTAyNjA1NjI5MiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/cloud/speech/v2/cloud_speech.proto | 89 +- .../google-cloud-speech/protos/protos.d.ts | 412 ++++++++ packages/google-cloud-speech/protos/protos.js | 917 +++++++++++++++++- .../google-cloud-speech/protos/protos.json | 66 +- 4 files changed, 1462 insertions(+), 22 deletions(-) diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto index d23d36d80171..a8f23239e0c4 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto @@ -574,9 +574,12 @@ message Recognizer { DELETED = 4; } - // Output only. The resource name of the Recognizer. + // Output only. Identifier. The resource name of the Recognizer. // Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. System-assigned unique identifier for the Recognizer. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1278,6 +1281,34 @@ message GcsOutputConfig { // Output configurations for inline response. message InlineOutputConfig {} +// Output configurations for serialized `BatchRecognizeResults` protos. +message NativeOutputFileFormatConfig {} + +// Output configurations for [WebVTT](https://www.w3.org/TR/webvtt1/) formatted +// subtitle file. +message VttOutputFileFormatConfig {} + +// Output configurations [SubRip +// Text](https://www.matroska.org/technical/subtitles.html#srt-subtitles) +// formatted subtitle file. +message SrtOutputFileFormatConfig {} + +// Configuration for the format of the results stored to `output`. +message OutputFormatConfig { + // Configuration for the native output format. If this field is set or if no + // other output format field is set then transcripts will be written to the + // sink in the native format. + NativeOutputFileFormatConfig native = 1; + + // Configuration for the vtt output format. If this field is set then + // transcripts will be written to the sink in the vtt format. + VttOutputFileFormatConfig vtt = 2; + + // Configuration for the srt output format. If this field is set then + // transcripts will be written to the sink in the srt format. + SrtOutputFileFormatConfig srt = 3; +} + // Configuration options for the output(s) of recognition. message RecognitionOutputConfig { oneof output { @@ -1292,6 +1323,11 @@ message RecognitionOutputConfig { // with just one audio file. InlineOutputConfig inline_response_config = 2; } + + // Optional. Configuration for the format of the results stored to `output`. + // If unspecified transcripts will be written in the `NATIVE` format only. + OutputFormatConfig output_format_config = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -1321,12 +1357,28 @@ message BatchRecognizeResults { message CloudStorageResult { // The Cloud Storage URI to which recognition results were written. string uri = 1; + + // The Cloud Storage URI to which recognition results were written as VTT + // formatted captions. This is populated only when `VTT` output is requested. + string vtt_format_uri = 2; + + // The Cloud Storage URI to which recognition results were written as SRT + // formatted captions. This is populated only when `SRT` output is requested. + string srt_format_uri = 3; } // Final results returned inline in the recognition response. message InlineResult { // The transcript for the audio file. BatchRecognizeResults transcript = 1; + + // The transcript for the audio file as VTT formatted captions. This is + // populated only when `VTT` output is requested. + string vtt_captions = 2; + + // The transcript for the audio file as SRT formatted captions. This is + // populated only when `SRT` output is requested. + string srt_captions = 3; } // Final results for a single file. @@ -1555,10 +1607,13 @@ message Config { pattern: "projects/{project}/locations/{location}/config" }; - // Output only. The name of the config resource. There is exactly one config - // resource per project per location. The expected format is + // Output only. Identifier. The name of the config resource. There is exactly + // one config resource per project per location. The expected format is // `projects/{project}/locations/{location}/config`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Optional. An optional [KMS key // name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if @@ -1632,17 +1687,20 @@ message CustomClass { DELETED = 4; } - // Output only. The resource name of the CustomClass. + // Output only. Identifier. The resource name of the CustomClass. // Format: // `projects/{project}/locations/{location}/customClasses/{custom_class}`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. System-assigned unique identifier for the CustomClass. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // User-settable, human-readable name for the CustomClass. Must be 63 - // characters or less. - string display_name = 4; + // Optional. User-settable, human-readable name for the CustomClass. Must be + // 63 characters or less. + string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; // A collection of class items. repeated ClassItem items = 5; @@ -1666,10 +1724,10 @@ message CustomClass { google.protobuf.Timestamp expire_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Allows users to store small amounts of arbitrary data. + // Optional. Allows users to store small amounts of arbitrary data. // Both the key and the value must be 63 characters or less each. // At most 100 annotations. - map annotations = 10; + map annotations = 10 [(google.api.field_behavior) = OPTIONAL]; // Output only. This checksum is computed by the server based on the value of // other fields. This may be sent on update, undelete, and delete requests to @@ -1751,9 +1809,12 @@ message PhraseSet { DELETED = 4; } - // Output only. The resource name of the PhraseSet. + // Output only. Identifier. The resource name of the PhraseSet. // Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. System-assigned unique identifier for the PhraseSet. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-speech/protos/protos.d.ts b/packages/google-cloud-speech/protos/protos.d.ts index bd181424ccb3..467df93bd7b5 100644 --- a/packages/google-cloud-speech/protos/protos.d.ts +++ b/packages/google-cloud-speech/protos/protos.d.ts @@ -13934,6 +13934,388 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NativeOutputFileFormatConfig. */ + interface INativeOutputFileFormatConfig { + } + + /** Represents a NativeOutputFileFormatConfig. */ + class NativeOutputFileFormatConfig implements INativeOutputFileFormatConfig { + + /** + * Constructs a new NativeOutputFileFormatConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.speech.v2.INativeOutputFileFormatConfig); + + /** + * Creates a new NativeOutputFileFormatConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NativeOutputFileFormatConfig instance + */ + public static create(properties?: google.cloud.speech.v2.INativeOutputFileFormatConfig): google.cloud.speech.v2.NativeOutputFileFormatConfig; + + /** + * Encodes the specified NativeOutputFileFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.NativeOutputFileFormatConfig.verify|verify} messages. + * @param message NativeOutputFileFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.speech.v2.INativeOutputFileFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NativeOutputFileFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.NativeOutputFileFormatConfig.verify|verify} messages. + * @param message NativeOutputFileFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.speech.v2.INativeOutputFileFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NativeOutputFileFormatConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NativeOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v2.NativeOutputFileFormatConfig; + + /** + * Decodes a NativeOutputFileFormatConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NativeOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v2.NativeOutputFileFormatConfig; + + /** + * Verifies a NativeOutputFileFormatConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NativeOutputFileFormatConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NativeOutputFileFormatConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.speech.v2.NativeOutputFileFormatConfig; + + /** + * Creates a plain object from a NativeOutputFileFormatConfig message. Also converts values to other types if specified. + * @param message NativeOutputFileFormatConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.speech.v2.NativeOutputFileFormatConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NativeOutputFileFormatConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NativeOutputFileFormatConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VttOutputFileFormatConfig. */ + interface IVttOutputFileFormatConfig { + } + + /** Represents a VttOutputFileFormatConfig. */ + class VttOutputFileFormatConfig implements IVttOutputFileFormatConfig { + + /** + * Constructs a new VttOutputFileFormatConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.speech.v2.IVttOutputFileFormatConfig); + + /** + * Creates a new VttOutputFileFormatConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns VttOutputFileFormatConfig instance + */ + public static create(properties?: google.cloud.speech.v2.IVttOutputFileFormatConfig): google.cloud.speech.v2.VttOutputFileFormatConfig; + + /** + * Encodes the specified VttOutputFileFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.VttOutputFileFormatConfig.verify|verify} messages. + * @param message VttOutputFileFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.speech.v2.IVttOutputFileFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VttOutputFileFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.VttOutputFileFormatConfig.verify|verify} messages. + * @param message VttOutputFileFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.speech.v2.IVttOutputFileFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VttOutputFileFormatConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VttOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v2.VttOutputFileFormatConfig; + + /** + * Decodes a VttOutputFileFormatConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VttOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v2.VttOutputFileFormatConfig; + + /** + * Verifies a VttOutputFileFormatConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VttOutputFileFormatConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VttOutputFileFormatConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.speech.v2.VttOutputFileFormatConfig; + + /** + * Creates a plain object from a VttOutputFileFormatConfig message. Also converts values to other types if specified. + * @param message VttOutputFileFormatConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.speech.v2.VttOutputFileFormatConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VttOutputFileFormatConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VttOutputFileFormatConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SrtOutputFileFormatConfig. */ + interface ISrtOutputFileFormatConfig { + } + + /** Represents a SrtOutputFileFormatConfig. */ + class SrtOutputFileFormatConfig implements ISrtOutputFileFormatConfig { + + /** + * Constructs a new SrtOutputFileFormatConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.speech.v2.ISrtOutputFileFormatConfig); + + /** + * Creates a new SrtOutputFileFormatConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SrtOutputFileFormatConfig instance + */ + public static create(properties?: google.cloud.speech.v2.ISrtOutputFileFormatConfig): google.cloud.speech.v2.SrtOutputFileFormatConfig; + + /** + * Encodes the specified SrtOutputFileFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.SrtOutputFileFormatConfig.verify|verify} messages. + * @param message SrtOutputFileFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.speech.v2.ISrtOutputFileFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SrtOutputFileFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.SrtOutputFileFormatConfig.verify|verify} messages. + * @param message SrtOutputFileFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.speech.v2.ISrtOutputFileFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SrtOutputFileFormatConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SrtOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v2.SrtOutputFileFormatConfig; + + /** + * Decodes a SrtOutputFileFormatConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SrtOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v2.SrtOutputFileFormatConfig; + + /** + * Verifies a SrtOutputFileFormatConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SrtOutputFileFormatConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SrtOutputFileFormatConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.speech.v2.SrtOutputFileFormatConfig; + + /** + * Creates a plain object from a SrtOutputFileFormatConfig message. Also converts values to other types if specified. + * @param message SrtOutputFileFormatConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.speech.v2.SrtOutputFileFormatConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SrtOutputFileFormatConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SrtOutputFileFormatConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OutputFormatConfig. */ + interface IOutputFormatConfig { + + /** OutputFormatConfig native */ + native?: (google.cloud.speech.v2.INativeOutputFileFormatConfig|null); + + /** OutputFormatConfig vtt */ + vtt?: (google.cloud.speech.v2.IVttOutputFileFormatConfig|null); + + /** OutputFormatConfig srt */ + srt?: (google.cloud.speech.v2.ISrtOutputFileFormatConfig|null); + } + + /** Represents an OutputFormatConfig. */ + class OutputFormatConfig implements IOutputFormatConfig { + + /** + * Constructs a new OutputFormatConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.speech.v2.IOutputFormatConfig); + + /** OutputFormatConfig native. */ + public native?: (google.cloud.speech.v2.INativeOutputFileFormatConfig|null); + + /** OutputFormatConfig vtt. */ + public vtt?: (google.cloud.speech.v2.IVttOutputFileFormatConfig|null); + + /** OutputFormatConfig srt. */ + public srt?: (google.cloud.speech.v2.ISrtOutputFileFormatConfig|null); + + /** + * Creates a new OutputFormatConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputFormatConfig instance + */ + public static create(properties?: google.cloud.speech.v2.IOutputFormatConfig): google.cloud.speech.v2.OutputFormatConfig; + + /** + * Encodes the specified OutputFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.OutputFormatConfig.verify|verify} messages. + * @param message OutputFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.speech.v2.IOutputFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OutputFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.OutputFormatConfig.verify|verify} messages. + * @param message OutputFormatConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.speech.v2.IOutputFormatConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputFormatConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v2.OutputFormatConfig; + + /** + * Decodes an OutputFormatConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v2.OutputFormatConfig; + + /** + * Verifies an OutputFormatConfig message. + * @param message Plain 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 OutputFormatConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputFormatConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.speech.v2.OutputFormatConfig; + + /** + * Creates a plain object from an OutputFormatConfig message. Also converts values to other types if specified. + * @param message OutputFormatConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.speech.v2.OutputFormatConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OutputFormatConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OutputFormatConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RecognitionOutputConfig. */ interface IRecognitionOutputConfig { @@ -13942,6 +14324,9 @@ export namespace google { /** RecognitionOutputConfig inlineResponseConfig */ inlineResponseConfig?: (google.cloud.speech.v2.IInlineOutputConfig|null); + + /** RecognitionOutputConfig outputFormatConfig */ + outputFormatConfig?: (google.cloud.speech.v2.IOutputFormatConfig|null); } /** Represents a RecognitionOutputConfig. */ @@ -13959,6 +14344,9 @@ export namespace google { /** RecognitionOutputConfig inlineResponseConfig. */ public inlineResponseConfig?: (google.cloud.speech.v2.IInlineOutputConfig|null); + /** RecognitionOutputConfig outputFormatConfig. */ + public outputFormatConfig?: (google.cloud.speech.v2.IOutputFormatConfig|null); + /** RecognitionOutputConfig output. */ public output?: ("gcsOutputConfig"|"inlineResponseConfig"); @@ -14251,6 +14639,12 @@ export namespace google { /** CloudStorageResult uri */ uri?: (string|null); + + /** CloudStorageResult vttFormatUri */ + vttFormatUri?: (string|null); + + /** CloudStorageResult srtFormatUri */ + srtFormatUri?: (string|null); } /** Represents a CloudStorageResult. */ @@ -14265,6 +14659,12 @@ export namespace google { /** CloudStorageResult uri. */ public uri: string; + /** CloudStorageResult vttFormatUri. */ + public vttFormatUri: string; + + /** CloudStorageResult srtFormatUri. */ + public srtFormatUri: string; + /** * Creates a new CloudStorageResult instance using the specified properties. * @param [properties] Properties to set @@ -14348,6 +14748,12 @@ export namespace google { /** InlineResult transcript */ transcript?: (google.cloud.speech.v2.IBatchRecognizeResults|null); + + /** InlineResult vttCaptions */ + vttCaptions?: (string|null); + + /** InlineResult srtCaptions */ + srtCaptions?: (string|null); } /** Represents an InlineResult. */ @@ -14362,6 +14768,12 @@ export namespace google { /** InlineResult transcript. */ public transcript?: (google.cloud.speech.v2.IBatchRecognizeResults|null); + /** InlineResult vttCaptions. */ + public vttCaptions: string; + + /** InlineResult srtCaptions. */ + public srtCaptions: string; + /** * Creates a new InlineResult instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-speech/protos/protos.js b/packages/google-cloud-speech/protos/protos.js index dc9074b94a92..2dc6d3adc5e0 100644 --- a/packages/google-cloud-speech/protos/protos.js +++ b/packages/google-cloud-speech/protos/protos.js @@ -34124,6 +34124,796 @@ return InlineOutputConfig; })(); + v2.NativeOutputFileFormatConfig = (function() { + + /** + * Properties of a NativeOutputFileFormatConfig. + * @memberof google.cloud.speech.v2 + * @interface INativeOutputFileFormatConfig + */ + + /** + * Constructs a new NativeOutputFileFormatConfig. + * @memberof google.cloud.speech.v2 + * @classdesc Represents a NativeOutputFileFormatConfig. + * @implements INativeOutputFileFormatConfig + * @constructor + * @param {google.cloud.speech.v2.INativeOutputFileFormatConfig=} [properties] Properties to set + */ + function NativeOutputFileFormatConfig(properties) { + if (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 NativeOutputFileFormatConfig instance using the specified properties. + * @function create + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.INativeOutputFileFormatConfig=} [properties] Properties to set + * @returns {google.cloud.speech.v2.NativeOutputFileFormatConfig} NativeOutputFileFormatConfig instance + */ + NativeOutputFileFormatConfig.create = function create(properties) { + return new NativeOutputFileFormatConfig(properties); + }; + + /** + * Encodes the specified NativeOutputFileFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.NativeOutputFileFormatConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.INativeOutputFileFormatConfig} message NativeOutputFileFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NativeOutputFileFormatConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified NativeOutputFileFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.NativeOutputFileFormatConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.INativeOutputFileFormatConfig} message NativeOutputFileFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NativeOutputFileFormatConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NativeOutputFileFormatConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.speech.v2.NativeOutputFileFormatConfig} NativeOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NativeOutputFileFormatConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.speech.v2.NativeOutputFileFormatConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NativeOutputFileFormatConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.speech.v2.NativeOutputFileFormatConfig} NativeOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NativeOutputFileFormatConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NativeOutputFileFormatConfig message. + * @function verify + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NativeOutputFileFormatConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a NativeOutputFileFormatConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.speech.v2.NativeOutputFileFormatConfig} NativeOutputFileFormatConfig + */ + NativeOutputFileFormatConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.speech.v2.NativeOutputFileFormatConfig) + return object; + return new $root.google.cloud.speech.v2.NativeOutputFileFormatConfig(); + }; + + /** + * Creates a plain object from a NativeOutputFileFormatConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.NativeOutputFileFormatConfig} message NativeOutputFileFormatConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NativeOutputFileFormatConfig.toObject = function toObject() { + return {}; + }; + + /** + * Converts this NativeOutputFileFormatConfig to JSON. + * @function toJSON + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @instance + * @returns {Object.} JSON object + */ + NativeOutputFileFormatConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NativeOutputFileFormatConfig + * @function getTypeUrl + * @memberof google.cloud.speech.v2.NativeOutputFileFormatConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NativeOutputFileFormatConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.speech.v2.NativeOutputFileFormatConfig"; + }; + + return NativeOutputFileFormatConfig; + })(); + + v2.VttOutputFileFormatConfig = (function() { + + /** + * Properties of a VttOutputFileFormatConfig. + * @memberof google.cloud.speech.v2 + * @interface IVttOutputFileFormatConfig + */ + + /** + * Constructs a new VttOutputFileFormatConfig. + * @memberof google.cloud.speech.v2 + * @classdesc Represents a VttOutputFileFormatConfig. + * @implements IVttOutputFileFormatConfig + * @constructor + * @param {google.cloud.speech.v2.IVttOutputFileFormatConfig=} [properties] Properties to set + */ + function VttOutputFileFormatConfig(properties) { + if (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 VttOutputFileFormatConfig instance using the specified properties. + * @function create + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.IVttOutputFileFormatConfig=} [properties] Properties to set + * @returns {google.cloud.speech.v2.VttOutputFileFormatConfig} VttOutputFileFormatConfig instance + */ + VttOutputFileFormatConfig.create = function create(properties) { + return new VttOutputFileFormatConfig(properties); + }; + + /** + * Encodes the specified VttOutputFileFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.VttOutputFileFormatConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.IVttOutputFileFormatConfig} message VttOutputFileFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VttOutputFileFormatConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified VttOutputFileFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.VttOutputFileFormatConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.IVttOutputFileFormatConfig} message VttOutputFileFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VttOutputFileFormatConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VttOutputFileFormatConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.speech.v2.VttOutputFileFormatConfig} VttOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VttOutputFileFormatConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.speech.v2.VttOutputFileFormatConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VttOutputFileFormatConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.speech.v2.VttOutputFileFormatConfig} VttOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VttOutputFileFormatConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VttOutputFileFormatConfig message. + * @function verify + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VttOutputFileFormatConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a VttOutputFileFormatConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.speech.v2.VttOutputFileFormatConfig} VttOutputFileFormatConfig + */ + VttOutputFileFormatConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.speech.v2.VttOutputFileFormatConfig) + return object; + return new $root.google.cloud.speech.v2.VttOutputFileFormatConfig(); + }; + + /** + * Creates a plain object from a VttOutputFileFormatConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.VttOutputFileFormatConfig} message VttOutputFileFormatConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VttOutputFileFormatConfig.toObject = function toObject() { + return {}; + }; + + /** + * Converts this VttOutputFileFormatConfig to JSON. + * @function toJSON + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @instance + * @returns {Object.} JSON object + */ + VttOutputFileFormatConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VttOutputFileFormatConfig + * @function getTypeUrl + * @memberof google.cloud.speech.v2.VttOutputFileFormatConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VttOutputFileFormatConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.speech.v2.VttOutputFileFormatConfig"; + }; + + return VttOutputFileFormatConfig; + })(); + + v2.SrtOutputFileFormatConfig = (function() { + + /** + * Properties of a SrtOutputFileFormatConfig. + * @memberof google.cloud.speech.v2 + * @interface ISrtOutputFileFormatConfig + */ + + /** + * Constructs a new SrtOutputFileFormatConfig. + * @memberof google.cloud.speech.v2 + * @classdesc Represents a SrtOutputFileFormatConfig. + * @implements ISrtOutputFileFormatConfig + * @constructor + * @param {google.cloud.speech.v2.ISrtOutputFileFormatConfig=} [properties] Properties to set + */ + function SrtOutputFileFormatConfig(properties) { + if (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 SrtOutputFileFormatConfig instance using the specified properties. + * @function create + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.ISrtOutputFileFormatConfig=} [properties] Properties to set + * @returns {google.cloud.speech.v2.SrtOutputFileFormatConfig} SrtOutputFileFormatConfig instance + */ + SrtOutputFileFormatConfig.create = function create(properties) { + return new SrtOutputFileFormatConfig(properties); + }; + + /** + * Encodes the specified SrtOutputFileFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.SrtOutputFileFormatConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.ISrtOutputFileFormatConfig} message SrtOutputFileFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrtOutputFileFormatConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SrtOutputFileFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.SrtOutputFileFormatConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.ISrtOutputFileFormatConfig} message SrtOutputFileFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrtOutputFileFormatConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SrtOutputFileFormatConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.speech.v2.SrtOutputFileFormatConfig} SrtOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrtOutputFileFormatConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.speech.v2.SrtOutputFileFormatConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SrtOutputFileFormatConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.speech.v2.SrtOutputFileFormatConfig} SrtOutputFileFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrtOutputFileFormatConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SrtOutputFileFormatConfig message. + * @function verify + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SrtOutputFileFormatConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SrtOutputFileFormatConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.speech.v2.SrtOutputFileFormatConfig} SrtOutputFileFormatConfig + */ + SrtOutputFileFormatConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.speech.v2.SrtOutputFileFormatConfig) + return object; + return new $root.google.cloud.speech.v2.SrtOutputFileFormatConfig(); + }; + + /** + * Creates a plain object from a SrtOutputFileFormatConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {google.cloud.speech.v2.SrtOutputFileFormatConfig} message SrtOutputFileFormatConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SrtOutputFileFormatConfig.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SrtOutputFileFormatConfig to JSON. + * @function toJSON + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @instance + * @returns {Object.} JSON object + */ + SrtOutputFileFormatConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SrtOutputFileFormatConfig + * @function getTypeUrl + * @memberof google.cloud.speech.v2.SrtOutputFileFormatConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SrtOutputFileFormatConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.speech.v2.SrtOutputFileFormatConfig"; + }; + + return SrtOutputFileFormatConfig; + })(); + + v2.OutputFormatConfig = (function() { + + /** + * Properties of an OutputFormatConfig. + * @memberof google.cloud.speech.v2 + * @interface IOutputFormatConfig + * @property {google.cloud.speech.v2.INativeOutputFileFormatConfig|null} [native] OutputFormatConfig native + * @property {google.cloud.speech.v2.IVttOutputFileFormatConfig|null} [vtt] OutputFormatConfig vtt + * @property {google.cloud.speech.v2.ISrtOutputFileFormatConfig|null} [srt] OutputFormatConfig srt + */ + + /** + * Constructs a new OutputFormatConfig. + * @memberof google.cloud.speech.v2 + * @classdesc Represents an OutputFormatConfig. + * @implements IOutputFormatConfig + * @constructor + * @param {google.cloud.speech.v2.IOutputFormatConfig=} [properties] Properties to set + */ + function OutputFormatConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OutputFormatConfig native. + * @member {google.cloud.speech.v2.INativeOutputFileFormatConfig|null|undefined} native + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @instance + */ + OutputFormatConfig.prototype.native = null; + + /** + * OutputFormatConfig vtt. + * @member {google.cloud.speech.v2.IVttOutputFileFormatConfig|null|undefined} vtt + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @instance + */ + OutputFormatConfig.prototype.vtt = null; + + /** + * OutputFormatConfig srt. + * @member {google.cloud.speech.v2.ISrtOutputFileFormatConfig|null|undefined} srt + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @instance + */ + OutputFormatConfig.prototype.srt = null; + + /** + * Creates a new OutputFormatConfig instance using the specified properties. + * @function create + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {google.cloud.speech.v2.IOutputFormatConfig=} [properties] Properties to set + * @returns {google.cloud.speech.v2.OutputFormatConfig} OutputFormatConfig instance + */ + OutputFormatConfig.create = function create(properties) { + return new OutputFormatConfig(properties); + }; + + /** + * Encodes the specified OutputFormatConfig message. Does not implicitly {@link google.cloud.speech.v2.OutputFormatConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {google.cloud.speech.v2.IOutputFormatConfig} message OutputFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputFormatConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.native != null && Object.hasOwnProperty.call(message, "native")) + $root.google.cloud.speech.v2.NativeOutputFileFormatConfig.encode(message.native, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.vtt != null && Object.hasOwnProperty.call(message, "vtt")) + $root.google.cloud.speech.v2.VttOutputFileFormatConfig.encode(message.vtt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.srt != null && Object.hasOwnProperty.call(message, "srt")) + $root.google.cloud.speech.v2.SrtOutputFileFormatConfig.encode(message.srt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OutputFormatConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v2.OutputFormatConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {google.cloud.speech.v2.IOutputFormatConfig} message OutputFormatConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputFormatConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputFormatConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.speech.v2.OutputFormatConfig} OutputFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputFormatConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.speech.v2.OutputFormatConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.native = $root.google.cloud.speech.v2.NativeOutputFileFormatConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.vtt = $root.google.cloud.speech.v2.VttOutputFileFormatConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.srt = $root.google.cloud.speech.v2.SrtOutputFileFormatConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputFormatConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.speech.v2.OutputFormatConfig} OutputFormatConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputFormatConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputFormatConfig message. + * @function verify + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputFormatConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.native != null && message.hasOwnProperty("native")) { + var error = $root.google.cloud.speech.v2.NativeOutputFileFormatConfig.verify(message.native); + if (error) + return "native." + error; + } + if (message.vtt != null && message.hasOwnProperty("vtt")) { + var error = $root.google.cloud.speech.v2.VttOutputFileFormatConfig.verify(message.vtt); + if (error) + return "vtt." + error; + } + if (message.srt != null && message.hasOwnProperty("srt")) { + var error = $root.google.cloud.speech.v2.SrtOutputFileFormatConfig.verify(message.srt); + if (error) + return "srt." + error; + } + return null; + }; + + /** + * Creates an OutputFormatConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.speech.v2.OutputFormatConfig} OutputFormatConfig + */ + OutputFormatConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.speech.v2.OutputFormatConfig) + return object; + var message = new $root.google.cloud.speech.v2.OutputFormatConfig(); + if (object.native != null) { + if (typeof object.native !== "object") + throw TypeError(".google.cloud.speech.v2.OutputFormatConfig.native: object expected"); + message.native = $root.google.cloud.speech.v2.NativeOutputFileFormatConfig.fromObject(object.native); + } + if (object.vtt != null) { + if (typeof object.vtt !== "object") + throw TypeError(".google.cloud.speech.v2.OutputFormatConfig.vtt: object expected"); + message.vtt = $root.google.cloud.speech.v2.VttOutputFileFormatConfig.fromObject(object.vtt); + } + if (object.srt != null) { + if (typeof object.srt !== "object") + throw TypeError(".google.cloud.speech.v2.OutputFormatConfig.srt: object expected"); + message.srt = $root.google.cloud.speech.v2.SrtOutputFileFormatConfig.fromObject(object.srt); + } + return message; + }; + + /** + * Creates a plain object from an OutputFormatConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {google.cloud.speech.v2.OutputFormatConfig} message OutputFormatConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputFormatConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.native = null; + object.vtt = null; + object.srt = null; + } + if (message.native != null && message.hasOwnProperty("native")) + object.native = $root.google.cloud.speech.v2.NativeOutputFileFormatConfig.toObject(message.native, options); + if (message.vtt != null && message.hasOwnProperty("vtt")) + object.vtt = $root.google.cloud.speech.v2.VttOutputFileFormatConfig.toObject(message.vtt, options); + if (message.srt != null && message.hasOwnProperty("srt")) + object.srt = $root.google.cloud.speech.v2.SrtOutputFileFormatConfig.toObject(message.srt, options); + return object; + }; + + /** + * Converts this OutputFormatConfig to JSON. + * @function toJSON + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @instance + * @returns {Object.} JSON object + */ + OutputFormatConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputFormatConfig + * @function getTypeUrl + * @memberof google.cloud.speech.v2.OutputFormatConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputFormatConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.speech.v2.OutputFormatConfig"; + }; + + return OutputFormatConfig; + })(); + v2.RecognitionOutputConfig = (function() { /** @@ -34132,6 +34922,7 @@ * @interface IRecognitionOutputConfig * @property {google.cloud.speech.v2.IGcsOutputConfig|null} [gcsOutputConfig] RecognitionOutputConfig gcsOutputConfig * @property {google.cloud.speech.v2.IInlineOutputConfig|null} [inlineResponseConfig] RecognitionOutputConfig inlineResponseConfig + * @property {google.cloud.speech.v2.IOutputFormatConfig|null} [outputFormatConfig] RecognitionOutputConfig outputFormatConfig */ /** @@ -34165,6 +34956,14 @@ */ RecognitionOutputConfig.prototype.inlineResponseConfig = null; + /** + * RecognitionOutputConfig outputFormatConfig. + * @member {google.cloud.speech.v2.IOutputFormatConfig|null|undefined} outputFormatConfig + * @memberof google.cloud.speech.v2.RecognitionOutputConfig + * @instance + */ + RecognitionOutputConfig.prototype.outputFormatConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -34207,6 +35006,8 @@ $root.google.cloud.speech.v2.GcsOutputConfig.encode(message.gcsOutputConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.inlineResponseConfig != null && Object.hasOwnProperty.call(message, "inlineResponseConfig")) $root.google.cloud.speech.v2.InlineOutputConfig.encode(message.inlineResponseConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputFormatConfig != null && Object.hasOwnProperty.call(message, "outputFormatConfig")) + $root.google.cloud.speech.v2.OutputFormatConfig.encode(message.outputFormatConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -34249,6 +35050,10 @@ message.inlineResponseConfig = $root.google.cloud.speech.v2.InlineOutputConfig.decode(reader, reader.uint32()); break; } + case 3: { + message.outputFormatConfig = $root.google.cloud.speech.v2.OutputFormatConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -34303,6 +35108,11 @@ return "inlineResponseConfig." + error; } } + if (message.outputFormatConfig != null && message.hasOwnProperty("outputFormatConfig")) { + var error = $root.google.cloud.speech.v2.OutputFormatConfig.verify(message.outputFormatConfig); + if (error) + return "outputFormatConfig." + error; + } return null; }; @@ -34328,6 +35138,11 @@ throw TypeError(".google.cloud.speech.v2.RecognitionOutputConfig.inlineResponseConfig: object expected"); message.inlineResponseConfig = $root.google.cloud.speech.v2.InlineOutputConfig.fromObject(object.inlineResponseConfig); } + if (object.outputFormatConfig != null) { + if (typeof object.outputFormatConfig !== "object") + throw TypeError(".google.cloud.speech.v2.RecognitionOutputConfig.outputFormatConfig: object expected"); + message.outputFormatConfig = $root.google.cloud.speech.v2.OutputFormatConfig.fromObject(object.outputFormatConfig); + } return message; }; @@ -34344,6 +35159,8 @@ if (!options) options = {}; var object = {}; + if (options.defaults) + object.outputFormatConfig = null; if (message.gcsOutputConfig != null && message.hasOwnProperty("gcsOutputConfig")) { object.gcsOutputConfig = $root.google.cloud.speech.v2.GcsOutputConfig.toObject(message.gcsOutputConfig, options); if (options.oneofs) @@ -34354,6 +35171,8 @@ if (options.oneofs) object.output = "inlineResponseConfig"; } + if (message.outputFormatConfig != null && message.hasOwnProperty("outputFormatConfig")) + object.outputFormatConfig = $root.google.cloud.speech.v2.OutputFormatConfig.toObject(message.outputFormatConfig, options); return object; }; @@ -34920,6 +35739,8 @@ * @memberof google.cloud.speech.v2 * @interface ICloudStorageResult * @property {string|null} [uri] CloudStorageResult uri + * @property {string|null} [vttFormatUri] CloudStorageResult vttFormatUri + * @property {string|null} [srtFormatUri] CloudStorageResult srtFormatUri */ /** @@ -34945,6 +35766,22 @@ */ CloudStorageResult.prototype.uri = ""; + /** + * CloudStorageResult vttFormatUri. + * @member {string} vttFormatUri + * @memberof google.cloud.speech.v2.CloudStorageResult + * @instance + */ + CloudStorageResult.prototype.vttFormatUri = ""; + + /** + * CloudStorageResult srtFormatUri. + * @member {string} srtFormatUri + * @memberof google.cloud.speech.v2.CloudStorageResult + * @instance + */ + CloudStorageResult.prototype.srtFormatUri = ""; + /** * Creates a new CloudStorageResult instance using the specified properties. * @function create @@ -34971,6 +35808,10 @@ writer = $Writer.create(); if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.vttFormatUri != null && Object.hasOwnProperty.call(message, "vttFormatUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vttFormatUri); + if (message.srtFormatUri != null && Object.hasOwnProperty.call(message, "srtFormatUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.srtFormatUri); return writer; }; @@ -35009,6 +35850,14 @@ message.uri = reader.string(); break; } + case 2: { + message.vttFormatUri = reader.string(); + break; + } + case 3: { + message.srtFormatUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -35047,6 +35896,12 @@ if (message.uri != null && message.hasOwnProperty("uri")) if (!$util.isString(message.uri)) return "uri: string expected"; + if (message.vttFormatUri != null && message.hasOwnProperty("vttFormatUri")) + if (!$util.isString(message.vttFormatUri)) + return "vttFormatUri: string expected"; + if (message.srtFormatUri != null && message.hasOwnProperty("srtFormatUri")) + if (!$util.isString(message.srtFormatUri)) + return "srtFormatUri: string expected"; return null; }; @@ -35064,6 +35919,10 @@ var message = new $root.google.cloud.speech.v2.CloudStorageResult(); if (object.uri != null) message.uri = String(object.uri); + if (object.vttFormatUri != null) + message.vttFormatUri = String(object.vttFormatUri); + if (object.srtFormatUri != null) + message.srtFormatUri = String(object.srtFormatUri); return message; }; @@ -35080,10 +35939,17 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.uri = ""; + object.vttFormatUri = ""; + object.srtFormatUri = ""; + } if (message.uri != null && message.hasOwnProperty("uri")) object.uri = message.uri; + if (message.vttFormatUri != null && message.hasOwnProperty("vttFormatUri")) + object.vttFormatUri = message.vttFormatUri; + if (message.srtFormatUri != null && message.hasOwnProperty("srtFormatUri")) + object.srtFormatUri = message.srtFormatUri; return object; }; @@ -35123,6 +35989,8 @@ * @memberof google.cloud.speech.v2 * @interface IInlineResult * @property {google.cloud.speech.v2.IBatchRecognizeResults|null} [transcript] InlineResult transcript + * @property {string|null} [vttCaptions] InlineResult vttCaptions + * @property {string|null} [srtCaptions] InlineResult srtCaptions */ /** @@ -35148,6 +36016,22 @@ */ InlineResult.prototype.transcript = null; + /** + * InlineResult vttCaptions. + * @member {string} vttCaptions + * @memberof google.cloud.speech.v2.InlineResult + * @instance + */ + InlineResult.prototype.vttCaptions = ""; + + /** + * InlineResult srtCaptions. + * @member {string} srtCaptions + * @memberof google.cloud.speech.v2.InlineResult + * @instance + */ + InlineResult.prototype.srtCaptions = ""; + /** * Creates a new InlineResult instance using the specified properties. * @function create @@ -35174,6 +36058,10 @@ writer = $Writer.create(); if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) $root.google.cloud.speech.v2.BatchRecognizeResults.encode(message.transcript, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.vttCaptions != null && Object.hasOwnProperty.call(message, "vttCaptions")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vttCaptions); + if (message.srtCaptions != null && Object.hasOwnProperty.call(message, "srtCaptions")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.srtCaptions); return writer; }; @@ -35212,6 +36100,14 @@ message.transcript = $root.google.cloud.speech.v2.BatchRecognizeResults.decode(reader, reader.uint32()); break; } + case 2: { + message.vttCaptions = reader.string(); + break; + } + case 3: { + message.srtCaptions = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -35252,6 +36148,12 @@ if (error) return "transcript." + error; } + if (message.vttCaptions != null && message.hasOwnProperty("vttCaptions")) + if (!$util.isString(message.vttCaptions)) + return "vttCaptions: string expected"; + if (message.srtCaptions != null && message.hasOwnProperty("srtCaptions")) + if (!$util.isString(message.srtCaptions)) + return "srtCaptions: string expected"; return null; }; @@ -35272,6 +36174,10 @@ throw TypeError(".google.cloud.speech.v2.InlineResult.transcript: object expected"); message.transcript = $root.google.cloud.speech.v2.BatchRecognizeResults.fromObject(object.transcript); } + if (object.vttCaptions != null) + message.vttCaptions = String(object.vttCaptions); + if (object.srtCaptions != null) + message.srtCaptions = String(object.srtCaptions); return message; }; @@ -35288,10 +36194,17 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.transcript = null; + object.vttCaptions = ""; + object.srtCaptions = ""; + } if (message.transcript != null && message.hasOwnProperty("transcript")) object.transcript = $root.google.cloud.speech.v2.BatchRecognizeResults.toObject(message.transcript, options); + if (message.vttCaptions != null && message.hasOwnProperty("vttCaptions")) + object.vttCaptions = message.vttCaptions; + if (message.srtCaptions != null && message.hasOwnProperty("srtCaptions")) + object.srtCaptions = message.srtCaptions; return object; }; diff --git a/packages/google-cloud-speech/protos/protos.json b/packages/google-cloud-speech/protos/protos.json index 6ede5b7e45fe..e2e455a467af 100644 --- a/packages/google-cloud-speech/protos/protos.json +++ b/packages/google-cloud-speech/protos/protos.json @@ -3244,7 +3244,7 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "IDENTIFIER" } }, "uid": { @@ -3825,6 +3825,31 @@ "InlineOutputConfig": { "fields": {} }, + "NativeOutputFileFormatConfig": { + "fields": {} + }, + "VttOutputFileFormatConfig": { + "fields": {} + }, + "SrtOutputFileFormatConfig": { + "fields": {} + }, + "OutputFormatConfig": { + "fields": { + "native": { + "type": "NativeOutputFileFormatConfig", + "id": 1 + }, + "vtt": { + "type": "VttOutputFileFormatConfig", + "id": 2 + }, + "srt": { + "type": "SrtOutputFileFormatConfig", + "id": 3 + } + } + }, "RecognitionOutputConfig": { "oneofs": { "output": { @@ -3842,6 +3867,13 @@ "inlineResponseConfig": { "type": "InlineOutputConfig", "id": 2 + }, + "outputFormatConfig": { + "type": "OutputFormatConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -3876,6 +3908,14 @@ "uri": { "type": "string", "id": 1 + }, + "vttFormatUri": { + "type": "string", + "id": 2 + }, + "srtFormatUri": { + "type": "string", + "id": 3 } } }, @@ -3884,6 +3924,14 @@ "transcript": { "type": "BatchRecognizeResults", "id": 1 + }, + "vttCaptions": { + "type": "string", + "id": 2 + }, + "srtCaptions": { + "type": "string", + "id": 3 } } }, @@ -4050,7 +4098,7 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "IDENTIFIER" } }, "kmsKeyName": { @@ -4108,7 +4156,7 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "IDENTIFIER" } }, "uid": { @@ -4120,7 +4168,10 @@ }, "displayName": { "type": "string", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "items": { "rule": "repeated", @@ -4165,7 +4216,10 @@ "annotations": { "keyType": "string", "type": "string", - "id": 10 + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "etag": { "type": "string", @@ -4227,7 +4281,7 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "IDENTIFIER" } }, "uid": { From d158bfb432f1c54ae9cb121607c33508e79accf0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:30:37 -0800 Subject: [PATCH 17/19] feat: add `point_of_contact` to `Feature` message (#5064) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add RayMetricSpec to persistent resource PiperOrigin-RevId: 609073560 Source-Link: https://github.com/googleapis/googleapis/commit/5d1dd8e7686a42d7ec1be6ed6dd85fc1b60d7dca Source-Link: https://github.com/googleapis/googleapis-gen/commit/d3d953ef28e9839733d0ef95e896e71817840495 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImQzZDk1M2VmMjhlOTgzOTczM2QwZWY5NWU4OTZlNzE4MTc4NDA0OTUifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add point_of_contact to feature PiperOrigin-RevId: 609124793 Source-Link: https://github.com/googleapis/googleapis/commit/d93e5e192931da78fb86a13ea436c02503bc3515 Source-Link: https://github.com/googleapis/googleapis-gen/commit/70bc2e932ae41dfc6ea65bce26aa25f49ed60fed Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjcwYmMyZTkzMmFlNDFkZmM2ZWE2NWJjZTI2YWEyNWY0OWVkNjBmZWQifQ== * feat: add `point_of_contact` to `Feature` message PiperOrigin-RevId: 609142958 Source-Link: https://github.com/googleapis/googleapis/commit/cc2c8aa468bcbb50ca0ec3ec34c8aee3bd8e0352 Source-Link: https://github.com/googleapis/googleapis-gen/commit/13e938aa59cbf80622978c7a06ed70ef75e6d870 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjEzZTkzOGFhNTljYmY4MDYyMjk3OGM3YTA2ZWQ3MGVmNzVlNmQ4NzAifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/cloud/aiplatform/v1/feature.proto | 4 + .../cloud/aiplatform/v1beta1/feature.proto | 4 + .../v1beta1/persistent_resource.proto | 9 + .../protos/protos.d.ts | 115 ++++++++ .../google-cloud-aiplatform/protos/protos.js | 277 ++++++++++++++++++ .../protos/protos.json | 26 ++ 6 files changed, 435 insertions(+) diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto index 464b888905d0..e47a5287d7b3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto @@ -170,4 +170,8 @@ message Feature { // The name of the BigQuery Table/View column hosting data for this version. // If no value is provided, will use feature_id. string version_column_name = 106; + + // Entity responsible for maintaining this feature. Can be comma separated + // list of email addresses or URIs. + string point_of_contact = 107; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto index f5510a91d6c1..f88981051723 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto @@ -197,4 +197,8 @@ message Feature { // The name of the BigQuery Table/View column hosting data for this version. // If no value is provided, will use feature_id. string version_column_name = 106; + + // Entity responsible for maintaining this feature. Can be comma separated + // list of email addresses or URIs. + string point_of_contact = 107; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/persistent_resource.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/persistent_resource.proto index abf5e2c85b94..8e2aa894b528 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/persistent_resource.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/persistent_resource.proto @@ -237,6 +237,9 @@ message RaySpec { // set. string head_node_resource_pool_id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Ray metrics configurations. + RayMetricSpec ray_metric_spec = 8 [(google.api.field_behavior) = OPTIONAL]; } // Persistent Cluster runtime information as output @@ -274,3 +277,9 @@ message ServiceAccountSpec { // Required if any containers are specified in `ResourceRuntimeSpec`. string service_account = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Configuration for the Ray metrics. +message RayMetricSpec { + // Optional. Flag to disable the Ray metrics collection. + bool disabled = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 603d444c9ef4..83b2252eeca1 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -21816,6 +21816,9 @@ export namespace google { /** Feature versionColumnName */ versionColumnName?: (string|null); + + /** Feature pointOfContact */ + pointOfContact?: (string|null); } /** Represents a Feature. */ @@ -21857,6 +21860,9 @@ export namespace google { /** Feature versionColumnName. */ public versionColumnName: string; + /** Feature pointOfContact. */ + public pointOfContact: string; + /** * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set @@ -119757,6 +119763,9 @@ export namespace google { /** Feature versionColumnName */ versionColumnName?: (string|null); + + /** Feature pointOfContact */ + pointOfContact?: (string|null); } /** Represents a Feature. */ @@ -119804,6 +119813,9 @@ export namespace google { /** Feature versionColumnName. */ public versionColumnName: string; + /** Feature pointOfContact. */ + public pointOfContact: string; + /** * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set @@ -167446,6 +167458,9 @@ export namespace google { /** RaySpec headNodeResourcePoolId */ headNodeResourcePoolId?: (string|null); + + /** RaySpec rayMetricSpec */ + rayMetricSpec?: (google.cloud.aiplatform.v1beta1.IRayMetricSpec|null); } /** Represents a RaySpec. */ @@ -167466,6 +167481,9 @@ export namespace google { /** RaySpec headNodeResourcePoolId. */ public headNodeResourcePoolId: string; + /** RaySpec rayMetricSpec. */ + public rayMetricSpec?: (google.cloud.aiplatform.v1beta1.IRayMetricSpec|null); + /** * Creates a new RaySpec instance using the specified properties. * @param [properties] Properties to set @@ -167744,6 +167762,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RayMetricSpec. */ + interface IRayMetricSpec { + + /** RayMetricSpec disabled */ + disabled?: (boolean|null); + } + + /** Represents a RayMetricSpec. */ + class RayMetricSpec implements IRayMetricSpec { + + /** + * Constructs a new RayMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRayMetricSpec); + + /** RayMetricSpec disabled. */ + public disabled: boolean; + + /** + * Creates a new RayMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns RayMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IRayMetricSpec): google.cloud.aiplatform.v1beta1.RayMetricSpec; + + /** + * Encodes the specified RayMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RayMetricSpec.verify|verify} messages. + * @param message RayMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IRayMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RayMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RayMetricSpec.verify|verify} messages. + * @param message RayMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRayMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RayMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RayMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RayMetricSpec; + + /** + * Decodes a RayMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RayMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RayMetricSpec; + + /** + * Verifies a RayMetricSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RayMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RayMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RayMetricSpec; + + /** + * Creates a plain object from a RayMetricSpec message. Also converts values to other types if specified. + * @param message RayMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RayMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RayMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RayMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents a PersistentResourceService */ class PersistentResourceService extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index cf9614af3680..71a9c4daba7c 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -55498,6 +55498,7 @@ * @property {boolean|null} [disableMonitoring] Feature disableMonitoring * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies * @property {string|null} [versionColumnName] Feature versionColumnName + * @property {string|null} [pointOfContact] Feature pointOfContact */ /** @@ -55597,6 +55598,14 @@ */ Feature.prototype.versionColumnName = ""; + /** + * Feature pointOfContact. + * @member {string} pointOfContact + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.pointOfContact = ""; + /** * Creates a new Feature instance using the specified properties. * @function create @@ -55643,6 +55652,8 @@ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); if (message.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); + if (message.pointOfContact != null && Object.hasOwnProperty.call(message, "pointOfContact")) + writer.uint32(/* id 107, wireType 2 =*/858).string(message.pointOfContact); return writer; }; @@ -55738,6 +55749,10 @@ message.versionColumnName = reader.string(); break; } + case 107: { + message.pointOfContact = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -55831,6 +55846,9 @@ if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) if (!$util.isString(message.versionColumnName)) return "versionColumnName: string expected"; + if (message.pointOfContact != null && message.hasOwnProperty("pointOfContact")) + if (!$util.isString(message.pointOfContact)) + return "pointOfContact: string expected"; return null; }; @@ -55931,6 +55949,8 @@ } if (object.versionColumnName != null) message.versionColumnName = String(object.versionColumnName); + if (object.pointOfContact != null) + message.pointOfContact = String(object.pointOfContact); return message; }; @@ -55960,6 +55980,7 @@ object.etag = ""; object.disableMonitoring = false; object.versionColumnName = ""; + object.pointOfContact = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -55988,6 +56009,8 @@ object.disableMonitoring = message.disableMonitoring; if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) object.versionColumnName = message.versionColumnName; + if (message.pointOfContact != null && message.hasOwnProperty("pointOfContact")) + object.pointOfContact = message.pointOfContact; return object; }; @@ -292269,6 +292292,7 @@ * @property {Array.|null} [monitoringStats] Feature monitoringStats * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies * @property {string|null} [versionColumnName] Feature versionColumnName + * @property {string|null} [pointOfContact] Feature pointOfContact */ /** @@ -292385,6 +292409,14 @@ */ Feature.prototype.versionColumnName = ""; + /** + * Feature pointOfContact. + * @member {string} pointOfContact + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.pointOfContact = ""; + /** * Creates a new Feature instance using the specified properties. * @function create @@ -292436,6 +292468,8 @@ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); if (message.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); + if (message.pointOfContact != null && Object.hasOwnProperty.call(message, "pointOfContact")) + writer.uint32(/* id 107, wireType 2 =*/858).string(message.pointOfContact); return writer; }; @@ -292541,6 +292575,10 @@ message.versionColumnName = reader.string(); break; } + case 107: { + message.pointOfContact = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -292648,6 +292686,9 @@ if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) if (!$util.isString(message.versionColumnName)) return "versionColumnName: string expected"; + if (message.pointOfContact != null && message.hasOwnProperty("pointOfContact")) + if (!$util.isString(message.pointOfContact)) + return "pointOfContact: string expected"; return null; }; @@ -292763,6 +292804,8 @@ } if (object.versionColumnName != null) message.versionColumnName = String(object.versionColumnName); + if (object.pointOfContact != null) + message.pointOfContact = String(object.pointOfContact); return message; }; @@ -292795,6 +292838,7 @@ object.monitoringConfig = null; object.disableMonitoring = false; object.versionColumnName = ""; + object.pointOfContact = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -292830,6 +292874,8 @@ object.disableMonitoring = message.disableMonitoring; if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) object.versionColumnName = message.versionColumnName; + if (message.pointOfContact != null && message.hasOwnProperty("pointOfContact")) + object.pointOfContact = message.pointOfContact; return object; }; @@ -405274,6 +405320,7 @@ * @property {string|null} [imageUri] RaySpec imageUri * @property {Object.|null} [resourcePoolImages] RaySpec resourcePoolImages * @property {string|null} [headNodeResourcePoolId] RaySpec headNodeResourcePoolId + * @property {google.cloud.aiplatform.v1beta1.IRayMetricSpec|null} [rayMetricSpec] RaySpec rayMetricSpec */ /** @@ -405316,6 +405363,14 @@ */ RaySpec.prototype.headNodeResourcePoolId = ""; + /** + * RaySpec rayMetricSpec. + * @member {google.cloud.aiplatform.v1beta1.IRayMetricSpec|null|undefined} rayMetricSpec + * @memberof google.cloud.aiplatform.v1beta1.RaySpec + * @instance + */ + RaySpec.prototype.rayMetricSpec = null; + /** * Creates a new RaySpec instance using the specified properties. * @function create @@ -405347,6 +405402,8 @@ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourcePoolImages[keys[i]]).ldelim(); if (message.headNodeResourcePoolId != null && Object.hasOwnProperty.call(message, "headNodeResourcePoolId")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.headNodeResourcePoolId); + if (message.rayMetricSpec != null && Object.hasOwnProperty.call(message, "rayMetricSpec")) + $root.google.cloud.aiplatform.v1beta1.RayMetricSpec.encode(message.rayMetricSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -405412,6 +405469,10 @@ message.headNodeResourcePoolId = reader.string(); break; } + case 8: { + message.rayMetricSpec = $root.google.cloud.aiplatform.v1beta1.RayMetricSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -405461,6 +405522,11 @@ if (message.headNodeResourcePoolId != null && message.hasOwnProperty("headNodeResourcePoolId")) if (!$util.isString(message.headNodeResourcePoolId)) return "headNodeResourcePoolId: string expected"; + if (message.rayMetricSpec != null && message.hasOwnProperty("rayMetricSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.RayMetricSpec.verify(message.rayMetricSpec); + if (error) + return "rayMetricSpec." + error; + } return null; }; @@ -405487,6 +405553,11 @@ } if (object.headNodeResourcePoolId != null) message.headNodeResourcePoolId = String(object.headNodeResourcePoolId); + if (object.rayMetricSpec != null) { + if (typeof object.rayMetricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RaySpec.rayMetricSpec: object expected"); + message.rayMetricSpec = $root.google.cloud.aiplatform.v1beta1.RayMetricSpec.fromObject(object.rayMetricSpec); + } return message; }; @@ -405508,6 +405579,7 @@ if (options.defaults) { object.imageUri = ""; object.headNodeResourcePoolId = ""; + object.rayMetricSpec = null; } if (message.imageUri != null && message.hasOwnProperty("imageUri")) object.imageUri = message.imageUri; @@ -405519,6 +405591,8 @@ } if (message.headNodeResourcePoolId != null && message.hasOwnProperty("headNodeResourcePoolId")) object.headNodeResourcePoolId = message.headNodeResourcePoolId; + if (message.rayMetricSpec != null && message.hasOwnProperty("rayMetricSpec")) + object.rayMetricSpec = $root.google.cloud.aiplatform.v1beta1.RayMetricSpec.toObject(message.rayMetricSpec, options); return object; }; @@ -406016,6 +406090,209 @@ return ServiceAccountSpec; })(); + v1beta1.RayMetricSpec = (function() { + + /** + * Properties of a RayMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRayMetricSpec + * @property {boolean|null} [disabled] RayMetricSpec disabled + */ + + /** + * Constructs a new RayMetricSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a RayMetricSpec. + * @implements IRayMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRayMetricSpec=} [properties] Properties to set + */ + function RayMetricSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RayMetricSpec disabled. + * @member {boolean} disabled + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @instance + */ + RayMetricSpec.prototype.disabled = false; + + /** + * Creates a new RayMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IRayMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RayMetricSpec} RayMetricSpec instance + */ + RayMetricSpec.create = function create(properties) { + return new RayMetricSpec(properties); + }; + + /** + * Encodes the specified RayMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RayMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IRayMetricSpec} message RayMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RayMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + return writer; + }; + + /** + * Encodes the specified RayMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RayMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IRayMetricSpec} message RayMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RayMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RayMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.RayMetricSpec} RayMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RayMetricSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RayMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.disabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RayMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RayMetricSpec} RayMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RayMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RayMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RayMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + return null; + }; + + /** + * Creates a RayMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RayMetricSpec} RayMetricSpec + */ + RayMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RayMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.RayMetricSpec(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + return message; + }; + + /** + * Creates a plain object from a RayMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.RayMetricSpec} message RayMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RayMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.disabled = false; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + return object; + }; + + /** + * Converts this RayMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @instance + * @returns {Object.} JSON object + */ + RayMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RayMetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RayMetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RayMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RayMetricSpec"; + }; + + return RayMetricSpec; + })(); + v1beta1.PersistentResourceService = (function() { /** diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 4c01ce907bad..2a3843caaa87 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -6074,6 +6074,10 @@ "versionColumnName": { "type": "string", "id": 106 + }, + "pointOfContact": { + "type": "string", + "id": 107 } }, "nested": { @@ -31409,6 +31413,10 @@ "versionColumnName": { "type": "string", "id": 106 + }, + "pointOfContact": { + "type": "string", + "id": 107 } }, "nested": { @@ -43891,6 +43899,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "rayMetricSpec": { + "type": "RayMetricSpec", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -43924,6 +43939,17 @@ } } }, + "RayMetricSpec": { + "fields": { + "disabled": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "PersistentResourceService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", From af0e580dbdca83f5e9cebe0df1d9e752c88f4357 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:30:55 -0800 Subject: [PATCH 18/19] feat: [container] add API to enable Provisioning Request API on existing nodepools (#5065) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add API to enable Provisioning Request API on existing nodepools --- feat: Promoted enable_confidential_storage to GA (behind allowlist) PiperOrigin-RevId: 609154511 Source-Link: https://github.com/googleapis/googleapis/commit/f9d24c34a4a4448bcefd679e76fea9cb5c2768b4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/73e45b49b285a3ab6833514b474031de8afaa255 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNzNlNDViNDliMjg1YTNhYjY4MzM1MTRiNDc0MDMxZGU4YWZhYTI1NSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 7 +++ packages/google-container/protos/protos.d.ts | 12 +++++ packages/google-container/protos/protos.js | 51 +++++++++++++++++++ packages/google-container/protos/protos.json | 11 ++++ .../v1/cluster_manager.update_node_pool.js | 4 ++ .../snippet_metadata_google.container.v1.json | 6 ++- .../src/v1/cluster_manager_client.ts | 2 + 7 files changed, 92 insertions(+), 1 deletion(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 5ce0a64a798a..5459cc51aa46 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -832,6 +832,10 @@ message NodeConfig { // A map of resource manager tag keys and values to be attached to the nodes. ResourceManagerTags resource_manager_tags = 45; + + // Optional. Reserved for future use. + bool enable_confidential_storage = 46 + [(google.api.field_behavior) = OPTIONAL]; } // Specifies options for controlling advanced machine features. @@ -2763,6 +2767,9 @@ message UpdateNodePoolRequest { // for managing Compute Engine firewalls using Network Firewall Policies. // Existing tags will be replaced with new values. ResourceManagerTags resource_manager_tags = 39; + + // Specifies the configuration of queued provisioning. + NodePool.QueuedProvisioning queued_provisioning = 42; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index e3b72601171f..7985825f4603 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1212,6 +1212,9 @@ export namespace google { /** NodeConfig resourceManagerTags */ resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + + /** NodeConfig enableConfidentialStorage */ + enableConfidentialStorage?: (boolean|null); } /** Represents a NodeConfig. */ @@ -1328,6 +1331,9 @@ export namespace google { /** NodeConfig resourceManagerTags. */ public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** NodeConfig enableConfidentialStorage. */ + public enableConfidentialStorage: boolean; + /** NodeConfig _fastSocket. */ public _fastSocket?: "fastSocket"; @@ -8432,6 +8438,9 @@ export namespace google { /** UpdateNodePoolRequest resourceManagerTags */ resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + + /** UpdateNodePoolRequest queuedProvisioning */ + queuedProvisioning?: (google.container.v1.NodePool.IQueuedProvisioning|null); } /** Represents an UpdateNodePoolRequest. */ @@ -8527,6 +8536,9 @@ export namespace google { /** UpdateNodePoolRequest resourceManagerTags. */ public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** UpdateNodePoolRequest queuedProvisioning. */ + public queuedProvisioning?: (google.container.v1.NodePool.IQueuedProvisioning|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index de89d4cb4aa4..91f30caa6714 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -2134,6 +2134,7 @@ * @property {google.container.v1.IEphemeralStorageLocalSsdConfig|null} [ephemeralStorageLocalSsdConfig] NodeConfig ephemeralStorageLocalSsdConfig * @property {google.container.v1.ISoleTenantConfig|null} [soleTenantConfig] NodeConfig soleTenantConfig * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodeConfig resourceManagerTags + * @property {boolean|null} [enableConfidentialStorage] NodeConfig enableConfidentialStorage */ /** @@ -2438,6 +2439,14 @@ */ NodeConfig.prototype.resourceManagerTags = null; + /** + * NodeConfig enableConfidentialStorage. + * @member {boolean} enableConfidentialStorage + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.enableConfidentialStorage = false; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -2553,6 +2562,8 @@ $root.google.container.v1.SoleTenantConfig.encode(message.soleTenantConfig, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); + if (message.enableConfidentialStorage != null && Object.hasOwnProperty.call(message, "enableConfidentialStorage")) + writer.uint32(/* id 46, wireType 0 =*/368).bool(message.enableConfidentialStorage); return writer; }; @@ -2792,6 +2803,10 @@ message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); break; } + case 46: { + message.enableConfidentialStorage = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3005,6 +3020,9 @@ if (error) return "resourceManagerTags." + error; } + if (message.enableConfidentialStorage != null && message.hasOwnProperty("enableConfidentialStorage")) + if (typeof message.enableConfidentialStorage !== "boolean") + return "enableConfidentialStorage: boolean expected"; return null; }; @@ -3182,6 +3200,8 @@ throw TypeError(".google.container.v1.NodeConfig.resourceManagerTags: object expected"); message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); } + if (object.enableConfidentialStorage != null) + message.enableConfidentialStorage = Boolean(object.enableConfidentialStorage); return message; }; @@ -3237,6 +3257,7 @@ object.ephemeralStorageLocalSsdConfig = null; object.soleTenantConfig = null; object.resourceManagerTags = null; + object.enableConfidentialStorage = false; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -3333,6 +3354,8 @@ object.soleTenantConfig = $root.google.container.v1.SoleTenantConfig.toObject(message.soleTenantConfig, options); if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); + if (message.enableConfidentialStorage != null && message.hasOwnProperty("enableConfidentialStorage")) + object.enableConfidentialStorage = message.enableConfidentialStorage; return object; }; @@ -21921,6 +21944,7 @@ * @property {string|null} [diskType] UpdateNodePoolRequest diskType * @property {number|Long|null} [diskSizeGb] UpdateNodePoolRequest diskSizeGb * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] UpdateNodePoolRequest resourceManagerTags + * @property {google.container.v1.NodePool.IQueuedProvisioning|null} [queuedProvisioning] UpdateNodePoolRequest queuedProvisioning */ /** @@ -22163,6 +22187,14 @@ */ UpdateNodePoolRequest.prototype.resourceManagerTags = null; + /** + * UpdateNodePoolRequest queuedProvisioning. + * @member {google.container.v1.NodePool.IQueuedProvisioning|null|undefined} queuedProvisioning + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.queuedProvisioning = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -22244,6 +22276,8 @@ writer.uint32(/* id 38, wireType 0 =*/304).int64(message.diskSizeGb); if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); + if (message.queuedProvisioning != null && Object.hasOwnProperty.call(message, "queuedProvisioning")) + $root.google.container.v1.NodePool.QueuedProvisioning.encode(message.queuedProvisioning, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); return writer; }; @@ -22392,6 +22426,10 @@ message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); break; } + case 42: { + message.queuedProvisioning = $root.google.container.v1.NodePool.QueuedProvisioning.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22547,6 +22585,11 @@ if (error) return "resourceManagerTags." + error; } + if (message.queuedProvisioning != null && message.hasOwnProperty("queuedProvisioning")) { + var error = $root.google.container.v1.NodePool.QueuedProvisioning.verify(message.queuedProvisioning); + if (error) + return "queuedProvisioning." + error; + } return null; }; @@ -22678,6 +22721,11 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.resourceManagerTags: object expected"); message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); } + if (object.queuedProvisioning != null) { + if (typeof object.queuedProvisioning !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.queuedProvisioning: object expected"); + message.queuedProvisioning = $root.google.container.v1.NodePool.QueuedProvisioning.fromObject(object.queuedProvisioning); + } return message; }; @@ -22728,6 +22776,7 @@ } else object.diskSizeGb = options.longs === String ? "0" : 0; object.resourceManagerTags = null; + object.queuedProvisioning = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -22791,6 +22840,8 @@ object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); + if (message.queuedProvisioning != null && message.hasOwnProperty("queuedProvisioning")) + object.queuedProvisioning = $root.google.container.v1.NodePool.QueuedProvisioning.toObject(message.queuedProvisioning, options); return object; }; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index cf45ec0f7275..c344be7bbdc4 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1107,6 +1107,13 @@ "resourceManagerTags": { "type": "ResourceManagerTags", "id": 45 + }, + "enableConfidentialStorage": { + "type": "bool", + "id": 46, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2999,6 +3006,10 @@ "resourceManagerTags": { "type": "ResourceManagerTags", "id": 39 + }, + "queuedProvisioning": { + "type": "NodePool.QueuedProvisioning", + "id": 42 } } }, diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index c7fbe02bd989..2a04ed01082b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -161,6 +161,10 @@ function main(nodeVersion, imageType) { * Existing tags will be replaced with new values. */ // const resourceManagerTags = {} + /** + * Specifies the configuration of queued provisioning. + */ + // const queuedProvisioning = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json index f42be937e0bc..3801ad3a4b1a 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 183, + "end": 187, "type": "FULL" } ], @@ -350,6 +350,10 @@ { "name": "resource_manager_tags", "type": ".google.container.v1.ResourceManagerTags" + }, + { + "name": "queued_provisioning", + "type": ".google.container.v1.NodePool.QueuedProvisioning" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 02c1e09fd15b..6a48597f6445 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -907,6 +907,8 @@ export class ClusterManagerClient { * Desired resource manager tag keys and values to be attached to the nodes * for managing Compute Engine firewalls using Network Firewall Policies. * Existing tags will be replaced with new values. + * @param {google.container.v1.NodePool.QueuedProvisioning} request.queuedProvisioning + * Specifies the configuration of queued provisioning. * @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. From 6d63f0842d44d78890b9f277611727a8af0de1e9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:58:39 -0800 Subject: [PATCH 19/19] chore: release main (#5060) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: release main * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .release-please-manifest.json | 22 +- changelog.json | 197 +++++++++++++++++- .../google-api-servicecontrol/CHANGELOG.md | 7 + .../google-api-servicecontrol/package.json | 2 +- ...metadata.google.api.servicecontrol.v1.json | 2 +- ...metadata_google.api.servicecontrol.v1.json | 2 +- ...metadata.google.api.servicecontrol.v2.json | 2 +- ...metadata_google.api.servicecontrol.v2.json | 2 +- .../samples/package.json | 2 +- packages/google-cloud-aiplatform/CHANGELOG.md | 8 + packages/google-cloud-aiplatform/package.json | 2 +- ...t_metadata.google.cloud.aiplatform.v1.json | 2 +- ...t_metadata_google.cloud.aiplatform.v1.json | 2 +- ...adata.google.cloud.aiplatform.v1beta1.json | 2 +- ...adata_google.cloud.aiplatform.v1beta1.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 7 + .../package.json | 2 +- ...data.google.cloud.contentwarehouse.v1.json | 2 +- ...data_google.cloud.contentwarehouse.v1.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 7 + .../package.json | 2 +- ...loud.orchestration.airflow.service.v1.json | 2 +- ...loud.orchestration.airflow.service.v1.json | 2 +- ...orchestration.airflow.service.v1beta1.json | 2 +- ...orchestration.airflow.service.v1beta1.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 7 + .../package.json | 2 +- ...a.google.cloud.recaptchaenterprise.v1.json | 2 +- ...a_google.cloud.recaptchaenterprise.v1.json | 2 +- ...gle.cloud.recaptchaenterprise.v1beta1.json | 2 +- ...gle.cloud.recaptchaenterprise.v1beta1.json | 2 +- .../samples/package.json | 2 +- .../google-cloud-securitycenter/CHANGELOG.md | 7 + .../google-cloud-securitycenter/package.json | 2 +- ...tadata.google.cloud.securitycenter.v1.json | 2 +- ...tadata_google.cloud.securitycenter.v1.json | 2 +- ...a.google.cloud.securitycenter.v1beta1.json | 2 +- ...a_google.cloud.securitycenter.v1beta1.json | 2 +- ...google.cloud.securitycenter.v1p1beta1.json | 2 +- ...google.cloud.securitycenter.v1p1beta1.json | 2 +- .../samples/package.json | 2 +- packages/google-cloud-speech/CHANGELOG.md | 7 + packages/google-cloud-speech/package.json | 2 +- ...ippet_metadata.google.cloud.speech.v1.json | 2 +- ...ippet_metadata_google.cloud.speech.v1.json | 2 +- ...etadata.google.cloud.speech.v1p1beta1.json | 2 +- ...etadata_google.cloud.speech.v1p1beta1.json | 2 +- ...ippet_metadata.google.cloud.speech.v2.json | 2 +- ...ippet_metadata_google.cloud.speech.v2.json | 2 +- .../google-cloud-speech/samples/package.json | 2 +- packages/google-cloud-sql/CHANGELOG.md | 7 + packages/google-cloud-sql/package.json | 2 +- .../snippet_metadata_google.cloud.sql.v1.json | 2 +- ...pet_metadata_google.cloud.sql.v1beta4.json | 2 +- .../google-cloud-sql/samples/package.json | 2 +- packages/google-container/CHANGELOG.md | 7 + packages/google-container/package.json | 2 +- .../snippet_metadata.google.container.v1.json | 2 +- .../snippet_metadata_google.container.v1.json | 2 +- ...pet_metadata.google.container.v1beta1.json | 2 +- ...pet_metadata_google.container.v1beta1.json | 2 +- .../google-container/samples/package.json | 2 +- .../CHANGELOG.md | 7 + .../package.json | 2 +- ...data.google.maps.addressvalidation.v1.json | 2 +- ...data_google.maps.addressvalidation.v1.json | 2 +- .../samples/package.json | 2 +- packages/google-maps-places/CHANGELOG.md | 7 + packages/google-maps-places/package.json | 2 +- ...nippet_metadata.google.maps.places.v1.json | 2 +- ...nippet_metadata_google.maps.places.v1.json | 2 +- .../google-maps-places/samples/package.json | 2 +- 75 files changed, 347 insertions(+), 74 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 114c90994cda..7469962ba942 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -4,14 +4,14 @@ "packages/google-analytics-admin": "7.2.0", "packages/google-analytics-data": "4.4.0", "packages/google-api-apikeys": "1.1.0", - "packages/google-api-servicecontrol": "3.1.0", + "packages/google-api-servicecontrol": "3.2.0", "packages/google-api-servicemanagement": "2.1.0", "packages/google-api-serviceusage": "3.2.0", "packages/google-appengine": "3.1.0", "packages/google-area120-tables": "3.1.0", "packages/google-cloud-accessapproval": "3.1.0", "packages/google-cloud-advisorynotifications": "1.2.0", - "packages/google-cloud-aiplatform": "3.12.0", + "packages/google-cloud-aiplatform": "3.13.0", "packages/google-cloud-alloydb": "1.5.0", "packages/google-cloud-apigateway": "3.1.0", "packages/google-cloud-apigeeconnect": "3.1.0", @@ -45,7 +45,7 @@ "packages/google-cloud-config": "0.2.0", "packages/google-cloud-connectors": "0.1.0", "packages/google-cloud-contactcenterinsights": "3.3.0", - "packages/google-cloud-contentwarehouse": "1.4.0", + "packages/google-cloud-contentwarehouse": "1.5.0", "packages/google-cloud-datacatalog": "4.1.1", "packages/google-cloud-datacatalog-lineage": "1.1.0", "packages/google-cloud-dataform": "1.1.0", @@ -93,7 +93,7 @@ "packages/google-cloud-networkservices": "0.3.0", "packages/google-cloud-notebooks": "3.2.0", "packages/google-cloud-optimization": "3.3.0", - "packages/google-cloud-orchestration-airflow-service": "3.1.0", + "packages/google-cloud-orchestration-airflow-service": "3.2.0", "packages/google-cloud-orgpolicy": "3.2.0", "packages/google-cloud-osconfig": "3.1.0", "packages/google-cloud-oslogin": "5.5.0", @@ -103,7 +103,7 @@ "packages/google-cloud-policytroubleshooter-iam": "0.3.0", "packages/google-cloud-privatecatalog": "3.1.0", "packages/google-cloud-rapidmigrationassessment": "1.1.0", - "packages/google-cloud-recaptchaenterprise": "5.3.0", + "packages/google-cloud-recaptchaenterprise": "5.4.0", "packages/google-cloud-recommender": "6.2.0", "packages/google-cloud-redis": "4.1.0", "packages/google-cloud-resourcemanager": "5.1.0", @@ -114,11 +114,11 @@ "packages/google-cloud-secretmanager": "5.1.0", "packages/google-cloud-security-privateca": "5.1.0", "packages/google-cloud-security-publicca": "1.1.0", - "packages/google-cloud-securitycenter": "8.2.0", + "packages/google-cloud-securitycenter": "8.3.0", "packages/google-cloud-servicedirectory": "5.1.0", "packages/google-cloud-shell": "3.1.0", - "packages/google-cloud-speech": "6.2.0", - "packages/google-cloud-sql": "0.6.0", + "packages/google-cloud-speech": "6.3.0", + "packages/google-cloud-sql": "0.7.0", "packages/google-cloud-storageinsights": "1.1.0", "packages/google-cloud-support": "1.1.0", "packages/google-cloud-talent": "6.1.0", @@ -138,7 +138,7 @@ "packages/google-cloud-websecurityscanner": "3.1.0", "packages/google-cloud-workflows-executions": "3.2.0", "packages/google-cloud-workstations": "1.2.0", - "packages/google-container": "5.7.0", + "packages/google-container": "5.8.0", "packages/google-dataflow": "3.1.0", "packages/google-devtools-artifactregistry": "3.2.0", "packages/google-devtools-cloudbuild": "4.2.0", @@ -147,9 +147,9 @@ "packages/google-iam": "1.1.0", "packages/google-iam-credentials": "3.1.0", "packages/google-identity-accesscontextmanager": "3.1.0", - "packages/google-maps-addressvalidation": "2.1.0", + "packages/google-maps-addressvalidation": "2.2.0", "packages/google-maps-mapsplatformdatasets": "1.1.0", - "packages/google-maps-places": "1.2.0", + "packages/google-maps-places": "1.3.0", "packages/google-maps-routing": "1.1.0", "packages/google-monitoring-dashboard": "3.1.0", "packages/google-privacy-dlp": "5.2.0", diff --git a/changelog.json b/changelog.json index 2f05e2060557..aecaad5bd186 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,201 @@ { "repository": "googleapis/google-cloud-node", "entries": [ + { + "changes": [ + { + "type": "feat", + "sha": "c53c6ea8311a921b16a4e3b3c4d3d941afd82245", + "message": "[places] add AutoComplete API", + "issues": [ + "5056" + ] + } + ], + "version": "1.3.0", + "language": "JAVASCRIPT", + "artifactName": "@googlemaps/places", + "id": "bccc5c70-0aef-4ff9-8a0c-36f8e52fcb76", + "createTime": "2024-02-22T03:34:14.624Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "da1c96fcf441e412b3657b6b433c4a07c5afca1d", + "message": "[addressvalidation] add session token support for Autocomplete (New) sessions that end with a call to Address Validation", + "issues": [ + "5059" + ] + } + ], + "version": "2.2.0", + "language": "JAVASCRIPT", + "artifactName": "@googlemaps/addressvalidation", + "id": "04c4fb48-981a-40ed-b129-98e3016213ec", + "createTime": "2024-02-22T03:34:14.606Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "af0e580dbdca83f5e9cebe0df1d9e752c88f4357", + "message": "[container] add API to enable Provisioning Request API on existing nodepools", + "issues": [ + "5065" + ] + } + ], + "version": "5.8.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/container", + "id": "f166c4d6-0445-44fa-84ac-f5d9d2b703d7", + "createTime": "2024-02-22T03:34:14.594Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "ff8ef66a10c3c78c941299eddb3ce79b09b91d14", + "message": "[sql] A new field `threads` is added to message `.google.cloud.sql.v1beta4.ExportContext`", + "issues": [ + "5048" + ] + } + ], + "version": "0.7.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/sql", + "id": "05ff393d-664c-435e-acc3-c2be8c3ffc00", + "createTime": "2024-02-22T03:34:14.576Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "6f3ab0415304dd270cca99ce18949a2a1fc0e1a9", + "message": "Add API for writing BatchRecognize transcripts in SRT and VTT formats", + "issues": [ + "5062" + ] + } + ], + "version": "6.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/speech", + "id": "d866b794-7be5-4bdc-b9fd-bb7f76eb9bc2", + "createTime": "2024-02-22T03:34:14.566Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "934c300105e20afb8d8ed750e79e9935b7d42a79", + "message": "[securitycenter] Add Backup DR field to finding's list of attributes", + "issues": [ + "5047" + ] + } + ], + "version": "8.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/security-center", + "id": "e9022638-00fd-4d7f-8157-32078476b265", + "createTime": "2024-02-22T03:34:14.553Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "5c58e553b1d0411715e160754787ded4b33d099c", + "message": "[recaptchaenterprise] Add an API method for reordering firewall policies", + "issues": [ + "5050" + ] + } + ], + "version": "5.4.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/recaptcha-enterprise", + "id": "c98dd3e4-c03b-4b57-bd3b-b720e8edf501", + "createTime": "2024-02-22T03:34:14.542Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "8dcf23c3f9d4ec94d4effd46eb2551568c029598", + "message": "[orchestration] added ListWorkloads RPC", + "issues": [ + "5044" + ] + } + ], + "version": "3.2.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/orchestration-airflow", + "id": "3a935cee-e245-46d9-8013-9cebda3f837a", + "createTime": "2024-02-22T03:34:14.520Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "e1afd1fc6779e73022f996ffa44378d0096f6269", + "message": "[contentwarehouse] A new field `schema_override` is added to message `ProcessOptions`", + "issues": [ + "5052" + ] + } + ], + "version": "1.5.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/contentwarehouse", + "id": "6a71c7da-4f70-475e-9db5-1229cdd2ea51", + "createTime": "2024-02-22T03:34:14.509Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "d158bfb432f1c54ae9cb121607c33508e79accf0", + "message": "Add `point_of_contact` to `Feature` message", + "issues": [ + "5064" + ] + }, + { + "type": "feat", + "sha": "6b73cce2fc4b29290b51878ba07aa4b9bca4e573", + "message": "Add Grounding feature to PredictionService.GenerateContent", + "issues": [ + "5036" + ] + } + ], + "version": "3.13.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/aiplatform", + "id": "650a80d0-e6e6-437c-b0bf-fde2361b3570", + "createTime": "2024-02-22T03:34:14.496Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "f44291270aba5581520205feeed2dfe169eca790", + "message": "[servicecontrol] include api_key_uid in service control check response", + "issues": [ + "5061" + ] + } + ], + "version": "3.2.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/service-control", + "id": "917a0b53-ffa2-4989-af7a-6b934d1e7a7b", + "createTime": "2024-02-22T03:34:14.484Z" + }, { "changes": [ { @@ -24325,5 +24520,5 @@ "createTime": "2023-01-28T04:18:24.718Z" } ], - "updateTime": "2024-02-09T18:22:14.501Z" + "updateTime": "2024-02-22T03:34:14.624Z" } \ No newline at end of file diff --git a/packages/google-api-servicecontrol/CHANGELOG.md b/packages/google-api-servicecontrol/CHANGELOG.md index bc2f140b594c..bc3f9cabd011 100644 --- a/packages/google-api-servicecontrol/CHANGELOG.md +++ b/packages/google-api-servicecontrol/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.2.0](https://github.com/googleapis/google-cloud-node/compare/service-control-v3.1.0...service-control-v3.2.0) (2024-02-22) + + +### Features + +* [servicecontrol] include api_key_uid in service control check response ([#5061](https://github.com/googleapis/google-cloud-node/issues/5061)) ([f442912](https://github.com/googleapis/google-cloud-node/commit/f44291270aba5581520205feeed2dfe169eca790)) + ## [3.1.0](https://github.com/googleapis/google-cloud-node/compare/service-control-v3.0.1...service-control-v3.1.0) (2024-02-09) diff --git a/packages/google-api-servicecontrol/package.json b/packages/google-api-servicecontrol/package.json index a6e436c3db16..2a31a9debfe6 100644 --- a/packages/google-api-servicecontrol/package.json +++ b/packages/google-api-servicecontrol/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/service-control", - "version": "3.1.0", + "version": "3.2.0", "description": "Service control client for Node.js", "repository": { "type": "git", diff --git a/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata.google.api.servicecontrol.v1.json b/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata.google.api.servicecontrol.v1.json index 33c2d402fe9e..32690bb2f8f4 100644 --- a/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata.google.api.servicecontrol.v1.json +++ b/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata.google.api.servicecontrol.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-servicecontrol", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json b/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json index 33c2d402fe9e..32690bb2f8f4 100644 --- a/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json +++ b/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-servicecontrol", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata.google.api.servicecontrol.v2.json b/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata.google.api.servicecontrol.v2.json index 8538050f2afe..9304230cb330 100644 --- a/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata.google.api.servicecontrol.v2.json +++ b/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata.google.api.servicecontrol.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-servicecontrol", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json b/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json index 8538050f2afe..9304230cb330 100644 --- a/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json +++ b/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-servicecontrol", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-api-servicecontrol/samples/package.json b/packages/google-api-servicecontrol/samples/package.json index 0551f9f48221..154043ebd59a 100644 --- a/packages/google-api-servicecontrol/samples/package.json +++ b/packages/google-api-servicecontrol/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/service-control": "^3.1.0" + "@google-cloud/service-control": "^3.2.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-aiplatform/CHANGELOG.md b/packages/google-cloud-aiplatform/CHANGELOG.md index 56dc83cfaf32..8c400d87a485 100644 --- a/packages/google-cloud-aiplatform/CHANGELOG.md +++ b/packages/google-cloud-aiplatform/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [3.13.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v3.12.0...aiplatform-v3.13.0) (2024-02-22) + + +### Features + +* Add `point_of_contact` to `Feature` message ([#5064](https://github.com/googleapis/google-cloud-node/issues/5064)) ([d158bfb](https://github.com/googleapis/google-cloud-node/commit/d158bfb432f1c54ae9cb121607c33508e79accf0)) +* Add Grounding feature to PredictionService.GenerateContent ([#5036](https://github.com/googleapis/google-cloud-node/issues/5036)) ([6b73cce](https://github.com/googleapis/google-cloud-node/commit/6b73cce2fc4b29290b51878ba07aa4b9bca4e573)) + ## [3.12.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v3.11.0...aiplatform-v3.12.0) (2024-02-09) diff --git a/packages/google-cloud-aiplatform/package.json b/packages/google-cloud-aiplatform/package.json index a3a75ff0351a..83747dc56d21 100644 --- a/packages/google-cloud-aiplatform/package.json +++ b/packages/google-cloud-aiplatform/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/aiplatform", - "version": "3.12.0", + "version": "3.13.0", "description": "Vertex AI client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index f3188715badb..100424769477 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-aiplatform", - "version": "3.12.0", + "version": "3.13.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json index 38459da11e1d..52eaf618f20c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-aiplatform", - "version": "3.12.0", + "version": "3.13.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index e0bb3e8eaf92..96358aea9382 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-aiplatform", - "version": "3.12.0", + "version": "3.13.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json index 9742a4fe60e8..71456fc8496b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-aiplatform", - "version": "3.12.0", + "version": "3.13.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-aiplatform/samples/package.json b/packages/google-cloud-aiplatform/samples/package.json index c1950bf20f9d..df622e4c3cf5 100644 --- a/packages/google-cloud-aiplatform/samples/package.json +++ b/packages/google-cloud-aiplatform/samples/package.json @@ -13,7 +13,7 @@ "test": "mocha --timeout 1200000 test/*.js" }, "dependencies": { - "@google-cloud/aiplatform": "^3.12.0" + "@google-cloud/aiplatform": "^3.13.0" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/google-cloud-contentwarehouse/CHANGELOG.md b/packages/google-cloud-contentwarehouse/CHANGELOG.md index fb7e7c8f783e..aeaeabcbbcad 100644 --- a/packages/google-cloud-contentwarehouse/CHANGELOG.md +++ b/packages/google-cloud-contentwarehouse/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.5.0](https://github.com/googleapis/google-cloud-node/compare/contentwarehouse-v1.4.0...contentwarehouse-v1.5.0) (2024-02-22) + + +### Features + +* [contentwarehouse] A new field `schema_override` is added to message `ProcessOptions` ([#5052](https://github.com/googleapis/google-cloud-node/issues/5052)) ([e1afd1f](https://github.com/googleapis/google-cloud-node/commit/e1afd1fc6779e73022f996ffa44378d0096f6269)) + ## [1.4.0](https://github.com/googleapis/google-cloud-node/compare/contentwarehouse-v1.3.0...contentwarehouse-v1.4.0) (2024-02-07) diff --git a/packages/google-cloud-contentwarehouse/package.json b/packages/google-cloud-contentwarehouse/package.json index 9f083c782573..934f283cc6fe 100644 --- a/packages/google-cloud-contentwarehouse/package.json +++ b/packages/google-cloud-contentwarehouse/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/contentwarehouse", - "version": "1.4.0", + "version": "1.5.0", "description": "Document AI Warehouse client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata.google.cloud.contentwarehouse.v1.json b/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata.google.cloud.contentwarehouse.v1.json index 24c8419d995e..ed16a75799d8 100644 --- a/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata.google.cloud.contentwarehouse.v1.json +++ b/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata.google.cloud.contentwarehouse.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-contentwarehouse", - "version": "1.4.0", + "version": "1.5.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json b/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json index 12ea90fa9193..1a83b3daec34 100644 --- a/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json +++ b/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-contentwarehouse", - "version": "1.4.0", + "version": "1.5.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-contentwarehouse/samples/package.json b/packages/google-cloud-contentwarehouse/samples/package.json index 5e37beb843ed..62030413cc68 100644 --- a/packages/google-cloud-contentwarehouse/samples/package.json +++ b/packages/google-cloud-contentwarehouse/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/contentwarehouse": "^1.4.0" + "@google-cloud/contentwarehouse": "^1.5.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md b/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md index 1b6b8e8cb15a..731267befe32 100644 --- a/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md +++ b/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.2.0](https://github.com/googleapis/google-cloud-node/compare/orchestration-airflow-v3.1.0...orchestration-airflow-v3.2.0) (2024-02-22) + + +### Features + +* [orchestration] added ListWorkloads RPC ([#5044](https://github.com/googleapis/google-cloud-node/issues/5044)) ([8dcf23c](https://github.com/googleapis/google-cloud-node/commit/8dcf23c3f9d4ec94d4effd46eb2551568c029598)) + ## [3.1.0](https://github.com/googleapis/google-cloud-node/compare/orchestration-airflow-v3.0.1...orchestration-airflow-v3.1.0) (2024-02-09) diff --git a/packages/google-cloud-orchestration-airflow-service/package.json b/packages/google-cloud-orchestration-airflow-service/package.json index 4aff7c64b2de..9ee087f3c53a 100644 --- a/packages/google-cloud-orchestration-airflow-service/package.json +++ b/packages/google-cloud-orchestration-airflow-service/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/orchestration-airflow", - "version": "3.1.0", + "version": "3.2.0", "description": "orchestration-airflow client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json index 0938ee9b1d7c..a5671962b028 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-service", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json index 2c2fb6a888f4..9e5c06dbe026 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-service", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata.google.cloud.orchestration.airflow.service.v1beta1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata.google.cloud.orchestration.airflow.service.v1beta1.json index e139f6272e5b..edd5e7494072 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata.google.cloud.orchestration.airflow.service.v1beta1.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata.google.cloud.orchestration.airflow.service.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-service", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json index b88a9ddcf602..f1dfcfc6f5b4 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-service", - "version": "3.1.0", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-orchestration-airflow-service/samples/package.json b/packages/google-cloud-orchestration-airflow-service/samples/package.json index c840fb1e7566..0747c4bd5fef 100644 --- a/packages/google-cloud-orchestration-airflow-service/samples/package.json +++ b/packages/google-cloud-orchestration-airflow-service/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/orchestration-airflow": "^3.1.0" + "@google-cloud/orchestration-airflow": "^3.2.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-recaptchaenterprise/CHANGELOG.md b/packages/google-cloud-recaptchaenterprise/CHANGELOG.md index 0dcd6c460c7f..fc2b3c194e75 100644 --- a/packages/google-cloud-recaptchaenterprise/CHANGELOG.md +++ b/packages/google-cloud-recaptchaenterprise/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/recaptcha-enterprise?activeTab=versions +## [5.4.0](https://github.com/googleapis/google-cloud-node/compare/recaptcha-enterprise-v5.3.0...recaptcha-enterprise-v5.4.0) (2024-02-22) + + +### Features + +* [recaptchaenterprise] Add an API method for reordering firewall policies ([#5050](https://github.com/googleapis/google-cloud-node/issues/5050)) ([5c58e55](https://github.com/googleapis/google-cloud-node/commit/5c58e553b1d0411715e160754787ded4b33d099c)) + ## [5.3.0](https://github.com/googleapis/google-cloud-node/compare/recaptcha-enterprise-v5.2.0...recaptcha-enterprise-v5.3.0) (2024-02-09) diff --git a/packages/google-cloud-recaptchaenterprise/package.json b/packages/google-cloud-recaptchaenterprise/package.json index 7b9da0cbe912..497a5ee710ab 100644 --- a/packages/google-cloud-recaptchaenterprise/package.json +++ b/packages/google-cloud-recaptchaenterprise/package.json @@ -5,7 +5,7 @@ "url": "https://github.com/googleapis/google-cloud-node.git" }, "name": "@google-cloud/recaptcha-enterprise", - "version": "5.3.0", + "version": "5.4.0", "author": "Google LLC", "description": "reCAPTCHA Enterprise API client for Node.js", "main": "build/src/index.js", diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json index 2d0a35c80b91..90c6e4f09d5d 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-recaptchaenterprise", - "version": "5.3.0", + "version": "5.4.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json index 6807243e4a85..5809b4812fca 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-recaptchaenterprise", - "version": "5.3.0", + "version": "5.4.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json index 4654e808f186..ff144937ac67 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-recaptchaenterprise", - "version": "5.3.0", + "version": "5.4.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json index 79566c9501bc..d6f76f3cff22 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-recaptchaenterprise", - "version": "5.3.0", + "version": "5.4.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-recaptchaenterprise/samples/package.json b/packages/google-cloud-recaptchaenterprise/samples/package.json index c6051f8f2ec9..601574d2ac12 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/package.json +++ b/packages/google-cloud-recaptchaenterprise/samples/package.json @@ -13,7 +13,7 @@ "test": "echo add tests" }, "dependencies": { - "@google-cloud/recaptcha-enterprise": "^5.3.0" + "@google-cloud/recaptcha-enterprise": "^5.4.0" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/google-cloud-securitycenter/CHANGELOG.md b/packages/google-cloud-securitycenter/CHANGELOG.md index fd90acc80bad..e353b43d81c1 100644 --- a/packages/google-cloud-securitycenter/CHANGELOG.md +++ b/packages/google-cloud-securitycenter/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/security-center?activeTab=versions +## [8.3.0](https://github.com/googleapis/google-cloud-node/compare/security-center-v8.2.0...security-center-v8.3.0) (2024-02-22) + + +### Features + +* [securitycenter] Add Backup DR field to finding's list of attributes ([#5047](https://github.com/googleapis/google-cloud-node/issues/5047)) ([934c300](https://github.com/googleapis/google-cloud-node/commit/934c300105e20afb8d8ed750e79e9935b7d42a79)) + ## [8.2.0](https://github.com/googleapis/google-cloud-node/compare/security-center-v8.1.0...security-center-v8.2.0) (2024-02-09) diff --git a/packages/google-cloud-securitycenter/package.json b/packages/google-cloud-securitycenter/package.json index f972eec704a0..9265d255e2ce 100644 --- a/packages/google-cloud-securitycenter/package.json +++ b/packages/google-cloud-securitycenter/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/security-center", "description": "Cloud Security Command Center API client for Node.js", - "version": "8.2.0", + "version": "8.3.0", "license": "Apache-2.0", "author": "Google LLC", "engines": { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json index 515a0c35b846..4e5741daebd9 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "8.2.0", + "version": "8.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json index 8f977496cfb1..3e89abc0dfb7 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "8.2.0", + "version": "8.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json index e0b77761c98d..63c6f115fdc8 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "8.2.0", + "version": "8.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json index e0b77761c98d..63c6f115fdc8 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "8.2.0", + "version": "8.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json index 692f099089fb..a3d8149157b3 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "8.2.0", + "version": "8.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json index 692f099089fb..a3d8149157b3 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "8.2.0", + "version": "8.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/package.json b/packages/google-cloud-securitycenter/samples/package.json index 0add0ed16ee1..1a0cefd78ab3 100644 --- a/packages/google-cloud-securitycenter/samples/package.json +++ b/packages/google-cloud-securitycenter/samples/package.json @@ -14,7 +14,7 @@ "license": "Apache-2.0", "dependencies": { "@google-cloud/pubsub": "^4.0.0", - "@google-cloud/security-center": "^8.2.0" + "@google-cloud/security-center": "^8.3.0" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/google-cloud-speech/CHANGELOG.md b/packages/google-cloud-speech/CHANGELOG.md index 960177d452d3..6dc7115bdeb4 100644 --- a/packages/google-cloud-speech/CHANGELOG.md +++ b/packages/google-cloud-speech/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/speech?activeTab=versions +## [6.3.0](https://github.com/googleapis/google-cloud-node/compare/speech-v6.2.0...speech-v6.3.0) (2024-02-22) + + +### Features + +* Add API for writing BatchRecognize transcripts in SRT and VTT formats ([#5062](https://github.com/googleapis/google-cloud-node/issues/5062)) ([6f3ab04](https://github.com/googleapis/google-cloud-node/commit/6f3ab0415304dd270cca99ce18949a2a1fc0e1a9)) + ## [6.2.0](https://github.com/googleapis/google-cloud-node/compare/speech-v6.1.1...speech-v6.2.0) (2024-02-09) diff --git a/packages/google-cloud-speech/package.json b/packages/google-cloud-speech/package.json index ad104fbd5b1f..429f2dbcbc46 100644 --- a/packages/google-cloud-speech/package.json +++ b/packages/google-cloud-speech/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/speech", "description": "Cloud Speech Client Library for Node.js", - "version": "6.2.0", + "version": "6.3.0", "license": "Apache-2.0", "author": "Google Inc.", "engines": { diff --git a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json index 97b31d24c2ef..4cc5ca698be0 100644 --- a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json +++ b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-speech", - "version": "6.2.0", + "version": "6.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json index 97b31d24c2ef..4cc5ca698be0 100644 --- a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json +++ b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-speech", - "version": "6.2.0", + "version": "6.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json index 585c88b4a144..51465b94ced1 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-speech", - "version": "6.2.0", + "version": "6.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json index 585c88b4a144..51465b94ced1 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-speech", - "version": "6.2.0", + "version": "6.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-speech/samples/generated/v2/snippet_metadata.google.cloud.speech.v2.json b/packages/google-cloud-speech/samples/generated/v2/snippet_metadata.google.cloud.speech.v2.json index d1a0ca53b284..9a6f0eca9e79 100644 --- a/packages/google-cloud-speech/samples/generated/v2/snippet_metadata.google.cloud.speech.v2.json +++ b/packages/google-cloud-speech/samples/generated/v2/snippet_metadata.google.cloud.speech.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-speech", - "version": "6.2.0", + "version": "6.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json b/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json index d1a0ca53b284..9a6f0eca9e79 100644 --- a/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json +++ b/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-speech", - "version": "6.2.0", + "version": "6.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-speech/samples/package.json b/packages/google-cloud-speech/samples/package.json index 204037f3c923..4daf19746198 100644 --- a/packages/google-cloud-speech/samples/package.json +++ b/packages/google-cloud-speech/samples/package.json @@ -15,7 +15,7 @@ "test": "c8 mocha test --timeout 600000" }, "dependencies": { - "@google-cloud/speech": "^6.2.0", + "@google-cloud/speech": "^6.3.0", "@google-cloud/storage": "^7.0.0", "chalk": "^5.0.0", "fs.promises": "^0.1.2", diff --git a/packages/google-cloud-sql/CHANGELOG.md b/packages/google-cloud-sql/CHANGELOG.md index d36cbc29084b..ee4f1e31d8d9 100644 --- a/packages/google-cloud-sql/CHANGELOG.md +++ b/packages/google-cloud-sql/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.7.0](https://github.com/googleapis/google-cloud-node/compare/sql-v0.6.0...sql-v0.7.0) (2024-02-22) + + +### Features + +* [sql] A new field `threads` is added to message `.google.cloud.sql.v1beta4.ExportContext` ([#5048](https://github.com/googleapis/google-cloud-node/issues/5048)) ([ff8ef66](https://github.com/googleapis/google-cloud-node/commit/ff8ef66a10c3c78c941299eddb3ce79b09b91d14)) + ## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/sql-v0.5.0...sql-v0.6.0) (2024-02-09) diff --git a/packages/google-cloud-sql/package.json b/packages/google-cloud-sql/package.json index 4fa53219b86c..af30b03f42f9 100644 --- a/packages/google-cloud-sql/package.json +++ b/packages/google-cloud-sql/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/sql", - "version": "0.6.0", + "version": "0.7.0", "description": "Sql client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json b/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json index 021103de093c..5b7309e744ff 100644 --- a/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json +++ b/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-sql", - "version": "0.6.0", + "version": "0.7.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json b/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json index 97037aaff3e0..1a251a05ce13 100644 --- a/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json +++ b/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-sql", - "version": "0.6.0", + "version": "0.7.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-sql/samples/package.json b/packages/google-cloud-sql/samples/package.json index a1d07433441d..4bdd3fc2686e 100644 --- a/packages/google-cloud-sql/samples/package.json +++ b/packages/google-cloud-sql/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/sql": "^0.6.0" + "@google-cloud/sql": "^0.7.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index e8d0a90f70e5..8f9cd22e9c49 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [5.8.0](https://github.com/googleapis/google-cloud-node/compare/container-v5.7.0...container-v5.8.0) (2024-02-22) + + +### Features + +* [container] add API to enable Provisioning Request API on existing nodepools ([#5065](https://github.com/googleapis/google-cloud-node/issues/5065)) ([af0e580](https://github.com/googleapis/google-cloud-node/commit/af0e580dbdca83f5e9cebe0df1d9e752c88f4357)) + ## [5.7.0](https://github.com/googleapis/google-cloud-node/compare/container-v5.6.0...container-v5.7.0) (2024-02-09) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 70c6891b80be..f23a214a3fa6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "5.7.0", + "version": "5.8.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index cff9b6186aeb..2355ba34fb71 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "5.7.0", + "version": "5.8.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json index 3801ad3a4b1a..13a3b21e19ee 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "5.7.0", + "version": "5.8.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json b/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json index 85e6831a5c00..f947a34869be 100644 --- a/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json +++ b/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "5.7.0", + "version": "5.8.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json b/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json index 3c824c647c74..71d61165e96a 100644 --- a/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json +++ b/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "5.7.0", + "version": "5.8.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 1ab90e08bffb..8293dd3e1d16 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^5.7.0", + "@google-cloud/container": "^5.8.0", "uuid": "^9.0.0" }, "devDependencies": { diff --git a/packages/google-maps-addressvalidation/CHANGELOG.md b/packages/google-maps-addressvalidation/CHANGELOG.md index 8a783cfc8d9f..25f6903c0e8f 100644 --- a/packages/google-maps-addressvalidation/CHANGELOG.md +++ b/packages/google-maps-addressvalidation/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.2.0](https://github.com/googleapis/google-cloud-node/compare/addressvalidation-v2.1.0...addressvalidation-v2.2.0) (2024-02-22) + + +### Features + +* [addressvalidation] add session token support for Autocomplete (New) sessions that end with a call to Address Validation ([#5059](https://github.com/googleapis/google-cloud-node/issues/5059)) ([da1c96f](https://github.com/googleapis/google-cloud-node/commit/da1c96fcf441e412b3657b6b433c4a07c5afca1d)) + ## [2.1.0](https://github.com/googleapis/google-cloud-node/compare/addressvalidation-v2.0.1...addressvalidation-v2.1.0) (2024-02-09) diff --git a/packages/google-maps-addressvalidation/package.json b/packages/google-maps-addressvalidation/package.json index 83d6d17a90d4..7d1350ce200a 100644 --- a/packages/google-maps-addressvalidation/package.json +++ b/packages/google-maps-addressvalidation/package.json @@ -1,6 +1,6 @@ { "name": "@googlemaps/addressvalidation", - "version": "2.1.0", + "version": "2.2.0", "description": " client for Node.js", "repository": { "type": "git", diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json index 2a2ed685cb8a..d828133a9a24 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json +++ b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-addressvalidation", - "version": "2.1.0", + "version": "2.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json index f59de7596f73..8327f9469222 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json +++ b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-addressvalidation", - "version": "2.1.0", + "version": "2.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-maps-addressvalidation/samples/package.json b/packages/google-maps-addressvalidation/samples/package.json index 388979461543..b1b9a3f2fd14 100644 --- a/packages/google-maps-addressvalidation/samples/package.json +++ b/packages/google-maps-addressvalidation/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@googlemaps/addressvalidation": "^2.1.0" + "@googlemaps/addressvalidation": "^2.2.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-maps-places/CHANGELOG.md b/packages/google-maps-places/CHANGELOG.md index 0ccf4e47bdeb..1f7a88cad5e3 100644 --- a/packages/google-maps-places/CHANGELOG.md +++ b/packages/google-maps-places/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.3.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.2.0...places-v1.3.0) (2024-02-22) + + +### Features + +* [places] add AutoComplete API ([#5056](https://github.com/googleapis/google-cloud-node/issues/5056)) ([c53c6ea](https://github.com/googleapis/google-cloud-node/commit/c53c6ea8311a921b16a4e3b3c4d3d941afd82245)) + ## [1.2.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.1.0...places-v1.2.0) (2024-02-09) diff --git a/packages/google-maps-places/package.json b/packages/google-maps-places/package.json index 8a27d524cf36..64cd86646338 100644 --- a/packages/google-maps-places/package.json +++ b/packages/google-maps-places/package.json @@ -1,6 +1,6 @@ { "name": "@googlemaps/places", - "version": "1.2.0", + "version": "1.3.0", "description": "Places API (New) client for Node.js", "repository": { "type": "git", diff --git a/packages/google-maps-places/samples/generated/v1/snippet_metadata.google.maps.places.v1.json b/packages/google-maps-places/samples/generated/v1/snippet_metadata.google.maps.places.v1.json index 55d2d7807319..c438a95b7203 100644 --- a/packages/google-maps-places/samples/generated/v1/snippet_metadata.google.maps.places.v1.json +++ b/packages/google-maps-places/samples/generated/v1/snippet_metadata.google.maps.places.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-places", - "version": "1.2.0", + "version": "1.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json index 6ce2807c7743..00228dc1f062 100644 --- a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json +++ b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-places", - "version": "1.2.0", + "version": "1.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-maps-places/samples/package.json b/packages/google-maps-places/samples/package.json index 2b197c2835e7..1cab492475f5 100644 --- a/packages/google-maps-places/samples/package.json +++ b/packages/google-maps-places/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@googlemaps/places": "^1.2.0" + "@googlemaps/places": "^1.3.0" }, "devDependencies": { "c8": "^7.1.0",